ltsv2json 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ltsv2json +8 -3
- data/lib/ltsv2json/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dfc4444b52b996fa4af5be5cfd526f3010335d6
|
4
|
+
data.tar.gz: c654c40fc380e5b4d3720763a6ac382a0147a326
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 383770441e88b3bc00c1b5153e0dc810b3b6c62145af8f916c0a51a6161afe32cb8d0e277dfa3d3b2a76233f27b816439b4aea1946e28ca2fa7df3fe54581a89
|
7
|
+
data.tar.gz: 911aaafe061157f1ea6e1a1697c3f06fb9b3eb57d4787372969888a39982858dc7a9333d3d205a07327d8c8f609938ebe92bf275f62f0c6044647f3fbb98819a
|
data/bin/ltsv2json
CHANGED
@@ -1,14 +1,19 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# coding: utf-8
|
3
3
|
|
4
|
-
lib = File.expand_path('../../lib', __FILE__)
|
5
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
|
-
|
7
4
|
require 'json'
|
8
5
|
require 'ltsv2json/version'
|
6
|
+
require 'optparse'
|
9
7
|
|
10
8
|
trap('INT') { exit 130 }
|
11
9
|
|
10
|
+
opt = OptionParser.new
|
11
|
+
|
12
|
+
opt.version = Ltsv2json::VERSION
|
13
|
+
opt.banner = "Usage: ltsv2json [FILE]..."
|
14
|
+
|
15
|
+
opt.parse!(ARGV)
|
16
|
+
|
12
17
|
inputs = ARGV[0] ? ARGV.map {|f| open f } : [STDIN]
|
13
18
|
inputs.each do |input|
|
14
19
|
input.each_line do |line|
|
data/lib/ltsv2json/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ltsv2json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuya Takeyama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|