anchormodel 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +1 -1
- data/README.md +114 -3
- data/VERSION +1 -1
- data/anchormodel.gemspec +5 -5
- data/doc/Anchormodel/ActiveModelTypeValueSingle.html +697 -0
- data/doc/Anchormodel/Attribute.html +109 -9
- data/doc/Anchormodel/ModelMixin.html +75 -3
- data/doc/Anchormodel/SimpleFormInputs/Helpers/AnchormodelInputsCommon.html +269 -0
- data/doc/Anchormodel/SimpleFormInputs/Helpers.html +124 -0
- data/doc/Anchormodel/SimpleFormInputs.html +124 -0
- data/doc/Anchormodel/Util.html +612 -0
- data/doc/Anchormodel/Version.html +3 -3
- data/doc/Anchormodel.html +99 -34
- data/doc/AnchormodelGenerator.html +201 -0
- data/doc/AnchormodelInput.html +140 -0
- data/doc/AnchormodelRadioButtonsInput.html +140 -0
- data/doc/_index.html +63 -4
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +109 -6
- data/doc/frames.html +5 -10
- data/doc/index.html +109 -6
- data/doc/method_list.html +70 -6
- data/doc/top-level-namespace.html +4 -4
- data/lib/anchormodel/active_model_type_value_multi.rb +31 -0
- data/lib/anchormodel/active_model_type_value_single.rb +4 -2
- data/lib/anchormodel/attribute.rb +7 -1
- data/lib/anchormodel/model_mixin.rb +7 -0
- data/lib/anchormodel/simple_form_inputs/anchormodel_check_boxes_input.rb +23 -0
- data/lib/anchormodel/simple_form_inputs/anchormodel_input.rb +21 -0
- data/lib/anchormodel/simple_form_inputs/anchormodel_radio_buttons_input.rb +23 -0
- data/lib/anchormodel/simple_form_inputs/helpers/anchormodel_inputs_common.rb +54 -0
- data/lib/anchormodel/util.rb +57 -7
- data/lib/anchormodel.rb +10 -0
- data/test/active_record_model/user_test.rb +73 -9
- data/test/dummy/app/anchormodels/animal.rb +6 -0
- data/test/dummy/app/models/user.rb +1 -0
- data/test/dummy/db/migrate/20240425182000_add_animals_to_users.rb +5 -0
- data/test/dummy/db/schema.rb +2 -1
- metadata +18 -4
- data/pkg/anchormodel-0.1.3.gem +0 -0
data/test/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema[7.0].define(version:
|
13
|
+
ActiveRecord::Schema[7.0].define(version: 20_240_425_182_000) do
|
14
14
|
create_table 'users', force: :cascade do |t|
|
15
15
|
t.string 'role'
|
16
16
|
t.string 'locale'
|
@@ -18,5 +18,6 @@ ActiveRecord::Schema[7.0].define(version: 20_230_124_084_241) do
|
|
18
18
|
t.datetime 'updated_at', null: false
|
19
19
|
t.string 'secondary_role'
|
20
20
|
t.string 'preferred_locale', default: 'en', null: false
|
21
|
+
t.string 'animals', default: '', null: false
|
21
22
|
end
|
22
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anchormodel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Kalbermatter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -170,9 +170,17 @@ files:
|
|
170
170
|
- bin/rails
|
171
171
|
- doc/Anchormodel.html
|
172
172
|
- doc/Anchormodel/ActiveModelTypeValue.html
|
173
|
+
- doc/Anchormodel/ActiveModelTypeValueSingle.html
|
173
174
|
- doc/Anchormodel/Attribute.html
|
174
175
|
- doc/Anchormodel/ModelMixin.html
|
176
|
+
- doc/Anchormodel/SimpleFormInputs.html
|
177
|
+
- doc/Anchormodel/SimpleFormInputs/Helpers.html
|
178
|
+
- doc/Anchormodel/SimpleFormInputs/Helpers/AnchormodelInputsCommon.html
|
179
|
+
- doc/Anchormodel/Util.html
|
175
180
|
- doc/Anchormodel/Version.html
|
181
|
+
- doc/AnchormodelGenerator.html
|
182
|
+
- doc/AnchormodelInput.html
|
183
|
+
- doc/AnchormodelRadioButtonsInput.html
|
176
184
|
- doc/_index.html
|
177
185
|
- doc/class_list.html
|
178
186
|
- doc/css/common.css
|
@@ -188,19 +196,24 @@ files:
|
|
188
196
|
- doc/method_list.html
|
189
197
|
- doc/top-level-namespace.html
|
190
198
|
- lib/anchormodel.rb
|
199
|
+
- lib/anchormodel/active_model_type_value_multi.rb
|
191
200
|
- lib/anchormodel/active_model_type_value_single.rb
|
192
201
|
- lib/anchormodel/attribute.rb
|
193
202
|
- lib/anchormodel/model_mixin.rb
|
203
|
+
- lib/anchormodel/simple_form_inputs/anchormodel_check_boxes_input.rb
|
204
|
+
- lib/anchormodel/simple_form_inputs/anchormodel_input.rb
|
205
|
+
- lib/anchormodel/simple_form_inputs/anchormodel_radio_buttons_input.rb
|
206
|
+
- lib/anchormodel/simple_form_inputs/helpers/anchormodel_inputs_common.rb
|
194
207
|
- lib/anchormodel/util.rb
|
195
208
|
- lib/anchormodel/version.rb
|
196
209
|
- lib/generators/anchormodel/USAGE
|
197
210
|
- lib/generators/anchormodel/anchormodel_generator.rb
|
198
211
|
- lib/generators/anchormodel/templates/anchormodel.rb.erb
|
199
212
|
- logo.svg
|
200
|
-
- pkg/anchormodel-0.1.3.gem
|
201
213
|
- test/active_record_model/user_test.rb
|
202
214
|
- test/dummy/.gitignore
|
203
215
|
- test/dummy/Rakefile
|
216
|
+
- test/dummy/app/anchormodels/animal.rb
|
204
217
|
- test/dummy/app/anchormodels/locale.rb
|
205
218
|
- test/dummy/app/anchormodels/role.rb
|
206
219
|
- test/dummy/app/helpers/application_helper.rb
|
@@ -225,6 +238,7 @@ files:
|
|
225
238
|
- test/dummy/config/puma.rb
|
226
239
|
- test/dummy/config/routes.rb
|
227
240
|
- test/dummy/db/migrate/20230107173151_create_users.rb
|
241
|
+
- test/dummy/db/migrate/20240425182000_add_animals_to_users.rb
|
228
242
|
- test/dummy/db/schema.rb
|
229
243
|
- test/dummy/db/seeds.rb
|
230
244
|
- test/dummy/lib/tasks/.keep
|
@@ -251,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
265
|
- !ruby/object:Gem::Version
|
252
266
|
version: '0'
|
253
267
|
requirements: []
|
254
|
-
rubygems_version: 3.5.
|
268
|
+
rubygems_version: 3.5.9
|
255
269
|
signing_key:
|
256
270
|
specification_version: 4
|
257
271
|
summary: Bringing object-oriented programming to Rails enums
|
data/pkg/anchormodel-0.1.3.gem
DELETED
Binary file
|