abroad 4.0.0 → 4.0.1

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: fcb32afa30cfd263c2443b4971a543a30a37e982
4
- data.tar.gz: 2ba239c1134ab0a8d5b096733d7f0776eb1abe7b
3
+ metadata.gz: 34e93e6b5d399235933e2d37d6edc811fe549529
4
+ data.tar.gz: 40db0620847aa078d23800d3b7c9d60771c7b80e
5
5
  SHA512:
6
- metadata.gz: ad1be8571ab5b171ee69d3ab85e4dc5ccab5bf2f276e79fdf1bfc47deb223b2c41b32edeee6c39ba2c912bf60a80e69031d6fdbf47faefe97dd2fada714d3732
7
- data.tar.gz: c78e0ad8cd0561510b86fa4f9cb7d6ce42f47d29aec7434390c6d72ca27a5f3af17a23b6855fad8704cc6522ba78eb96c772c260eb9733ed0f558c6c6260db67
6
+ metadata.gz: 655543f3543cbc1a77452ae931b5eae8d012a888ff0e79ad8bc7a30e0de2f7c8c6d493c071020334ee83b5085ddd075d6e2ca3b912cfa747006d749dd71b0201
7
+ data.tar.gz: e019dbca85b1f56303b183f1ca311d277441a5d6dcf273415d36f922f2cb2d8b00bae216d8a5eb6c606341807f0dcb93b1838f99d0091e797391dc94eccbc416
@@ -34,7 +34,7 @@ module Abroad
34
34
  end
35
35
 
36
36
  def is_numeric?(str)
37
- !!(str.to_s =~ /\d+/)
37
+ !!(str.to_s =~ /\A\d+\z/)
38
38
  end
39
39
  end
40
40
 
@@ -1,3 +1,3 @@
1
1
  module Abroad
2
- VERSION = '4.0.0'
2
+ VERSION = '4.0.1'
3
3
  end
@@ -3,3 +3,5 @@ en:
3
3
  201: Created
4
4
  304: Redirect
5
5
  500: Server error
6
+ slides:
7
+ slide_0: foo
@@ -80,3 +80,5 @@
80
80
  string: Redirect
81
81
  - key: en.status_codes.'500'
82
82
  string: Server error
83
+ - key: en.slides.slide_0
84
+ string: foo
@@ -169,7 +169,7 @@ describe Yaml::RailsSerializer do
169
169
  })
170
170
  end
171
171
 
172
- it 'unquotes numeric keys' do
172
+ it 'unquotes but stringifies numeric keys' do
173
173
  result = serialize do
174
174
  serializer.write_key_value("status_codes.'201'", 'Created')
175
175
  serializer.write_key_value("status_codes.'304'", 'Redirect')
@@ -179,9 +179,9 @@ describe Yaml::RailsSerializer do
179
179
  expect(result).to eq({
180
180
  'fr' => {
181
181
  'status_codes' => {
182
- 201 => 'Created',
183
- 304 => 'Redirect',
184
- 500 => 'Server error'
182
+ '201' => 'Created',
183
+ '304' => 'Redirect',
184
+ '500' => 'Server error'
185
185
  }
186
186
  }
187
187
  })
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abroad
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-27 00:00:00.000000000 Z
11
+ date: 2016-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities