active_attr 0.8.2 → 0.8.3

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,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0e7717fb674e5367b4efbf9111a43d415cdf9990
4
+ data.tar.gz: 2a4c558585e028d88e996ceb09ff0cf00d793ec9
5
+ SHA512:
6
+ metadata.gz: 2b97ca3621aacdae046b8c8425cf2fe80c399213a40c841eb239d9cfadea797dc5da2aa6902ef4992fbe00f9121f61d835deccc745556050bdd288d606b99ec9
7
+ data.tar.gz: 8b8d57b8d9ed25e904e4a1927e9fe41764c225325ad1e342d8d005b94735a9d89bcaa2db71ceea033f903a091da94026d14cbb288077f73f8c019f5cd4d2b31f
@@ -1 +1 @@
1
- ruby-1.9.3@active_attr
1
+ ruby-2.1.0@active_attr
@@ -4,26 +4,28 @@ rvm:
4
4
  - 1.9.2
5
5
  - 1.9.3
6
6
  - 2.0.0
7
+ - 2.1
7
8
  bundler_args: --without development
8
9
  gemfile:
9
- - Gemfile
10
10
  - gemfiles/rails_3_0.gemfile
11
11
  - gemfiles/rails_3_1.gemfile
12
12
  - gemfiles/rails_3_2.gemfile
13
+ - gemfiles/rails_4_0.gemfile
14
+ - Gemfile
13
15
  - gemfiles/rails_head.gemfile
14
16
  matrix:
15
17
  allow_failures:
16
18
  - gemfile: gemfiles/rails_head.gemfile
17
19
  exclude:
20
+ - rvm: ree
21
+ gemfile: gemfiles/rails_4_0.gemfile
18
22
  - rvm: 1.9.2
19
- gemfile: gemfiles/rails_head.gemfile
23
+ gemfile: gemfiles/rails_4_0.gemfile
20
24
  - rvm: ree
21
- gemfile: gemfiles/rails_head.gemfile
25
+ gemfile: Gemfile
22
26
  - rvm: 1.9.2
23
27
  gemfile: Gemfile
24
28
  - rvm: ree
25
- gemfile: Gemfile
26
- - rvm: 2.0.0
27
- gemfile: gemfiles/rails_3_1.gemfile
28
- - rvm: 2.0.0
29
- gemfile: gemfiles/rails_3_0.gemfile
29
+ gemfile: gemfiles/rails_head.gemfile
30
+ - rvm: 1.9.2
31
+ gemfile: gemfiles/rails_head.gemfile
@@ -1,3 +1,7 @@
1
+ # ActiveAttr 0.8.3 (April 8, 2014) #
2
+
3
+ * ActiveAttr now supports Rails 4.1.0
4
+
1
5
  # ActiveAttr 0.8.2 (June 16, 2013) #
2
6
 
3
7
  * #108 Fix grammar in HaveAttributeMatcher#description (Matt Hodan)
data/Gemfile CHANGED
@@ -2,9 +2,9 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec :development_group => :test
4
4
 
5
- gem "activemodel", ">= 4.0.0.rc1"
6
- gem "activesupport", ">= 4.0.0.rc1"
7
- gem "actionpack", ">= 4.0.0.rc1", :group => :test
5
+ gem "activemodel", "~> 4.1.0"
6
+ gem "activesupport", "~> 4.1.0"
7
+ gem "actionpack", "~> 4.1.0", :group => :test
8
8
  gem "protected_attributes", :group => :test
9
9
 
10
10
  group :development do
@@ -15,12 +15,12 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = ActiveAttr::VERSION
17
17
 
18
- gem.add_runtime_dependency "activemodel", ">= 3.0.2", "< 4.1"
19
- gem.add_runtime_dependency "activesupport", ">= 3.0.2", "< 4.1"
18
+ gem.add_runtime_dependency "activemodel", ">= 3.0.2", "< 4.2"
19
+ gem.add_runtime_dependency "activesupport", ">= 3.0.2", "< 4.2"
20
20
 
21
21
  gem.add_development_dependency "bundler", "~> 1.0"
22
22
  gem.add_development_dependency "factory_girl", ">= 2.2", "< 5.0"
23
- gem.add_development_dependency "rake", ">= 0.9.0", "< 10.1"
23
+ gem.add_development_dependency "rake", ">= 0.9.0", "< 10.2"
24
24
  gem.add_development_dependency "rspec", "~> 2.11"
25
- gem.add_development_dependency "tzinfo", "~> 0.3.29"
25
+ gem.add_development_dependency "tzinfo"
26
26
  end
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec :development_group => :test, :path => ".."
4
+
5
+ gem "activemodel", "~> 4.0.0"
6
+ gem "activesupport", "~> 4.0.0"
7
+ gem "actionpack", "~> 4.0.0", :group => :test
8
+ gem "protected_attributes", :group => :test
@@ -1,5 +1,5 @@
1
1
  module ActiveAttr
2
2
  # Complete version string
3
3
  # @since 0.1.0
4
- VERSION = "0.8.2"
4
+ VERSION = "0.8.3"
5
5
  end
@@ -217,7 +217,7 @@ module ActiveAttr
217
217
  it "can be set and get" do
218
218
  model_class.attribute attribute_name
219
219
  model = model_class.new
220
- value = mock
220
+ value = double
221
221
  model.send "#{attribute_name}=", value
222
222
  model.send(attribute_name).should equal value
223
223
  end
@@ -122,7 +122,7 @@ module ActiveAttr
122
122
  it "defines an attribute reader that calls #attribute" do
123
123
  attributeless.attribute! :first_name
124
124
  model = attributeless.new
125
- result = mock
125
+ result = double
126
126
  model.should_receive(:attribute).with("first_name").and_return(result)
127
127
  model.first_name.should equal result
128
128
  end
@@ -45,7 +45,7 @@ module ActiveAttr
45
45
  end
46
46
 
47
47
  it "does not raise when called with a single argument" do
48
- expect { model.query_attribute(:a) }.not_to raise_error ArgumentError
48
+ expect { model.query_attribute(:value) }.not_to raise_error
49
49
  end
50
50
 
51
51
  it "raises ArgumentError when called with no arguments" do
@@ -8,7 +8,7 @@ module ActiveAttr
8
8
 
9
9
  describe "#call" do
10
10
  it "returns the original object for any object" do
11
- value = mock
11
+ value = double
12
12
  typecaster.call(value).should equal value
13
13
  end
14
14
  end
@@ -1,6 +1,5 @@
1
1
  require "spec_helper"
2
2
  require "active_attr/typecasting/string_typecaster"
3
- require "active_support/basic_object"
4
3
 
5
4
  module ActiveAttr
6
5
  module Typecasting
@@ -21,7 +21,7 @@ module ActiveAttr
21
21
  end
22
22
 
23
23
  it "returns the original value when the value is nil" do
24
- model_class.new.typecast_attribute(mock(:call => 1), nil).should be_nil
24
+ model_class.new.typecast_attribute(double(:call => 1), nil).should be_nil
25
25
  end
26
26
  end
27
27
 
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_attr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
5
- prerelease:
4
+ version: 0.8.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chris Griego
@@ -10,144 +9,130 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-06-16 00:00:00.000000000 Z
12
+ date: 2014-04-08 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: activemodel
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - ">="
21
19
  - !ruby/object:Gem::Version
22
20
  version: 3.0.2
23
- - - <
21
+ - - "<"
24
22
  - !ruby/object:Gem::Version
25
- version: '4.1'
23
+ version: '4.2'
26
24
  type: :runtime
27
25
  prerelease: false
28
26
  version_requirements: !ruby/object:Gem::Requirement
29
- none: false
30
27
  requirements:
31
- - - ! '>='
28
+ - - ">="
32
29
  - !ruby/object:Gem::Version
33
30
  version: 3.0.2
34
- - - <
31
+ - - "<"
35
32
  - !ruby/object:Gem::Version
36
- version: '4.1'
33
+ version: '4.2'
37
34
  - !ruby/object:Gem::Dependency
38
35
  name: activesupport
39
36
  requirement: !ruby/object:Gem::Requirement
40
- none: false
41
37
  requirements:
42
- - - ! '>='
38
+ - - ">="
43
39
  - !ruby/object:Gem::Version
44
40
  version: 3.0.2
45
- - - <
41
+ - - "<"
46
42
  - !ruby/object:Gem::Version
47
- version: '4.1'
43
+ version: '4.2'
48
44
  type: :runtime
49
45
  prerelease: false
50
46
  version_requirements: !ruby/object:Gem::Requirement
51
- none: false
52
47
  requirements:
53
- - - ! '>='
48
+ - - ">="
54
49
  - !ruby/object:Gem::Version
55
50
  version: 3.0.2
56
- - - <
51
+ - - "<"
57
52
  - !ruby/object:Gem::Version
58
- version: '4.1'
53
+ version: '4.2'
59
54
  - !ruby/object:Gem::Dependency
60
55
  name: bundler
61
56
  requirement: !ruby/object:Gem::Requirement
62
- none: false
63
57
  requirements:
64
- - - ~>
58
+ - - "~>"
65
59
  - !ruby/object:Gem::Version
66
60
  version: '1.0'
67
61
  type: :development
68
62
  prerelease: false
69
63
  version_requirements: !ruby/object:Gem::Requirement
70
- none: false
71
64
  requirements:
72
- - - ~>
65
+ - - "~>"
73
66
  - !ruby/object:Gem::Version
74
67
  version: '1.0'
75
68
  - !ruby/object:Gem::Dependency
76
69
  name: factory_girl
77
70
  requirement: !ruby/object:Gem::Requirement
78
- none: false
79
71
  requirements:
80
- - - ! '>='
72
+ - - ">="
81
73
  - !ruby/object:Gem::Version
82
74
  version: '2.2'
83
- - - <
75
+ - - "<"
84
76
  - !ruby/object:Gem::Version
85
77
  version: '5.0'
86
78
  type: :development
87
79
  prerelease: false
88
80
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
81
  requirements:
91
- - - ! '>='
82
+ - - ">="
92
83
  - !ruby/object:Gem::Version
93
84
  version: '2.2'
94
- - - <
85
+ - - "<"
95
86
  - !ruby/object:Gem::Version
96
87
  version: '5.0'
97
88
  - !ruby/object:Gem::Dependency
98
89
  name: rake
99
90
  requirement: !ruby/object:Gem::Requirement
100
- none: false
101
91
  requirements:
102
- - - ! '>='
92
+ - - ">="
103
93
  - !ruby/object:Gem::Version
104
94
  version: 0.9.0
105
- - - <
95
+ - - "<"
106
96
  - !ruby/object:Gem::Version
107
- version: '10.1'
97
+ version: '10.2'
108
98
  type: :development
109
99
  prerelease: false
110
100
  version_requirements: !ruby/object:Gem::Requirement
111
- none: false
112
101
  requirements:
113
- - - ! '>='
102
+ - - ">="
114
103
  - !ruby/object:Gem::Version
115
104
  version: 0.9.0
116
- - - <
105
+ - - "<"
117
106
  - !ruby/object:Gem::Version
118
- version: '10.1'
107
+ version: '10.2'
119
108
  - !ruby/object:Gem::Dependency
120
109
  name: rspec
121
110
  requirement: !ruby/object:Gem::Requirement
122
- none: false
123
111
  requirements:
124
- - - ~>
112
+ - - "~>"
125
113
  - !ruby/object:Gem::Version
126
114
  version: '2.11'
127
115
  type: :development
128
116
  prerelease: false
129
117
  version_requirements: !ruby/object:Gem::Requirement
130
- none: false
131
118
  requirements:
132
- - - ~>
119
+ - - "~>"
133
120
  - !ruby/object:Gem::Version
134
121
  version: '2.11'
135
122
  - !ruby/object:Gem::Dependency
136
123
  name: tzinfo
137
124
  requirement: !ruby/object:Gem::Requirement
138
- none: false
139
125
  requirements:
140
- - - ~>
126
+ - - ">="
141
127
  - !ruby/object:Gem::Version
142
- version: 0.3.29
128
+ version: '0'
143
129
  type: :development
144
130
  prerelease: false
145
131
  version_requirements: !ruby/object:Gem::Requirement
146
- none: false
147
132
  requirements:
148
- - - ~>
133
+ - - ">="
149
134
  - !ruby/object:Gem::Version
150
- version: 0.3.29
135
+ version: '0'
151
136
  description: Create plain old ruby models without reinventing the wheel.
152
137
  email:
153
138
  - cgriego@gmail.com
@@ -156,11 +141,11 @@ executables: []
156
141
  extensions: []
157
142
  extra_rdoc_files: []
158
143
  files:
159
- - .gitignore
160
- - .rspec
161
- - .ruby-version
162
- - .travis.yml
163
- - .yardopts
144
+ - ".gitignore"
145
+ - ".rspec"
146
+ - ".ruby-version"
147
+ - ".travis.yml"
148
+ - ".yardopts"
164
149
  - CHANGELOG.md
165
150
  - Gemfile
166
151
  - Guardfile
@@ -171,6 +156,7 @@ files:
171
156
  - gemfiles/rails_3_0.gemfile
172
157
  - gemfiles/rails_3_1.gemfile
173
158
  - gemfiles/rails_3_2.gemfile
159
+ - gemfiles/rails_4_0.gemfile
174
160
  - gemfiles/rails_head.gemfile
175
161
  - lib/active_attr.rb
176
162
  - lib/active_attr/attribute_defaults.rb
@@ -246,33 +232,26 @@ files:
246
232
  - spec/unit/active_attr/version_spec.rb
247
233
  homepage: https://github.com/cgriego/active_attr
248
234
  licenses: []
235
+ metadata: {}
249
236
  post_install_message:
250
237
  rdoc_options: []
251
238
  require_paths:
252
239
  - lib
253
240
  required_ruby_version: !ruby/object:Gem::Requirement
254
- none: false
255
241
  requirements:
256
- - - ! '>='
242
+ - - ">="
257
243
  - !ruby/object:Gem::Version
258
244
  version: '0'
259
- segments:
260
- - 0
261
- hash: 4300701994250441462
262
245
  required_rubygems_version: !ruby/object:Gem::Requirement
263
- none: false
264
246
  requirements:
265
- - - ! '>='
247
+ - - ">="
266
248
  - !ruby/object:Gem::Version
267
249
  version: '0'
268
- segments:
269
- - 0
270
- hash: 4300701994250441462
271
250
  requirements: []
272
251
  rubyforge_project:
273
- rubygems_version: 1.8.25
252
+ rubygems_version: 2.2.2
274
253
  signing_key:
275
- specification_version: 3
254
+ specification_version: 4
276
255
  summary: What ActiveModel left out
277
256
  test_files:
278
257
  - spec/functional/active_attr/attribute_defaults_spec.rb