duktape 2.0.1.0 → 2.0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43c563e24c73adda91fec0604c627f2d359e05af
4
- data.tar.gz: 91a81367793242b5817c6e47126dd35e1630df95
3
+ metadata.gz: a55792db62545259c3fa48e0c038e76fce0494a1
4
+ data.tar.gz: cd720974a36c9e6e3b5c9c5667c9f51cd1f18848
5
5
  SHA512:
6
- metadata.gz: 9a91ed7e75a59667eff71b00de50d2c710d7341d7b13fdd797e9432120a3be59354bd826cac0d3441f25e6661a40efc58de5996a2363112200b3827ccd2b4666
7
- data.tar.gz: 29f88cab69da97c99be19692fc0dc5708945426166c06bd62a059d3f454c7d1f472346c8bd63811d93dd906e256b949ebed7ee9981479ed8b6e1fcae154dd4e9
6
+ metadata.gz: 8a6ce6ce9e19b4b76d0a6e7183f7cb3bfc188a7073acf36cf1af665a229c27e81b70b4ac8f24979d1441abc4532f47ac52c8fb791ce2d45c839310797565125a
7
+ data.tar.gz: fa7eb3f658f730fb5be6822cc94669fce3c5f1237f3ed9d37882ec7974bcc45c2515bca3b7ac8068b4ace67ad2f68aa712f6347e6bed339871a27c2e01df4346
@@ -1,5 +1,9 @@
1
1
  # ChangeLog
2
2
 
3
+ ## v2.0.1.1 (2019-05-13)
4
+
5
+ * Support passing big numbers (64-bit + bignum) to JS (#43, did, judofyr)
6
+
3
7
  ## v2.0.1.0 (2018-05-21)
4
8
 
5
9
  * Upgrade to Duktape v2.0.1
@@ -220,13 +220,17 @@ static void ctx_push_ruby_object(struct state *state, VALUE obj)
220
220
 
221
221
  switch (TYPE(obj)) {
222
222
  case T_FIXNUM:
223
- duk_push_int(ctx, NUM2INT(obj));
223
+ duk_push_number(ctx, NUM2LONG(obj));
224
224
  return;
225
225
 
226
226
  case T_FLOAT:
227
227
  duk_push_number(ctx, NUM2DBL(obj));
228
228
  return;
229
229
 
230
+ case T_BIGNUM:
231
+ duk_push_number(ctx, NUM2DBL(obj));
232
+ return;
233
+
230
234
  case T_SYMBOL:
231
235
  #ifdef HAVE_RB_SYM2STR
232
236
  obj = rb_sym2str(obj);
@@ -1,3 +1,3 @@
1
1
  module Duktape
2
- VERSION = "2.0.1.0"
2
+ VERSION = "2.0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duktape
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1.0
4
+ version: 2.0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus Holm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-21 00:00:00.000000000 Z
11
+ date: 2019-05-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: judofyr@gmail.com