creed 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +110 -110
  3. data/README.md +4 -2
  4. data/lib/creed/version.rb +1 -1
  5. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da26cff3b225c84ec291770b543c71ecff63748becadd4247c4fbf00c96f99f5
4
- data.tar.gz: 8225c8d2cda6cd9844bf0d29da89d70aeb6fba2ad025bcec24a2fa08a12bb47f
3
+ metadata.gz: 4e615154c461819b92044079371bf11bd3f82143cb4d40a569b8b66f5948cd0b
4
+ data.tar.gz: c6b847accc726b7fbe3cb42c46a05137a2e22c09f445bbb7ea6e5f400615da13
5
5
  SHA512:
6
- metadata.gz: 876bdcf8cdebc0a213c5d1e06f8438ae3a295efb190d08cb46d8b6f746415e094b331f2dfafc60af4a7a39c0055a9c2560bb186abc5e768e59f8802815ea2d1b
7
- data.tar.gz: 80d3518948488755ad4b87d90fb35901e3889ae19c5102491b1097b2eda2966bcb0b73e34abae2a8e05e946502abe2fb7bf62dee56ad4563c5926962c04969ad
6
+ metadata.gz: f91293758f4eaf503d97845c786d24e40a22654191714c2446cdcdd61db1c1f5a273fed22ae06b79a1d3cd7f5e47279cad9a41cc6cbc3bba0bdfbbbee6124380
7
+ data.tar.gz: 721be63d4ba2b66e72b775b1c867bcf2a785f6c489344d32034a0d5b04ff10dbcc0f37a2c7f3316a706a13594463316437793b089bd790ef26680c05258111a7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- creed (0.3.0)
4
+ creed (0.4.0)
5
5
  actionpack (>= 6.0)
6
6
  dry-initializer
7
7
  dry-initializer-rails
@@ -12,189 +12,189 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- actioncable (6.0.3.2)
16
- actionpack (= 6.0.3.2)
15
+ actioncable (6.1.3.1)
16
+ actionpack (= 6.1.3.1)
17
+ activesupport (= 6.1.3.1)
17
18
  nio4r (~> 2.0)
18
19
  websocket-driver (>= 0.6.1)
19
- actionmailbox (6.0.3.2)
20
- actionpack (= 6.0.3.2)
21
- activejob (= 6.0.3.2)
22
- activerecord (= 6.0.3.2)
23
- activestorage (= 6.0.3.2)
24
- activesupport (= 6.0.3.2)
20
+ actionmailbox (6.1.3.1)
21
+ actionpack (= 6.1.3.1)
22
+ activejob (= 6.1.3.1)
23
+ activerecord (= 6.1.3.1)
24
+ activestorage (= 6.1.3.1)
25
+ activesupport (= 6.1.3.1)
25
26
  mail (>= 2.7.1)
26
- actionmailer (6.0.3.2)
27
- actionpack (= 6.0.3.2)
28
- actionview (= 6.0.3.2)
29
- activejob (= 6.0.3.2)
27
+ actionmailer (6.1.3.1)
28
+ actionpack (= 6.1.3.1)
29
+ actionview (= 6.1.3.1)
30
+ activejob (= 6.1.3.1)
31
+ activesupport (= 6.1.3.1)
30
32
  mail (~> 2.5, >= 2.5.4)
31
33
  rails-dom-testing (~> 2.0)
32
- actionpack (6.0.3.2)
33
- actionview (= 6.0.3.2)
34
- activesupport (= 6.0.3.2)
35
- rack (~> 2.0, >= 2.0.8)
34
+ actionpack (6.1.3.1)
35
+ actionview (= 6.1.3.1)
36
+ activesupport (= 6.1.3.1)
37
+ rack (~> 2.0, >= 2.0.9)
36
38
  rack-test (>= 0.6.3)
37
39
  rails-dom-testing (~> 2.0)
38
40
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
39
- actiontext (6.0.3.2)
40
- actionpack (= 6.0.3.2)
41
- activerecord (= 6.0.3.2)
42
- activestorage (= 6.0.3.2)
43
- activesupport (= 6.0.3.2)
41
+ actiontext (6.1.3.1)
42
+ actionpack (= 6.1.3.1)
43
+ activerecord (= 6.1.3.1)
44
+ activestorage (= 6.1.3.1)
45
+ activesupport (= 6.1.3.1)
44
46
  nokogiri (>= 1.8.5)
45
- actionview (6.0.3.2)
46
- activesupport (= 6.0.3.2)
47
+ actionview (6.1.3.1)
48
+ activesupport (= 6.1.3.1)
47
49
  builder (~> 3.1)
48
50
  erubi (~> 1.4)
49
51
  rails-dom-testing (~> 2.0)
50
52
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
51
- activejob (6.0.3.2)
52
- activesupport (= 6.0.3.2)
53
+ activejob (6.1.3.1)
54
+ activesupport (= 6.1.3.1)
53
55
  globalid (>= 0.3.6)
54
- activemodel (6.0.3.2)
55
- activesupport (= 6.0.3.2)
56
- activerecord (6.0.3.2)
57
- activemodel (= 6.0.3.2)
58
- activesupport (= 6.0.3.2)
59
- activestorage (6.0.3.2)
60
- actionpack (= 6.0.3.2)
61
- activejob (= 6.0.3.2)
62
- activerecord (= 6.0.3.2)
63
- marcel (~> 0.3.1)
64
- activesupport (6.0.3.2)
56
+ activemodel (6.1.3.1)
57
+ activesupport (= 6.1.3.1)
58
+ activerecord (6.1.3.1)
59
+ activemodel (= 6.1.3.1)
60
+ activesupport (= 6.1.3.1)
61
+ activestorage (6.1.3.1)
62
+ actionpack (= 6.1.3.1)
63
+ activejob (= 6.1.3.1)
64
+ activerecord (= 6.1.3.1)
65
+ activesupport (= 6.1.3.1)
66
+ marcel (~> 1.0.0)
67
+ mini_mime (~> 1.0.2)
68
+ activesupport (6.1.3.1)
65
69
  concurrent-ruby (~> 1.0, >= 1.0.2)
66
- i18n (>= 0.7, < 2)
67
- minitest (~> 5.1)
68
- tzinfo (~> 1.1)
69
- zeitwerk (~> 2.2, >= 2.2.2)
70
+ i18n (>= 1.6, < 2)
71
+ minitest (>= 5.1)
72
+ tzinfo (~> 2.0)
73
+ zeitwerk (~> 2.3)
70
74
  ansi (1.5.0)
71
- ast (2.4.1)
75
+ ast (2.4.2)
72
76
  builder (3.2.4)
73
- concurrent-ruby (1.1.7)
77
+ concurrent-ruby (1.1.8)
74
78
  crass (1.0.6)
75
- dry-configurable (0.11.6)
79
+ dry-configurable (0.12.1)
76
80
  concurrent-ruby (~> 1.0)
77
- dry-core (~> 0.4, >= 0.4.7)
78
- dry-equalizer (~> 0.2)
81
+ dry-core (~> 0.5, >= 0.5.0)
79
82
  dry-container (0.7.2)
80
83
  concurrent-ruby (~> 1.0)
81
84
  dry-configurable (~> 0.1, >= 0.1.3)
82
- dry-core (0.4.9)
85
+ dry-core (0.5.0)
83
86
  concurrent-ruby (~> 1.0)
84
- dry-equalizer (0.3.0)
85
87
  dry-inflector (0.2.0)
86
- dry-initializer (3.0.3)
88
+ dry-initializer (3.0.4)
87
89
  dry-initializer-rails (3.1.1)
88
90
  dry-initializer (>= 2.4, < 4)
89
91
  rails (> 3.0)
90
- dry-logic (1.0.7)
92
+ dry-logic (1.1.1)
91
93
  concurrent-ruby (~> 1.0)
92
- dry-core (~> 0.2)
93
- dry-equalizer (~> 0.2)
94
- dry-types (1.4.0)
94
+ dry-core (~> 0.5, >= 0.5)
95
+ dry-types (1.5.1)
95
96
  concurrent-ruby (~> 1.0)
96
97
  dry-container (~> 0.3)
97
- dry-core (~> 0.4, >= 0.4.4)
98
- dry-equalizer (~> 0.3)
98
+ dry-core (~> 0.5, >= 0.5)
99
99
  dry-inflector (~> 0.1, >= 0.1.2)
100
100
  dry-logic (~> 1.0, >= 1.0.2)
101
- erubi (1.9.0)
101
+ erubi (1.10.0)
102
102
  globalid (0.4.2)
103
103
  activesupport (>= 4.2.0)
104
- i18n (1.8.5)
104
+ i18n (1.8.10)
105
105
  concurrent-ruby (~> 1.0)
106
- loofah (2.6.0)
106
+ loofah (2.9.1)
107
107
  crass (~> 1.0.2)
108
108
  nokogiri (>= 1.5.9)
109
109
  mail (2.7.1)
110
110
  mini_mime (>= 0.1.1)
111
- marcel (0.3.3)
112
- mimemagic (~> 0.3.2)
111
+ marcel (1.0.1)
113
112
  method_source (1.0.0)
114
- mimemagic (0.3.5)
115
- mini_mime (1.0.2)
116
- mini_portile2 (2.4.0)
117
- minitest (5.14.1)
113
+ mini_mime (1.0.3)
114
+ mini_portile2 (2.5.0)
115
+ minitest (5.14.4)
118
116
  minitest-focus (1.2.1)
119
117
  minitest (>= 4, < 6)
120
- minitest-reporters (1.4.2)
118
+ minitest-reporters (1.4.3)
121
119
  ansi
122
120
  builder
123
121
  minitest (>= 5.0)
124
122
  ruby-progressbar
125
- mocha (1.11.2)
126
- nio4r (2.5.2)
127
- nokogiri (1.10.10)
128
- mini_portile2 (~> 2.4.0)
129
- parallel (1.19.2)
130
- parser (2.7.1.4)
123
+ mocha (1.12.0)
124
+ nio4r (2.5.7)
125
+ nokogiri (1.11.3)
126
+ mini_portile2 (~> 2.5.0)
127
+ racc (~> 1.4)
128
+ parallel (1.20.1)
129
+ parser (3.0.1.0)
131
130
  ast (~> 2.4.1)
131
+ racc (1.5.2)
132
132
  rack (2.2.3)
133
133
  rack-test (1.1.0)
134
134
  rack (>= 1.0, < 3)
135
- rails (6.0.3.2)
136
- actioncable (= 6.0.3.2)
137
- actionmailbox (= 6.0.3.2)
138
- actionmailer (= 6.0.3.2)
139
- actionpack (= 6.0.3.2)
140
- actiontext (= 6.0.3.2)
141
- actionview (= 6.0.3.2)
142
- activejob (= 6.0.3.2)
143
- activemodel (= 6.0.3.2)
144
- activerecord (= 6.0.3.2)
145
- activestorage (= 6.0.3.2)
146
- activesupport (= 6.0.3.2)
147
- bundler (>= 1.3.0)
148
- railties (= 6.0.3.2)
135
+ rails (6.1.3.1)
136
+ actioncable (= 6.1.3.1)
137
+ actionmailbox (= 6.1.3.1)
138
+ actionmailer (= 6.1.3.1)
139
+ actionpack (= 6.1.3.1)
140
+ actiontext (= 6.1.3.1)
141
+ actionview (= 6.1.3.1)
142
+ activejob (= 6.1.3.1)
143
+ activemodel (= 6.1.3.1)
144
+ activerecord (= 6.1.3.1)
145
+ activestorage (= 6.1.3.1)
146
+ activesupport (= 6.1.3.1)
147
+ bundler (>= 1.15.0)
148
+ railties (= 6.1.3.1)
149
149
  sprockets-rails (>= 2.0.0)
150
150
  rails-dom-testing (2.0.3)
151
151
  activesupport (>= 4.2.0)
152
152
  nokogiri (>= 1.6)
153
153
  rails-html-sanitizer (1.3.0)
154
154
  loofah (~> 2.3)
155
- railties (6.0.3.2)
156
- actionpack (= 6.0.3.2)
157
- activesupport (= 6.0.3.2)
155
+ railties (6.1.3.1)
156
+ actionpack (= 6.1.3.1)
157
+ activesupport (= 6.1.3.1)
158
158
  method_source
159
159
  rake (>= 0.8.7)
160
- thor (>= 0.20.3, < 2.0)
160
+ thor (~> 1.0)
161
161
  rainbow (3.0.0)
162
- rake (13.0.1)
163
- regexp_parser (1.7.1)
162
+ rake (13.0.3)
163
+ regexp_parser (2.1.1)
164
164
  responders (3.0.1)
165
165
  actionpack (>= 5.0)
166
166
  railties (>= 5.0)
167
- rexml (3.2.4)
168
- rubocop (0.89.1)
167
+ rexml (3.2.5)
168
+ rubocop (1.12.1)
169
169
  parallel (~> 1.10)
170
- parser (>= 2.7.1.1)
170
+ parser (>= 3.0.0.0)
171
171
  rainbow (>= 2.2.2, < 4.0)
172
- regexp_parser (>= 1.7)
172
+ regexp_parser (>= 1.8, < 3.0)
173
173
  rexml
174
- rubocop-ast (>= 0.3.0, < 1.0)
174
+ rubocop-ast (>= 1.2.0, < 2.0)
175
175
  ruby-progressbar (~> 1.7)
176
- unicode-display_width (>= 1.4.0, < 2.0)
177
- rubocop-ast (0.3.0)
178
- parser (>= 2.7.1.4)
179
- rubocop-performance (1.7.1)
180
- rubocop (>= 0.82.0)
181
- ruby-progressbar (1.10.1)
176
+ unicode-display_width (>= 1.4.0, < 3.0)
177
+ rubocop-ast (1.4.1)
178
+ parser (>= 2.7.1.5)
179
+ rubocop-performance (1.10.2)
180
+ rubocop (>= 0.90.0, < 2.0)
181
+ rubocop-ast (>= 0.4.0)
182
+ ruby-progressbar (1.11.0)
182
183
  sprockets (4.0.2)
183
184
  concurrent-ruby (~> 1.0)
184
185
  rack (> 1, < 3)
185
- sprockets-rails (3.2.1)
186
+ sprockets-rails (3.2.2)
186
187
  actionpack (>= 4.0)
187
188
  activesupport (>= 4.0)
188
189
  sprockets (>= 3.0.0)
189
- thor (1.0.1)
190
- thread_safe (0.3.6)
191
- tzinfo (1.2.7)
192
- thread_safe (~> 0.1)
193
- unicode-display_width (1.7.0)
190
+ thor (1.1.0)
191
+ tzinfo (2.0.4)
192
+ concurrent-ruby (~> 1.0)
193
+ unicode-display_width (2.0.0)
194
194
  websocket-driver (0.7.3)
195
195
  websocket-extensions (>= 0.1.0)
196
196
  websocket-extensions (0.1.5)
197
- zeitwerk (2.4.0)
197
+ zeitwerk (2.4.2)
198
198
 
199
199
  PLATFORMS
200
200
  ruby
@@ -211,4 +211,4 @@ DEPENDENCIES
211
211
  rubocop-performance
212
212
 
213
213
  BUNDLED WITH
214
- 2.1.4
214
+ 2.2.15
data/README.md CHANGED
@@ -20,7 +20,7 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- Create your Command classes in `app/commands`, extending `Creed::Command`, and implementing a `perform` method. Optionally defining params and/or options that can be passed when performing the command.
23
+ Create your Command classes in `app/commands`, extending `Creed::Command`, and implementing a `perform` method. Optionally defining params and/or options that can be passed when performing the command. Unknown arguments will raise an exception.
24
24
 
25
25
  ```ruby
26
26
  class CreateUser < Creed::Command
@@ -28,7 +28,9 @@ class CreateUser < Creed::Command
28
28
  param :user_params, Creed::Types.Instance(ActionController::Parameters)
29
29
  option :validate, default: true
30
30
 
31
- def perform
31
+ # #perform has access to all options and params and named attributes. You can also pass it a
32
+ # block.
33
+ def perform(&block)
32
34
  # Do something here...
33
35
  end
34
36
  end
data/lib/creed/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Creed
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: creed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Moss
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-19 00:00:00.000000000 Z
11
+ date: 2021-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -94,7 +94,7 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- description:
97
+ description:
98
98
  email:
99
99
  - joel@developwithstyle.com
100
100
  executables: []
@@ -126,7 +126,7 @@ metadata:
126
126
  homepage_uri: https://github.com/joelmoss/creed
127
127
  source_code_uri: https://github.com/joelmoss/creed
128
128
  changelog_uri: https://github.com/joelmoss/creed/releases
129
- post_install_message:
129
+ post_install_message:
130
130
  rdoc_options: []
131
131
  require_paths:
132
132
  - lib
@@ -141,8 +141,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  requirements: []
144
- rubygems_version: 3.1.2
145
- signing_key:
144
+ rubygems_version: 3.2.3
145
+ signing_key:
146
146
  specification_version: 4
147
147
  summary: Command pattern for Rails
148
148
  test_files: []