fast_serializer 1.0.0 → 1.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: 5f74dbde94fa39ac31bdc30753fe69645952f58e
4
- data.tar.gz: bdce8bb4428da1e1a4ce866635c3a22a636d26d2
3
+ metadata.gz: 476d327b3e3f93b51fa1e27425a9617d43335292
4
+ data.tar.gz: b589d9d3834f931a694511d4d353bb4cfd005c4a
5
5
  SHA512:
6
- metadata.gz: 442fa957a7d296934849581cd5dd8aa777c6cfda8ea5e52d889f0b2e27f11ce953e88a0b58ada157ce0cb89f4451dd8168d76ed43211ff7214480f3313bc1aaf
7
- data.tar.gz: 07157e747b2af7c9f3e6636cbc61f2f48dd0c075530151e897a7a232714a2e12dc23666db046f5172d487b30ceb6917a7d4d555a5dd711e05940ced9ce97d707
6
+ metadata.gz: e16e1f88ab40764e761d905435c45622ad4388945a97daddf5138b6a1dc4a544f43a49e6d357b99ece70bcfe7f3af7b328dce71d7062be3cea2ac565c90b2424
7
+ data.tar.gz: 785755326eda08ccb27a4d758f7ddc6c0783229fecab2e9029362af1375a5e21deb43feec983aa3698b7672f61e308f3794be3051aa960392941078d87043d54
data/HISTORY.txt CHANGED
@@ -1,3 +1,7 @@
1
+ 1.1.0
2
+
3
+ Compatibility with change to fetch_multi in ActiveSupport 4.2.
4
+
1
5
  1.0.0
2
6
 
3
7
  * Initial release
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.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) do |serializer|
17
- yield(serializer)
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.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: 2016-03-29 00:00:00.000000000 Z
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.4.5
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.