kor-input-ltsv 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: 040a7be4eef306c1750f6ce9031f22139188fa56
4
- data.tar.gz: 403c7501dc9ea310e27b30741dc2643f67fb1202
3
+ metadata.gz: c5ee7e82e979bfad7c0d4ea68bd375295cd8b2d9
4
+ data.tar.gz: 6233224fe379142344d51e6a3535f2bae1c1029a
5
5
  SHA512:
6
- metadata.gz: d82da9245043eb0b09c0d8c165ddb2b5e0dc1be19208a43c12f1b74928a01a695d6a19ce80bc2186053ac8f58d743bd66aee1c05424face12ce2476ef654f6ad
7
- data.tar.gz: 809df080b548212c5e8c4c9b4963a0a4dbb30af68809518f9c9f05868345c0754874ac746e49081dcd6a25f9ddf61e87d4f7cc70aca1c85a911b7d2d42d57c20
6
+ metadata.gz: cc805dc7e20c889a11bffbf063dbf9816b8d88e128357e6641514d1456a1a30561ada18313bfd5ff3f4687ba8cbc90b83f2dd6148d02ac0c5bf66ba80755a121
7
+ data.tar.gz: d4f56feab73a50527113854c595378b5fa8c75fc2215dbd3c004aa6b7681b3f547ac9e4d47421a881f0fbab80c76e8ac8f329cbc94f097beb49beeec80b656c4
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  kor-input-ltsv
2
2
  ===
3
3
 
4
- [![Build [![Build Status](https://travis-ci.org/ksss/kor-input-ltsv.svg?branch=master)](https://travis-ci.org/ksss/kor-input-ltsv)
4
+ [![Build Status](https://travis-ci.org/ksss/kor-input-ltsv.svg?branch=master)](https://travis-ci.org/ksss/kor-input-ltsv)
5
5
 
6
- LTSV(Labeled Tab-Separated Values) input plugin for kor
6
+ LTSV(Labeled Tab-Separated Values) input plugin for [kor](https://github.com/ksss/kor)
7
7
 
8
8
  ## Usage
9
9
 
@@ -17,6 +17,12 @@ $ kor ltsv markdown < table.ltsv
17
17
  | --- | --- | --- |
18
18
  | 100 | 200 | 300 |
19
19
  | 400 | 500 | 600 |
20
+
21
+ $ kor ltsv --key=bar markdown < table.ltsv
22
+ | bar |
23
+ | --- |
24
+ | 200 |
25
+ | 500 |
20
26
  ```
21
27
 
22
28
  ## Installation
@@ -44,6 +50,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/ksss/k
44
50
 
45
51
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
46
52
 
47
- ## Ref
53
+ ## Refs
48
54
 
49
- http://ltsv.org/
55
+ - https://github.com/ksss/kor
56
+ - http://ltsv.org/
@@ -27,7 +27,7 @@ module Kor
27
27
  end
28
28
 
29
29
  def parse(opt)
30
- opt.on("--keys=KEYS", "define keys preset (e.g. foo,bar,baz) (default auto)") do |arg|
30
+ opt.on("--key=KEY", "define keys preset (e.g. foo,bar,baz) (default auto)") do |arg|
31
31
  @prekeys = arg
32
32
  end
33
33
  end
@@ -1,7 +1,7 @@
1
1
  module Kor
2
2
  module Input
3
3
  class Ltsv
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
@@ -17,11 +17,11 @@ CSV
17
17
  t.error("expect #{expect} got #{actual}")
18
18
  end
19
19
 
20
- actual = `echo '#{ltsv.chomp}' | kor ltsv --keys=foo csv`
20
+ actual = `echo '#{ltsv.chomp}' | kor ltsv --key=bar,foo csv`
21
21
  expect = <<-CSV
22
- foo
23
- 100
24
- 600
22
+ bar,foo
23
+ 200,100
24
+ 500,600
25
25
  CSV
26
26
  if actual != expect
27
27
  t.error("expect #{expect} got #{actual}")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kor-input-ltsv
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
  - ksss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-08 00:00:00.000000000 Z
11
+ date: 2015-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kor
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  requirements: []
106
106
  rubyforge_project:
107
- rubygems_version: 2.5.0
107
+ rubygems_version: 2.4.5.1
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: LTSV input plugin for kor.