active_attr 0.2.2 → 0.3.0

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.

@@ -0,0 +1,9 @@
1
+ require "spec_helper"
2
+ require "active_attr/unknown_attribute_error"
3
+
4
+ module ActiveAttr
5
+ describe UnknownAttributeError do
6
+ it { should be_a_kind_of NoMethodError }
7
+ it { should be_a_kind_of Error }
8
+ end
9
+ end
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.2.2
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,12 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-11-02 00:00:00.000000000 -05:00
14
- default_executable:
13
+ date: 2011-11-26 00:00:00.000000000Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: activemodel
18
- requirement: &70194693834500 !ruby/object:Gem::Requirement
17
+ requirement: &70119267606720 !ruby/object:Gem::Requirement
19
18
  none: false
20
19
  requirements:
21
20
  - - ~>
@@ -23,10 +22,10 @@ dependencies:
23
22
  version: '3.1'
24
23
  type: :runtime
25
24
  prerelease: false
26
- version_requirements: *70194693834500
25
+ version_requirements: *70119267606720
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: activesupport
29
- requirement: &70194693833280 !ruby/object:Gem::Requirement
28
+ requirement: &70119267605900 !ruby/object:Gem::Requirement
30
29
  none: false
31
30
  requirements:
32
31
  - - ~>
@@ -34,10 +33,10 @@ dependencies:
34
33
  version: '3.1'
35
34
  type: :runtime
36
35
  prerelease: false
37
- version_requirements: *70194693833280
36
+ version_requirements: *70119267605900
38
37
  - !ruby/object:Gem::Dependency
39
38
  name: bundler
40
- requirement: &70194693832400 !ruby/object:Gem::Requirement
39
+ requirement: &70119267605220 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
43
42
  - - ~>
@@ -45,10 +44,21 @@ dependencies:
45
44
  version: '1.0'
46
45
  type: :development
47
46
  prerelease: false
48
- version_requirements: *70194693832400
47
+ version_requirements: *70119267605220
48
+ - !ruby/object:Gem::Dependency
49
+ name: factory_girl
50
+ requirement: &70119267604420 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ version: '2.2'
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: *70119267604420
49
59
  - !ruby/object:Gem::Dependency
50
60
  name: rake
51
- requirement: &70194693831640 !ruby/object:Gem::Requirement
61
+ requirement: &70119267603600 !ruby/object:Gem::Requirement
52
62
  none: false
53
63
  requirements:
54
64
  - - ~>
@@ -56,10 +66,10 @@ dependencies:
56
66
  version: 0.9.0
57
67
  type: :development
58
68
  prerelease: false
59
- version_requirements: *70194693831640
69
+ version_requirements: *70119267603600
60
70
  - !ruby/object:Gem::Dependency
61
71
  name: rspec
62
- requirement: &70194693830660 !ruby/object:Gem::Requirement
72
+ requirement: &70119267602780 !ruby/object:Gem::Requirement
63
73
  none: false
64
74
  requirements:
65
75
  - - ~>
@@ -67,7 +77,7 @@ dependencies:
67
77
  version: '2.6'
68
78
  type: :development
69
79
  prerelease: false
70
- version_requirements: *70194693830660
80
+ version_requirements: *70119267602780
71
81
  description: Create plain old ruby models without reinventing the wheel.
72
82
  email:
73
83
  - cgriego@gmail.com
@@ -92,17 +102,25 @@ files:
92
102
  - lib/active_attr/attribute_definition.rb
93
103
  - lib/active_attr/attributes.rb
94
104
  - lib/active_attr/basic_model.rb
105
+ - lib/active_attr/block_initialization.rb
95
106
  - lib/active_attr/chainable_initialization.rb
107
+ - lib/active_attr/dangerous_attribute_error.rb
96
108
  - lib/active_attr/error.rb
109
+ - lib/active_attr/logger.rb
97
110
  - lib/active_attr/mass_assignment.rb
111
+ - lib/active_attr/mass_assignment_security.rb
98
112
  - lib/active_attr/matchers.rb
99
113
  - lib/active_attr/matchers/have_attribute_matcher.rb
114
+ - lib/active_attr/query_attributes.rb
115
+ - lib/active_attr/railtie.rb
100
116
  - lib/active_attr/rspec.rb
101
117
  - lib/active_attr/strict_mass_assignment.rb
118
+ - lib/active_attr/unknown_attribute_error.rb
102
119
  - lib/active_attr/unknown_attributes_error.rb
103
120
  - lib/active_attr/version.rb
104
121
  - spec/functional/active_attr/attributes_spec.rb
105
122
  - spec/functional/active_attr/chainable_initialization_spec.rb
123
+ - spec/functional/active_attr/query_attributes_spec.rb
106
124
  - spec/spec_helper.rb
107
125
  - spec/support/active_model_lint.rb
108
126
  - spec/support/initialization_verifier.rb
@@ -110,13 +128,18 @@ files:
110
128
  - spec/unit/active_attr/attribute_definition_spec.rb
111
129
  - spec/unit/active_attr/attributes_spec.rb
112
130
  - spec/unit/active_attr/basic_model_spec.rb
131
+ - spec/unit/active_attr/block_initialization_spec.rb
132
+ - spec/unit/active_attr/dangerous_attribute_error_spec.rb
113
133
  - spec/unit/active_attr/error_spec.rb
134
+ - spec/unit/active_attr/logger_spec.rb
135
+ - spec/unit/active_attr/mass_assignment_security_spec.rb
114
136
  - spec/unit/active_attr/mass_assignment_spec.rb
115
137
  - spec/unit/active_attr/matchers/have_attribute_matcher_spec.rb
138
+ - spec/unit/active_attr/query_attributes_spec.rb
116
139
  - spec/unit/active_attr/strict_mass_assignment_spec.rb
140
+ - spec/unit/active_attr/unknown_attribute_error_spec.rb
117
141
  - spec/unit/active_attr/unknown_attributes_error_spec.rb
118
142
  - spec/unit/active_attr/version_spec.rb
119
- has_rdoc: true
120
143
  homepage: https://github.com/cgriego/active_attr
121
144
  licenses: []
122
145
  post_install_message:
@@ -131,7 +154,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
154
  version: '0'
132
155
  segments:
133
156
  - 0
134
- hash: 2011553241576823901
157
+ hash: -4548017716057297773
135
158
  required_rubygems_version: !ruby/object:Gem::Requirement
136
159
  none: false
137
160
  requirements:
@@ -140,16 +163,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
163
  version: '0'
141
164
  segments:
142
165
  - 0
143
- hash: 2011553241576823901
166
+ hash: -4548017716057297773
144
167
  requirements: []
145
168
  rubyforge_project: active_attr
146
- rubygems_version: 1.5.2
169
+ rubygems_version: 1.8.10
147
170
  signing_key:
148
171
  specification_version: 3
149
172
  summary: What ActiveModel left out
150
173
  test_files:
151
174
  - spec/functional/active_attr/attributes_spec.rb
152
175
  - spec/functional/active_attr/chainable_initialization_spec.rb
176
+ - spec/functional/active_attr/query_attributes_spec.rb
153
177
  - spec/spec_helper.rb
154
178
  - spec/support/active_model_lint.rb
155
179
  - spec/support/initialization_verifier.rb
@@ -157,9 +181,16 @@ test_files:
157
181
  - spec/unit/active_attr/attribute_definition_spec.rb
158
182
  - spec/unit/active_attr/attributes_spec.rb
159
183
  - spec/unit/active_attr/basic_model_spec.rb
184
+ - spec/unit/active_attr/block_initialization_spec.rb
185
+ - spec/unit/active_attr/dangerous_attribute_error_spec.rb
160
186
  - spec/unit/active_attr/error_spec.rb
187
+ - spec/unit/active_attr/logger_spec.rb
188
+ - spec/unit/active_attr/mass_assignment_security_spec.rb
161
189
  - spec/unit/active_attr/mass_assignment_spec.rb
162
190
  - spec/unit/active_attr/matchers/have_attribute_matcher_spec.rb
191
+ - spec/unit/active_attr/query_attributes_spec.rb
163
192
  - spec/unit/active_attr/strict_mass_assignment_spec.rb
193
+ - spec/unit/active_attr/unknown_attribute_error_spec.rb
164
194
  - spec/unit/active_attr/unknown_attributes_error_spec.rb
165
195
  - spec/unit/active_attr/version_spec.rb
196
+ has_rdoc: