yaml2json 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: a46479b723f57c52a7e5f126a04c35ee684cc5db
4
- data.tar.gz: c36ae811c0203f9d3b5c3c5448673a3fc5f609cc
3
+ metadata.gz: c5415581f4616d6342c720e8730f36c4935cc2aa
4
+ data.tar.gz: e5eb220d9b825c481b237156e4591d01a38a4e22
5
5
  SHA512:
6
- metadata.gz: f05331d771e1f1e86566534955cec011b4b6ce75d2bb4d6eea91258582cc75c0901e0367f3f2ada513d0d0da8d44eb988bc74dda46a5c0e631c3acd98cc6e8a2
7
- data.tar.gz: 86ca910d6f85fd9a142b5fe9e6706b9e19d7da59ab633dbfa151cbc4974c63f8acab3df7849a2944525e6a10809aeb5ca41942b5e904988322f3525c3cfe54a1
6
+ metadata.gz: 3833c01f0ba3c4c4980368c3ae8cb9a802005148c62b26f027be916f1530c85e47348d278f5230c05d19037f7a49c093348390796694404e92e6a1c0e93fd732
7
+ data.tar.gz: ed6e731fe567bc7e133f2f982214cf058af2de5aefef48ae598d9787bdba42afae834f2b13e1b423c14b05ae42d6925d20c62bfb3fbca8b0a7b3fab6441a156a
@@ -10,7 +10,7 @@ require 'yaml'
10
10
 
11
11
  trap('INT') { exit 130 }
12
12
 
13
- inputs = ARGV[1] ? ARGV[1..-1].map {|f| open f } : [STDIN]
13
+ inputs = ARGV[0] ? ARGV.map {|f| open f } : [STDIN]
14
14
  inputs.each do |input|
15
15
  YAML.load_stream(input) do |d|
16
16
  puts JSON.dump(d)
@@ -1,3 +1,3 @@
1
1
  module Yaml2json
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml2json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuya Takeyama