yaaf 2.1.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/yaaf/form.rb +3 -1
  3. data/lib/yaaf/version.rb +1 -1
  4. metadata +15 -24
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edacd5be520dbceecc7d62c627a384750ad5bb624c5dafb07ea97bf61f97cf82
4
- data.tar.gz: 6b929d37737f2367d9a2076bf696426b542020fc74de2197003f8285a9409b20
3
+ metadata.gz: a08134d9d3b15971a99db839a00273b53f897bde92028f6d46bd7d0fc307f708
4
+ data.tar.gz: 68dff51038255d989e78a520cc5ab4f68f7ec58bcdfbd79a33e60f8e93495f03
5
5
  SHA512:
6
- metadata.gz: cf2757197732d9955a3ad943e99b22cea8603fe6f7193f57aa15aa3eeeac83acd2fe0be2889e0e80c5dd23d043b32194566141ec261d2ce360e098c671932176
7
- data.tar.gz: 5b91ac0986535bd34e3a7b7cfe78326683b1ff345ae866c09ba1da1144385a6246737b2ca09612cdeabbed82ccba5448bebfd844f8219e550799971e9219bbfe
6
+ metadata.gz: '02596873efdbc3583db3db80735556beded04f474acad21c3fd11b13533ef974ffe377aac5c0471fea20b7873dfa549be4f5d760eaeaeb9d7f0b8d2185966393'
7
+ data.tar.gz: 9fe3d61482b252e35c0a88c867764fc4971da5b926976762bf55c166caedec28e7b047a755767afdd58e2d7ca10bee99c955ac6394bf54f5aaabd1817c8e0c97
data/lib/yaaf/form.rb CHANGED
@@ -52,7 +52,9 @@ module YAAF
52
52
  def save_models(options)
53
53
  options.merge!(validate: false)
54
54
 
55
- models.map { |model| model.save!(**options) }
55
+ models.map do |model|
56
+ model.marked_for_destruction? ? model.destroy! : model.save!(**options)
57
+ end
56
58
  end
57
59
 
58
60
  def validate_models
data/lib/yaaf/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YAAF
4
- VERSION = '2.1.0'
4
+ VERSION = '3.0.0'
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Manuel Ramallo
8
8
  - Santiago Bartesaghi
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-09-27 00:00:00.000000000 Z
12
+ date: 2024-07-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -18,9 +18,6 @@ dependencies:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '5.2'
21
- - - "<"
22
- - !ruby/object:Gem::Version
23
- version: '7'
24
21
  type: :runtime
25
22
  prerelease: false
26
23
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,9 +25,6 @@ dependencies:
28
25
  - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: '5.2'
31
- - - "<"
32
- - !ruby/object:Gem::Version
33
- version: '7'
34
28
  - !ruby/object:Gem::Dependency
35
29
  name: activerecord
36
30
  requirement: !ruby/object:Gem::Requirement
@@ -38,9 +32,6 @@ dependencies:
38
32
  - - ">="
39
33
  - !ruby/object:Gem::Version
40
34
  version: '5.2'
41
- - - "<"
42
- - !ruby/object:Gem::Version
43
- version: '7'
44
35
  type: :runtime
45
36
  prerelease: false
46
37
  version_requirements: !ruby/object:Gem::Requirement
@@ -48,23 +39,20 @@ dependencies:
48
39
  - - ">="
49
40
  - !ruby/object:Gem::Version
50
41
  version: '5.2'
51
- - - "<"
52
- - !ruby/object:Gem::Version
53
- version: '7'
54
42
  - !ruby/object:Gem::Dependency
55
43
  name: database_cleaner-active_record
56
44
  requirement: !ruby/object:Gem::Requirement
57
45
  requirements:
58
46
  - - "~>"
59
47
  - !ruby/object:Gem::Version
60
- version: 1.8.0
48
+ version: 2.1.0
61
49
  type: :development
62
50
  prerelease: false
63
51
  version_requirements: !ruby/object:Gem::Requirement
64
52
  requirements:
65
53
  - - "~>"
66
54
  - !ruby/object:Gem::Version
67
- version: 1.8.0
55
+ version: 2.1.0
68
56
  - !ruby/object:Gem::Dependency
69
57
  name: rake
70
58
  requirement: !ruby/object:Gem::Requirement
@@ -141,17 +129,18 @@ dependencies:
141
129
  requirements:
142
130
  - - "~>"
143
131
  - !ruby/object:Gem::Version
144
- version: 1.4.2
132
+ version: 1.5.0
145
133
  type: :development
146
134
  prerelease: false
147
135
  version_requirements: !ruby/object:Gem::Requirement
148
136
  requirements:
149
137
  - - "~>"
150
138
  - !ruby/object:Gem::Version
151
- version: 1.4.2
152
- description:
139
+ version: 1.5.0
140
+ description:
153
141
  email:
154
- - juan.ramallo@rootstrap.com
142
+ - juanmanuelramallo@hey.com
143
+ - santib@hey.com
155
144
  executables: []
156
145
  extensions: []
157
146
  extra_rdoc_files: []
@@ -167,7 +156,9 @@ licenses:
167
156
  metadata:
168
157
  homepage_uri: https://github.com/rootstrap/yaaf
169
158
  source_code_uri: https://github.com/rootstrap/yaaf
170
- post_install_message:
159
+ bug_tracker_uri: https://github.com/rootstrap/yaaf/issues
160
+ changelog_uri: https://github.com/rootstrap/yaaf/releases
161
+ post_install_message:
171
162
  rdoc_options: []
172
163
  require_paths:
173
164
  - lib
@@ -182,8 +173,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
173
  - !ruby/object:Gem::Version
183
174
  version: '0'
184
175
  requirements: []
185
- rubygems_version: 3.1.6
186
- signing_key:
176
+ rubygems_version: 3.0.3.1
177
+ signing_key:
187
178
  specification_version: 4
188
179
  summary: Easing the form object pattern in Rails applications.
189
180
  test_files: []