csvcop 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -1
- data/csvcop.gemspec +4 -0
- data/lib/csvcop.rb +0 -2
- data/lib/csvcop/cli.rb +2 -2
- data/lib/csvcop/version.rb +1 -1
- metadata +58 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 589bf9fc215840d575c7d40be2036b033e0b650c2af5bbcbf5e07f55e599f249
|
4
|
+
data.tar.gz: e1bf9b51d1844f5e35951d5971859978d77fe8ab5f3b10a6c22682d4c553590a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fb824f49a2d0538675dfc0b2a6d09f0f9f6efac99818e96cb86828d5548bbd3821f94f2dc3a17e19cf603bfbf228e6eb891aab90cfe46746c63e81376741227
|
7
|
+
data.tar.gz: 73c3c534a2944330b69974da41c87c249b5073cd0a6b7c233e1f797ccdaedba1bc4f7d9ba1f3f92fcf9aff42e2d71e9edf578b3015de6a2f132b88480d5e00d9
|
data/Gemfile.lock
CHANGED
data/csvcop.gemspec
CHANGED
@@ -26,4 +26,8 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.bindir = "exe"
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
|
+
spec.add_dependency "thor", "~> 1.0.1"
|
30
|
+
spec.add_dependency "csv", "~> 3.1.2"
|
31
|
+
spec.add_dependency "activesupport", "~> 6.0.3"
|
32
|
+
spec.add_dependency "yaml", "~> 0.1.0"
|
29
33
|
end
|
data/lib/csvcop.rb
CHANGED
data/lib/csvcop/cli.rb
CHANGED
@@ -4,9 +4,9 @@ require "csv"
|
|
4
4
|
|
5
5
|
module CsvCop
|
6
6
|
class Cli < Thor
|
7
|
-
desc "
|
7
|
+
desc "start {CSV File Path} {options}", "check csv file"
|
8
8
|
option "config", aliases: "-c", type: :string
|
9
|
-
def
|
9
|
+
def start(csv_file_path)
|
10
10
|
config = CsvCop::Config.new(options[:config]).read
|
11
11
|
csv = CSV.table(csv_file_path)
|
12
12
|
cop = CsvCop::Cop::Cop.new(csv, config)
|
data/lib/csvcop/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csvcop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- j-o-lantern0422
|
@@ -9,7 +9,63 @@ autorequire:
|
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-05-17 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.0.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.0.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: csv
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.1.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.1.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activesupport
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 6.0.3
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 6.0.3
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: yaml
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.1.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.1.0
|
13
69
|
description: csv linter and autofixer like rubocop
|
14
70
|
email:
|
15
71
|
- j.o.lantern0422@gmail.com
|