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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60a151d5e9b8f6ff7d6c44f372e95cfe64e4659c810ddd2df38bbf60bdab822c
4
- data.tar.gz: 3515be9e1c784ffadb4347f018c6ddc6c3301b63f33a30a73a47b26d5362245d
3
+ metadata.gz: 6cf93334dec85f13410604682827e0575a6821e2a7603efc79e27989c190efe1
4
+ data.tar.gz: 9e62bc583b8536727667a13bc1c8561b2b6c9acfb42221d8dcbb4d68ab9062de
5
5
  SHA512:
6
- metadata.gz: 4c7b5075ccb5067a87f7f9fc62c7107ac04845847cbe72a13e54ccdef323242979f40219bf78e04f64db886f6454f0a500f9a8c93a3a13d7e3473c44dc4ae30f
7
- data.tar.gz: 14d1cf22161f29c5920b171038c0608fda7eb20274e6705f18f40d262a90d13eae2168df68160a2fdf310f0c460fb9759e0481a20ea66fe146af7a50aef7c502
6
+ metadata.gz: e014510d9d469cb7bc9137d95e6084373280805f1893f0ac0473e9987a3e4751798a2f83efe273c56798e31c6e5d307f10bfc32db636a73ef82a7d6ed66e591b
7
+ data.tar.gz: 9d15cce48f08427ec552be6f5c1c0e478019371bafef94e9164ab31346e6d98a868c50b7da0e2c2d9efdddc51d5a84e0e9e7cc5e4696fa91bd009644ad945a55
data/.travis.yml CHANGED
@@ -4,6 +4,7 @@ language: ruby
4
4
  rvm:
5
5
  - 2.5
6
6
  - 2.4
7
+ - 2.3
7
8
  - ruby-head
8
9
  before_install:
9
10
  - gem install bundler -v 1.16.1
data/Gemfile CHANGED
@@ -1,3 +1,6 @@
1
+ Encoding.default_external = Encoding::UTF_8
2
+ Encoding.default_internal = Encoding::UTF_8
3
+
1
4
  source "https://rubygems.org"
2
5
 
3
6
  git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
data/Gemfile.lock CHANGED
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cnccs (0.1.1)
4
+ cnccs (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- byebug (10.0.0)
9
+ byebug (10.0.2)
10
10
  coderay (1.1.2)
11
11
  diff-lcs (1.3)
12
- docile (1.1.5)
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.7.0)
23
- rspec-core (~> 3.7.0)
24
- rspec-expectations (~> 3.7.0)
25
- rspec-mocks (~> 3.7.0)
26
- rspec-core (3.7.1)
27
- rspec-support (~> 3.7.0)
28
- rspec-expectations (3.7.0)
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.7.0)
31
- rspec-mocks (3.7.0)
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.7.0)
34
- rspec-support (3.7.1)
35
- simplecov (0.15.1)
36
- docile (~> 1.1.0)
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.1
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
@@ -1,3 +1,3 @@
1
1
  module Cnccs
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-07-23 00:00:00.000000000 Z
11
+ date: 2018-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler