quickjs 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/quickjsrb/quickjsrb.c +3 -3
- data/lib/quickjs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ce6616967d7e98c759d616464d2fbec0ba6963cc064e52115ca6a584146347f
|
4
|
+
data.tar.gz: 1ba756125068a24321117502d7cef0924d0274dcc07572ff6c6832106aea28f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1da19a035c69f89bbcad61f094943b79b0c39a454418996d43e0696cb8433a96173bcc89bfa3d96bdea43fe7f1a7e50a6048f9f5808c1c8db45b7f60ef637b9
|
7
|
+
data.tar.gz: 9a7fc4b6e69a82e8d363dc4138b46e1d2d7e94d31bddbfbec09ea9167f92d5a373058b6b47b5250817b57ce2d6a051ae38734127309fce53f075e930b2a6a074
|
data/ext/quickjsrb/quickjsrb.c
CHANGED
@@ -29,7 +29,7 @@ JSValue to_js_value(JSContext *ctx, VALUE r_value)
|
|
29
29
|
JSValue j_global = JS_GetGlobalObject(ctx);
|
30
30
|
JSValue j_numberClass = JS_GetPropertyStr(ctx, j_global, "Number");
|
31
31
|
JSValue j_str = JS_NewString(ctx, str);
|
32
|
-
JSValue j_stringified = JS_Call(ctx, j_numberClass, JS_UNDEFINED, 1, &j_str);
|
32
|
+
JSValue j_stringified = JS_Call(ctx, j_numberClass, JS_UNDEFINED, 1, (JSValueConst *)&j_str);
|
33
33
|
JS_FreeValue(ctx, j_global);
|
34
34
|
JS_FreeValue(ctx, j_numberClass);
|
35
35
|
JS_FreeValue(ctx, j_str);
|
@@ -62,7 +62,7 @@ JSValue to_js_value(JSContext *ctx, VALUE r_value)
|
|
62
62
|
JSValue j_jsonClass = JS_GetPropertyStr(ctx, j_global, "JSON");
|
63
63
|
JSValue j_parseFunc = JS_GetPropertyStr(ctx, j_jsonClass, "parse");
|
64
64
|
JSValue j_str = JS_NewString(ctx, str);
|
65
|
-
JSValue j_stringified = JS_Call(ctx, j_parseFunc, j_jsonClass, 1, &j_str);
|
65
|
+
JSValue j_stringified = JS_Call(ctx, j_parseFunc, j_jsonClass, 1, (JSValueConst *)&j_str);
|
66
66
|
JS_FreeValue(ctx, j_global);
|
67
67
|
JS_FreeValue(ctx, j_jsonClass);
|
68
68
|
JS_FreeValue(ctx, j_parseFunc);
|
@@ -114,7 +114,7 @@ VALUE to_r_json(JSContext *ctx, JSValue j_val)
|
|
114
114
|
JSValue j_global = JS_GetGlobalObject(ctx);
|
115
115
|
JSValue j_jsonClass = JS_GetPropertyStr(ctx, j_global, "JSON");
|
116
116
|
JSValue j_stringifyFunc = JS_GetPropertyStr(ctx, j_jsonClass, "stringify");
|
117
|
-
JSValue j_strigified = JS_Call(ctx, j_stringifyFunc, j_jsonClass, 1, &j_val);
|
117
|
+
JSValue j_strigified = JS_Call(ctx, j_stringifyFunc, j_jsonClass, 1, (JSValueConst *)&j_val);
|
118
118
|
|
119
119
|
const char *msg = JS_ToCString(ctx, j_strigified);
|
120
120
|
VALUE r_str = rb_str_new2(msg);
|
data/lib/quickjs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quickjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hmsk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|