c2ffi4rb 0.0.6 → 0.0.7
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
- data/exe/c2ffi4rb +2 -2
- data/lib/c2ffi4rb/bind_gen.rb +3 -1
- data/lib/c2ffi4rb/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4573994a71db281f73abc92ea251ef6e9eb9a5911fbce28a41d75f6eeb73ecb6
|
|
4
|
+
data.tar.gz: 0eadc89a07d1d35cc9bb80a9f512146e30a5ce14586f7604ded6b5b18bbd15e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 72adc5c1ee2742339d5009b0af8053993194125414e1d1c9a26b64d326e074a8db2fbc6f7801ef16795a5119d9fa093b9be4ba9c43f4584bdc5f177930c892fa
|
|
7
|
+
data.tar.gz: 5a3ecb8bb976ffcb7427eed61c4285edaec9a8d9c4514be0bfc5f82578d9eb6c68984a1c22e92299f97cb7a9cae5c277488f29281b58a20b99b9af4724e832d3
|
data/exe/c2ffi4rb
CHANGED
|
@@ -40,13 +40,13 @@ end
|
|
|
40
40
|
spec = []
|
|
41
41
|
ARGV.each do |file|
|
|
42
42
|
File.open(file) do |io|
|
|
43
|
-
spec += JSON.parse(io.read,
|
|
43
|
+
spec += JSON.parse(io.read, symbolize_names: true)
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
unless $stdin.tty?
|
|
48
48
|
stdin_content = $stdin.read
|
|
49
|
-
spec += JSON.parse(stdin_content,
|
|
49
|
+
spec += JSON.parse(stdin_content, symbolize_names: true) if stdin_content && !stdin_content.strip.empty?
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
C2FFI4RB::BindGen.new(type_table).generate_bindings(spec)
|
data/lib/c2ffi4rb/bind_gen.rb
CHANGED
|
@@ -17,7 +17,9 @@ module C2FFI4RB
|
|
|
17
17
|
':signed-long' => ':long',
|
|
18
18
|
':unsigned-long' => ':ulong',
|
|
19
19
|
':unsigned-long-long' => ':ulong_long',
|
|
20
|
-
':function-pointer' => ':pointer'
|
|
20
|
+
':function-pointer' => ':pointer',
|
|
21
|
+
':function' => ':pointer',
|
|
22
|
+
':_Bool' => ':bool'
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
# Class method to create instance and generate bindings
|
data/lib/c2ffi4rb/version.rb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module C2FFI4RB
|
|
2
|
-
VERSION = '0.0.
|
|
3
|
-
end
|
|
2
|
+
VERSION = '0.0.7'
|
|
3
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: c2ffi4rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kojix2
|
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
84
84
|
- !ruby/object:Gem::Version
|
|
85
85
|
version: '0'
|
|
86
86
|
requirements: []
|
|
87
|
-
rubygems_version:
|
|
87
|
+
rubygems_version: 4.0.16
|
|
88
88
|
specification_version: 4
|
|
89
89
|
summary: C2FFI for Ruby-FFI
|
|
90
90
|
test_files: []
|