much-rails 0.1.1 → 0.2.2
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/lib/much-rails.rb +8 -0
- data/lib/much-rails/action/controller.rb +7 -1
- data/lib/much-rails/assets.rb +33 -18
- data/lib/much-rails/destroy_service.rb +42 -5
- data/lib/much-rails/layout.rb +29 -2
- data/lib/much-rails/records/validate_destroy.rb +23 -13
- data/lib/much-rails/save_service.rb +44 -7
- data/lib/much-rails/service_validation_errors.rb +41 -0
- data/lib/much-rails/version.rb +1 -1
- data/much-rails.gemspec +1 -1
- data/test/unit/action/controller_tests.rb +13 -45
- data/test/unit/assets_tests.rb +46 -14
- data/test/unit/destroy_service_tests.rb +165 -21
- data/test/unit/layout_tests.rb +24 -18
- data/test/unit/much-rails_tests.rb +42 -1
- data/test/unit/records/always_destroyable_tests.rb +1 -1
- data/test/unit/records/not_destroyable_tests.rb +1 -1
- data/test/unit/records/validate_destroy_tests.rb +84 -4
- data/test/unit/save_service_tests.rb +180 -20
- data/test/unit/service_validation_errors_tests.rb +107 -0
- metadata +7 -4
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: much-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kelly Redding
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-01
|
12
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: much-style-guide
|
@@ -105,14 +105,14 @@ dependencies:
|
|
105
105
|
requirements:
|
106
106
|
- - "~>"
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: 0.15.
|
108
|
+
version: 0.15.2
|
109
109
|
type: :runtime
|
110
110
|
prerelease: false
|
111
111
|
version_requirements: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
113
|
- - "~>"
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: 0.15.
|
115
|
+
version: 0.15.2
|
116
116
|
- !ruby/object:Gem::Dependency
|
117
117
|
name: dassets-erubi
|
118
118
|
requirement: !ruby/object:Gem::Requirement
|
@@ -291,6 +291,7 @@ files:
|
|
291
291
|
- lib/much-rails/save_action.rb
|
292
292
|
- lib/much-rails/save_service.rb
|
293
293
|
- lib/much-rails/service.rb
|
294
|
+
- lib/much-rails/service_validation_errors.rb
|
294
295
|
- lib/much-rails/time.rb
|
295
296
|
- lib/much-rails/version.rb
|
296
297
|
- lib/much-rails/view_models.rb
|
@@ -343,6 +344,7 @@ files:
|
|
343
344
|
- test/unit/save_action_tests.rb
|
344
345
|
- test/unit/save_service_tests.rb
|
345
346
|
- test/unit/service_tests.rb
|
347
|
+
- test/unit/service_validation_errors_tests.rb
|
346
348
|
- test/unit/time_tests.rb
|
347
349
|
- test/unit/view_models/breadcrumb_tests.rb
|
348
350
|
- test/unit/wrap_and_call_method_tests.rb
|
@@ -416,6 +418,7 @@ test_files:
|
|
416
418
|
- test/unit/save_action_tests.rb
|
417
419
|
- test/unit/save_service_tests.rb
|
418
420
|
- test/unit/service_tests.rb
|
421
|
+
- test/unit/service_validation_errors_tests.rb
|
419
422
|
- test/unit/time_tests.rb
|
420
423
|
- test/unit/view_models/breadcrumb_tests.rb
|
421
424
|
- test/unit/wrap_and_call_method_tests.rb
|