much-rails 0.1.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/much-rails.rb +9 -0
- data/lib/much-rails/abstract_class.rb +38 -0
- data/lib/much-rails/action/base_router.rb +10 -10
- data/lib/much-rails/action/router.rb +10 -4
- data/lib/much-rails/assets.rb +33 -18
- data/lib/much-rails/destroy_service.rb +42 -5
- 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/abstract_class_tests.rb +45 -0
- data/test/unit/action/base_router_tests.rb +10 -10
- data/test/unit/action/router_tests.rb +4 -4
- data/test/unit/assets_tests.rb +46 -14
- data/test/unit/destroy_service_tests.rb +165 -21
- 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 +10 -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.4
|
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-
|
12
|
+
date: 2021-02-09 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
|
@@ -251,6 +251,7 @@ files:
|
|
251
251
|
- LICENSE
|
252
252
|
- README.md
|
253
253
|
- lib/much-rails.rb
|
254
|
+
- lib/much-rails/abstract_class.rb
|
254
255
|
- lib/much-rails/action.rb
|
255
256
|
- lib/much-rails/action/base_command_result.rb
|
256
257
|
- lib/much-rails/action/base_result.rb
|
@@ -291,6 +292,7 @@ files:
|
|
291
292
|
- lib/much-rails/save_action.rb
|
292
293
|
- lib/much-rails/save_service.rb
|
293
294
|
- lib/much-rails/service.rb
|
295
|
+
- lib/much-rails/service_validation_errors.rb
|
294
296
|
- lib/much-rails/time.rb
|
295
297
|
- lib/much-rails/version.rb
|
296
298
|
- lib/much-rails/view_models.rb
|
@@ -305,6 +307,7 @@ files:
|
|
305
307
|
- test/support/factory.rb
|
306
308
|
- test/support/fake_action_controller.rb
|
307
309
|
- test/system/.keep
|
310
|
+
- test/unit/abstract_class_tests.rb
|
308
311
|
- test/unit/action/base_command_result_tests.rb
|
309
312
|
- test/unit/action/base_result_tests.rb
|
310
313
|
- test/unit/action/base_router_tests.rb
|
@@ -343,6 +346,7 @@ files:
|
|
343
346
|
- test/unit/save_action_tests.rb
|
344
347
|
- test/unit/save_service_tests.rb
|
345
348
|
- test/unit/service_tests.rb
|
349
|
+
- test/unit/service_validation_errors_tests.rb
|
346
350
|
- test/unit/time_tests.rb
|
347
351
|
- test/unit/view_models/breadcrumb_tests.rb
|
348
352
|
- test/unit/wrap_and_call_method_tests.rb
|
@@ -378,6 +382,7 @@ test_files:
|
|
378
382
|
- test/support/factory.rb
|
379
383
|
- test/support/fake_action_controller.rb
|
380
384
|
- test/system/.keep
|
385
|
+
- test/unit/abstract_class_tests.rb
|
381
386
|
- test/unit/action/base_command_result_tests.rb
|
382
387
|
- test/unit/action/base_result_tests.rb
|
383
388
|
- test/unit/action/base_router_tests.rb
|
@@ -416,6 +421,7 @@ test_files:
|
|
416
421
|
- test/unit/save_action_tests.rb
|
417
422
|
- test/unit/save_service_tests.rb
|
418
423
|
- test/unit/service_tests.rb
|
424
|
+
- test/unit/service_validation_errors_tests.rb
|
419
425
|
- test/unit/time_tests.rb
|
420
426
|
- test/unit/view_models/breadcrumb_tests.rb
|
421
427
|
- test/unit/wrap_and_call_method_tests.rb
|