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 +4 -4
- data/README.md +11 -4
- data/lib/kor/input/ltsv.rb +1 -1
- data/lib/kor/input/ltsv/version.rb +1 -1
- data/lib/kor/input/ltsv_test.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5ee7e82e979bfad7c0d4ea68bd375295cd8b2d9
|
4
|
+
data.tar.gz: 6233224fe379142344d51e6a3535f2bae1c1029a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
##
|
53
|
+
## Refs
|
48
54
|
|
49
|
-
|
55
|
+
- https://github.com/ksss/kor
|
56
|
+
- http://ltsv.org/
|
data/lib/kor/input/ltsv.rb
CHANGED
data/lib/kor/input/ltsv_test.rb
CHANGED
@@ -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 --
|
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.
|
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-
|
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.
|
107
|
+
rubygems_version: 2.4.5.1
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: LTSV input plugin for kor.
|