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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3e4e3c8680b6fcbb12c3d6c871bec2725957502
4
- data.tar.gz: d46afba3a726bc56205ce1d96ddcc9fc31098ac0
3
+ metadata.gz: 1dfc4444b52b996fa4af5be5cfd526f3010335d6
4
+ data.tar.gz: c654c40fc380e5b4d3720763a6ac382a0147a326
5
5
  SHA512:
6
- metadata.gz: a787b187ff29369a329e688bf535514a4098050aee7350f94fd11b900aae17e80d504987c1142172e02dc18598ced9bd19349ec3cc2b6cbac18c601c7ac70221
7
- data.tar.gz: ffa1a055bd1bd6c57975084396a86cc8a9b2a1059b8c953c7c0c9dea7347c8013ffe45ba822e5e8bcc05dadcbd912130c356fdade166a648a8d38c97e526fad3
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|
@@ -1,3 +1,3 @@
1
1
  module Ltsv2json
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-05 00:00:00.000000000 Z
11
+ date: 2014-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler