cnccs 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +17 -17
- data/lib/cnccs/ccs.rb +1 -1
- data/lib/cnccs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cf93334dec85f13410604682827e0575a6821e2a7603efc79e27989c190efe1
|
4
|
+
data.tar.gz: 9e62bc583b8536727667a13bc1c8561b2b6c9acfb42221d8dcbb4d68ab9062de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e014510d9d469cb7bc9137d95e6084373280805f1893f0ac0473e9987a3e4751798a2f83efe273c56798e31c6e5d307f10bfc32db636a73ef82a7d6ed66e591b
|
7
|
+
data.tar.gz: 9d15cce48f08427ec552be6f5c1c0e478019371bafef94e9164ab31346e6d98a868c50b7da0e2c2d9efdddc51d5a84e0e9e7cc5e4696fa91bd009644ad945a55
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cnccs (0.1.
|
4
|
+
cnccs (0.1.3)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
byebug (10.0.
|
9
|
+
byebug (10.0.2)
|
10
10
|
coderay (1.1.2)
|
11
11
|
diff-lcs (1.3)
|
12
|
-
docile (1.1
|
12
|
+
docile (1.3.1)
|
13
13
|
json (2.1.0)
|
14
14
|
method_source (0.9.0)
|
15
15
|
pry (0.11.3)
|
@@ -19,21 +19,21 @@ GEM
|
|
19
19
|
byebug (~> 10.0)
|
20
20
|
pry (~> 0.10)
|
21
21
|
rake (10.5.0)
|
22
|
-
rspec (3.
|
23
|
-
rspec-core (~> 3.
|
24
|
-
rspec-expectations (~> 3.
|
25
|
-
rspec-mocks (~> 3.
|
26
|
-
rspec-core (3.
|
27
|
-
rspec-support (~> 3.
|
28
|
-
rspec-expectations (3.
|
22
|
+
rspec (3.8.0)
|
23
|
+
rspec-core (~> 3.8.0)
|
24
|
+
rspec-expectations (~> 3.8.0)
|
25
|
+
rspec-mocks (~> 3.8.0)
|
26
|
+
rspec-core (3.8.0)
|
27
|
+
rspec-support (~> 3.8.0)
|
28
|
+
rspec-expectations (3.8.1)
|
29
29
|
diff-lcs (>= 1.2.0, < 2.0)
|
30
|
-
rspec-support (~> 3.
|
31
|
-
rspec-mocks (3.
|
30
|
+
rspec-support (~> 3.8.0)
|
31
|
+
rspec-mocks (3.8.0)
|
32
32
|
diff-lcs (>= 1.2.0, < 2.0)
|
33
|
-
rspec-support (~> 3.
|
34
|
-
rspec-support (3.
|
35
|
-
simplecov (0.
|
36
|
-
docile (~> 1.1
|
33
|
+
rspec-support (~> 3.8.0)
|
34
|
+
rspec-support (3.8.0)
|
35
|
+
simplecov (0.16.1)
|
36
|
+
docile (~> 1.1)
|
37
37
|
json (>= 1.8, < 3)
|
38
38
|
simplecov-html (~> 0.10.0)
|
39
39
|
simplecov-html (0.10.2)
|
@@ -50,4 +50,4 @@ DEPENDENCIES
|
|
50
50
|
simplecov
|
51
51
|
|
52
52
|
BUNDLED WITH
|
53
|
-
1.16.
|
53
|
+
1.16.2
|
data/lib/cnccs/ccs.rb
CHANGED
@@ -79,7 +79,7 @@ module Cnccs
|
|
79
79
|
# @param match [String]
|
80
80
|
# @return [Array<String, Array>]
|
81
81
|
def fetch_data(level, match)
|
82
|
-
csv = CSV.read "#{__dir__}/../../cn-ccs-codes/cat-level#{level}.csv", headers: true
|
82
|
+
csv = CSV.read "#{__dir__}/../../cn-ccs-codes/cat-level#{level}.csv", "rb:UTF-8", headers: true
|
83
83
|
row = csv.find { |r| r[0] == match }
|
84
84
|
row.map(&:last)
|
85
85
|
end
|
data/lib/cnccs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cnccs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|