xorcist 1.1.1 → 1.1.2
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ext/xorcist/xorcist.c +5 -19
- data/lib/xorcist/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06bbb12ac79a40c6ce4bd609159dc0567689e7e1
|
4
|
+
data.tar.gz: 355bf6c20b64205a41880c1cac2f2409ba35c9fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0359168b7032a57173665b8904317bfaf0f417a6180201a36fd8ecd657b0c33431b2e92d09bdbfc55fcebeebd1a29b7259cafdd5359de9a92b760096d7d470f9'
|
7
|
+
data.tar.gz: 83347949fa3bae7a2fbcf7d68b2736c9a18f910558ec85c268cbc9c13a6e02e349fa69d3682294ab766f5d055cf7ea7e6ab6ffb1b41e5546624e866557aad5ab
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/ext/xorcist/xorcist.c
CHANGED
@@ -1,26 +1,13 @@
|
|
1
1
|
#include <ruby.h>
|
2
2
|
|
3
|
-
VALUE Xorcist = Qnil;
|
4
|
-
|
5
|
-
void Init_xorcist();
|
6
|
-
|
7
|
-
VALUE xor_in_place(VALUE self, VALUE x, VALUE y);
|
8
|
-
|
9
3
|
VALUE xor_in_place(VALUE self, VALUE x, VALUE y) {
|
10
|
-
const char *src
|
11
|
-
char *dest
|
4
|
+
const char *src;
|
5
|
+
char *dest;
|
12
6
|
size_t len;
|
13
7
|
size_t y_len;
|
14
8
|
|
15
|
-
|
16
|
-
|
17
|
-
return Qnil;
|
18
|
-
}
|
19
|
-
|
20
|
-
if (TYPE(y) != T_STRING) {
|
21
|
-
rb_raise( rb_eTypeError, "second argument must be a String" );
|
22
|
-
return Qnil;
|
23
|
-
}
|
9
|
+
Check_Type(x, T_STRING);
|
10
|
+
Check_Type(y, T_STRING);
|
24
11
|
|
25
12
|
rb_str_modify(x);
|
26
13
|
dest = RSTRING_PTR(x);
|
@@ -41,6 +28,5 @@ VALUE xor_in_place(VALUE self, VALUE x, VALUE y) {
|
|
41
28
|
}
|
42
29
|
|
43
30
|
void Init_xorcist() {
|
44
|
-
|
45
|
-
rb_define_module_function(Xorcist, "xor!", xor_in_place, 2);
|
31
|
+
rb_define_module_function(rb_define_module("Xorcist"), "xor!", xor_in_place, 2);
|
46
32
|
}
|
data/lib/xorcist/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xorcist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Faraz Yashar
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
EWAzos45LBmn8UZPzUb/szfC1PTzuQp4R7lUCOqi7ExaZF0oYg7JqkRtHDhV/K/c
|
31
31
|
E0Og3eJcioAAuEM3ujecxGYxFkG7zDNswn47lCy6xVzBk4iF
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2018-
|
33
|
+
date: 2018-08-03 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|