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
@@ -19,13 +19,7 @@ module ActiveAttr
|
|
19
19
|
extend ActiveSupport::Concern
|
20
20
|
include Attributes
|
21
21
|
include MassAssignment
|
22
|
-
|
23
|
-
|
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
|
data/lib/active_attr/version.rb
CHANGED
@@ -104,14 +104,8 @@ module ActiveAttr
|
|
104
104
|
let :model_class do
|
105
105
|
Class.new do
|
106
106
|
include Attributes
|
107
|
-
|
108
|
-
|
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
|
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.
|
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-
|
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:
|
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:
|
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:
|