efo_nelfo 1.6.1 → 1.6.2

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
  SHA1:
3
- metadata.gz: c1621f69ef582f6211270f9e746e1cdb7cee7f8d
4
- data.tar.gz: 1491255b8393b470a3e36b4aee2e95601f374c7f
3
+ metadata.gz: 884b970373a6b87923826814960d9de2cb73945b
4
+ data.tar.gz: 4d90874cd0b4bd3c69d7baccb9a6fb291f6979e2
5
5
  SHA512:
6
- metadata.gz: 16a2090eb73bdcdcf0d83572a191bfcb8cd092caef231273beee04276654dd42846bb5fe89d6a40b38d7cc27fabf428daa7a4be6df44332a5ebd2c7f0b254274
7
- data.tar.gz: eac2ea3116eaabbd64f2cdb2e415a57946edbfed35032c49494487ba3f532fa13a774b2ce82f26e149d82a22d9a800aecd95948119dbda27a9f9754bbb138b62
6
+ metadata.gz: a353d565edad77ae6882e51318f4dcab8ff741f5f11c83ee75033db808b5fcde10a0165756183804d1d896e6024bcb75d43e9838fd3df0271b2255281fb7d885
7
+ data.tar.gz: b4cf475ffbba809f7fa829402659cb96f26e836b50df4801b936f0780d3e2c0bf81921b610d71618d19e3e75e9ad140069afbf0b5a1b86930693ad7db6e5f16b
@@ -96,8 +96,8 @@ module EfoNelfo
96
96
  end
97
97
 
98
98
  def sanitize_string(value)
99
- return nil if value.nil?
100
99
  return value unless value.is_a?(String)
100
+ return nil if /\A[[:space:]]*\z/ === value
101
101
 
102
102
  string = value.to_s
103
103
 
@@ -1,3 +1,3 @@
1
1
  module EfoNelfo
2
- VERSION = "1.6.1"
2
+ VERSION = "1.6.2"
3
3
  end
@@ -157,6 +157,7 @@ describe EfoNelfo::Property do
157
157
  it { make_property("A string").must_equal "A string" }
158
158
  it { make_property(nil).must_equal nil }
159
159
  it { make_property("Sjøhest").encoding.must_equal Encoding::ISO_8859_1 }
160
+ it { make_property("").must_equal nil }
160
161
  end
161
162
 
162
163
  describe "type is :integer" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: efo_nelfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gudleik Rasch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-29 00:00:00.000000000 Z
11
+ date: 2015-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  version: '0'
249
249
  requirements: []
250
250
  rubyforge_project:
251
- rubygems_version: 2.4.8
251
+ rubygems_version: 2.4.5
252
252
  signing_key:
253
253
  specification_version: 4
254
254
  summary: Parser for EFONELFO format
@@ -280,3 +280,4 @@ test_files:
280
280
  - spec/spec_helper.rb
281
281
  - spec/va_spec.rb
282
282
  - spec/vl_spec.rb
283
+ has_rdoc: