Commit graph

18 commits

Author SHA1 Message Date
Wayward Heart
a73f9ccc1f Prevent memory leaks from rb_raise
rb_raise calls longjmp, which bypasses C++ destructors, and also keeps the error for catch blocks from being unallocated if passed by reference, which we do for exceptions.

Some of the calls I left can still jump out of try blocks, which you're not supposed to do, but there shouldn't be any objects with destructors initialized at those points so it's probably fine.
2024-08-02 09:26:51 -05:00
Struma
0131abd4dd Add ability to change configuration from Ruby
- `System.config` has become `CONFIG.to_hash`
- `CONFIG[]` can be used to look up settings
- `CONFIG[]=` can be used to add/change settings
- When reading settings, user settings are preferred over defaults
- Changes are immediately stored in the user settings file
2022-07-05 03:16:44 -04:00
Struma
950e62dff1 make reloads after using System.un/mount optional
Also, use rb_bool_arg more often.
2022-01-20 19:50:46 -05:00
Struma
9920de87f8 Make json config accessible from System::CONFIG 2021-06-22 18:32:39 -04:00
Struma
f9c8e0e900 Run HTTP functions without GVL 2021-06-04 09:14:06 -04:00
Struma
7c6704580b set body encodings for POST methods
(because I forgot)
2021-03-28 20:22:12 -04:00
Struma
f3f401a794 set HTTP response body encoding based on Content-Type 2021-03-28 15:26:08 -04:00
Struma
d7816c121b Account for binary HTTP responses 2021-03-27 23:34:46 -04:00
Struma
8223cd6d9c follow redirects by default 2021-03-25 20:16:51 -04:00
Struma
db919e9f29 Make sure all Ruby strings are created as UTF-8 2021-03-02 03:26:51 -05:00
Struma
2fd585393d the not-so-great warning purge 2021-02-22 01:22:26 -05:00
Struma
8f78a4cf17 Fix Windows build errors 2020-12-31 19:59:53 -05:00
Struma
f7449ab7e6 add '-masm=intel' when building using GCC 2020-12-31 14:26:12 -05:00
Struma
774b288a68 Update README slightly 2020-12-30 18:39:45 -05:00
Struma
51c7f8410e Add optional header parameter to HTTP functions 2020-12-30 18:14:01 -05:00
Struma
f9b6f95708 fix include conflict between ruby and json5pp 2020-12-30 13:32:33 -05:00
Struma
d448d996f5 Add JSON parse/stringify methods to HTTPLite::JSON 2020-12-30 01:43:40 -05:00
Struma
e52ce335c4 Add HTTPLite module (built-in simple GET/POST) 2020-12-30 00:06:15 -05:00