ltsview 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 657a07f57fd26826905e4f22654eeb5e737ad673
4
+ data.tar.gz: 1c43a50c9da07ad74406dc650c9988b0af0a63a3
5
+ SHA512:
6
+ metadata.gz: ade6f1fc0ff6ad56efb37ce270dfe1adf19a6b79ec09f4433cd92cae75d104e5a29034d86e66f205f63036936453a8e8a4717330d8f1c3051462dcdd3e5d6e3f
7
+ data.tar.gz: 5d65deb2d6514e80634f09f16738bc727162c4e98e8aed9b811a2ee02eb799d9ea2f78ca75859ba5c22839f208b5e6adc054883b967a9af3bc9644dbbf8a7e8f
data/.travis.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - "1.8.7"
3
4
  - "1.9.3"
4
5
  - "2.0.0"
5
- script: bundle exec rake test
6
+ script: bundle exec rake spec
data/README.md CHANGED
@@ -3,7 +3,7 @@ Ltsview
3
3
 
4
4
  Ltsview - Labeled Tab Separated Value manipulator Viewer
5
5
 
6
- [![Build Status](https://travis-ci.org/naoto/ltsview.png?branch=master)](https://secure.travis-ci.org/naoto/ltsview)
6
+ [![Build Status](https://travis-ci.org/naoto/ltsview.png?branch=master)](https://travis-ci.org/naoto/ltsview)
7
7
  [![Gem Version](https://badge.fury.io/rb/ltsview.png)](https://badge.fury.io/rb/ltsview)
8
8
  [![Code CLimate](https://codeclimate.com/github/naoto/ltsview.png)](https://codeclimate.com/github/naoto/ltsview)
9
9
  [![Coverage Status](https://coveralls.io/repos/naoto/ltsview/badge.png?branch=master)](https://coveralls.io/r/naoto/ltsview)
@@ -12,7 +12,7 @@ Ltsview - Labeled Tab Separated Value manipulator Viewer
12
12
  ## Requirements
13
13
 
14
14
  * OSX or Ubuntu
15
- * Ruby 1.9.3 or later
15
+ * Ruby 1.8.7 or 1.9.3 or 2.0.0
16
16
 
17
17
  ## Installation
18
18
 
data/Rakefile CHANGED
@@ -1,10 +1,13 @@
1
1
  #!/usr/bin/env rake
2
- require 'rake'
3
- require 'rake/testtask'
2
+ require 'bundler/gem_tasks'
4
3
 
5
- Rake::TestTask.new do |t|
6
- t.pattern = 'spec/**/*_spec.rb'
7
- t.libs.push 'spec'
8
- t.libs.push 'lib'
4
+ # RSpec
5
+ require 'rspec/core/rake_task'
6
+ RSpec::Core::RakeTask.new(:spec) do |spec|
7
+ if RUBY_VERSION < '1.9'
8
+ spec.pattern = 'spec/ltsview187/*_spec.rb'
9
+ else
10
+ spec.pattern = 'spec/ltsview/*_spec.rb'
11
+ end
9
12
  end
10
-
13
+ task :default => :spec
data/lib/ltsview/parse.rb CHANGED
@@ -3,18 +3,19 @@ module Ltsview
3
3
 
4
4
  def initialize(options)
5
5
  @options = {
6
- mode: :yaml,
7
- color: true,
8
- file: nil,
9
- keys: nil,
10
- ignore_key: nil,
11
- regex: nil
6
+ :mode => :yaml,
7
+ :color => true,
8
+ :file => nil,
9
+ :keys => nil,
10
+ :ignore_key => nil,
11
+ :regex => nil
12
12
  }
13
13
  option_parse options
14
14
  end
15
15
 
16
16
  def print
17
17
  file_or_stdin do |ltsv|
18
+ next if ltsv.nil?
18
19
  line = formatter(filter(ltsv))
19
20
  puts "#{tag}#{line}" unless line.nil?
20
21
  $stdout.flush
@@ -27,7 +28,10 @@ module Ltsview
27
28
  option.on('-f', '--file VAL'){ |v| @options[:file] = v }
28
29
  option.on('-k', '--keys VAL'){ |v| @options[:keys] = v.split(',') }
29
30
  option.on('-i', '--ignore-key VAL'){ |v| @options[:ignore_key] = v.split(',') }
30
- option.on('-r', '--regexp key:VAL', /\A([^:]+):(.*)/){ |_, k,v| @options[:regex] = {key: k.to_sym, value: v} }
31
+ option.on('-r', '--regexp VAL', /\A([^:]+):(.*)/){ |k,x,y|
32
+ @options[:regex] = k.split(":", 2)
33
+ #@options[:regex] = {:key => key.to_sym, :value => val}
34
+ }
31
35
  option.on('-j', '--json') { |v| @options[:mode] = :json }
32
36
  option.on('-l', '--ltsv') { |v| @options[:mode] = :ltsv }
33
37
  option.on('-t', '--tag VAL'){ |v| @options[:tag] = v }
@@ -47,7 +51,7 @@ module Ltsview
47
51
 
48
52
  def stdin_load
49
53
  $stdin.each_line do |line|
50
- yield LTSV.parse(line.chomp).first
54
+ yield LTSV.parse(line.chomp).first unless line.nil?
51
55
  end
52
56
  end
53
57
 
@@ -73,7 +77,7 @@ module Ltsview
73
77
  end
74
78
 
75
79
  def matcher(ltsv)
76
- if !@options[:regex].nil? && ltsv[@options[:regex][:key]] !~ /(#{@options[:regex][:value]})/
80
+ if !@options[:regex].nil? && ltsv[@options[:regex].first.to_sym] !~ /(#{@options[:regex].last})/
77
81
  ltsv = {}
78
82
  end
79
83
  ltsv
@@ -1,3 +1,3 @@
1
1
  module Ltsview
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/ltsview.rb CHANGED
@@ -2,12 +2,18 @@ require "ltsview/version"
2
2
 
3
3
  module Ltsview
4
4
  # Your code goes here...
5
+ require 'rubygems'
5
6
 
6
7
  require 'ltsv'
7
8
  require 'coderay'
8
9
  require 'optparse'
9
10
  require 'yaml'
10
- require 'json'
11
+
12
+ if RUBY_VERSION < '1.9'
13
+ require 'json/pure'
14
+ else
15
+ require 'json'
16
+ end
11
17
 
12
18
  require 'ltsview/parse'
13
19
  require 'ltsview/core_ext/hash'
data/ltsview.gemspec CHANGED
@@ -19,10 +19,12 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  gem.add_runtime_dependency 'ltsv'
21
21
  gem.add_runtime_dependency 'coderay'
22
+ gem.add_runtime_dependency 'json' if RUBY_VERSION < '1.9'
22
23
 
24
+ gem.add_development_dependency 'bundler', "~> 1.3"
23
25
  gem.add_development_dependency 'rake'
24
26
  gem.add_development_dependency 'rspec'
25
-
26
27
  gem.add_development_dependency 'coveralls'
27
28
 
29
+
28
30
  end
@@ -11,9 +11,9 @@ describe Ltsview::Parse do
11
11
  $stdin << "hoge:fuga hago\tfoo:barbaz\n"
12
12
  $stdin.rewind
13
13
  parse.print
14
- }.must_equal("\e[45m---\e[0m\n\e[1;32m:hoge\e[0m: \e[1;33m\e[41mfuga hago\e[0m\n\e[1;32m:foo\e[0m: \e[1;33m\e[41mbarbaz\e[0m\n")
14
+ }.should eq("\e[45m---\e[0m\n\e[1;32m:hoge\e[0m: \e[1;33m\e[41mfuga hago\e[0m\n\e[1;32m:foo\e[0m: \e[1;33m\e[41mbarbaz\e[0m\n")
15
15
  end
16
-
16
+
17
17
  it 'shoild get json' do
18
18
  parse = Ltsview::Parse.new(['-j'])
19
19
  capture(:stdout) {
@@ -21,7 +21,7 @@ describe Ltsview::Parse do
21
21
  $stdin << "hoge:fuga hago\tfoo:barbaz\n"
22
22
  $stdin.rewind
23
23
  parse.print
24
- }.must_equal("{\e[35m\"hoge\"\e[0m:\e[32m\e[1;32m\"\e[0m\e[32mfuga hago\e[1;32m\"\e[0m\e[32m\e[0m,\e[35m\"foo\"\e[0m:\e[32m\e[1;32m\"\e[0m\e[32mbarbaz\e[1;32m\"\e[0m\e[32m\e[0m}\n")
24
+ }.should eq("{\e[35m\"hoge\"\e[0m:\e[32m\e[1;32m\"\e[0m\e[32mfuga hago\e[1;32m\"\e[0m\e[32m\e[0m,\e[35m\"foo\"\e[0m:\e[32m\e[1;32m\"\e[0m\e[32mbarbaz\e[1;32m\"\e[0m\e[32m\e[0m}\n")
25
25
  end
26
26
 
27
27
  it 'should get non-colored ltsv' do
@@ -31,7 +31,7 @@ describe Ltsview::Parse do
31
31
  $stdin << "hoge:fuga hago\tfoo:barbaz\n"
32
32
  $stdin.rewind
33
33
  parse.print
34
- }.must_equal("hoge:fuga hago\tfoo:barbaz\n")
34
+ }.should eq("hoge:fuga hago\tfoo:barbaz\n")
35
35
  end
36
36
  end
37
37
 
@@ -43,7 +43,7 @@ describe Ltsview::Parse do
43
43
  $stdin << "hoge:fuga hago\tfoo:barbaz\n"
44
44
  $stdin.rewind
45
45
  parse.print
46
- }.must_equal("@[test.tag] \e[45m---\e[0m\n\e[1;32m:hoge\e[0m: \e[1;33m\e[41mfuga hago\e[0m\n\e[1;32m:foo\e[0m: \e[1;33m\e[41mbarbaz\e[0m\n")
46
+ }.should eq("@[test.tag] \e[45m---\e[0m\n\e[1;32m:hoge\e[0m: \e[1;33m\e[41mfuga hago\e[0m\n\e[1;32m:foo\e[0m: \e[1;33m\e[41mbarbaz\e[0m\n")
47
47
  end
48
48
  end
49
49
 
@@ -52,7 +52,7 @@ describe Ltsview::Parse do
52
52
  parse = Ltsview::Parse.new(['-f','spec/test.ltsv'])
53
53
  capture(:stdout){
54
54
  parse.print
55
- }.must_equal("\e[45m---\e[0m\n\e[1;32m:hoge\e[0m: \e[1;33m\e[41mfuga hago\e[0m\n\e[1;32m:foo\e[0m: \e[1;33m\e[41mbarbaz\e[0m\n")
55
+ }.should eq("\e[45m---\e[0m\n\e[1;32m:hoge\e[0m: \e[1;33m\e[41mfuga hago\e[0m\n\e[1;32m:foo\e[0m: \e[1;33m\e[41mbarbaz\e[0m\n")
56
56
  end
57
57
  end
58
58
 
@@ -65,7 +65,7 @@ describe Ltsview::Parse do
65
65
  $stdin << "hoge:fuga hago\tfoo:barbaz\n"
66
66
  $stdin.rewind
67
67
  parse.print
68
- }.must_equal("\e[45m---\e[0m\n\e[1;32m:foo\e[0m: \e[1;33m\e[41mbarbaz\e[0m\n")
68
+ }.should eq("\e[45m---\e[0m\n\e[1;32m:foo\e[0m: \e[1;33m\e[41mbarbaz\e[0m\n")
69
69
  end
70
70
  end
71
71
 
@@ -77,20 +77,20 @@ describe Ltsview::Parse do
77
77
  $stdin << "hoge:fuga hago\tfoo:barbaz\n"
78
78
  $stdin.rewind
79
79
  parse.print
80
- }.must_equal("\e[45m---\e[0m\n\e[1;32m:hoge\e[0m: \e[1;33m\e[41mfuga hago\e[0m\n")
80
+ }.should eq("\e[45m---\e[0m\n\e[1;32m:hoge\e[0m: \e[1;33m\e[41mfuga hago\e[0m\n")
81
81
  end
82
82
  end
83
83
 
84
84
  describe 'when regex matche' do
85
85
  it 'should by regex matcher' do
86
86
  parse = Ltsview::Parse.new(['-r', 'foo:^fuga'])
87
- capture(:stdout){
88
- $stdin = StringIO.new
89
- $stdin << "hago:fuga hago\tfoo:barbaz\n"
90
- $stdin << "hago:fuga2 hago\tfoo:fugabarbaz\n"
91
- $stdin.rewind
92
- parse.print
93
- }.must_equal("\e[45m---\e[0m\n\e[1;32m:hago\e[0m: \e[1;33m\e[41mfuga2 hago\e[0m\n\e[1;32m:foo\e[0m: \e[1;33m\e[41mfugabarbaz\e[0m\n")
87
+ capture(:stdout){
88
+ $stdin = StringIO.new
89
+ $stdin << "hago:fuga hago\tfoo:barbaz\n"
90
+ $stdin << "hago:fuga2 hago\tfoo:fugabarbaz\n"
91
+ $stdin.rewind
92
+ parse.print
93
+ }.should eq("\e[45m---\e[0m\n\e[1;32m:hago\e[0m: \e[1;33m\e[41mfuga2 hago\e[0m\n\e[1;32m:foo\e[0m: \e[1;33m\e[41mfugabarbaz\e[0m\n")
94
94
  end
95
95
  end
96
96
 
@@ -102,7 +102,7 @@ describe Ltsview::Parse do
102
102
  $stdin << "hoge:fuga hago\tfoo:barbaz\n"
103
103
  $stdin.rewind
104
104
  parse.print
105
- }.must_equal("\e[45m---\e[0m\n\e[1;32m:hoge\e[0m: \e[1;33m\e[41mfuga hago\e[0m\n\e[1;32m:foo\e[0m: \e[1;33m\e[41mbarbaz\e[0m\n")
105
+ }.should eq("\e[45m---\e[0m\n\e[1;32m:hoge\e[0m: \e[1;33m\e[41mfuga hago\e[0m\n\e[1;32m:foo\e[0m: \e[1;33m\e[41mbarbaz\e[0m\n")
106
106
  end
107
107
 
108
108
  it 'should by color mode off' do
@@ -112,7 +112,7 @@ describe Ltsview::Parse do
112
112
  $stdin << "hoge:fuga hago\tfoo:barbaz\n"
113
113
  $stdin.rewind
114
114
  parse.print
115
- }.must_equal("---\n:hoge: fuga hago\n:foo: barbaz\n")
115
+ }.should eq("---\n:hoge: fuga hago\n:foo: barbaz\n")
116
116
  end
117
117
 
118
118
  end
@@ -0,0 +1,121 @@
1
+ require 'spec_helper'
2
+ require 'ltsview/parse'
3
+
4
+ describe Ltsview::Parse do
5
+
6
+ describe 'when encode stdin text line' do
7
+ it 'should get yaml' do
8
+ parse = Ltsview::Parse.new(ARGV)
9
+ capture(:stdout) {
10
+ $stdin = StringIO.new
11
+ $stdin << "hoge:fuga hago\tfoo:barbaz\n"
12
+ $stdin.rewind
13
+ parse.print
14
+ }.match(/\e\[45m---\e\[0m\s?\n\e\[1;32m:(hoge|foo)\e\[0m: \e\[1;33m\e\[41m(fuga hago|barbaz)\e\[0m\n\e\[1;32m:(foo|hoge)\e\[0m: \e\[1;33m\e\[41m(barbaz|fuga hago)\e\[0m\n/)
15
+ end
16
+
17
+ it 'shoild get json' do
18
+ parse = Ltsview::Parse.new(['-j'])
19
+ capture(:stdout) {
20
+ $stdin = StringIO.new
21
+ $stdin << "hoge:fuga hago\tfoo:barbaz\n"
22
+ $stdin.rewind
23
+ parse.print
24
+ }.should match(/\{\e\[35m"(hoge|foo)"\e\[0m:\e\[32m\e\[1;32m"\e\[0m\e\[32m(fuga hago|barbaz)\e\[1;32m"\e\[0m\e\[32m\e\[0m,\e\[35m"(foo|hoge)"\e\[0m:\e\[32m\e\[1;32m"\e\[0m\e\[32m(barbaz|fuga hago)\e\[1;32m"\e\[0m\e\[32m\e\[0m\}\n/)
25
+ end
26
+
27
+ it 'should get non-colored ltsv' do
28
+ parse = Ltsview::Parse.new(['-l'])
29
+ capture(:stdout) {
30
+ $stdin = StringIO.new
31
+ $stdin << "hoge:fuga hago\tfoo:barbaz\n"
32
+ $stdin.rewind
33
+ parse.print
34
+ }.should match(/(hoge:fuga hago|foo:barbaz)\t(foo:barbaz|hoge:fuga hago)\n/)
35
+ end
36
+ end
37
+
38
+ describe 'when appended tag' do
39
+ it 'should apeended tag' do
40
+ parse = Ltsview::Parse.new(['-t', 'test.tag'])
41
+ capture(:stdout) {
42
+ $stdin = StringIO.new
43
+ $stdin << "hoge:fuga hago\tfoo:barbaz\n"
44
+ $stdin.rewind
45
+ parse.print
46
+ }.should match(/@\[test\.tag\] \e\[45m---\e\[0m\s?\n\e\[1;32m:(hoge|foo)\e\[0m: \e\[1;33m\e\[41m(fuga hago|barbaz)\e\[0m\n\e\[1;32m:(foo|hoge)\e\[0m: \e\[1;33m\e\[41m(barbaz|fuga hago)\e\[0m\n/)
47
+ end
48
+ end
49
+
50
+ describe 'when encode ltsv format file' do
51
+ it 'should load ltsv' do
52
+ parse = Ltsview::Parse.new(['-f','spec/test.ltsv'])
53
+ capture(:stdout){
54
+ parse.print
55
+ }.should match(/\e\[45m---\e\[0m\s?\n\e\[1;32m:(hoge|foo)\e\[0m: \e\[1;33m\e\[41m(fuga hago|barbaz)\e\[0m\n\e\[1;32m:(foo|hoge)\e\[0m: \e\[1;33m\e\[41m(barbaz|fuga hago)\e\[0m\n/)
56
+ end
57
+ end
58
+
59
+
60
+ describe 'when key select' do
61
+ it 'should by key select' do
62
+ parse = Ltsview::Parse.new(['-k','foo'])
63
+ capture(:stdout){
64
+ $stdin = StringIO.new
65
+ $stdin << "hoge:fuga hago\tfoo:barbaz\n"
66
+ $stdin.rewind
67
+ parse.print
68
+ }.should match(/\e\[45m---\e\[0m\s?\n\e\[1;32m:foo\e\[0m: \e\[1;33m\e\[41mbarbaz\e\[0m\n/)
69
+ end
70
+ end
71
+
72
+ describe 'when ignore key select' do
73
+ it 'should by igonore key select' do
74
+ parse = Ltsview::Parse.new(['-i','foo'])
75
+ capture(:stdout){
76
+ $stdin = StringIO.new
77
+ $stdin << "hoge:fuga hago\tfoo:barbaz\n"
78
+ $stdin.rewind
79
+ parse.print
80
+ }.should match(/\e\[45m---\e\[0m\s?\n\e\[1;32m:hoge\e\[0m: \e\[1;33m\e\[41mfuga hago\e\[0m\n/)
81
+ end
82
+ end
83
+
84
+ describe 'when regex matche' do
85
+ it 'should by regex matcher' do
86
+ parse = Ltsview::Parse.new(['-r', 'foo:^fuga'])
87
+ capture(:stdout){
88
+ $stdin = StringIO.new
89
+ $stdin << "hago:fuga hago\tfoo:barbaz\n"
90
+ $stdin << "hago:fuga2 hago\tfoo:fugabarbaz\n"
91
+ $stdin.rewind
92
+ parse.print
93
+ }.should match(/\e\[45m---\e\[0m \n\e\[1;32m:(foo|hago)\e\[0m: \e\[1;33m\e\[41m(fugabarbaz|fuga2 hago)\e\[0m\n\e\[1;32m:(hago|foo)\e\[0m: \e\[1;33m\e\[41m(fuga2 hago|fugabarbaz)\e\[0m\n/)
94
+ end
95
+ end
96
+
97
+ describe 'when color mode' do
98
+ it 'should by default color mode on' do
99
+ parse = Ltsview::Parse.new(ARGV)
100
+ capture(:stdout){
101
+ $stdin = StringIO.new
102
+ $stdin << "hoge:fuga hago\tfoo:barbaz\n"
103
+ $stdin.rewind
104
+ parse.print
105
+ }.should match(/\e\[45m---\e\[0m\s?\n\e\[1;32m:(hoge|foo)\e\[0m: \e\[1;33m\e\[41m(fuga hago|barbaz)\e\[0m\n\e\[1;32m:(foo|hoge)\e\[0m: \e\[1;33m\e\[41m(barbaz|fuga hago)\e\[0m\n/)
106
+ end
107
+
108
+ it 'should by color mode off' do
109
+ parse = Ltsview::Parse.new(['--no-colors'])
110
+ capture(:stdout){
111
+ $stdin = StringIO.new
112
+ $stdin << "hoge:fuga hago\tfoo:barbaz\n"
113
+ $stdin.rewind
114
+ parse.print
115
+ }.should match(/---\s?\n:(hoge|foo): (fuga hago|barbaz)\n:(foo|hoge): (barbaz|fuga hago)\n/)
116
+ end
117
+
118
+ end
119
+
120
+ end
121
+
data/spec/spec_helper.rb CHANGED
@@ -1,14 +1,10 @@
1
1
  require 'rubygems'
2
- require 'bundler/setup'
3
-
4
- require 'minitest/unit'
5
- require 'minitest/autorun'
6
-
7
- require 'ltsview'
8
2
 
9
3
  require 'coveralls'
10
4
  Coveralls.wear!
11
5
 
6
+ require 'ltsview'
7
+
12
8
  def capture(stream)
13
9
  begin
14
10
  stream = stream.to_s
metadata CHANGED
@@ -1,94 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ltsview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
5
- prerelease:
4
+ version: 0.0.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Naoto SHINGAKI
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-04 00:00:00.000000000 Z
11
+ date: 2013-05-14 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: ltsv
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: coderay
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
46
55
  - !ruby/object:Gem::Dependency
47
56
  name: rake
48
57
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
58
  requirements:
51
- - - ! '>='
59
+ - - '>='
52
60
  - !ruby/object:Gem::Version
53
61
  version: '0'
54
62
  type: :development
55
63
  prerelease: false
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
65
  requirements:
59
- - - ! '>='
66
+ - - '>='
60
67
  - !ruby/object:Gem::Version
61
68
  version: '0'
62
69
  - !ruby/object:Gem::Dependency
63
70
  name: rspec
64
71
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
72
  requirements:
67
- - - ! '>='
73
+ - - '>='
68
74
  - !ruby/object:Gem::Version
69
75
  version: '0'
70
76
  type: :development
71
77
  prerelease: false
72
78
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
79
  requirements:
75
- - - ! '>='
80
+ - - '>='
76
81
  - !ruby/object:Gem::Version
77
82
  version: '0'
78
83
  - !ruby/object:Gem::Dependency
79
84
  name: coveralls
80
85
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
86
  requirements:
83
- - - ! '>='
87
+ - - '>='
84
88
  - !ruby/object:Gem::Version
85
89
  version: '0'
86
90
  type: :development
87
91
  prerelease: false
88
92
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
93
  requirements:
91
- - - ! '>='
94
+ - - '>='
92
95
  - !ruby/object:Gem::Version
93
96
  version: '0'
94
97
  description: Ltsview - Labeled Tab Separated Value manipulator Viewer
@@ -111,34 +114,35 @@ files:
111
114
  - lib/ltsview/parse.rb
112
115
  - lib/ltsview/version.rb
113
116
  - ltsview.gemspec
114
- - spec/parse_spec.rb
117
+ - spec/ltsview/parse_spec.rb
118
+ - spec/ltsview187/parse_spec.rb
115
119
  - spec/spec_helper.rb
116
120
  - spec/test.ltsv
117
121
  homepage: https://github.com/naoto/ltsview
118
122
  licenses: []
123
+ metadata: {}
119
124
  post_install_message:
120
125
  rdoc_options: []
121
126
  require_paths:
122
127
  - lib
123
128
  required_ruby_version: !ruby/object:Gem::Requirement
124
- none: false
125
129
  requirements:
126
- - - ! '>='
130
+ - - '>='
127
131
  - !ruby/object:Gem::Version
128
132
  version: '0'
129
133
  required_rubygems_version: !ruby/object:Gem::Requirement
130
- none: false
131
134
  requirements:
132
- - - ! '>='
135
+ - - '>='
133
136
  - !ruby/object:Gem::Version
134
137
  version: '0'
135
138
  requirements: []
136
139
  rubyforge_project:
137
- rubygems_version: 1.8.23
140
+ rubygems_version: 2.0.0
138
141
  signing_key:
139
- specification_version: 3
142
+ specification_version: 4
140
143
  summary: Ltsview - Labeled Tab Separated Value manipulator Viewer
141
144
  test_files:
142
- - spec/parse_spec.rb
145
+ - spec/ltsview/parse_spec.rb
146
+ - spec/ltsview187/parse_spec.rb
143
147
  - spec/spec_helper.rb
144
148
  - spec/test.ltsv