infraruby-java 3.6.0 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/ext/primitive/primitive.c +13 -7
- data/infraruby-java.gemspec +3 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1145b725c04975f59fa283a7f37993e695d3ec61
|
4
|
+
data.tar.gz: 8b9ce0a3c394a37f6db4d6db243ecaf193c5792b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d81ddeb5111c92d0e9f7a7f6504bea68a5713cdb83fe21f19a5ea4f91b22902e98ff698678cef8a0250c7084a81654c39bfe23257544b7c18cc7205bcf37190a
|
7
|
+
data.tar.gz: 09effa1171e1cee38cd648667323b5497af50160b48a89ae62cb7c466dd296525f0f5d0ab0762a81a705d1b95968049bcc8e6d9b7eb8666c9d473d131aa5cb7a
|
data/README.md
CHANGED
data/ext/primitive/primitive.c
CHANGED
@@ -761,20 +761,18 @@ __object_to_boolean(VALUE o)
|
|
761
761
|
static int32_t
|
762
762
|
__assert_bounds(VALUE i, int32_t n)
|
763
763
|
{
|
764
|
-
|
765
|
-
long __i = FIX2LONG(i);
|
764
|
+
int32_t __i = __object_i32(i);
|
766
765
|
if (__i < 0 || __i >= n)
|
767
766
|
rb_raise(rb_eArgError, "index out of bounds");
|
768
|
-
return
|
767
|
+
return __i;
|
769
768
|
}
|
770
769
|
static int32_t
|
771
770
|
__assert_nat32(VALUE i)
|
772
771
|
{
|
773
|
-
|
774
|
-
|
775
|
-
if (__i < 0 || __i > 0x7FFFFFFFL)
|
772
|
+
int32_t __i = __object_i32(i);
|
773
|
+
if (__i < 0)
|
776
774
|
rb_raise(rb_eArgError, "out of range");
|
777
|
-
return
|
775
|
+
return __i;
|
778
776
|
}
|
779
777
|
static VALUE
|
780
778
|
r_Byte_new(VALUE self, VALUE o)
|
@@ -3225,6 +3223,13 @@ r_ByteArray_copy(VALUE self, VALUE i0, VALUE m1, VALUE i1, VALUE n)
|
|
3225
3223
|
return Qnil;
|
3226
3224
|
}
|
3227
3225
|
static VALUE
|
3226
|
+
r_ByteArray_to_s(VALUE self)
|
3227
|
+
{
|
3228
|
+
ByteArray *p;
|
3229
|
+
Data_Get_Struct(self, ByteArray, p);
|
3230
|
+
return rb_str_new((char*) p->data, p->length);
|
3231
|
+
}
|
3232
|
+
static VALUE
|
3228
3233
|
r_CharArray_length(VALUE self)
|
3229
3234
|
{
|
3230
3235
|
CharArray *p;
|
@@ -3981,6 +3986,7 @@ Init_primitive()
|
|
3981
3986
|
rb_define_method(r_ByteArray, "[]", r_ByteArray_get, 1);
|
3982
3987
|
rb_define_method(r_ByteArray, "[]=", r_ByteArray_set, 2);
|
3983
3988
|
rb_define_method(r_ByteArray, "copy", r_ByteArray_copy, 4);
|
3989
|
+
rb_define_method(r_ByteArray, "to_s", r_ByteArray_to_s, 0);
|
3984
3990
|
r_CharArray = rb_class_boot(rb_cObject);
|
3985
3991
|
rb_undef_alloc_func(r_CharArray);
|
3986
3992
|
rb_global_variable(&r_CharArray);
|
data/infraruby-java.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.platform = "ruby"
|
3
3
|
s.name = "infraruby-java"
|
4
|
-
s.version = "3.
|
4
|
+
s.version = "3.7.0"
|
5
5
|
s.licenses = ["MIT"]
|
6
6
|
s.author = "InfraRuby Vision"
|
7
7
|
s.email = "rubygems@infraruby.com"
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.description = "InfraRuby Java integration for Ruby interpreters"
|
11
11
|
s.extensions = ["ext/primitive/extconf.rb"]
|
12
12
|
s.files = Dir["**/*"]
|
13
|
-
s.add_runtime_dependency "infraruby-base", "~> 3.
|
14
|
-
s.add_development_dependency "infraruby-task", "~> 3.
|
13
|
+
s.add_runtime_dependency "infraruby-base", "~> 3.7"
|
14
|
+
s.add_development_dependency "infraruby-task", "~> 3.7"
|
15
15
|
s.add_development_dependency "rspec", "~> 3.0"
|
16
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infraruby-java
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- InfraRuby Vision
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: infraruby-base
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
26
|
+
version: '3.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: infraruby-task
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '3.
|
33
|
+
version: '3.7'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '3.
|
40
|
+
version: '3.7'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|