fast_serializer 1.0.0 → 1.0.1
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/HISTORY.txt +4 -0
- data/VERSION +1 -1
- data/lib/fast_serializer/cache/active_support_cache.rb +5 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 476d327b3e3f93b51fa1e27425a9617d43335292
|
4
|
+
data.tar.gz: b589d9d3834f931a694511d4d353bb4cfd005c4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e16e1f88ab40764e761d905435c45622ad4388945a97daddf5138b6a1dc4a544f43a49e6d357b99ece70bcfe7f3af7b328dce71d7062be3cea2ac565c90b2424
|
7
|
+
data.tar.gz: 785755326eda08ccb27a4d758f7ddc6c0783229fecab2e9029362af1375a5e21deb43feec983aa3698b7672f61e308f3794be3051aa960392941078d87043d54
|
data/HISTORY.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
@@ -13,8 +13,11 @@ module FastSerializer
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def fetch_all(serializers, ttl)
|
16
|
-
@cache.fetch_multi(*serializers)
|
17
|
-
|
16
|
+
results = @cache.fetch_multi(*serializers){|serializer| yield(serializer)}
|
17
|
+
if results.is_a?(Hash)
|
18
|
+
serializers.collect{|serializer| results[serializer]}
|
19
|
+
else
|
20
|
+
results
|
18
21
|
end
|
19
22
|
end
|
20
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fast_serializer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- We Heart It
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-12-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
105
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.6.12
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Super fast object serialization for API's.
|