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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8276865933176a07427bd4a80d4d3bcdf256feb6eaccb7826853f66a5dabc3a0
4
- data.tar.gz: 623626a014811b47eddc3a2adbe757444083c0d0ec98a5aad30b50a5b5b9e606
3
+ metadata.gz: 684eabeaf395c6e9bed47aad1b9e1eac697a2cfb0166a9814b23be9a1375a091
4
+ data.tar.gz: b70e0c2599fe3b44c87ab9a1277a51619aa8a05dd07474549e410a67c2f17275
5
5
  SHA512:
6
- metadata.gz: b215647faddd4a9ffe954f4a439cfcc6cf59c60d5719541abe2b74c544e0eaee9a425833009eefc31c664e5c38f9d972e0e0e8490328d0612f2f357d7f21e81a
7
- data.tar.gz: ce6049235be9c026c1ce070e22bb3dd5ca740bed64a15f5fc5f25f007b398aefa17de2e6118376bf6a437326735ee0ec384615b725e774f055818f2aa7d128fe
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: 2.7
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
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.3.0] - 2021-07-19
10
+ ### Added
11
+ - Added Ruby 3.0 support
12
+
9
13
  ## [1.2.0] - 2021-02-04
10
14
  ### Changed
11
15
  - Add failed_steps to procedure
data/Gemfile.lock CHANGED
@@ -1,32 +1,32 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-command (1.2.0)
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.1)
12
- actionview (= 6.1.1)
13
- activesupport (= 6.1.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.1)
19
- activesupport (= 6.1.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.1)
25
- activesupport (= 6.1.1)
26
- activerecord (6.1.1)
27
- activemodel (= 6.1.1)
28
- activesupport (= 6.1.1)
29
- activesupport (6.1.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.8)
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.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.8.3)
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.8)
54
+ i18n (1.8.10)
55
55
  concurrent-ruby (~> 1.0)
56
- lite-errors (1.0.1)
57
- lite-memoize (1.0.3)
58
- loofah (2.9.0)
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.0)
63
- minitest (5.14.3)
64
- nokogiri (1.11.1)
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.0.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.1)
80
- actionpack (= 6.1.1)
81
- activesupport (= 6.1.1)
79
+ railties (6.1.4)
80
+ actionpack (= 6.1.4)
81
+ activesupport (= 6.1.4)
82
82
  method_source
83
- rake (>= 0.8.7)
83
+ rake (>= 0.13)
84
84
  thor (~> 1.0)
85
85
  rainbow (3.0.0)
86
- rake (13.0.3)
87
- regexp_parser (2.0.3)
88
- rexml (3.2.4)
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.9.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.2.0, < 2.0)
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.4.1)
112
- parser (>= 2.7.1.5)
113
- rubocop-performance (1.9.2)
114
- rubocop (>= 0.90.0, < 2.0)
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.5.1)
117
- rubocop
118
- rubocop-rspec (2.2.0)
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.15.1)
123
- sexp_processor (~> 4.9)
124
- sexp_processor (4.15.2)
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.8
151
+ 2.2.24
@@ -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)
@@ -6,10 +6,10 @@ module Lite
6
6
 
7
7
  class << self
8
8
 
9
- def call(*args)
9
+ def call(*args, **kwargs, &block)
10
10
  raise Lite::Command::NotImplementedError unless defined?(execute)
11
11
 
12
- execute(*args)
12
+ execute(*args, **kwargs, &block)
13
13
  end
14
14
 
15
15
  end
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Command
5
5
 
6
- VERSION = '1.2.0'
6
+ VERSION = '1.3.0'
7
7
 
8
8
  end
9
9
  end
data/lite-command.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  )
26
26
  else
27
27
  raise 'RubyGems 2.0 or newer is required to protect against ' \
28
- 'public gem pushes.'
28
+ 'public gem pushes.'
29
29
  end
30
30
 
31
31
  # Specify which files should be added to the gem when it is released.
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.2.0
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-02-04 00:00:00.000000000 Z
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.8
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)