active_attr 0.15.1 → 0.15.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 643c6f5a8e69bd25697285baa018622a93aa3f6942a89dd2ffe0abc7dc6b6406
4
- data.tar.gz: '081be1c5942fff694f85e31fa273a22e85d0e41e179f4321e3164ff6697f97cb'
3
+ metadata.gz: 13cccbd932517dff946d30e95472d0be860ee9ae904fb23c2ec51218b8d53bf1
4
+ data.tar.gz: d6a7add449df97e240d2e6ecef52d50ae790a6c8b1929b55bfd8bab31435c5b2
5
5
  SHA512:
6
- metadata.gz: 561d396771257d70ac4ac7e4d16d47c1c4cb1f59ee3da5d48bb933640253c022968120d1c53fc39cbb6fbf874d8b2531e5488922002711c8942b204d8478b0b4
7
- data.tar.gz: ba853cbb6b519b66de4608f2614f0a12a50455e5f6eee23d6c62848d3682e69fb85c33c244a4b15d755f1c3dcda8ecf5334d0b76599c82c1ae31c6584a0bb4a7
6
+ metadata.gz: 1420ec710d5245ac17ec4c4afa56745d37b0fe6fabf36767de00ac8e4a4e43248161a4e631054535aaaa5c2f61df5b6057068f0ed3f45a52293f9e904b0e92b3
7
+ data.tar.gz: 10a86931d030166c531af1552223a6fc96803c7259fd1e61069f2bbc3ab5d8f70eb6bfb9e9cc619ed6772bb65ad7d6863dd3d4d681e9ae01241238b79a739863
@@ -10,7 +10,9 @@ jobs:
10
10
  test:
11
11
  name: Ruby ${{ matrix.ruby }} with ${{ matrix.gemfile }}
12
12
  runs-on: ubuntu-latest
13
+ continue-on-error: ${{ contains(matrix.ruby, 'head') || contains(matrix.gemfile, 'head') }}
13
14
  strategy:
15
+ fail-fast: false
14
16
  matrix:
15
17
  ruby:
16
18
  - 2.1.9
@@ -20,6 +22,7 @@ jobs:
20
22
  - 2.5.8
21
23
  - 2.6.6
22
24
  - 2.7.2
25
+ - 3.0.0
23
26
  - truffleruby-head
24
27
  gemfile:
25
28
  - gemfiles/rails_3_0.gemfile
@@ -109,8 +112,12 @@ jobs:
109
112
  gemfile: gemfiles/rails_head.gemfile
110
113
  - ruby: 2.5.8
111
114
  gemfile: gemfiles/rails_3_0.gemfile
115
+ - ruby: 2.5.8
116
+ gemfile: gemfiles/rails_head.gemfile
112
117
  - ruby: 2.6.6
113
118
  gemfile: gemfiles/rails_3_0.gemfile
119
+ - ruby: 2.6.6
120
+ gemfile: gemfiles/rails_head.gemfile
114
121
  - ruby: 2.7.2
115
122
  gemfile: gemfiles/rails_3_0.gemfile
116
123
  - ruby: 2.7.2
@@ -123,6 +130,24 @@ jobs:
123
130
  gemfile: gemfiles/rails_4_1.gemfile
124
131
  - ruby: 2.7.2
125
132
  gemfile: gemfiles/rails_4_2.gemfile
133
+ - ruby: 3.0.0
134
+ gemfile: gemfiles/rails_3_0.gemfile
135
+ - ruby: 3.0.0
136
+ gemfile: gemfiles/rails_3_1.gemfile
137
+ - ruby: 3.0.0
138
+ gemfile: gemfiles/rails_3_2.gemfile
139
+ - ruby: 3.0.0
140
+ gemfile: gemfiles/rails_4_0.gemfile
141
+ - ruby: 3.0.0
142
+ gemfile: gemfiles/rails_4_1.gemfile
143
+ - ruby: 3.0.0
144
+ gemfile: gemfiles/rails_4_2.gemfile
145
+ - ruby: 3.0.0
146
+ gemfile: gemfiles/rails_5_0.gemfile
147
+ - ruby: 3.0.0
148
+ gemfile: gemfiles/rails_5_1.gemfile
149
+ - ruby: 3.0.0
150
+ gemfile: gemfiles/rails_5_2.gemfile
126
151
  - ruby: truffleruby-head
127
152
  gemfile: gemfiles/rails_3_0.gemfile
128
153
  - ruby: truffleruby-head
@@ -138,23 +163,18 @@ jobs:
138
163
  env:
139
164
  Rails: ${{ matrix.rails }}
140
165
  BUNDLE_GEMFILE: ${{ matrix.gemfile }}
141
- BUNDLER_VERSION: 1.17.3
142
166
 
143
167
  steps:
144
168
  - name: Checkout code
145
169
  uses: actions/checkout@master
170
+ - name: Nokogiri support for TruffleRuby
171
+ run: sudo apt-get -yqq install libxml2-dev libxslt-dev
172
+ if: ${{ matrix.ruby == 'truffleruby-head' }}
146
173
  - name: Set up Ruby
147
174
  uses: ruby/setup-ruby@v1
148
175
  with:
149
176
  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
177
+ bundler: 1
178
+ bundler-cache: true
179
+ - name: Run tests
180
+ run: bundle exec rake --trace
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # ActiveAttr 0.15.2 (February 17, 2021)
2
+
3
+ * ActiveAttr now supports Ruby 3.0
4
+ * Allow unreleased versions of Rails 7.0
5
+
1
6
  # ActiveAttr 0.15.1 (December 11, 2020) #
2
7
 
3
8
  * ActiveAttr now supports Ruby 2.7
data/Gemfile CHANGED
@@ -2,10 +2,11 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec :development_group => :test
4
4
 
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"
5
+ gem "activemodel", "~> 6.1.0"
6
+ gem "activesupport", "~> 6.1.0"
7
+ gem "actionpack", "~> 6.1.0"
8
8
  gem "activemodel-serializers-xml", :group => :test
9
+ gem "rexml", :group => :test
9
10
  gem "protected_attributes_continued", :group => :test
10
11
 
11
12
  group :development do
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # ActiveAttr #
2
2
 
3
+ [![Build History][build badge]][build history]
3
4
  [![Code Climate][codeclimate badge]][codeclimate]
4
5
 
5
6
  ActiveAttr is a set of modules that makes it easy to create plain old Ruby
@@ -25,6 +26,8 @@ ActiveAttr is distributed as a Ruby gem [on rubygems.org][rubygems].
25
26
  [protected_attributes]: https://github.com/westonganger/protected_attributes_continued
26
27
  [strong_parameters]: https://github.com/rails/strong_parameters
27
28
  [speakerdeck]: https://speakerdeck.com/u/cgriego/p/models-models-every-where
29
+ [build badge]: https://github.com/cgriego/active_attr/workflows/Test/badge.svg?event=push
30
+ [build history]: https://github.com/cgriego/active_attr/actions?query=workflow%3ATest
28
31
 
29
32
  ## Modules ##
30
33
 
data/active_attr.gemspec CHANGED
@@ -22,9 +22,9 @@ Gem::Specification.new do |gem|
22
22
 
23
23
  gem.required_ruby_version = ">= 2.1.0"
24
24
 
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"
25
+ gem.add_runtime_dependency "actionpack", ">= 3.0.2", "< 7.0"
26
+ gem.add_runtime_dependency "activemodel", ">= 3.0.2", "< 7.0"
27
+ gem.add_runtime_dependency "activesupport", ">= 3.0.2", "< 7.0"
28
28
 
29
29
  gem.add_development_dependency "bundler"
30
30
  gem.add_development_dependency "factory_bot", "< 5.0"
@@ -6,4 +6,5 @@ gem "activemodel", "~> 5.0.0"
6
6
  gem "activesupport", "~> 5.0.0"
7
7
  gem "actionpack", "~> 5.0.0"
8
8
  gem "activemodel-serializers-xml", :group => :test
9
+ gem "rexml", :group => :test
9
10
  gem "protected_attributes_continued", :group => :test
@@ -6,4 +6,5 @@ gem "activemodel", "~> 5.1.0"
6
6
  gem "activesupport", "~> 5.1.0"
7
7
  gem "actionpack", "~> 5.1.0"
8
8
  gem "activemodel-serializers-xml", :group => :test
9
+ gem "rexml", :group => :test
9
10
  gem "protected_attributes_continued", :group => :test
@@ -6,4 +6,5 @@ gem "activemodel", "~> 5.2.0"
6
6
  gem "activesupport", "~> 5.2.0"
7
7
  gem "actionpack", "~> 5.2.0"
8
8
  gem "activemodel-serializers-xml", :group => :test
9
+ gem "rexml", :group => :test
9
10
  gem "protected_attributes_continued", :group => :test
@@ -6,4 +6,5 @@ gem "activemodel", "~> 6.0.0"
6
6
  gem "activesupport", "~> 6.0.0"
7
7
  gem "actionpack", "~> 6.0.0"
8
8
  gem "activemodel-serializers-xml", :group => :test
9
+ gem "rexml", :group => :test
9
10
  gem "protected_attributes_continued", :group => :test
@@ -2,12 +2,13 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec :development_group => :test, :path => ".."
4
4
 
5
- git "git://github.com/rails/rails.git" do
5
+ git "git://github.com/rails/rails.git", :branch => "main" do
6
6
  gem "activemodel"
7
7
  gem "activesupport"
8
8
  gem "actionpack"
9
9
  end
10
10
 
11
11
  gem "activemodel-serializers-xml", :group => :test, :git => "git://github.com/rails/activemodel-serializers-xml.git"
12
+ gem "rexml", :group => :test
12
13
  gem "protected_attributes_continued", :group => :test, :git => "git://github.com/westonganger/protected_attributes_continued"
13
14
  gem "rack", :group => :test, :git => "git://github.com/rack/rack.git"
@@ -1,5 +1,5 @@
1
1
  module ActiveAttr
2
2
  # Complete version string
3
3
  # @since 0.1.0
4
- VERSION = "0.15.1"
4
+ VERSION = "0.15.2"
5
5
  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.15.1
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Griego
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-12-11 00:00:00.000000000 Z
12
+ date: 2021-02-17 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.2'
23
+ version: '7.0'
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.2'
33
+ version: '7.0'
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.2'
43
+ version: '7.0'
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.2'
53
+ version: '7.0'
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.2'
63
+ version: '7.0'
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
@@ -70,7 +70,7 @@ dependencies:
70
70
  version: 3.0.2
71
71
  - - "<"
72
72
  - !ruby/object:Gem::Version
73
- version: '6.2'
73
+ version: '7.0'
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: bundler
76
76
  requirement: !ruby/object:Gem::Requirement