cnccs 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +11 -2
- data/README.adoc +5 -0
- data/cn-ccs-codes/cat-level1.csv +24 -24
- data/cn-ccs-codes/cat-level2.csv +225 -225
- data/cn-ccs-codes/cat-level3.csv +1608 -1608
- data/lib/cnccs/ccs.rb +2 -1
- data/lib/cnccs/version.rb +1 -1
- metadata +3 -3
data/lib/cnccs/ccs.rb
CHANGED
@@ -88,6 +88,7 @@ module Cnccs
|
|
88
88
|
# @param nts [String]
|
89
89
|
# @return [Array<Cnccs::Note>]
|
90
90
|
def fetch_notes(nts)
|
91
|
+
return if nts.nil?
|
91
92
|
splitter = [227, 128, 130].pack('c*').force_encoding("UTF-8")
|
92
93
|
rgxp = /[A-Z]\d{2}(\/\d{2})?$/
|
93
94
|
nts.split(splitter).map do |n|
|
@@ -97,4 +98,4 @@ module Cnccs
|
|
97
98
|
end
|
98
99
|
end
|
99
100
|
end
|
100
|
-
end
|
101
|
+
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.2
|
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-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.6
|
127
|
+
rubygems_version: 2.7.6
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Classification of Chinese Standards ("CCS") are accessible via this gem.
|