lite-command 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +43 -43
- data/lib/lite/command/complex.rb +4 -4
- data/lib/lite/command/extensions/errors.rb +2 -2
- data/lib/lite/command/simple.rb +2 -2
- data/lib/lite/command/version.rb +1 -1
- data/lite-command.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 684eabeaf395c6e9bed47aad1b9e1eac697a2cfb0166a9814b23be9a1375a091
|
4
|
+
data.tar.gz: b70e0c2599fe3b44c87ab9a1277a51619aa8a05dd07474549e410a67c2f17275
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb98fbd1ab50a50c7891856d3735d7c59ce86559d5c1b017f72751e413125a5585128c298f9a508203bc01ecc0a5d130e7def18b9648eefee0d663beed3f2a7a
|
7
|
+
data.tar.gz: bff0220ecdeb881e68cb99a2fa335ed74aa01f4c779c51fb36b30b985cd266904882af58f7e7c706cdaa0d574d071211643dba62d8be264d8f0a125f5eb2d66a
|
data/.rubocop.yml
CHANGED
@@ -3,7 +3,7 @@ require:
|
|
3
3
|
- rubocop-rake
|
4
4
|
- rubocop-rspec
|
5
5
|
AllCops:
|
6
|
-
TargetRubyVersion:
|
6
|
+
TargetRubyVersion: 3.0
|
7
7
|
NewCops: enable
|
8
8
|
DisplayCopNames: true
|
9
9
|
DisplayStyleGuide: true
|
@@ -36,6 +36,8 @@ RSpec/ExampleLength:
|
|
36
36
|
Enabled: false
|
37
37
|
RSpec/MultipleExpectations:
|
38
38
|
Enabled: false
|
39
|
+
Style/ArgumentsForwarding:
|
40
|
+
Enabled: false
|
39
41
|
Style/Documentation:
|
40
42
|
Enabled: false
|
41
43
|
Style/ExpandPathArguments:
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,32 +1,32 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lite-command (1.
|
4
|
+
lite-command (1.3.0)
|
5
5
|
lite-errors
|
6
6
|
lite-memoize
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionpack (6.1.
|
12
|
-
actionview (= 6.1.
|
13
|
-
activesupport (= 6.1.
|
11
|
+
actionpack (6.1.4)
|
12
|
+
actionview (= 6.1.4)
|
13
|
+
activesupport (= 6.1.4)
|
14
14
|
rack (~> 2.0, >= 2.0.9)
|
15
15
|
rack-test (>= 0.6.3)
|
16
16
|
rails-dom-testing (~> 2.0)
|
17
17
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
18
|
-
actionview (6.1.
|
19
|
-
activesupport (= 6.1.
|
18
|
+
actionview (6.1.4)
|
19
|
+
activesupport (= 6.1.4)
|
20
20
|
builder (~> 3.1)
|
21
21
|
erubi (~> 1.4)
|
22
22
|
rails-dom-testing (~> 2.0)
|
23
23
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
24
|
-
activemodel (6.1.
|
25
|
-
activesupport (= 6.1.
|
26
|
-
activerecord (6.1.
|
27
|
-
activemodel (= 6.1.
|
28
|
-
activesupport (= 6.1.
|
29
|
-
activesupport (6.1.
|
24
|
+
activemodel (6.1.4)
|
25
|
+
activesupport (= 6.1.4)
|
26
|
+
activerecord (6.1.4)
|
27
|
+
activemodel (= 6.1.4)
|
28
|
+
activesupport (= 6.1.4)
|
29
|
+
activesupport (6.1.4)
|
30
30
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
31
31
|
i18n (>= 1.6, < 2)
|
32
32
|
minitest (>= 5.1)
|
@@ -35,37 +35,37 @@ GEM
|
|
35
35
|
ast (2.4.2)
|
36
36
|
builder (3.2.4)
|
37
37
|
colorize (0.8.1)
|
38
|
-
concurrent-ruby (1.1.
|
38
|
+
concurrent-ruby (1.1.9)
|
39
39
|
crass (1.0.6)
|
40
40
|
database_cleaner (2.0.1)
|
41
41
|
database_cleaner-active_record (~> 2.0.0)
|
42
|
-
database_cleaner-active_record (2.0.
|
42
|
+
database_cleaner-active_record (2.0.1)
|
43
43
|
activerecord (>= 5.a)
|
44
44
|
database_cleaner-core (~> 2.0.0)
|
45
45
|
database_cleaner-core (2.0.1)
|
46
46
|
diff-lcs (1.4.4)
|
47
47
|
erubi (1.10.0)
|
48
|
-
fasterer (0.
|
48
|
+
fasterer (0.9.0)
|
49
49
|
colorize (~> 0.7)
|
50
50
|
ruby_parser (>= 3.14.1)
|
51
51
|
generator_spec (0.9.4)
|
52
52
|
activesupport (>= 3.0.0)
|
53
53
|
railties (>= 3.0.0)
|
54
|
-
i18n (1.8.
|
54
|
+
i18n (1.8.10)
|
55
55
|
concurrent-ruby (~> 1.0)
|
56
|
-
lite-errors (1.0
|
57
|
-
lite-memoize (1.0.
|
58
|
-
loofah (2.
|
56
|
+
lite-errors (1.1.0)
|
57
|
+
lite-memoize (1.0.4)
|
58
|
+
loofah (2.10.0)
|
59
59
|
crass (~> 1.0.2)
|
60
60
|
nokogiri (>= 1.5.9)
|
61
61
|
method_source (1.0.0)
|
62
|
-
mini_portile2 (2.5.
|
63
|
-
minitest (5.14.
|
64
|
-
nokogiri (1.11.
|
62
|
+
mini_portile2 (2.5.3)
|
63
|
+
minitest (5.14.4)
|
64
|
+
nokogiri (1.11.7)
|
65
65
|
mini_portile2 (~> 2.5.0)
|
66
66
|
racc (~> 1.4)
|
67
67
|
parallel (1.20.1)
|
68
|
-
parser (3.0.
|
68
|
+
parser (3.0.2.0)
|
69
69
|
ast (~> 2.4.1)
|
70
70
|
racc (1.5.2)
|
71
71
|
rack (2.2.3)
|
@@ -76,16 +76,16 @@ GEM
|
|
76
76
|
nokogiri (>= 1.6)
|
77
77
|
rails-html-sanitizer (1.3.0)
|
78
78
|
loofah (~> 2.3)
|
79
|
-
railties (6.1.
|
80
|
-
actionpack (= 6.1.
|
81
|
-
activesupport (= 6.1.
|
79
|
+
railties (6.1.4)
|
80
|
+
actionpack (= 6.1.4)
|
81
|
+
activesupport (= 6.1.4)
|
82
82
|
method_source
|
83
|
-
rake (>= 0.
|
83
|
+
rake (>= 0.13)
|
84
84
|
thor (~> 1.0)
|
85
85
|
rainbow (3.0.0)
|
86
|
-
rake (13.0.
|
87
|
-
regexp_parser (2.
|
88
|
-
rexml (3.2.
|
86
|
+
rake (13.0.6)
|
87
|
+
regexp_parser (2.1.1)
|
88
|
+
rexml (3.2.5)
|
89
89
|
rspec (3.10.0)
|
90
90
|
rspec-core (~> 3.10.0)
|
91
91
|
rspec-expectations (~> 3.10.0)
|
@@ -99,29 +99,29 @@ GEM
|
|
99
99
|
diff-lcs (>= 1.2.0, < 2.0)
|
100
100
|
rspec-support (~> 3.10.0)
|
101
101
|
rspec-support (3.10.2)
|
102
|
-
rubocop (1.
|
102
|
+
rubocop (1.18.3)
|
103
103
|
parallel (~> 1.10)
|
104
104
|
parser (>= 3.0.0.0)
|
105
105
|
rainbow (>= 2.2.2, < 4.0)
|
106
106
|
regexp_parser (>= 1.8, < 3.0)
|
107
107
|
rexml
|
108
|
-
rubocop-ast (>= 1.
|
108
|
+
rubocop-ast (>= 1.7.0, < 2.0)
|
109
109
|
ruby-progressbar (~> 1.7)
|
110
110
|
unicode-display_width (>= 1.4.0, < 3.0)
|
111
|
-
rubocop-ast (1.
|
112
|
-
parser (>=
|
113
|
-
rubocop-performance (1.
|
114
|
-
rubocop (>=
|
111
|
+
rubocop-ast (1.8.0)
|
112
|
+
parser (>= 3.0.1.1)
|
113
|
+
rubocop-performance (1.11.4)
|
114
|
+
rubocop (>= 1.7.0, < 2.0)
|
115
115
|
rubocop-ast (>= 0.4.0)
|
116
|
-
rubocop-rake (0.
|
117
|
-
rubocop
|
118
|
-
rubocop-rspec (2.
|
116
|
+
rubocop-rake (0.6.0)
|
117
|
+
rubocop (~> 1.0)
|
118
|
+
rubocop-rspec (2.4.0)
|
119
119
|
rubocop (~> 1.0)
|
120
120
|
rubocop-ast (>= 1.1.0)
|
121
121
|
ruby-progressbar (1.11.0)
|
122
|
-
ruby_parser (3.
|
123
|
-
sexp_processor (~> 4.
|
124
|
-
sexp_processor (4.15.
|
122
|
+
ruby_parser (3.16.0)
|
123
|
+
sexp_processor (~> 4.15, >= 4.15.1)
|
124
|
+
sexp_processor (4.15.3)
|
125
125
|
sqlite3 (1.4.2)
|
126
126
|
thor (1.1.0)
|
127
127
|
tzinfo (2.0.4)
|
@@ -148,4 +148,4 @@ DEPENDENCIES
|
|
148
148
|
sqlite3
|
149
149
|
|
150
150
|
BUNDLED WITH
|
151
|
-
2.2.
|
151
|
+
2.2.24
|
data/lib/lite/command/complex.rb
CHANGED
@@ -6,16 +6,16 @@ module Lite
|
|
6
6
|
|
7
7
|
class << self
|
8
8
|
|
9
|
-
def call(*args)
|
10
|
-
klass = new(*args)
|
9
|
+
def call(*args, **kwargs, &block)
|
10
|
+
klass = new(*args, **kwargs, &block)
|
11
11
|
raise Lite::Command::NotImplementedError unless klass.respond_to?(:execute)
|
12
12
|
|
13
13
|
klass.call
|
14
14
|
klass
|
15
15
|
end
|
16
16
|
|
17
|
-
def execute(*args)
|
18
|
-
klass = call(*args)
|
17
|
+
def execute(*args, **kwargs, &block)
|
18
|
+
klass = call(*args, **kwargs, &block)
|
19
19
|
klass.result
|
20
20
|
end
|
21
21
|
|
@@ -9,8 +9,8 @@ module Lite
|
|
9
9
|
|
10
10
|
module ClassMethods
|
11
11
|
|
12
|
-
def perform(*args)
|
13
|
-
klass = call(*args)
|
12
|
+
def perform(*args, **kwargs, &block)
|
13
|
+
klass = call(*args, **kwargs, &block)
|
14
14
|
|
15
15
|
if klass.success?
|
16
16
|
yield(klass.result, Lite::Command::Success, Lite::Command::Failure)
|
data/lib/lite/command/simple.rb
CHANGED
data/lib/lite/command/version.rb
CHANGED
data/lite-command.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite-command
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lite-errors
|
@@ -262,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
262
262
|
- !ruby/object:Gem::Version
|
263
263
|
version: '0'
|
264
264
|
requirements: []
|
265
|
-
rubygems_version: 3.2.
|
265
|
+
rubygems_version: 3.2.24
|
266
266
|
signing_key:
|
267
267
|
specification_version: 4
|
268
268
|
summary: Ruby Command based framework (aka service objects)
|