bin_utils 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/ext/bin_utils/native.c +6 -2
- data/lib/bin_utils/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZDM4MzEwZGQ2OGVmOTJhMjlkY2RiMzgyMTljZDdlYmVhOTVjYmUxMg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 24996702d6d2d386230345ffe68330134c243661
|
4
|
+
data.tar.gz: 029ff4c86407191f068458d78762314bedadbb30
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NDhkNjM3ZjM2NmI3ZGU1ZDA0MjNmYTFkMTRmODA4Y2JjOWFkYmJjMmUwZGQ0
|
11
|
-
M2ZmZmE3N2ViOTcxMWY4MDE4NjA0OWE4MWE4MzkxZTcyNWYzNzI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
M2QzMGE4YTdlMjBjMDg2MjUxNDM5ZjczZGMzZDA5YjViODUzYmY3MzkxN2Qy
|
14
|
-
OWMzZTBkOWRmNzlkYTY1YjVjMzI2MGMyOWI0MDBiODhjNjVmMTJlYzBhZDA1
|
15
|
-
YTY0ODlhYjdhOGFhZmNlNmI3MTFkNjYzN2EwZTk1YjM3OTgyNzI=
|
6
|
+
metadata.gz: 6bdd53999e43b7cdf5090a3ccc7dc7aec7fb7f340b1e10b98df32e633920770de125aed725205d4c17d5d665a0c2cde1205bb30b873e5fbd87879dcb2abcaabb
|
7
|
+
data.tar.gz: c7ac8701d6036a2bba7aee695d1e52ef6187f4ef1c8a0da53378b0d891a7a8093d0c1db85cd90337f8eb388d8a0c350d58ec88c3377fbda3a94ee0081f6bba85
|
data/ext/bin_utils/native.c
CHANGED
@@ -57,6 +57,10 @@ typedef unsigned long long uint64_t;
|
|
57
57
|
#define NUM2U64(v) NUM2ULL(v)
|
58
58
|
#endif
|
59
59
|
|
60
|
+
#ifndef RARRAY_CONST_PTR
|
61
|
+
# define RARRAY_CONST_PTR(ar) RARRAY_PTR(ar)
|
62
|
+
#endif
|
63
|
+
|
60
64
|
ID rshft;
|
61
65
|
ID band;
|
62
66
|
#ifndef HAVE_RB_STR_DROP_BYTES
|
@@ -127,7 +131,7 @@ check_argc_append(int argc, VALUE *argv, append_args *args, int bits)
|
|
127
131
|
args->str = RTEST(argv[0]) ? argv[0] : rb_str_new(0, 0);
|
128
132
|
if (argc == 2 && TYPE(argv[1]) == T_ARRAY) {
|
129
133
|
args->argc = RARRAY_LEN(argv[1]);
|
130
|
-
args->argv =
|
134
|
+
args->argv = RARRAY_CONST_PTR(argv[1]);
|
131
135
|
}
|
132
136
|
else {
|
133
137
|
args->argc = argc-1;
|
@@ -145,7 +149,7 @@ check_argc_append_2(int argc, VALUE *argv, append_args2 *args, int bits, int bit
|
|
145
149
|
args->int0 = argv[1];
|
146
150
|
if (argc == 3 && TYPE(argv[2]) == T_ARRAY) {
|
147
151
|
args->argc = RARRAY_LEN(argv[2]);
|
148
|
-
args->argv =
|
152
|
+
args->argv = RARRAY_CONST_PTR(argv[2]);
|
149
153
|
}
|
150
154
|
else {
|
151
155
|
args->argc = argc-2;
|
data/lib/bin_utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bin_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sokolov Yura 'funny-falcon'
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
|
14
|
+
name: rake-compiler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.9'
|
20
20
|
type: :development
|
21
|
-
|
21
|
+
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.9'
|
27
27
|
description: utils for extracting binary integers from binary string and packing them
|
@@ -50,17 +50,17 @@ require_paths:
|
|
50
50
|
- ext
|
51
51
|
required_ruby_version: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 1.9.1
|
56
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- -
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
62
|
rubyforge_project:
|
63
|
-
rubygems_version: 2.4.
|
63
|
+
rubygems_version: 2.4.4
|
64
64
|
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: Faster alternative to String#unpack and Array#unpack, though not as complete
|