active_model_serializers 0.8.0 → 0.8.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: 806e6040b82178f17890aaa7d76e431ebf41fac6
4
- data.tar.gz: 68562583b4d96f5e7baf0e35f86d39d6f8267cb1
3
+ metadata.gz: fe4ac40d39a738a9f0761ddaf33f1a13c5ef5565
4
+ data.tar.gz: a3db3953c4a189e3eb2c7b9b45fec250572013bf
5
5
  SHA512:
6
- metadata.gz: 33e9ffa81d5121eb929e83e50c80b16fb68a322210dddcaea36396ea18ac4fb1c2862ff025a175fe87e7a70d85bc5208866e7ee2f3aa3093dda503a229652429
7
- data.tar.gz: 672a0655b5d4dd8d93003d4c18d6b2606e804d381fbe3d5777d46ec04711ae5a81a26a95b34c9d796c4ceb34abd800f2685f343c33f60a23a544df9db6754ad9
6
+ metadata.gz: 2d410fea01930d45f6b263c4cc347b3f4be9aae2d92465ca83bc6e56f7c5059bde90fcf2207fabfca2ae048eb136c6d81fea15b186c4b8a0a2b54dfd2177a3af
7
+ data.tar.gz: 4f87769234bdaa917b36387b124da7667bac3acb13745694b8013a0cdbdcb366f6519641fddacb0c2db26e5ea2bc2654234db3ec5d82e1f0d0b6fc46ed20d68f
@@ -1,5 +1,9 @@
1
1
  # UNRELEASED
2
2
 
3
+ # VERSION 0.8.1
4
+
5
+ * Fix bug whereby a serializer using 'options' would blow up.
6
+
3
7
  # VERSION 0.8.0
4
8
 
5
9
  * Attributes can now have optional types.
@@ -368,8 +368,8 @@ module ActiveModel
368
368
  end
369
369
 
370
370
  def include?(name)
371
- return false if options.key?(:only) && !Array(options[:only]).include?(name)
372
- return false if options.key?(:except) && Array(options[:except]).include?(name)
371
+ return false if @options.key?(:only) && !Array(@options[:only]).include?(name)
372
+ return false if @options.key?(:except) && Array(@options[:except]).include?(name)
373
373
  send INCLUDE_METHODS[name]
374
374
  end
375
375
 
@@ -1,5 +1,5 @@
1
1
  module ActiveModel
2
2
  class Serializer
3
- VERSION = "0.8.0"
3
+ VERSION = "0.8.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_model_serializers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Valim
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-05 00:00:00.000000000 Z
12
+ date: 2013-05-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel