url_store 0.3.5 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/url_store/compact_encoder.rb +2 -0
- data/lib/url_store/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6f40518701f9eccf52eb7779fcce7e52117e92a
|
4
|
+
data.tar.gz: 99a6cffdc584cf46968bf518ccd2ee88e1e0f781
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/url_store/version.rb
CHANGED
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.
|
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:
|
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.
|
45
|
+
rubygems_version: 2.2.2
|
46
46
|
signing_key:
|
47
47
|
specification_version: 4
|
48
48
|
summary: Data securely stored in urls.
|