pigeon_hole 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pigeon_hole.rb +5 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db9906ed606ccac55cd7fb125ae9f45b2e1fdf54
4
- data.tar.gz: de9b3d71ada0a7b4407f2e28713ca0f5ab83891a
3
+ metadata.gz: 9de472e364be9cf004da471fe61066a89296c64f
4
+ data.tar.gz: 5b1ca22fc9e3fda6f9910f47cbadd66774504eec
5
5
  SHA512:
6
- metadata.gz: e22126d272cccf8bd411c9ef191fd78474ba310d53b71b4282aad0d5db90659ef6b1e60b75dfe4531d5b59b351762a1a23fd7a556843b8f262142de2136f6ce8
7
- data.tar.gz: 1c9fe90d9b7a2b8018f4e54f67d7adf6fc9abe89043f16b3527dc7c6cb2b6fa67dcaed8ab749e61cac713e6482ded01ba0e505934ce806ead998d76bbdff01d6
6
+ metadata.gz: 6c17fa2009704cebbe3964e754718239a217a499f923362138876fdfae41c92cd1092cec7cde70283b21d211251ae545ba0063d4aebf1ae16e6a1dfc65ea88f8
7
+ data.tar.gz: 305c3e90764ed742d3aaca10892681a2d1d583d6264bab133fe94e2916b140c539aa7a10a45f7931a722e30086823359cc293f1d5b50ba74be9c213b272d3bec
data/lib/pigeon_hole.rb CHANGED
@@ -12,6 +12,10 @@ module PigeonHole
12
12
  end
13
13
 
14
14
  def self.parse(string)
15
- TypedJSON.parse(string)
15
+ if string.is_a?(Hash)
16
+ string
17
+ else
18
+ TypedJSON.parse(string)
19
+ end
16
20
  end
17
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pigeon_hole
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
  - Stephen Binns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-09 00:00:00.000000000 Z
11
+ date: 2016-08-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: