lite-command 1.4.1 → 2.0.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/.rubocop.yml +23 -2
- data/CHANGELOG.md +10 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +131 -105
- data/README.md +85 -218
- data/Rakefile +2 -2
- data/bin/console +3 -3
- data/lib/generators/rails/command_generator.rb +5 -5
- data/lib/generators/rails/templates/command.rb.tt +1 -1
- data/lib/lite/command/base.rb +49 -0
- data/lib/lite/command/context.rb +32 -0
- data/lib/lite/command/fault.rb +54 -0
- data/lib/lite/command/internals/callable.rb +158 -0
- data/lib/lite/command/internals/executable.rb +83 -0
- data/lib/lite/command/internals/resultable.rb +78 -0
- data/lib/lite/command/version.rb +1 -1
- data/lib/lite/command.rb +9 -13
- data/lite-command.gemspec +28 -29
- metadata +13 -42
- data/lib/lite/command/complex.rb +0 -50
- data/lib/lite/command/exceptions.rb +0 -11
- data/lib/lite/command/extensions/errors.rb +0 -88
- data/lib/lite/command/extensions/memoize.rb +0 -17
- data/lib/lite/command/extensions/propagation.rb +0 -37
- data/lib/lite/command/procedure.rb +0 -51
- data/lib/lite/command/simple.rb +0 -19
- data/lib/lite/command/states.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 340d00e30b3a4ca140aaff5ee354c8c48d43e03a35533a69ea349afb8c429435
|
4
|
+
data.tar.gz: f05f29f0fcc6d55c2afe9cb4debb309491374db238f9bfdcbe3833169c5caeeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e504efb0c085b59b57cbc05fb344c9568ee0ad18a275af25efef9cd3db6e5f6dde9b25dfbf971e1b34cab864c486c6efd6dabd015cb23f5ee1199abc0d85956f
|
7
|
+
data.tar.gz: 5ee4f05437705a5ed44a529cf776f32f0b5b049f020f7de8615c0aa1a1e47601db6b4d54cc381cd2280238e4e5d00f2b626c07688aa65795955cdc8092279f15
|
data/.rubocop.yml
CHANGED
@@ -3,10 +3,11 @@ require:
|
|
3
3
|
- rubocop-rake
|
4
4
|
- rubocop-rspec
|
5
5
|
AllCops:
|
6
|
-
TargetRubyVersion: 3.0
|
7
6
|
NewCops: enable
|
8
7
|
DisplayCopNames: true
|
9
8
|
DisplayStyleGuide: true
|
9
|
+
Gemspec/DevelopmentDependencies:
|
10
|
+
EnforcedStyle: gemspec
|
10
11
|
Gemspec/RequiredRubyVersion:
|
11
12
|
Enabled: false
|
12
13
|
Layout/EmptyLinesAroundAttributeAccessor:
|
@@ -19,26 +20,46 @@ Layout/EmptyLinesAroundClassBody:
|
|
19
20
|
Layout/EmptyLinesAroundModuleBody:
|
20
21
|
EnforcedStyle: empty_lines_except_namespace
|
21
22
|
Layout/LineLength:
|
22
|
-
|
23
|
+
Enabled: false
|
23
24
|
Layout/SpaceAroundMethodCallOperator:
|
24
25
|
Enabled: true
|
25
26
|
Lint/RaiseException:
|
26
27
|
Enabled: true
|
27
28
|
Lint/StructNewOverride:
|
28
29
|
Enabled: true
|
30
|
+
Metrics/AbcSize:
|
31
|
+
Enabled: false
|
29
32
|
Metrics/BlockLength:
|
30
33
|
Exclude:
|
31
34
|
- 'spec/**/**/*'
|
32
35
|
- '*.gemspec'
|
36
|
+
Metrics/CyclomaticComplexity:
|
37
|
+
Enabled: false
|
38
|
+
Metrics/MethodLength:
|
39
|
+
Enabled: false
|
40
|
+
Metrics/PerceivedComplexity:
|
41
|
+
Enabled: false
|
33
42
|
Naming/MemoizedInstanceVariableName:
|
34
43
|
Enabled: false
|
44
|
+
RSpec/AnyInstance:
|
45
|
+
Enabled: false
|
35
46
|
RSpec/ExampleLength:
|
36
47
|
Enabled: false
|
48
|
+
RSpec/MessageSpies:
|
49
|
+
Enabled: false
|
37
50
|
RSpec/MultipleExpectations:
|
38
51
|
Enabled: false
|
52
|
+
RSpec/MultipleMemoizedHelpers:
|
53
|
+
Enabled: false
|
39
54
|
Style/ArgumentsForwarding:
|
40
55
|
Enabled: false
|
41
56
|
Style/Documentation:
|
42
57
|
Enabled: false
|
58
|
+
Style/DocumentDynamicEvalDefinition:
|
59
|
+
Enabled: false
|
43
60
|
Style/ExpandPathArguments:
|
44
61
|
Enabled: false
|
62
|
+
Style/OpenStructUse:
|
63
|
+
Enabled: false
|
64
|
+
Style/StringLiterals:
|
65
|
+
EnforcedStyle: double_quotes
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [2.0.0] - 2024-09-22
|
10
|
+
### Changed
|
11
|
+
- Rewrite app to use interactor pattern
|
12
|
+
|
13
|
+
## [1.5.0] - 2022-04-19
|
14
|
+
### Changed
|
15
|
+
- Update docs
|
16
|
+
- Rename internal variables for more clarity
|
17
|
+
- Improved spec checkers
|
18
|
+
|
9
19
|
## [1.4.1] - 2021-09-04
|
10
20
|
### Changed
|
11
21
|
- Fixed nil issue with `assign_and_return!`
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,141 +1,167 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lite-command (
|
5
|
-
|
6
|
-
|
4
|
+
lite-command (2.0.0)
|
5
|
+
activemodel
|
6
|
+
ostruct
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionpack (
|
12
|
-
actionview (=
|
13
|
-
activesupport (=
|
14
|
-
|
11
|
+
actionpack (7.2.1)
|
12
|
+
actionview (= 7.2.1)
|
13
|
+
activesupport (= 7.2.1)
|
14
|
+
nokogiri (>= 1.8.5)
|
15
|
+
racc
|
16
|
+
rack (>= 2.2.4, < 3.2)
|
17
|
+
rack-session (>= 1.0.1)
|
15
18
|
rack-test (>= 0.6.3)
|
16
|
-
rails-dom-testing (~> 2.
|
17
|
-
rails-html-sanitizer (~> 1.
|
18
|
-
|
19
|
-
|
19
|
+
rails-dom-testing (~> 2.2)
|
20
|
+
rails-html-sanitizer (~> 1.6)
|
21
|
+
useragent (~> 0.16)
|
22
|
+
actionview (7.2.1)
|
23
|
+
activesupport (= 7.2.1)
|
20
24
|
builder (~> 3.1)
|
21
|
-
erubi (~> 1.
|
22
|
-
rails-dom-testing (~> 2.
|
23
|
-
rails-html-sanitizer (~> 1.
|
24
|
-
activemodel (
|
25
|
-
activesupport (=
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
erubi (~> 1.11)
|
26
|
+
rails-dom-testing (~> 2.2)
|
27
|
+
rails-html-sanitizer (~> 1.6)
|
28
|
+
activemodel (7.2.1)
|
29
|
+
activesupport (= 7.2.1)
|
30
|
+
activesupport (7.2.1)
|
31
|
+
base64
|
32
|
+
bigdecimal
|
33
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
34
|
+
connection_pool (>= 2.2.5)
|
35
|
+
drb
|
31
36
|
i18n (>= 1.6, < 2)
|
37
|
+
logger (>= 1.4.2)
|
32
38
|
minitest (>= 5.1)
|
33
|
-
|
34
|
-
|
39
|
+
securerandom (>= 0.3)
|
40
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
35
41
|
ast (2.4.2)
|
36
|
-
|
37
|
-
|
38
|
-
|
42
|
+
base64 (0.2.0)
|
43
|
+
bigdecimal (3.1.8)
|
44
|
+
builder (3.3.0)
|
45
|
+
concurrent-ruby (1.3.4)
|
46
|
+
connection_pool (2.4.1)
|
39
47
|
crass (1.0.6)
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
diff-lcs (1.4.4)
|
47
|
-
erubi (1.10.0)
|
48
|
-
fasterer (0.9.0)
|
49
|
-
colorize (~> 0.7)
|
50
|
-
ruby_parser (>= 3.14.1)
|
51
|
-
generator_spec (0.9.4)
|
48
|
+
diff-lcs (1.5.1)
|
49
|
+
drb (2.2.1)
|
50
|
+
erubi (1.13.0)
|
51
|
+
fasterer (0.11.0)
|
52
|
+
ruby_parser (>= 3.19.1)
|
53
|
+
generator_spec (0.10.0)
|
52
54
|
activesupport (>= 3.0.0)
|
53
55
|
railties (>= 3.0.0)
|
54
|
-
i18n (1.
|
56
|
+
i18n (1.14.6)
|
55
57
|
concurrent-ruby (~> 1.0)
|
56
|
-
|
57
|
-
|
58
|
-
|
58
|
+
io-console (0.7.2)
|
59
|
+
irb (1.14.1)
|
60
|
+
rdoc (>= 4.0.0)
|
61
|
+
reline (>= 0.4.2)
|
62
|
+
json (2.7.2)
|
63
|
+
language_server-protocol (3.17.0.3)
|
64
|
+
logger (1.6.1)
|
65
|
+
loofah (2.22.0)
|
59
66
|
crass (~> 1.0.2)
|
60
|
-
nokogiri (>= 1.
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
mini_portile2 (~> 2.6.1)
|
67
|
+
nokogiri (>= 1.12.0)
|
68
|
+
mini_portile2 (2.8.7)
|
69
|
+
minitest (5.25.1)
|
70
|
+
nokogiri (1.16.7)
|
71
|
+
mini_portile2 (~> 2.8.2)
|
66
72
|
racc (~> 1.4)
|
67
|
-
|
68
|
-
|
73
|
+
ostruct (0.6.0)
|
74
|
+
parallel (1.26.3)
|
75
|
+
parser (3.3.5.0)
|
69
76
|
ast (~> 2.4.1)
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
77
|
+
racc
|
78
|
+
psych (5.1.2)
|
79
|
+
stringio
|
80
|
+
racc (1.8.1)
|
81
|
+
rack (3.1.7)
|
82
|
+
rack-session (2.0.0)
|
83
|
+
rack (>= 3.0.0)
|
84
|
+
rack-test (2.1.0)
|
85
|
+
rack (>= 1.3)
|
86
|
+
rackup (2.1.0)
|
87
|
+
rack (>= 3)
|
88
|
+
webrick (~> 1.8)
|
89
|
+
rails-dom-testing (2.2.0)
|
90
|
+
activesupport (>= 5.0.0)
|
91
|
+
minitest
|
76
92
|
nokogiri (>= 1.6)
|
77
|
-
rails-html-sanitizer (1.
|
78
|
-
loofah (~> 2.
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
rspec
|
93
|
+
rails-html-sanitizer (1.6.0)
|
94
|
+
loofah (~> 2.21)
|
95
|
+
nokogiri (~> 1.14)
|
96
|
+
railties (7.2.1)
|
97
|
+
actionpack (= 7.2.1)
|
98
|
+
activesupport (= 7.2.1)
|
99
|
+
irb (~> 1.13)
|
100
|
+
rackup (>= 1.0.0)
|
101
|
+
rake (>= 12.2)
|
102
|
+
thor (~> 1.0, >= 1.2.2)
|
103
|
+
zeitwerk (~> 2.6)
|
104
|
+
rainbow (3.1.1)
|
105
|
+
rake (13.2.1)
|
106
|
+
rdoc (6.7.0)
|
107
|
+
psych (>= 4.0.0)
|
108
|
+
regexp_parser (2.9.2)
|
109
|
+
reline (0.5.10)
|
110
|
+
io-console (~> 0.5)
|
111
|
+
rspec (3.13.0)
|
112
|
+
rspec-core (~> 3.13.0)
|
113
|
+
rspec-expectations (~> 3.13.0)
|
114
|
+
rspec-mocks (~> 3.13.0)
|
115
|
+
rspec-core (3.13.1)
|
116
|
+
rspec-support (~> 3.13.0)
|
117
|
+
rspec-expectations (3.13.3)
|
96
118
|
diff-lcs (>= 1.2.0, < 2.0)
|
97
|
-
rspec-support (~> 3.
|
98
|
-
rspec-mocks (3.
|
119
|
+
rspec-support (~> 3.13.0)
|
120
|
+
rspec-mocks (3.13.1)
|
99
121
|
diff-lcs (>= 1.2.0, < 2.0)
|
100
|
-
rspec-support (~> 3.
|
101
|
-
rspec-support (3.
|
102
|
-
rubocop (1.
|
122
|
+
rspec-support (~> 3.13.0)
|
123
|
+
rspec-support (3.13.1)
|
124
|
+
rubocop (1.66.1)
|
125
|
+
json (~> 2.3)
|
126
|
+
language_server-protocol (>= 3.17.0)
|
103
127
|
parallel (~> 1.10)
|
104
|
-
parser (>= 3.
|
128
|
+
parser (>= 3.3.0.2)
|
105
129
|
rainbow (>= 2.2.2, < 4.0)
|
106
|
-
regexp_parser (>=
|
107
|
-
|
108
|
-
rubocop-ast (>= 1.9.1, < 2.0)
|
130
|
+
regexp_parser (>= 2.4, < 3.0)
|
131
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
109
132
|
ruby-progressbar (~> 1.7)
|
110
|
-
unicode-display_width (>=
|
111
|
-
rubocop-ast (1.
|
112
|
-
parser (>= 3.
|
113
|
-
rubocop-performance (1.
|
114
|
-
rubocop (>= 1.
|
115
|
-
rubocop-ast (>=
|
133
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
134
|
+
rubocop-ast (1.32.3)
|
135
|
+
parser (>= 3.3.1.0)
|
136
|
+
rubocop-performance (1.22.1)
|
137
|
+
rubocop (>= 1.48.1, < 2.0)
|
138
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
116
139
|
rubocop-rake (0.6.0)
|
117
140
|
rubocop (~> 1.0)
|
118
|
-
rubocop-rspec (
|
119
|
-
rubocop (~> 1.
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
sexp_processor (~> 4.
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
141
|
+
rubocop-rspec (3.0.5)
|
142
|
+
rubocop (~> 1.61)
|
143
|
+
ruby-progressbar (1.13.0)
|
144
|
+
ruby_parser (3.21.1)
|
145
|
+
racc (~> 1.5)
|
146
|
+
sexp_processor (~> 4.16)
|
147
|
+
securerandom (0.3.1)
|
148
|
+
sexp_processor (4.17.2)
|
149
|
+
sqlite3 (2.1.0)
|
150
|
+
mini_portile2 (~> 2.8.0)
|
151
|
+
stringio (3.1.1)
|
152
|
+
thor (1.3.2)
|
153
|
+
tzinfo (2.0.6)
|
128
154
|
concurrent-ruby (~> 1.0)
|
129
|
-
unicode-display_width (2.
|
130
|
-
|
155
|
+
unicode-display_width (2.6.0)
|
156
|
+
useragent (0.16.10)
|
157
|
+
webrick (1.8.2)
|
158
|
+
zeitwerk (2.6.18)
|
131
159
|
|
132
160
|
PLATFORMS
|
133
161
|
ruby
|
134
162
|
|
135
163
|
DEPENDENCIES
|
136
|
-
activerecord
|
137
164
|
bundler
|
138
|
-
database_cleaner
|
139
165
|
fasterer
|
140
166
|
generator_spec
|
141
167
|
lite-command!
|
@@ -148,4 +174,4 @@ DEPENDENCIES
|
|
148
174
|
sqlite3
|
149
175
|
|
150
176
|
BUNDLED WITH
|
151
|
-
2.
|
177
|
+
2.3.11
|