c2ffi4rb 0.0.3 → 0.0.5

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
  SHA256:
3
- metadata.gz: 06ea739a36f2f4a6485ba3e65b6e91724eafed7f7440df1d26e7dfb5d5290897
4
- data.tar.gz: 2eaf74991d02fd8b6e5beae79150cc1b40f5178c4bb27cf1277bf1bae0c744f2
3
+ metadata.gz: 44d6bb3e8733edaee85ce7b13ed2a564d85b4cca68feda25659c85d4c42c5e92
4
+ data.tar.gz: e8d280a236be2c87a96808e18476a9d44cf3722a548bf03e52aab209e4665686
5
5
  SHA512:
6
- metadata.gz: cdc2f8439c2722a83b3a82aac50821d4bf4f9be35efa52e30202e44417ab29b3a203896ddc955e0046637667d50751a354902955df92560c22a4b74a9939fc61
7
- data.tar.gz: 5bb0f1ba5929c3ba8dbc4ca176701fddc05a3fb836ac218a1606b935335af035972354cfb4ba0950f5a19daf04457486801fca9ea868685070c1134b90e6938b
6
+ metadata.gz: fa28e2eefaeab88bdbda8730cfef082f9b69b3d169397ee1485333d20f9154b7525340c8e97008ca9342d5fe3e83fd32d2cce3d983cd216573b22bb6c50c60df
7
+ data.tar.gz: 8066189cba149c945267ffba5bd6608b7e863b314547a6c4f9aa0518b8292582df9669a6f600e62771a6c88f13f788f36ff2e0d6557eef5fd23d9864fe7e0671
data/exe/c2ffi4rb CHANGED
@@ -32,7 +32,7 @@ opts.on('-v', '--version', 'Show version') do
32
32
  end
33
33
  opts.parse!
34
34
 
35
- if ARGV.empty?
35
+ if ARGV.empty? && $stdin.tty?
36
36
  warn opts
37
37
  exit 1
38
38
  end
@@ -44,4 +44,6 @@ ARGV.each do |file|
44
44
  end
45
45
  end
46
46
 
47
+ spec += JSON.parse($stdin.read, Hash[:symbolize_names, true]) unless $stdin.tty?
48
+
47
49
  C2FFI4RB::BindGen.new(type_table).generate_bindings(spec)
@@ -1,3 +1,3 @@
1
1
  module C2FFI4RB
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.5'
3
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.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - kojix2
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-09-06 00:00:00.000000000 Z
12
+ date: 2024-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler