active_attr 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of active_attr might be problematic. Click here for more details.

data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # ActiveAttr 0.8.1 (June 9, 2013) #
2
+
3
+ * #121 Fix compatibility with ActiveModel Serializers gem by dropping support
4
+ for Rails 3.2 edge prior to RC1
5
+
1
6
  # ActiveAttr 0.8.0 (May 2, 2013) #
2
7
 
3
8
  * ActiveAttr now supports Rails 4.0.0
@@ -19,13 +19,7 @@ module ActiveAttr
19
19
  extend ActiveSupport::Concern
20
20
  include Attributes
21
21
  include MassAssignment
22
-
23
- if defined? ActiveModel::Serializable
24
- include ActiveModel::Serializable::JSON
25
- include ActiveModel::Serializable::XML
26
- else
27
- include ActiveModel::Serializers::JSON
28
- include ActiveModel::Serializers::Xml
29
- end
22
+ include ActiveModel::Serializers::JSON
23
+ include ActiveModel::Serializers::Xml
30
24
  end
31
25
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveAttr
2
2
  # Complete version string
3
3
  # @since 0.1.0
4
- VERSION = "0.8.0"
4
+ VERSION = "0.8.1"
5
5
  end
@@ -104,14 +104,8 @@ module ActiveAttr
104
104
  let :model_class do
105
105
  Class.new do
106
106
  include Attributes
107
-
108
- if defined? ActiveModel::Serializable
109
- include ActiveModel::Serializable::JSON
110
- include ActiveModel::Serializable::XML
111
- else
112
- include ActiveModel::Serializers::JSON
113
- include ActiveModel::Serializers::Xml
114
- end
107
+ include ActiveModel::Serializers::JSON
108
+ include ActiveModel::Serializers::Xml
115
109
 
116
110
  self.include_root_in_json = true
117
111
  attribute :first_name
@@ -4,6 +4,11 @@ require "test/unit/assertions"
4
4
  shared_examples_for "ActiveModel" do
5
5
  include ActiveModel::Lint::Tests
6
6
  include Test::Unit::Assertions
7
+ attr_writer :assertions
8
+
9
+ def assertions
10
+ @assertions ||= 0
11
+ end
7
12
 
8
13
  before { @model = subject }
9
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_attr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-02 00:00:00.000000000 Z
13
+ date: 2013-06-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
@@ -258,7 +258,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
258
258
  version: '0'
259
259
  segments:
260
260
  - 0
261
- hash: 712620086539529581
261
+ hash: 3855427455424208454
262
262
  required_rubygems_version: !ruby/object:Gem::Requirement
263
263
  none: false
264
264
  requirements:
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
267
  version: '0'
268
268
  segments:
269
269
  - 0
270
- hash: 712620086539529581
270
+ hash: 3855427455424208454
271
271
  requirements: []
272
272
  rubyforge_project:
273
273
  rubygems_version: 1.8.25
@@ -315,3 +315,4 @@ test_files:
315
315
  - spec/unit/active_attr/typecasting_spec.rb
316
316
  - spec/unit/active_attr/unknown_attribute_error_spec.rb
317
317
  - spec/unit/active_attr/version_spec.rb
318
+ has_rdoc: