active_attr 0.15.0 → 0.15.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.
- checksums.yaml +4 -4
- data/.github/workflows/test.yaml +160 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile +4 -6
- data/README.md +0 -3
- data/active_attr.gemspec +7 -7
- data/gemfiles/rails_3_1.gemfile +1 -4
- data/gemfiles/rails_3_2.gemfile +1 -8
- data/gemfiles/rails_6_0.gemfile +9 -0
- data/lib/active_attr/version.rb +1 -1
- data/spec/functional/active_attr/attributes_spec.rb +0 -32
- data/spec/functional/active_attr/mass_assignment_spec.rb +2 -2
- metadata +25 -24
- data/.travis.yml +0 -95
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 643c6f5a8e69bd25697285baa018622a93aa3f6942a89dd2ffe0abc7dc6b6406
|
4
|
+
data.tar.gz: '081be1c5942fff694f85e31fa273a22e85d0e41e179f4321e3164ff6697f97cb'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 561d396771257d70ac4ac7e4d16d47c1c4cb1f59ee3da5d48bb933640253c022968120d1c53fc39cbb6fbf874d8b2531e5488922002711c8942b204d8478b0b4
|
7
|
+
data.tar.gz: ba853cbb6b519b66de4608f2614f0a12a50455e5f6eee23d6c62848d3682e69fb85c33c244a4b15d755f1c3dcda8ecf5334d0b76599c82c1ae31c6584a0bb4a7
|
@@ -0,0 +1,160 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
name: Ruby ${{ matrix.ruby }} with ${{ matrix.gemfile }}
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
strategy:
|
14
|
+
matrix:
|
15
|
+
ruby:
|
16
|
+
- 2.1.9
|
17
|
+
- 2.2.10
|
18
|
+
- 2.3.8
|
19
|
+
- 2.4.10
|
20
|
+
- 2.5.8
|
21
|
+
- 2.6.6
|
22
|
+
- 2.7.2
|
23
|
+
- truffleruby-head
|
24
|
+
gemfile:
|
25
|
+
- gemfiles/rails_3_0.gemfile
|
26
|
+
- gemfiles/rails_3_1.gemfile
|
27
|
+
- gemfiles/rails_3_2.gemfile
|
28
|
+
- gemfiles/rails_4_0.gemfile
|
29
|
+
- gemfiles/rails_4_1.gemfile
|
30
|
+
- gemfiles/rails_4_2.gemfile
|
31
|
+
- gemfiles/rails_5_0.gemfile
|
32
|
+
- gemfiles/rails_5_1.gemfile
|
33
|
+
- gemfiles/rails_5_2.gemfile
|
34
|
+
- gemfiles/rails_6_0.gemfile
|
35
|
+
- Gemfile
|
36
|
+
- gemfiles/rails_head.gemfile
|
37
|
+
exclude:
|
38
|
+
- ruby: 1.9.2
|
39
|
+
gemfile: gemfiles/rails_4_0.gemfile
|
40
|
+
- ruby: 1.9.2
|
41
|
+
gemfile: gemfiles/rails_4_1.gemfile
|
42
|
+
- ruby: 1.9.2
|
43
|
+
gemfile: gemfiles/rails_4_2.gemfile
|
44
|
+
- ruby: 1.9.2
|
45
|
+
gemfile: gemfiles/rails_5_0.gemfile
|
46
|
+
- ruby: 1.9.2
|
47
|
+
gemfile: gemfiles/rails_5_1.gemfile
|
48
|
+
- ruby: 1.9.2
|
49
|
+
gemfile: gemfiles/rails_5_2.gemfile
|
50
|
+
- ruby: 1.9.2
|
51
|
+
gemfile: gemfiles/rails_6_0.gemfile
|
52
|
+
- ruby: 1.9.2
|
53
|
+
gemfile: Gemfile
|
54
|
+
- ruby: 1.9.2
|
55
|
+
gemfile: gemfiles/rails_head.gemfile
|
56
|
+
- ruby: 1.9.3
|
57
|
+
gemfile: gemfiles/rails_5_0.gemfile
|
58
|
+
- ruby: 1.9.3
|
59
|
+
gemfile: gemfiles/rails_5_1.gemfile
|
60
|
+
- ruby: 1.9.3
|
61
|
+
gemfile: gemfiles/rails_5_2.gemfile
|
62
|
+
- ruby: 1.9.3
|
63
|
+
gemfile: gemfiles/rails_6_0.gemfile
|
64
|
+
- ruby: 1.9.3
|
65
|
+
gemfile: Gemfile
|
66
|
+
- ruby: 1.9.3
|
67
|
+
gemfile: gemfiles/rails_head.gemfile
|
68
|
+
- ruby: 2.0.0
|
69
|
+
gemfile: gemfiles/rails_5_0.gemfile
|
70
|
+
- ruby: 2.0.0
|
71
|
+
gemfile: gemfiles/rails_5_1.gemfile
|
72
|
+
- ruby: 2.0.0
|
73
|
+
gemfile: gemfiles/rails_5_2.gemfile
|
74
|
+
- ruby: 2.0.0
|
75
|
+
gemfile: gemfiles/rails_6_0.gemfile
|
76
|
+
- ruby: 2.0.0
|
77
|
+
gemfile: Gemfile
|
78
|
+
- ruby: 2.0.0
|
79
|
+
gemfile: gemfiles/rails_head.gemfile
|
80
|
+
- ruby: 2.1.9
|
81
|
+
gemfile: gemfiles/rails_5_0.gemfile
|
82
|
+
- ruby: 2.1.9
|
83
|
+
gemfile: gemfiles/rails_5_1.gemfile
|
84
|
+
- ruby: 2.1.9
|
85
|
+
gemfile: gemfiles/rails_5_2.gemfile
|
86
|
+
- ruby: 2.1.9
|
87
|
+
gemfile: gemfiles/rails_6_0.gemfile
|
88
|
+
- ruby: 2.1.9
|
89
|
+
gemfile: Gemfile
|
90
|
+
- ruby: 2.1.9
|
91
|
+
gemfile: gemfiles/rails_head.gemfile
|
92
|
+
- ruby: 2.2.10
|
93
|
+
gemfile: gemfiles/rails_6_0.gemfile
|
94
|
+
- ruby: 2.2.10
|
95
|
+
gemfile: Gemfile
|
96
|
+
- ruby: 2.2.10
|
97
|
+
gemfile: gemfiles/rails_head.gemfile
|
98
|
+
- ruby: 2.3.8
|
99
|
+
gemfile: gemfiles/rails_6_0.gemfile
|
100
|
+
- ruby: 2.3.8
|
101
|
+
gemfile: Gemfile
|
102
|
+
- ruby: 2.3.8
|
103
|
+
gemfile: gemfiles/rails_head.gemfile
|
104
|
+
- ruby: 2.4.10
|
105
|
+
gemfile: gemfiles/rails_6_0.gemfile
|
106
|
+
- ruby: 2.4.10
|
107
|
+
gemfile: Gemfile
|
108
|
+
- ruby: 2.4.10
|
109
|
+
gemfile: gemfiles/rails_head.gemfile
|
110
|
+
- ruby: 2.5.8
|
111
|
+
gemfile: gemfiles/rails_3_0.gemfile
|
112
|
+
- ruby: 2.6.6
|
113
|
+
gemfile: gemfiles/rails_3_0.gemfile
|
114
|
+
- ruby: 2.7.2
|
115
|
+
gemfile: gemfiles/rails_3_0.gemfile
|
116
|
+
- ruby: 2.7.2
|
117
|
+
gemfile: gemfiles/rails_3_1.gemfile
|
118
|
+
- ruby: 2.7.2
|
119
|
+
gemfile: gemfiles/rails_3_2.gemfile
|
120
|
+
- ruby: 2.7.2
|
121
|
+
gemfile: gemfiles/rails_4_0.gemfile
|
122
|
+
- ruby: 2.7.2
|
123
|
+
gemfile: gemfiles/rails_4_1.gemfile
|
124
|
+
- ruby: 2.7.2
|
125
|
+
gemfile: gemfiles/rails_4_2.gemfile
|
126
|
+
- ruby: truffleruby-head
|
127
|
+
gemfile: gemfiles/rails_3_0.gemfile
|
128
|
+
- ruby: truffleruby-head
|
129
|
+
gemfile: gemfiles/rails_3_1.gemfile
|
130
|
+
- ruby: truffleruby-head
|
131
|
+
gemfile: gemfiles/rails_3_2.gemfile
|
132
|
+
- ruby: truffleruby-head
|
133
|
+
gemfile: gemfiles/rails_4_0.gemfile
|
134
|
+
- ruby: truffleruby-head
|
135
|
+
gemfile: gemfiles/rails_4_1.gemfile
|
136
|
+
- ruby: truffleruby-head
|
137
|
+
gemfile: gemfiles/rails_4_2.gemfile
|
138
|
+
env:
|
139
|
+
Rails: ${{ matrix.rails }}
|
140
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
141
|
+
BUNDLER_VERSION: 1.17.3
|
142
|
+
|
143
|
+
steps:
|
144
|
+
- name: Checkout code
|
145
|
+
uses: actions/checkout@master
|
146
|
+
- name: Set up Ruby
|
147
|
+
uses: ruby/setup-ruby@v1
|
148
|
+
with:
|
149
|
+
ruby-version: ${{ matrix.ruby }}
|
150
|
+
- name: Set up Bundler cache
|
151
|
+
uses: actions/cache@v1
|
152
|
+
with:
|
153
|
+
path: vendor/bundle
|
154
|
+
key: ${{ runner.os }}-gems
|
155
|
+
- name: Build and run tests
|
156
|
+
run: |
|
157
|
+
gem install bundler --version ${{ env.BUNDLER_VERSION }} --no-document
|
158
|
+
bundle _${{ env.BUNDLER_VERSION }}_ config path vendor/bundle
|
159
|
+
bundle _${{ env.BUNDLER_VERSION }}_ install --jobs 4 --retry 3
|
160
|
+
bundle _${{ env.BUNDLER_VERSION }}_ exec rake --trace
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -2,15 +2,14 @@ source "https://rubygems.org"
|
|
2
2
|
|
3
3
|
gemspec :development_group => :test
|
4
4
|
|
5
|
-
gem "activemodel", ">= 5.2.0.beta1", "< 6.
|
6
|
-
gem "activesupport", ">= 5.2.0.beta1", "< 6.
|
7
|
-
gem "actionpack", ">= 5.2.0.beta1", "< 6.
|
5
|
+
gem "activemodel", ">= 5.2.0.beta1", "< 6.2"
|
6
|
+
gem "activesupport", ">= 5.2.0.beta1", "< 6.2"
|
7
|
+
gem "actionpack", ">= 5.2.0.beta1", "< 6.2"
|
8
8
|
gem "activemodel-serializers-xml", :group => :test
|
9
9
|
gem "protected_attributes_continued", :group => :test
|
10
10
|
|
11
11
|
group :development do
|
12
|
-
gem "
|
13
|
-
gem "byebug" unless RUBY_VERSION < "2.0"
|
12
|
+
gem "byebug"
|
14
13
|
gem "growl"
|
15
14
|
gem "guard"
|
16
15
|
gem "guard-bundler"
|
@@ -19,6 +18,5 @@ group :development do
|
|
19
18
|
gem "rdiscount"
|
20
19
|
gem "rdoc"
|
21
20
|
gem "spec_coverage", :git => "https://github.com/getaroom/spec_coverage.git"
|
22
|
-
gem "travis"
|
23
21
|
gem "yard"
|
24
22
|
end
|
data/README.md
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# ActiveAttr #
|
2
2
|
|
3
|
-
[![Build History][travis badge]][travis]
|
4
3
|
[![Code Climate][codeclimate badge]][codeclimate]
|
5
4
|
|
6
5
|
ActiveAttr is a set of modules that makes it easy to create plain old Ruby
|
@@ -26,8 +25,6 @@ ActiveAttr is distributed as a Ruby gem [on rubygems.org][rubygems].
|
|
26
25
|
[protected_attributes]: https://github.com/westonganger/protected_attributes_continued
|
27
26
|
[strong_parameters]: https://github.com/rails/strong_parameters
|
28
27
|
[speakerdeck]: https://speakerdeck.com/u/cgriego/p/models-models-every-where
|
29
|
-
[travis badge]: https://secure.travis-ci.org/cgriego/active_attr.svg?branch=master
|
30
|
-
[travis]: http://travis-ci.org/cgriego/active_attr
|
31
28
|
|
32
29
|
## Modules ##
|
33
30
|
|
data/active_attr.gemspec
CHANGED
@@ -20,16 +20,16 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.require_paths = ["lib"]
|
21
21
|
gem.version = ActiveAttr::VERSION
|
22
22
|
|
23
|
-
gem.required_ruby_version = ">= 1.
|
23
|
+
gem.required_ruby_version = ">= 2.1.0"
|
24
24
|
|
25
|
-
gem.add_runtime_dependency "actionpack", ">= 3.0.2", "< 6.
|
26
|
-
gem.add_runtime_dependency "activemodel", ">= 3.0.2", "< 6.
|
27
|
-
gem.add_runtime_dependency "activesupport", ">= 3.0.2", "< 6.
|
25
|
+
gem.add_runtime_dependency "actionpack", ">= 3.0.2", "< 6.2"
|
26
|
+
gem.add_runtime_dependency "activemodel", ">= 3.0.2", "< 6.2"
|
27
|
+
gem.add_runtime_dependency "activesupport", ">= 3.0.2", "< 6.2"
|
28
28
|
|
29
|
-
gem.add_development_dependency "bundler"
|
29
|
+
gem.add_development_dependency "bundler"
|
30
30
|
gem.add_development_dependency "factory_bot", "< 5.0"
|
31
31
|
gem.add_development_dependency "minitest"
|
32
|
-
gem.add_development_dependency "rake", ">= 0.9.0", "<
|
32
|
+
gem.add_development_dependency "rake", ">= 0.9.0", "< 13.1"
|
33
33
|
gem.add_development_dependency "rspec", "~> 3.0"
|
34
|
-
gem.add_development_dependency "tzinfo"
|
34
|
+
gem.add_development_dependency "tzinfo"
|
35
35
|
end
|
data/gemfiles/rails_3_1.gemfile
CHANGED
data/gemfiles/rails_3_2.gemfile
CHANGED
@@ -2,14 +2,7 @@ source "https://rubygems.org"
|
|
2
2
|
|
3
3
|
gemspec :development_group => :test, :path => ".."
|
4
4
|
|
5
|
-
if RUBY_VERSION < "1.9.3"
|
6
|
-
gem "i18n", "< 0.7"
|
7
|
-
end
|
8
|
-
|
9
|
-
if RUBY_VERSION < "1.9.3"
|
10
|
-
gem "rack-cache", "< 1.3", :group => :test
|
11
|
-
end
|
12
|
-
|
13
5
|
gem "activemodel", "~> 3.2.0"
|
14
6
|
gem "activesupport", "~> 3.2.0"
|
15
7
|
gem "strong_parameters", ">= 0.2.0", :group => :test
|
8
|
+
gem "tzinfo", "< 2"
|
@@ -0,0 +1,9 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gemspec :development_group => :test, :path => ".."
|
4
|
+
|
5
|
+
gem "activemodel", "~> 6.0.0"
|
6
|
+
gem "activesupport", "~> 6.0.0"
|
7
|
+
gem "actionpack", "~> 6.0.0"
|
8
|
+
gem "activemodel-serializers-xml", :group => :test
|
9
|
+
gem "protected_attributes_continued", :group => :test
|
data/lib/active_attr/version.rb
CHANGED
@@ -201,28 +201,6 @@ module ActiveAttr
|
|
201
201
|
end
|
202
202
|
end
|
203
203
|
|
204
|
-
shared_examples "a whitelisted attribute" do
|
205
|
-
it ".dangerous_attribute? is falsey" do
|
206
|
-
model_class.dangerous_attribute?(attribute_name).should be_falsey
|
207
|
-
end
|
208
|
-
|
209
|
-
it ".attribute does not raise" do
|
210
|
-
expect { model_class.attribute(attribute_name) }.not_to raise_error
|
211
|
-
end
|
212
|
-
|
213
|
-
it ".attribute! does not raise" do
|
214
|
-
expect { model_class.attribute!(attribute_name) }.not_to raise_error
|
215
|
-
end
|
216
|
-
|
217
|
-
it "can be set and get" do
|
218
|
-
model_class.attribute attribute_name
|
219
|
-
model = model_class.new
|
220
|
-
value = double
|
221
|
-
model.send "#{attribute_name}=", value
|
222
|
-
model.send(attribute_name).should equal value
|
223
|
-
end
|
224
|
-
end
|
225
|
-
|
226
204
|
shared_examples "defining dangerous attributes" do
|
227
205
|
context "an attribute that conflicts with #{described_class}" do
|
228
206
|
let(:attribute_name) { :write_attribute }
|
@@ -258,16 +236,6 @@ module ActiveAttr
|
|
258
236
|
let(:attribute_name) { :my_less_proper_missing_method }
|
259
237
|
include_examples "a dangerous attribute"
|
260
238
|
end
|
261
|
-
|
262
|
-
context "an :id attribute" do
|
263
|
-
let(:attribute_name) { :id }
|
264
|
-
include_examples "a whitelisted attribute"
|
265
|
-
end
|
266
|
-
|
267
|
-
context "a :type attribute" do
|
268
|
-
let(:attribute_name) { :type }
|
269
|
-
include_examples "a whitelisted attribute"
|
270
|
-
end
|
271
239
|
end
|
272
240
|
|
273
241
|
let :dangerous_model_class do
|
@@ -40,7 +40,7 @@ module ActiveAttr
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
-
context "
|
43
|
+
context "allowing attributes" do
|
44
44
|
before do
|
45
45
|
model_class.class_eval do
|
46
46
|
attr_accessible :first_name, :last_name, :name
|
@@ -53,7 +53,7 @@ module ActiveAttr
|
|
53
53
|
describe "#initialize", :initialize, :secure_mass_assignment_method, :secure_mass_assignment_method_with_options
|
54
54
|
end
|
55
55
|
|
56
|
-
context "
|
56
|
+
context "denying attributes" do
|
57
57
|
before do
|
58
58
|
model_class.class_eval do
|
59
59
|
attr_protected :age
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_attr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Griego
|
8
8
|
- Ben Poweski
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
version: 3.0.2
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '6.
|
23
|
+
version: '6.2'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
version: 3.0.2
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '6.
|
33
|
+
version: '6.2'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: activemodel
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
version: 3.0.2
|
41
41
|
- - "<"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '6.
|
43
|
+
version: '6.2'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
46
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
version: 3.0.2
|
51
51
|
- - "<"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '6.
|
53
|
+
version: '6.2'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: activesupport
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
version: 3.0.2
|
61
61
|
- - "<"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '6.
|
63
|
+
version: '6.2'
|
64
64
|
type: :runtime
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -70,21 +70,21 @@ dependencies:
|
|
70
70
|
version: 3.0.2
|
71
71
|
- - "<"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '6.
|
73
|
+
version: '6.2'
|
74
74
|
- !ruby/object:Gem::Dependency
|
75
75
|
name: bundler
|
76
76
|
requirement: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- - "
|
78
|
+
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: '
|
80
|
+
version: '0'
|
81
81
|
type: :development
|
82
82
|
prerelease: false
|
83
83
|
version_requirements: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- - "
|
85
|
+
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: '
|
87
|
+
version: '0'
|
88
88
|
- !ruby/object:Gem::Dependency
|
89
89
|
name: factory_bot
|
90
90
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,7 +122,7 @@ dependencies:
|
|
122
122
|
version: 0.9.0
|
123
123
|
- - "<"
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
125
|
+
version: '13.1'
|
126
126
|
type: :development
|
127
127
|
prerelease: false
|
128
128
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -132,7 +132,7 @@ dependencies:
|
|
132
132
|
version: 0.9.0
|
133
133
|
- - "<"
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version: '
|
135
|
+
version: '13.1'
|
136
136
|
- !ruby/object:Gem::Dependency
|
137
137
|
name: rspec
|
138
138
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,16 +151,16 @@ dependencies:
|
|
151
151
|
name: tzinfo
|
152
152
|
requirement: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
|
-
- - "
|
154
|
+
- - ">="
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: '
|
156
|
+
version: '0'
|
157
157
|
type: :development
|
158
158
|
prerelease: false
|
159
159
|
version_requirements: !ruby/object:Gem::Requirement
|
160
160
|
requirements:
|
161
|
-
- - "
|
161
|
+
- - ">="
|
162
162
|
- !ruby/object:Gem::Version
|
163
|
-
version: '
|
163
|
+
version: '0'
|
164
164
|
description: Create plain old Ruby models without reinventing the wheel.
|
165
165
|
email:
|
166
166
|
- cgriego@gmail.com
|
@@ -169,9 +169,9 @@ executables: []
|
|
169
169
|
extensions: []
|
170
170
|
extra_rdoc_files: []
|
171
171
|
files:
|
172
|
+
- ".github/workflows/test.yaml"
|
172
173
|
- ".gitignore"
|
173
174
|
- ".rspec"
|
174
|
-
- ".travis.yml"
|
175
175
|
- ".yardopts"
|
176
176
|
- CHANGELOG.md
|
177
177
|
- Gemfile
|
@@ -189,6 +189,7 @@ files:
|
|
189
189
|
- gemfiles/rails_5_0.gemfile
|
190
190
|
- gemfiles/rails_5_1.gemfile
|
191
191
|
- gemfiles/rails_5_2.gemfile
|
192
|
+
- gemfiles/rails_6_0.gemfile
|
192
193
|
- gemfiles/rails_head.gemfile
|
193
194
|
- lib/active_attr.rb
|
194
195
|
- lib/active_attr/attribute_defaults.rb
|
@@ -267,7 +268,7 @@ licenses:
|
|
267
268
|
- MIT
|
268
269
|
metadata:
|
269
270
|
changelog_uri: https://github.com/cgriego/active_attr/blob/master/CHANGELOG.md
|
270
|
-
post_install_message:
|
271
|
+
post_install_message:
|
271
272
|
rdoc_options: []
|
272
273
|
require_paths:
|
273
274
|
- lib
|
@@ -275,15 +276,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
275
276
|
requirements:
|
276
277
|
- - ">="
|
277
278
|
- !ruby/object:Gem::Version
|
278
|
-
version: 1.
|
279
|
+
version: 2.1.0
|
279
280
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
280
281
|
requirements:
|
281
282
|
- - ">="
|
282
283
|
- !ruby/object:Gem::Version
|
283
284
|
version: '0'
|
284
285
|
requirements: []
|
285
|
-
rubygems_version: 3.
|
286
|
-
signing_key:
|
286
|
+
rubygems_version: 3.1.2
|
287
|
+
signing_key:
|
287
288
|
specification_version: 4
|
288
289
|
summary: What ActiveModel left out
|
289
290
|
test_files:
|
data/.travis.yml
DELETED
@@ -1,95 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
dist: trusty # for Ruby 1.9
|
3
|
-
sudo: false
|
4
|
-
rvm:
|
5
|
-
- 1.9.2
|
6
|
-
- 1.9.3
|
7
|
-
- 2.0.0
|
8
|
-
- 2.1.10
|
9
|
-
- 2.2.10
|
10
|
-
- 2.3.8
|
11
|
-
- 2.4.6
|
12
|
-
- 2.5.5
|
13
|
-
- 2.6.3
|
14
|
-
before_install:
|
15
|
-
- travis_retry gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
16
|
-
- travis_retry gem install bundler -v '< 2'
|
17
|
-
bundler_args: --without development
|
18
|
-
gemfile:
|
19
|
-
- gemfiles/rails_3_0.gemfile
|
20
|
-
- gemfiles/rails_3_1.gemfile
|
21
|
-
- gemfiles/rails_3_2.gemfile
|
22
|
-
- gemfiles/rails_4_0.gemfile
|
23
|
-
- gemfiles/rails_4_1.gemfile
|
24
|
-
- gemfiles/rails_4_2.gemfile
|
25
|
-
- gemfiles/rails_5_0.gemfile
|
26
|
-
- gemfiles/rails_5_1.gemfile
|
27
|
-
- gemfiles/rails_5_2.gemfile
|
28
|
-
- Gemfile
|
29
|
-
- gemfiles/rails_head.gemfile
|
30
|
-
matrix:
|
31
|
-
allow_failures:
|
32
|
-
- gemfile: gemfiles/rails_head.gemfile
|
33
|
-
exclude:
|
34
|
-
- rvm: 2.5.5
|
35
|
-
gemfile: gemfiles/rails_3_0.gemfile
|
36
|
-
- rvm: 2.6.3
|
37
|
-
gemfile: gemfiles/rails_3_0.gemfile
|
38
|
-
- rvm: 1.9.2
|
39
|
-
gemfile: gemfiles/rails_4_0.gemfile
|
40
|
-
- rvm: 1.9.2
|
41
|
-
gemfile: gemfiles/rails_4_1.gemfile
|
42
|
-
- rvm: 1.9.2
|
43
|
-
gemfile: gemfiles/rails_4_2.gemfile
|
44
|
-
- rvm: 1.9.2
|
45
|
-
gemfile: gemfiles/rails_5_0.gemfile
|
46
|
-
- rvm: 1.9.3
|
47
|
-
gemfile: gemfiles/rails_5_0.gemfile
|
48
|
-
- rvm: 2.0.0
|
49
|
-
gemfile: gemfiles/rails_5_0.gemfile
|
50
|
-
- rvm: 2.1.10
|
51
|
-
gemfile: gemfiles/rails_5_0.gemfile
|
52
|
-
- rvm: 1.9.2
|
53
|
-
gemfile: gemfiles/rails_5_1.gemfile
|
54
|
-
- rvm: 1.9.3
|
55
|
-
gemfile: gemfiles/rails_5_1.gemfile
|
56
|
-
- rvm: 2.0.0
|
57
|
-
gemfile: gemfiles/rails_5_1.gemfile
|
58
|
-
- rvm: 2.1.10
|
59
|
-
gemfile: gemfiles/rails_5_1.gemfile
|
60
|
-
- rvm: 1.9.2
|
61
|
-
gemfile: gemfiles/rails_5_2.gemfile
|
62
|
-
- rvm: 1.9.3
|
63
|
-
gemfile: gemfiles/rails_5_2.gemfile
|
64
|
-
- rvm: 2.0.0
|
65
|
-
gemfile: gemfiles/rails_5_2.gemfile
|
66
|
-
- rvm: 2.1.10
|
67
|
-
gemfile: gemfiles/rails_5_2.gemfile
|
68
|
-
- rvm: 1.9.2
|
69
|
-
gemfile: Gemfile
|
70
|
-
- rvm: 1.9.3
|
71
|
-
gemfile: Gemfile
|
72
|
-
- rvm: 2.0.0
|
73
|
-
gemfile: Gemfile
|
74
|
-
- rvm: 2.1.10
|
75
|
-
gemfile: Gemfile
|
76
|
-
- rvm: 2.2.10
|
77
|
-
gemfile: Gemfile
|
78
|
-
- rvm: 2.3.8
|
79
|
-
gemfile: Gemfile
|
80
|
-
- rvm: 2.4.6
|
81
|
-
gemfile: Gemfile
|
82
|
-
- rvm: 1.9.2
|
83
|
-
gemfile: gemfiles/rails_head.gemfile
|
84
|
-
- rvm: 1.9.3
|
85
|
-
gemfile: gemfiles/rails_head.gemfile
|
86
|
-
- rvm: 2.0.0
|
87
|
-
gemfile: gemfiles/rails_head.gemfile
|
88
|
-
- rvm: 2.1.10
|
89
|
-
gemfile: gemfiles/rails_head.gemfile
|
90
|
-
- rvm: 2.2.10
|
91
|
-
gemfile: gemfiles/rails_head.gemfile
|
92
|
-
- rvm: 2.3.8
|
93
|
-
gemfile: gemfiles/rails_head.gemfile
|
94
|
-
- rvm: 2.4.6
|
95
|
-
gemfile: gemfiles/rails_head.gemfile
|