formalism-model_forms 0.10.0 → 0.11.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: 7043a09be4032b6c1feca6472b7db6c38bf8dc06da2410e123a9b2315883744c
4
- data.tar.gz: 5fbd36f14a355c7bc75e0e5f8294a0baac921b98c2049b6f06c090fc7e0a6f6d
3
+ metadata.gz: 6b7860771a00e051c7daf97a0d91da14bde8d3d520c0b84ff51c999d5b9ff575
4
+ data.tar.gz: 6cb49135331a19c1edbba42a375b535b4ad716f4887418a39706cfaeff1ac5c9
5
5
  SHA512:
6
- metadata.gz: 3f9a767cab77da4ca77ac9d4944dfa192056d19979e9180094fa16e6490e0b139e8acdfd9ea40d1c9c48917d34c0ae200a88ae15fee89a4fa25a396971fc8af8
7
- data.tar.gz: 330086dcd18e512fed5f940fb894958d651a7574099ca1c25ee6292d80b6683c6cd59c22e501bbb551b4805519ba7184135e19f16c22e5900b98019a834ee840
6
+ metadata.gz: c0a1f931da67f0ca5987a05004370f633ef8550b8f3740b8fd3572c632ee578249f744f8790b228572400076eca3760377854b5ae0abefc0dc7db8b6c0d01d93
7
+ data.tar.gz: c32faec05e352381eb2b1dcc82b0453b442d038893bb1422f81a6f8e91e8c4476495e259e3b236845bd346665de2408619c0e57768f55c782c7b37a2f2974ef6
data/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.11.0 (2025-01-06)
6
+
7
+ * Drop Ruby 2.6 and 2.7 support.
8
+ * Add Ruby 3.2, 3.3 and 3.4 support.
9
+ * Lock Ruby version more strict.
10
+ There can be breaking changes in minor updates.
11
+ * Update `formalism` to a new version with fix for `Find` form.
12
+ * Update development dependencies.
13
+ * Resolve new RuboCop offenses.
14
+ * Move development dependencies from `gemspec` into `Gemfile`.
15
+
16
+ ## 0.10.1 (2022-09-24)
17
+
18
+ * Allow `gorilla_patch` version 5.
19
+ * Improve CI.
20
+
5
21
  ## 0.10.0 (2022-09-24)
6
22
 
7
23
  * Update `formalism` to a new version.
@@ -11,7 +11,7 @@ module Formalism
11
11
 
12
12
  def initialize(params_or_instance = {})
13
13
  if params_or_instance.is_a?(Hash)
14
- super(params_or_instance)
14
+ super
15
15
  else
16
16
  @initialized_with_instance = true
17
17
  self.instance = params_or_instance
@@ -27,10 +27,10 @@ module Formalism
27
27
  if pf_or_instance.is_a?(model)
28
28
  self.instance = pf_or_instance
29
29
  else
30
- public_send "#{primary_field_name}=", pf_or_instance
30
+ public_send :"#{primary_field_name}=", pf_or_instance
31
31
  end
32
32
 
33
- super params || {}
33
+ super(params || {})
34
34
  end
35
35
 
36
36
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Formalism
4
4
  module ModelForms
5
- VERSION = '0.10.0'
5
+ VERSION = '0.11.0'
6
6
  end
7
7
  end
@@ -3,7 +3,7 @@
3
3
  require 'formalism'
4
4
  require 'module_methods'
5
5
 
6
- Dir["#{__dir__}/model_forms/**/*.rb"].sort.each { |file| require file }
6
+ Dir["#{__dir__}/model_forms/**/*.rb"].each { |file| require file }
7
7
 
8
8
  module Formalism
9
9
  ## Module for model forms
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formalism-model_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  - Ivan Tyurin
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2022-09-23 00:00:00.000000000 Z
11
+ date: 2025-01-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: alt_memery
@@ -45,28 +44,34 @@ dependencies:
45
44
  requirements:
46
45
  - - "~>"
47
46
  - !ruby/object:Gem::Version
48
- version: 0.5.0
47
+ version: 0.6.0
49
48
  type: :runtime
50
49
  prerelease: false
51
50
  version_requirements: !ruby/object:Gem::Requirement
52
51
  requirements:
53
52
  - - "~>"
54
53
  - !ruby/object:Gem::Version
55
- version: 0.5.0
54
+ version: 0.6.0
56
55
  - !ruby/object:Gem::Dependency
57
56
  name: gorilla_patch
58
57
  requirement: !ruby/object:Gem::Requirement
59
58
  requirements:
60
- - - "~>"
59
+ - - ">="
61
60
  - !ruby/object:Gem::Version
62
61
  version: '4.0'
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: '6'
63
65
  type: :runtime
64
66
  prerelease: false
65
67
  version_requirements: !ruby/object:Gem::Requirement
66
68
  requirements:
67
- - - "~>"
69
+ - - ">="
68
70
  - !ruby/object:Gem::Version
69
71
  version: '4.0'
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '6'
70
75
  - !ruby/object:Gem::Dependency
71
76
  name: module_methods
72
77
  requirement: !ruby/object:Gem::Requirement
@@ -95,160 +100,6 @@ dependencies:
95
100
  - - "~>"
96
101
  - !ruby/object:Gem::Version
97
102
  version: '5.0'
98
- - !ruby/object:Gem::Dependency
99
- name: pry-byebug
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - "~>"
103
- - !ruby/object:Gem::Version
104
- version: '3.9'
105
- type: :development
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - "~>"
110
- - !ruby/object:Gem::Version
111
- version: '3.9'
112
- - !ruby/object:Gem::Dependency
113
- name: bundler
114
- requirement: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - "~>"
117
- - !ruby/object:Gem::Version
118
- version: '2.0'
119
- type: :development
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - "~>"
124
- - !ruby/object:Gem::Version
125
- version: '2.0'
126
- - !ruby/object:Gem::Dependency
127
- name: gem_toys
128
- requirement: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - "~>"
131
- - !ruby/object:Gem::Version
132
- version: 0.12.1
133
- type: :development
134
- prerelease: false
135
- version_requirements: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: 0.12.1
140
- - !ruby/object:Gem::Dependency
141
- name: toys
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - "~>"
145
- - !ruby/object:Gem::Version
146
- version: 0.13.0
147
- type: :development
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - "~>"
152
- - !ruby/object:Gem::Version
153
- version: 0.13.0
154
- - !ruby/object:Gem::Dependency
155
- name: codecov
156
- requirement: !ruby/object:Gem::Requirement
157
- requirements:
158
- - - "~>"
159
- - !ruby/object:Gem::Version
160
- version: 0.6.0
161
- type: :development
162
- prerelease: false
163
- version_requirements: !ruby/object:Gem::Requirement
164
- requirements:
165
- - - "~>"
166
- - !ruby/object:Gem::Version
167
- version: 0.6.0
168
- - !ruby/object:Gem::Dependency
169
- name: rspec
170
- requirement: !ruby/object:Gem::Requirement
171
- requirements:
172
- - - "~>"
173
- - !ruby/object:Gem::Version
174
- version: '3.9'
175
- type: :development
176
- prerelease: false
177
- version_requirements: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - "~>"
180
- - !ruby/object:Gem::Version
181
- version: '3.9'
182
- - !ruby/object:Gem::Dependency
183
- name: simplecov
184
- requirement: !ruby/object:Gem::Requirement
185
- requirements:
186
- - - "~>"
187
- - !ruby/object:Gem::Version
188
- version: 0.21.0
189
- type: :development
190
- prerelease: false
191
- version_requirements: !ruby/object:Gem::Requirement
192
- requirements:
193
- - - "~>"
194
- - !ruby/object:Gem::Version
195
- version: 0.21.0
196
- - !ruby/object:Gem::Dependency
197
- name: simplecov-cobertura
198
- requirement: !ruby/object:Gem::Requirement
199
- requirements:
200
- - - "~>"
201
- - !ruby/object:Gem::Version
202
- version: '2.1'
203
- type: :development
204
- prerelease: false
205
- version_requirements: !ruby/object:Gem::Requirement
206
- requirements:
207
- - - "~>"
208
- - !ruby/object:Gem::Version
209
- version: '2.1'
210
- - !ruby/object:Gem::Dependency
211
- name: rubocop
212
- requirement: !ruby/object:Gem::Requirement
213
- requirements:
214
- - - "~>"
215
- - !ruby/object:Gem::Version
216
- version: 1.36.0
217
- type: :development
218
- prerelease: false
219
- version_requirements: !ruby/object:Gem::Requirement
220
- requirements:
221
- - - "~>"
222
- - !ruby/object:Gem::Version
223
- version: 1.36.0
224
- - !ruby/object:Gem::Dependency
225
- name: rubocop-performance
226
- requirement: !ruby/object:Gem::Requirement
227
- requirements:
228
- - - "~>"
229
- - !ruby/object:Gem::Version
230
- version: '1.0'
231
- type: :development
232
- prerelease: false
233
- version_requirements: !ruby/object:Gem::Requirement
234
- requirements:
235
- - - "~>"
236
- - !ruby/object:Gem::Version
237
- version: '1.0'
238
- - !ruby/object:Gem::Dependency
239
- name: rubocop-rspec
240
- requirement: !ruby/object:Gem::Requirement
241
- requirements:
242
- - - "~>"
243
- - !ruby/object:Gem::Version
244
- version: '2.0'
245
- type: :development
246
- prerelease: false
247
- version_requirements: !ruby/object:Gem::Requirement
248
- requirements:
249
- - - "~>"
250
- - !ruby/object:Gem::Version
251
- version: '2.0'
252
103
  description: 'Standard Formalism forms for Sequel Models, such like create, find,
253
104
  delete, etc.
254
105
 
@@ -281,7 +132,6 @@ metadata:
281
132
  homepage_uri: https://github.com/AlexWayfer/formalism-model_forms
282
133
  changelog_uri: https://github.com/AlexWayfer/formalism-model_forms/blob/main/CHANGELOG.md
283
134
  rubygems_mfa_required: 'true'
284
- post_install_message:
285
135
  rdoc_options: []
286
136
  require_paths:
287
137
  - lib
@@ -289,18 +139,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
289
139
  requirements:
290
140
  - - ">="
291
141
  - !ruby/object:Gem::Version
292
- version: '2.6'
142
+ version: '3.0'
293
143
  - - "<"
294
144
  - !ruby/object:Gem::Version
295
- version: '4'
145
+ version: '3.5'
296
146
  required_rubygems_version: !ruby/object:Gem::Requirement
297
147
  requirements:
298
148
  - - ">="
299
149
  - !ruby/object:Gem::Version
300
150
  version: '0'
301
151
  requirements: []
302
- rubygems_version: 3.3.7
303
- signing_key:
152
+ rubygems_version: 3.6.2
304
153
  specification_version: 4
305
154
  summary: Standard Formalism forms for Sequel Models
306
155
  test_files: []