duktape 1.3.0.2 → 1.3.0.3

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: b1e29cb10a0bc61e70bd5d9cd337a969e705d968
4
- data.tar.gz: 02a71ca8023df7cd04f640a65fbc15e57892b4c1
3
+ metadata.gz: dfb55cc84a3ff20a35c960423f771f25af235e9a
4
+ data.tar.gz: 90ab8eff7225fcc75c88e841b0708e09c347c17b
5
5
  SHA512:
6
- metadata.gz: 98fa2d7b89e3b1b3906a1b742bdf239e2aa24835ac4df82a813268f88b005c8bbf578eb3d5fe1253657c423fbe4e49c3317842bd87db9dae82c2ad59588deed4
7
- data.tar.gz: 9f70cfc2561d3c301397ddec6bf2ce5b9c189c3658346b1cb4b57f75800ab11b2d8d3891b1e4949edd56bd1c1362cbc05c70d8ab7e1faeb616d55ae5d4b77e08
6
+ metadata.gz: 88511747eb9bb7baaa33961e64ee0f715893c77e21c1deb1886a05ba6de7b4d890697df412a8c1d14a8a5af4965c118d40ec885efaea9f7eb565f565f7d80788
7
+ data.tar.gz: 19f63d599040622a841fac73843d92a377e9e6cfcadf62ef42077aaf999d853b5f07149b328e6601d2a23b20ae19d3d281af980fa64ded1b087efe264e7d9050
@@ -1,5 +1,9 @@
1
1
  # ChangeLog
2
2
 
3
+ ## v1.3.0.3 (2015-09-25)
4
+
5
+ * Support for big-endian platforms (#30, nanaya)
6
+
3
7
  ## v1.3.0.2 (2015-09-25)
4
8
 
5
9
  * Include all required files in the gem (#29, dapi)
@@ -588,7 +588,12 @@ static VALUE ctx_complex_object(VALUE self)
588
588
 
589
589
  void Init_duktape_ext()
590
590
  {
591
- utf16enc = rb_enc_find("UTF-16LE");
591
+ int one = 1;
592
+ if (*(char*)(&one) == 1) {
593
+ utf16enc = rb_enc_find("UTF-16LE");
594
+ } else {
595
+ utf16enc = rb_enc_find("UTF-16BE");
596
+ }
592
597
  id_complex_object = rb_intern("complex_object");
593
598
 
594
599
  mDuktape = rb_define_module("Duktape");
@@ -1,3 +1,3 @@
1
1
  module Duktape
2
- VERSION = "1.3.0.2"
2
+ VERSION = "1.3.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duktape
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0.2
4
+ version: 1.3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus Holm