ph_model 1.1.3 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b21ee085fad1255502d03a29da7c57d01cbea98465169b750643ad41544170fe
4
- data.tar.gz: b558977aa8e7620fb580b5861f7706b8af7019363debc34c6465b7236f11f750
3
+ metadata.gz: '04478d0d14c7892cb32f8acecf8dcb3d56a019f20c0a6c871655fba64d2cc86f'
4
+ data.tar.gz: e9613f36755f717ac5eca8839adf2e966974fb3a69e39b64e68bc5cff5945919
5
5
  SHA512:
6
- metadata.gz: e381cc246de657326afcb31e75b8a6dd7e48f1dfde51b8645b66d9efee197381838c996ffebd89884e57447e496116153fa1679b885488e89784862d65193c9e
7
- data.tar.gz: 2c86ce6deccccf5e63332c9e3c6387d7195254cc6b8e02a7220d8a7462a53f13c9adae2c9c6dc30baa70e0d1a133d64c96fb98ca65a99c9d14d5b7b4a18449e6
6
+ metadata.gz: 84255c257dea7362f81c33782439f95edfb51c016b1731e20ff64a0558006e4c02a770b11f33da7fa9da6b5ef0a575cb1b9b3b5d3ffc824a72408c260155d53c
7
+ data.tar.gz: 8b965b9900572c53a619977048ca2f042eedff56d2324dfe6c1ba23beb3c73b598c069de7448c437cff7f67ec2e41464538e75c501bd15238649110364a3d428
@@ -0,0 +1,55 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: ci
9
+
10
+ on:
11
+ - push
12
+ - pull_request
13
+
14
+ jobs:
15
+ test:
16
+ runs-on: ubuntu-20.04
17
+ strategy:
18
+ fail-fast: false
19
+ matrix:
20
+ gemfile: ['rails_7.1', 'rails_7.0']
21
+ ruby: [3.3, 3.2, 3.1]
22
+ include:
23
+ - gemfile: rails_7.1
24
+ ruby: '3.0'
25
+ - gemfile: rails_7.1
26
+ ruby: 2.7
27
+ - gemfile: rails_7.0
28
+ ruby: '3.0'
29
+ - gemfile: rails_7.0
30
+ ruby: 2.7
31
+ - gemfile: rails_6.1
32
+ ruby: 2.7
33
+ - gemfile: rails_6.0
34
+ ruby: 2.7
35
+ - gemfile: rails_5.2
36
+ ruby: 2.7
37
+ - gemfile: rails_5.1
38
+ ruby: 2.7
39
+ - gemfile: rails_5.0
40
+ ruby: 2.7
41
+
42
+ env:
43
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
44
+ CI: true
45
+ COVERALLS_REPO_TOKEN: 3PVU3qEEgaWdwemUGBjnbYwv87BPTti9u
46
+ steps:
47
+ - uses: actions/checkout@v2
48
+ - uses: ruby/setup-ruby@v1
49
+ with:
50
+ ruby-version: ${{ matrix.ruby }}
51
+ bundler-cache: true
52
+ - name: RSpec and Rubocop
53
+ run: |
54
+ bundle exec rubocop -c .rubocop.yml
55
+ bundle exec rspec
data/.rubocop.yml CHANGED
@@ -1,19 +1,16 @@
1
- inherit_from:
2
- - .rubocop.hound.yml
1
+ inherit_from: .rubocop_todo.yml
3
2
 
4
3
  AllCops:
5
- TargetRubyVersion: 2.1
6
- Exclude:
7
- - '*.gemspec'
8
- - 'Gemfile'
4
+ NewCops: enable
5
+ TargetRubyVersion: 2.7
9
6
 
10
- Style/EmptyLinesAroundClassBody:
7
+ Layout/EmptyLinesAroundClassBody:
11
8
  Enabled: false
12
9
 
13
- Style/EmptyLinesAroundModuleBody:
10
+ Layout/EmptyLinesAroundModuleBody:
14
11
  Enabled: false
15
12
 
16
- Style/EmptyLinesAroundMethodBody:
13
+ Layout/EmptyLinesAroundMethodBody:
17
14
  Enabled: false
18
15
 
19
16
  Style/ClassCheck:
@@ -23,7 +20,7 @@ Style/ClassCheck:
23
20
  Style/StringLiterals:
24
21
  Enabled: false
25
22
 
26
- Style/FileName:
23
+ Naming/FileName:
27
24
  Enabled: false
28
25
 
29
26
  Style/RedundantException:
@@ -35,19 +32,11 @@ Style/SignalException:
35
32
  Style/BlockDelimiters:
36
33
  Enabled: false
37
34
 
38
- Style/CollectionMethods:
39
- PreferredMethods:
40
- detect: find
41
-
42
35
  # Github's PR width is 120 characters
43
- Metrics/LineLength:
36
+ Layout/LineLength:
44
37
  Max: 120
45
38
  AllowURI: true
46
39
 
47
- # Align with the style guide, we don't prefer anything
48
- Style/CollectionMethods:
49
- Enabled: false
50
-
51
40
  Metrics/AbcSize:
52
41
  Description: A calculated magnitude based on number of assignments, branches, and
53
42
  conditions.
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,284 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config --exclude-limit 250`
3
+ # on 2023-10-30 06:15:37 UTC using RuboCop version 1.57.2.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
12
+ # Include: **/*.gemfile, **/Gemfile, **/gems.rb
13
+ Bundler/OrderedGems:
14
+ Exclude:
15
+ - 'gemfiles/rails_7.1.gemfile'
16
+
17
+ # Offense count: 9
18
+ # Configuration parameters: EnforcedStyle, AllowedGems, Include.
19
+ # SupportedStyles: Gemfile, gems.rb, gemspec
20
+ # Include: **/*.gemspec, **/Gemfile, **/gems.rb
21
+ Gemspec/DevelopmentDependencies:
22
+ Exclude:
23
+ - 'ph_model.gemspec'
24
+
25
+ # Offense count: 6
26
+ # This cop supports safe autocorrection (--autocorrect).
27
+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
28
+ # Include: **/*.gemspec
29
+ Gemspec/OrderedDependencies:
30
+ Exclude:
31
+ - 'ph_model.gemspec'
32
+
33
+ # Offense count: 1
34
+ # This cop supports safe autocorrection (--autocorrect).
35
+ # Configuration parameters: Severity, Include.
36
+ # Include: **/*.gemspec
37
+ Gemspec/RequireMFA:
38
+ Exclude:
39
+ - 'ph_model.gemspec'
40
+
41
+ # Offense count: 1
42
+ # Configuration parameters: Severity, Include.
43
+ # Include: **/*.gemspec
44
+ Gemspec/RequiredRubyVersion:
45
+ Exclude:
46
+ - 'ph_model.gemspec'
47
+
48
+ # Offense count: 1
49
+ # This cop supports safe autocorrection (--autocorrect).
50
+ Layout/EmptyLineAfterGuardClause:
51
+ Exclude:
52
+ - 'lib/ph_model/concerns/attribute_nested_validation.rb'
53
+
54
+ # Offense count: 1
55
+ # This cop supports safe autocorrection (--autocorrect).
56
+ Layout/EmptyLineAfterMagicComment:
57
+ Exclude:
58
+ - 'lib/ph_model/version.rb'
59
+
60
+ # Offense count: 2
61
+ # This cop supports safe autocorrection (--autocorrect).
62
+ # Configuration parameters: EnforcedStyle.
63
+ # SupportedStyles: space, no_space
64
+ Layout/LineContinuationSpacing:
65
+ Exclude:
66
+ - 'spec/active_model/validations/collection_items_validator_spec.rb'
67
+
68
+ # Offense count: 1
69
+ # This cop supports safe autocorrection (--autocorrect).
70
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
71
+ # SupportedStyles: aligned, indented
72
+ Layout/LineEndStringConcatenationIndentation:
73
+ Exclude:
74
+ - 'spec/active_model/validations/collection_items_validator_spec.rb'
75
+
76
+ # Offense count: 1
77
+ # This cop supports safe autocorrection (--autocorrect).
78
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
79
+ # SupportedStyles: aligned, indented
80
+ Layout/MultilineOperationIndentation:
81
+ Exclude:
82
+ - 'lib/ph_model/concerns/attribute_nested_validation.rb'
83
+
84
+ # Offense count: 2
85
+ # This cop supports safe autocorrection (--autocorrect).
86
+ # Configuration parameters: EnforcedStyle.
87
+ # SupportedStyles: require_no_space, require_space
88
+ Layout/SpaceInLambdaLiteral:
89
+ Exclude:
90
+ - 'lib/active_model/validations/collection_items_validator/array_attribute_reader.rb'
91
+ - 'spec/active_model/validations/collection_items_validator/array_attribute_getter_spec.rb'
92
+
93
+ # Offense count: 1
94
+ # This cop supports safe autocorrection (--autocorrect).
95
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
96
+ Lint/UnusedBlockArgument:
97
+ Exclude:
98
+ - 'lib/ph_model.rb'
99
+
100
+ # Offense count: 1
101
+ # This cop supports safe autocorrection (--autocorrect).
102
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
103
+ Lint/UnusedMethodArgument:
104
+ Exclude:
105
+ - 'lib/ph_model/concerns/attribute_nested_validation.rb'
106
+
107
+ # Offense count: 1
108
+ # This cop supports safe autocorrection (--autocorrect).
109
+ # Configuration parameters: CheckForMethodsWithNoSideEffects.
110
+ Lint/Void:
111
+ Exclude:
112
+ - 'lib/ph_model.rb'
113
+
114
+ # Offense count: 3
115
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
116
+ # AllowedMethods: refine
117
+ Metrics/BlockLength:
118
+ Max: 61
119
+
120
+ # Offense count: 2
121
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
122
+ Metrics/CyclomaticComplexity:
123
+ Max: 9
124
+
125
+ # Offense count: 2
126
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
127
+ Metrics/MethodLength:
128
+ Max: 23
129
+
130
+ # Offense count: 1
131
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
132
+ Metrics/PerceivedComplexity:
133
+ Max: 11
134
+
135
+ # Offense count: 3
136
+ # This cop supports unsafe autocorrection (--autocorrect-all).
137
+ # Configuration parameters: EnforcedStyle.
138
+ # SupportedStyles: nested, compact
139
+ Style/ClassAndModuleChildren:
140
+ Exclude:
141
+ - 'lib/active_model/validations/collection_items_validator/array_attribute_getter.rb'
142
+ - 'lib/active_model/validations/collection_items_validator/array_attribute_reader.rb'
143
+ - 'lib/active_model/validations/collection_items_validator/inner_validator_builder.rb'
144
+
145
+ # Offense count: 5
146
+ # Configuration parameters: AllowedConstants.
147
+ Style/Documentation:
148
+ Exclude:
149
+ - 'spec/**/*'
150
+ - 'test/**/*'
151
+ - 'lib/ph_model.rb'
152
+ - 'lib/ph_model/concerns.rb'
153
+ - 'lib/ph_model/concerns/attribute_nested_validation.rb'
154
+ - 'lib/ph_model/concerns/attribute_of_array_type_initialization.rb'
155
+ - 'lib/ph_model/concerns/attribute_required_validation.rb'
156
+
157
+ # Offense count: 1
158
+ # This cop supports safe autocorrection (--autocorrect).
159
+ Style/Encoding:
160
+ Exclude:
161
+ - 'ph_model.gemspec'
162
+
163
+ # Offense count: 1
164
+ # This cop supports safe autocorrection (--autocorrect).
165
+ Style/ExpandPathArguments:
166
+ Exclude:
167
+ - 'ph_model.gemspec'
168
+
169
+ # Offense count: 1
170
+ # This cop supports safe autocorrection (--autocorrect).
171
+ Style/FileWrite:
172
+ Exclude:
173
+ - 'Rakefile'
174
+
175
+ # Offense count: 23
176
+ # This cop supports unsafe autocorrection (--autocorrect-all).
177
+ # Configuration parameters: EnforcedStyle.
178
+ # SupportedStyles: always, always_true, never
179
+ Style/FrozenStringLiteralComment:
180
+ Exclude:
181
+ - 'Gemfile'
182
+ - 'Rakefile'
183
+ - 'lib/active_model/validations/collection_items_validator.rb'
184
+ - 'lib/active_model/validations/collection_items_validator/array_attribute_getter.rb'
185
+ - 'lib/active_model/validations/collection_items_validator/array_attribute_reader.rb'
186
+ - 'lib/active_model/validations/collection_items_validator/inner_validator_builder.rb'
187
+ - 'lib/active_model/validations/type_validator.rb'
188
+ - 'lib/ph_model.rb'
189
+ - 'lib/ph_model/concerns.rb'
190
+ - 'lib/ph_model/concerns/attribute_nested_validation.rb'
191
+ - 'lib/ph_model/concerns/attribute_of_array_type_initialization.rb'
192
+ - 'lib/ph_model/concerns/attribute_required_validation.rb'
193
+ - 'lib/ph_model/concerns/attribute_type_validation.rb'
194
+ - 'lib/ph_model/concerns/initialize_callback.rb'
195
+ - 'lib/ph_model/concerns/validated_factory.rb'
196
+ - 'lib/ph_model/validation_failed.rb'
197
+ - 'ph_model.gemspec'
198
+ - 'spec/active_model/validations/collection_items_validator/array_attribute_getter_spec.rb'
199
+ - 'spec/active_model/validations/collection_items_validator/inner_validator_builder_spec.rb'
200
+ - 'spec/active_model/validations/collection_items_validator_spec.rb'
201
+ - 'spec/active_model/validations/type_validator_spec.rb'
202
+ - 'spec/model_spec.rb'
203
+ - 'spec/spec_helper.rb'
204
+
205
+ # Offense count: 1
206
+ # This cop supports safe autocorrection (--autocorrect).
207
+ # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
208
+ Style/GuardClause:
209
+ Exclude:
210
+ - 'lib/active_model/validations/type_validator.rb'
211
+
212
+ # Offense count: 1
213
+ # This cop supports safe autocorrection (--autocorrect).
214
+ # Configuration parameters: AllowIfModifier.
215
+ Style/IfInsideElse:
216
+ Exclude:
217
+ - 'lib/ph_model/concerns/attribute_type_validation.rb'
218
+
219
+ # Offense count: 2
220
+ # This cop supports safe autocorrection (--autocorrect).
221
+ Style/IfUnlessModifier:
222
+ Exclude:
223
+ - 'lib/ph_model/concerns/attribute_required_validation.rb'
224
+ - 'lib/ph_model/concerns/validated_factory.rb'
225
+
226
+ # Offense count: 1
227
+ # This cop supports safe autocorrection (--autocorrect).
228
+ Style/MultilineIfModifier:
229
+ Exclude:
230
+ - 'lib/ph_model.rb'
231
+
232
+ # Offense count: 1
233
+ # This cop supports safe autocorrection (--autocorrect).
234
+ # Configuration parameters: PreferredDelimiters.
235
+ Style/PercentLiteralDelimiters:
236
+ Exclude:
237
+ - 'Rakefile'
238
+
239
+ # Offense count: 1
240
+ # This cop supports safe autocorrection (--autocorrect).
241
+ # Configuration parameters: .
242
+ # SupportedStyles: same_as_string_literals, single_quotes, double_quotes
243
+ Style/QuotedSymbols:
244
+ EnforcedStyle: double_quotes
245
+
246
+ # Offense count: 1
247
+ # This cop supports safe autocorrection (--autocorrect).
248
+ Style/RedundantFreeze:
249
+ Exclude:
250
+ - 'lib/ph_model/version.rb'
251
+
252
+ # Offense count: 2
253
+ # This cop supports safe autocorrection (--autocorrect).
254
+ Style/RedundantSelf:
255
+ Exclude:
256
+ - 'lib/ph_model.rb'
257
+
258
+ # Offense count: 1
259
+ # This cop supports unsafe autocorrection (--autocorrect-all).
260
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
261
+ # AllowedMethods: present?, blank?, presence, try, try!
262
+ Style/SafeNavigation:
263
+ Exclude:
264
+ - 'lib/ph_model.rb'
265
+
266
+ # Offense count: 1
267
+ # This cop supports safe autocorrection (--autocorrect).
268
+ # Configuration parameters: AllowModifier.
269
+ Style/SoleNestedConditional:
270
+ Exclude:
271
+ - 'lib/ph_model/concerns/attribute_of_array_type_initialization.rb'
272
+
273
+ # Offense count: 2
274
+ # This cop supports safe autocorrection (--autocorrect).
275
+ Style/StderrPuts:
276
+ Exclude:
277
+ - 'Rakefile'
278
+
279
+ # Offense count: 1
280
+ # This cop supports safe autocorrection (--autocorrect).
281
+ # Configuration parameters: MinSize.
282
+ # SupportedStyles: percent, brackets
283
+ Style/SymbolArray:
284
+ EnforcedStyle: brackets
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.0.7"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.1.7"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.2.6"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 6.0.4"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "minitest"
6
+ gem "rails", "~> 6.1.4"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 7.0.2"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 7.1.1"
6
+ gem "active_attr", git: "https://github.com/mathieujobin/active_attr", branch: "rails-7.1-support"
7
+
8
+ gemspec path: "../"
@@ -14,7 +14,7 @@ module ActiveModel
14
14
  end
15
15
 
16
16
  def build
17
- validator_class.new inner_options.merge(attributes: [:base])
17
+ validator_class.new(**inner_options.merge(attributes: [:base]))
18
18
  end
19
19
 
20
20
  private
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module PhModel
3
- VERSION = '1.1.3'.freeze
3
+ VERSION = '1.2.0'.freeze
4
4
  end
data/lib/ph_model.rb CHANGED
@@ -40,8 +40,8 @@ module PhModel
40
40
  end
41
41
 
42
42
  def inspect
43
- attr_info = self.class.attributes.map { |attr_name, info| "#{attr_name}: #{self.send(attr_name).inspect}" }.join(", ")
44
- "#<#{self.model_name} #{attr_info}>"
43
+ attr_info = self.class.attributes.map { |attr_name, info| "#{attr_name}: #{self.send(attr_name).inspect}" }
44
+ "#<#{self.model_name} #{attr_info.join(', ')}>"
45
45
  end
46
46
 
47
47
  # Monkey patch #assign_attributes inside ActiveAttr::MassAssignment
data/ph_model.gemspec CHANGED
@@ -18,19 +18,19 @@ Gem::Specification.new do |gem|
18
18
  gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
19
19
  gem.require_paths = ['lib']
20
20
 
21
- gem.add_runtime_dependency 'activesupport', '> 3.2'
22
- gem.add_runtime_dependency 'activemodel', '> 3.2'
23
- gem.add_runtime_dependency 'active_attr', '~> 0.8'
21
+ gem.add_runtime_dependency 'activesupport', '> 5.0'
22
+ gem.add_runtime_dependency 'activemodel', '> 5.0'
23
+ gem.add_runtime_dependency 'active_attr', '~> 0.15' # 0.16 for rails 7.1
24
24
 
25
25
  gem.add_development_dependency 'faraday'
26
- gem.add_development_dependency 'bundler', '~> 1.0'
27
- gem.add_development_dependency 'rake', '~> 10.0'
26
+ gem.add_development_dependency 'bundler', '> 2.2'
27
+ gem.add_development_dependency 'rake', '> 10.0'
28
28
  gem.add_development_dependency 'rspec', '~> 3.0'
29
29
  gem.add_development_dependency 'rubygems-tasks', '~> 0.2'
30
30
  gem.add_development_dependency 'pry', '> 0'
31
31
  gem.add_development_dependency 'github_changelog_generator', '~> 1.6'
32
32
 
33
33
  # static analysis gems
34
- gem.add_development_dependency 'rubocop', '~> 0.36.0'
35
- gem.add_development_dependency 'reek', '~> 3.10'
34
+ gem.add_development_dependency 'rubocop', '~> 1.33'
35
+ gem.add_development_dependency 'reek', '> 3.10'
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ph_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Banasik
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-23 00:00:00.000000000 Z
11
+ date: 2023-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - ">"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
19
+ version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.2'
26
+ version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activemodel
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.2'
33
+ version: '5.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">"
39
39
  - !ruby/object:Gem::Version
40
- version: '3.2'
40
+ version: '5.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: active_attr
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.8'
47
+ version: '0.15'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.8'
54
+ version: '0.15'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: faraday
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -70,28 +70,28 @@ dependencies:
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.0'
75
+ version: '2.2'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.0'
82
+ version: '2.2'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '10.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '10.0'
97
97
  - !ruby/object:Gem::Dependency
@@ -156,26 +156,26 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.36.0
159
+ version: '1.33'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.36.0
166
+ version: '1.33'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: reek
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - "~>"
171
+ - - ">"
172
172
  - !ruby/object:Gem::Version
173
173
  version: '3.10'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ">"
179
179
  - !ruby/object:Gem::Version
180
180
  version: '3.10'
181
181
  description: Because why do less if you can do more with non db models
@@ -185,10 +185,11 @@ extensions: []
185
185
  extra_rdoc_files: []
186
186
  files:
187
187
  - ".codeclimate.yml"
188
+ - ".github/workflows/ci.yml"
188
189
  - ".gitignore"
189
190
  - ".reek"
190
- - ".rubocop.hound.yml"
191
191
  - ".rubocop.yml"
192
+ - ".rubocop_todo.yml"
192
193
  - ".travis.yml"
193
194
  - CHANGELOG.md
194
195
  - DEPLOYING.md
@@ -196,6 +197,13 @@ files:
196
197
  - LICENSE.txt
197
198
  - README.md
198
199
  - Rakefile
200
+ - gemfiles/rails_5.0.gemfile
201
+ - gemfiles/rails_5.1.gemfile
202
+ - gemfiles/rails_5.2.gemfile
203
+ - gemfiles/rails_6.0.gemfile
204
+ - gemfiles/rails_6.1.gemfile
205
+ - gemfiles/rails_7.0.gemfile
206
+ - gemfiles/rails_7.1.gemfile
199
207
  - lib/active_model/validations/collection_items_validator.rb
200
208
  - lib/active_model/validations/collection_items_validator/array_attribute_getter.rb
201
209
  - lib/active_model/validations/collection_items_validator/array_attribute_reader.rb
@@ -216,7 +224,7 @@ homepage: https://github.com/payrollhero/ph_model
216
224
  licenses:
217
225
  - MIT
218
226
  metadata: {}
219
- post_install_message:
227
+ post_install_message:
220
228
  rdoc_options: []
221
229
  require_paths:
222
230
  - lib
@@ -231,8 +239,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
239
  - !ruby/object:Gem::Version
232
240
  version: '0'
233
241
  requirements: []
234
- rubygems_version: 3.2.32
235
- signing_key:
242
+ rubygems_version: 3.4.18
243
+ signing_key:
236
244
  specification_version: 4
237
245
  summary: ph-model -- active_model, active_attr brought together at last
238
246
  test_files: []
data/.rubocop.hound.yml DELETED
@@ -1,261 +0,0 @@
1
- # this is the default from hound's github, do not modify
2
- AllCops:
3
- Exclude:
4
- - db/schema.rb
5
-
6
- AccessorMethodName:
7
- Enabled: false
8
-
9
- ActionFilter:
10
- Enabled: false
11
-
12
- Alias:
13
- Enabled: false
14
-
15
- ArrayJoin:
16
- Enabled: false
17
-
18
- AsciiComments:
19
- Enabled: false
20
-
21
- AsciiIdentifiers:
22
- Enabled: false
23
-
24
- Attr:
25
- Enabled: false
26
-
27
- BlockNesting:
28
- Enabled: false
29
-
30
- CaseEquality:
31
- Enabled: false
32
-
33
- CharacterLiteral:
34
- Enabled: false
35
-
36
- ClassAndModuleChildren:
37
- Enabled: false
38
-
39
- ClassLength:
40
- Enabled: false
41
-
42
- ClassVars:
43
- Enabled: false
44
-
45
- CollectionMethods:
46
- PreferredMethods:
47
- find: detect
48
- reduce: inject
49
- collect: map
50
- find_all: select
51
-
52
- ColonMethodCall:
53
- Enabled: false
54
-
55
- CommentAnnotation:
56
- Enabled: false
57
-
58
- CyclomaticComplexity:
59
- Enabled: false
60
-
61
- Delegate:
62
- Enabled: false
63
-
64
- DeprecatedHashMethods:
65
- Enabled: false
66
-
67
- Documentation:
68
- Enabled: false
69
-
70
- DotPosition:
71
- EnforcedStyle: trailing
72
-
73
- DoubleNegation:
74
- Enabled: false
75
-
76
- EachWithObject:
77
- Enabled: false
78
-
79
- EmptyLiteral:
80
- Enabled: false
81
-
82
- Encoding:
83
- Enabled: false
84
-
85
- EvenOdd:
86
- Enabled: false
87
-
88
- FileName:
89
- Enabled: false
90
-
91
- FlipFlop:
92
- Enabled: false
93
-
94
- FormatString:
95
- Enabled: false
96
-
97
- GlobalVars:
98
- Enabled: false
99
-
100
- GuardClause:
101
- Enabled: false
102
-
103
- IfUnlessModifier:
104
- Enabled: false
105
-
106
- IfWithSemicolon:
107
- Enabled: false
108
-
109
- InlineComment:
110
- Enabled: false
111
-
112
- Lambda:
113
- Enabled: false
114
-
115
- LambdaCall:
116
- Enabled: false
117
-
118
- LineEndConcatenation:
119
- Enabled: false
120
-
121
- LineLength:
122
- Max: 120
123
- AllowURI: true
124
-
125
- MethodLength:
126
- Enabled: false
127
-
128
- ModuleFunction:
129
- Enabled: false
130
-
131
- NegatedIf:
132
- Enabled: false
133
-
134
- NegatedWhile:
135
- Enabled: false
136
-
137
- Next:
138
- Enabled: false
139
-
140
- NilComparison:
141
- Enabled: false
142
-
143
- Not:
144
- Enabled: false
145
-
146
- NumericLiterals:
147
- Enabled: false
148
-
149
- OneLineConditional:
150
- Enabled: false
151
-
152
- OpMethod:
153
- Enabled: false
154
-
155
- ParameterLists:
156
- Enabled: false
157
-
158
- PercentLiteralDelimiters:
159
- Enabled: false
160
-
161
- PerlBackrefs:
162
- Enabled: false
163
-
164
- PredicateName:
165
- NamePrefixBlacklist:
166
- - is_
167
-
168
- Proc:
169
- Enabled: false
170
-
171
- RaiseArgs:
172
- Enabled: false
173
-
174
- RegexpLiteral:
175
- Enabled: false
176
-
177
- SelfAssignment:
178
- Enabled: false
179
-
180
- SingleLineBlockParams:
181
- Enabled: false
182
-
183
- SingleLineMethods:
184
- Enabled: false
185
-
186
- SignalException:
187
- Enabled: false
188
-
189
- SpecialGlobalVars:
190
- Enabled: false
191
-
192
- StringLiterals:
193
- EnforcedStyle: double_quotes
194
-
195
- VariableInterpolation:
196
- Enabled: false
197
-
198
- TrailingComma:
199
- Enabled: false
200
-
201
- TrivialAccessors:
202
- Enabled: false
203
-
204
- VariableInterpolation:
205
- Enabled: false
206
-
207
- WhenThen:
208
- Enabled: false
209
-
210
- WhileUntilModifier:
211
- Enabled: false
212
-
213
- WordArray:
214
- Enabled: false
215
-
216
- # Lint
217
-
218
- AmbiguousOperator:
219
- Enabled: false
220
-
221
- AmbiguousRegexpLiteral:
222
- Enabled: false
223
-
224
- AssignmentInCondition:
225
- Enabled: false
226
-
227
- ConditionPosition:
228
- Enabled: false
229
-
230
- DeprecatedClassMethods:
231
- Enabled: false
232
-
233
- ElseLayout:
234
- Enabled: false
235
-
236
- HandleExceptions:
237
- Enabled: false
238
-
239
- InvalidCharacterLiteral:
240
- Enabled: false
241
-
242
- LiteralInCondition:
243
- Enabled: false
244
-
245
- LiteralInInterpolation:
246
- Enabled: false
247
-
248
- Loop:
249
- Enabled: false
250
-
251
- ParenthesesAsGroupedExpression:
252
- Enabled: false
253
-
254
- RequireParentheses:
255
- Enabled: false
256
-
257
- UnderscorePrefixedVariableName:
258
- Enabled: false
259
-
260
- Void:
261
- Enabled: false