command_model 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +26 -0
- data/.gitignore +1 -1
- data/.ruby-version +1 -0
- data/.tool-versions +1 -0
- data/Gemfile.lock +50 -0
- data/README.md +135 -54
- data/Rakefile +4 -7
- data/bin/rake +27 -0
- data/command_model.gemspec +4 -5
- data/examples/bank/Gemfile +4 -4
- data/examples/bank/app/controllers/accounts_controller.rb +12 -12
- data/examples/bank/app/controllers/transfers_controller.rb +3 -3
- data/examples/bank/app/views/accounts/deposit_form.html.erb +1 -5
- data/examples/bank/app/views/accounts/withdraw_form.html.erb +1 -5
- data/examples/bank/app/views/layouts/application.html.erb +1 -1
- data/examples/bank/app/views/transfers/new.html.erb +2 -6
- data/examples/bank/config/application.rb +1 -1
- data/examples/bank/config/routes.rb +6 -6
- data/examples/bank/test/performance/browsing_test.rb +2 -2
- data/gemfiles/{5.0.gemfile → 6.1.gemfile} +1 -1
- data/gemfiles/6.1.gemfile.lock +52 -0
- data/gemfiles/{5.1.gemfile → 7.0.gemfile} +1 -1
- data/gemfiles/7.0.gemfile.lock +50 -0
- data/gemfiles/7.1.gemfile +5 -0
- data/gemfiles/7.1.gemfile.lock +60 -0
- data/lib/command_model/convert.rb +1 -1
- data/lib/command_model/model.rb +61 -16
- data/lib/command_model/version.rb +1 -1
- data/spec/convert_spec.rb +5 -4
- data/spec/model_spec.rb +129 -6
- metadata +24 -17
- data/.travis.yml +0 -6
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: command_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Christensen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '6.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 13.1.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 13.1.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.
|
47
|
+
version: 3.13.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.
|
54
|
+
version: 3.13.0
|
55
55
|
description: CommandModel - when update_attributes isn't enough.
|
56
56
|
email:
|
57
57
|
- jack@jackchristensen.com
|
@@ -59,13 +59,17 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- ".github/workflows/ci.yml"
|
62
63
|
- ".gitignore"
|
63
64
|
- ".rspec"
|
64
|
-
- ".
|
65
|
+
- ".ruby-version"
|
66
|
+
- ".tool-versions"
|
65
67
|
- Gemfile
|
68
|
+
- Gemfile.lock
|
66
69
|
- LICENSE
|
67
70
|
- README.md
|
68
71
|
- Rakefile
|
72
|
+
- bin/rake
|
69
73
|
- command_model.gemspec
|
70
74
|
- examples/bank/.gitignore
|
71
75
|
- examples/bank/Gemfile
|
@@ -127,8 +131,12 @@ files:
|
|
127
131
|
- examples/bank/vendor/assets/javascripts/.gitkeep
|
128
132
|
- examples/bank/vendor/assets/stylesheets/.gitkeep
|
129
133
|
- examples/bank/vendor/plugins/.gitkeep
|
130
|
-
- gemfiles/
|
131
|
-
- gemfiles/
|
134
|
+
- gemfiles/6.1.gemfile
|
135
|
+
- gemfiles/6.1.gemfile.lock
|
136
|
+
- gemfiles/7.0.gemfile
|
137
|
+
- gemfiles/7.0.gemfile.lock
|
138
|
+
- gemfiles/7.1.gemfile
|
139
|
+
- gemfiles/7.1.gemfile.lock
|
132
140
|
- lib/command_model.rb
|
133
141
|
- lib/command_model/convert.rb
|
134
142
|
- lib/command_model/model.rb
|
@@ -139,7 +147,7 @@ files:
|
|
139
147
|
homepage: https://github.com/JackC/command_model
|
140
148
|
licenses: []
|
141
149
|
metadata: {}
|
142
|
-
post_install_message:
|
150
|
+
post_install_message:
|
143
151
|
rdoc_options: []
|
144
152
|
require_paths:
|
145
153
|
- lib
|
@@ -147,16 +155,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
155
|
requirements:
|
148
156
|
- - ">="
|
149
157
|
- !ruby/object:Gem::Version
|
150
|
-
version: 2.
|
158
|
+
version: 3.2.0
|
151
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
160
|
requirements:
|
153
161
|
- - ">="
|
154
162
|
- !ruby/object:Gem::Version
|
155
163
|
version: '0'
|
156
164
|
requirements: []
|
157
|
-
|
158
|
-
|
159
|
-
signing_key:
|
165
|
+
rubygems_version: 3.4.10
|
166
|
+
signing_key:
|
160
167
|
specification_version: 4
|
161
168
|
summary: CommandModel integrates Rails validations with command objects. This allows
|
162
169
|
errors from command execution to easily be handled with the familiar Rails validation
|