cnccs 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -1,3 +1,3 @@
1
1
  module Cnccs
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
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.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-03-30 00:00:00.000000000 Z
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.12
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.