abroad 4.0.2 → 4.0.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
  SHA1:
3
- metadata.gz: d58488676f4eb8a1b0e7175fc83f0c289f4778c5
4
- data.tar.gz: 1b9cf5dcdccb829be755c20efd2f53b53fed815e
3
+ metadata.gz: 89386cbcccef7a58f59510df50bd148a1759b244
4
+ data.tar.gz: da9806a5703f00406080302a111b3142b7f4b74c
5
5
  SHA512:
6
- metadata.gz: 54e2d38f5ae6aa2d6b123d5e7c1f3e4e53eed0e15d2db9673ade6b3744438dc7d12c9948e13c23534995f0eaba4ff793ad72ca116828c4c0df9785ab00104606
7
- data.tar.gz: ab71703d602f2ea4257f270ccfa5f44501d62e7c6a23001e89fa6ca6c048b3712cf2a799e55361a38f5cb99d29d938f73c552918dd31fc285692ab6f4efc3589
6
+ metadata.gz: fcb3fca5ae80ac040aaed3863f916dc244d638bd573d33dea66ddf8ce861ec2747304e6d33eebad7aa24891dc89193d9a9c1a21a5e76e5ddab14e8a80f7256ca
7
+ data.tar.gz: cb5ec47a06195eeba1edaa71f40dedf54048ae90c54ecb82d5ceb9432ccd68cb4902d2bbc31619b8c49ea00a1f6aa94b4e0425509b53ceed34b1bf70e52cfdfc
@@ -71,7 +71,7 @@ module Abroad
71
71
  value = case value
72
72
  when /\A\d+\z/
73
73
  value.to_i
74
- when /\A[\d.]+\z/
74
+ when /\A\d+\.\d+\z/
75
75
  value.to_f
76
76
  else
77
77
  value
@@ -1,3 +1,3 @@
1
1
  module Abroad
2
- VERSION = '4.0.2'
2
+ VERSION = '4.0.3'
3
3
  end
@@ -191,12 +191,14 @@ describe Yaml::RailsSerializer do
191
191
  result = serialize do
192
192
  serializer.write_key_value('foo', '3')
193
193
  serializer.write_key_value('bar', '3.14')
194
+ serializer.write_key_value('baz', '.')
194
195
  end
195
196
 
196
197
  expect(result).to eq({
197
198
  'fr' => {
198
199
  'foo' => 3,
199
- 'bar' => 3.14
200
+ 'bar' => 3.14,
201
+ 'baz' => '.'
200
202
  }
201
203
  })
202
204
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abroad
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro