url_store 0.3.5 → 0.4.0

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: eeddf0027d0f677455da1ddccd4fc49fe68681e0
4
- data.tar.gz: e2311627f5ae0002c1ff3b71ee7996a412d7bf53
3
+ metadata.gz: d6f40518701f9eccf52eb7779fcce7e52117e92a
4
+ data.tar.gz: 99a6cffdc584cf46968bf518ccd2ee88e1e0f781
5
5
  SHA512:
6
- metadata.gz: dcd30847583d52e0b31fbef7933850511f806e6f72cffab71f5fd7add4e77c02edadea4d827ed2832920ef5a9350adf35c856eadca1cdbcf391b90bfd89f15d8
7
- data.tar.gz: 49c9f1e1c45c10deef807600607224dd8097fa2a1531a3c8094d19bd5eb320aed202279c99a498d7bacddb34d65303066b01957e2111e3a1da33866ded09e478
6
+ metadata.gz: 9e2409cba8a431fe5291d1a350a06676e456bb2021d2ccc5b51f81f9ae36421fc051df6cdcd2b8a4a2c318ffc518c3f09c9c2f9d6afca111757327623235a8d9
7
+ data.tar.gz: 14c7d69b73ab10b5e2447cd42ceb1d7896158d15a90b097f66971eb83022f5ee1491df167e14db3afa980b0bf8103ec342e99916e5c2a6ca586e14f16b84de87
@@ -32,6 +32,7 @@ class UrlStore
32
32
  case @serializer.to_sym
33
33
  when :yaml then data.to_yaml
34
34
  when :marshal then Marshal.dump(data)
35
+ when :json then JSON.dump(data)
35
36
  end
36
37
  end
37
38
 
@@ -39,6 +40,7 @@ class UrlStore
39
40
  case @serializer.to_sym
40
41
  when :yaml then YAML.load(data)
41
42
  when :marshal then Marshal.load(data)
43
+ when :json then JSON.load(data)
42
44
  end
43
45
  end
44
46
 
@@ -1,3 +1,3 @@
1
1
  class UrlStore
2
- VERSION = Version = '0.3.5'
2
+ VERSION = Version = '0.4.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-10 00:00:00.000000000 Z
11
+ date: 2015-01-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: michael@grosser.it
@@ -32,17 +32,17 @@ require_paths:
32
32
  - lib
33
33
  required_ruby_version: !ruby/object:Gem::Requirement
34
34
  requirements:
35
- - - '>='
35
+ - - ">="
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
38
  required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  requirements: []
44
44
  rubyforge_project:
45
- rubygems_version: 2.0.14
45
+ rubygems_version: 2.2.2
46
46
  signing_key:
47
47
  specification_version: 4
48
48
  summary: Data securely stored in urls.