g2_command 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a996a6d1ebafe9d351d3b0762c9695ffaf531d9afb32430151f9eb694fa34929
4
- data.tar.gz: c26f9ee43fce8981d4fc26235f015d7b6059e735bc32b260ea48bb8fdcec838e
3
+ metadata.gz: 4a414e402e88042b9e912b0e2611107225cd72b2a64dde7109c925a203e7b252
4
+ data.tar.gz: 0e3f24ad1832e076fcd44bda650ccc3a974b5fa6a32047a51f381b8c95a350b8
5
5
  SHA512:
6
- metadata.gz: 3fe9068260e085981e0b0d8a49b7309a5e2a549bf05161cb6e8a2c86ece2991b7249e59748ae48e2091de3f9e79f58a5a16463670eb2ffb0c79e393c4b1b8b00
7
- data.tar.gz: 8e88889b4057693f1f6ac0dcc84526e01a4048ab188ee216f4b6d852bb59d830f567e4f7f95f3feb411a8cb4d53987864f5d749895ec4f29ebe5e9580997d89f
6
+ metadata.gz: da506bbdd9604b9b4c2e32e688cc0147d40e06cf65bf535cac6aa1ac492d9b6b46bf31adca323564291420aae0abda58a1086ab72ad6d0fe79075569fecde76f
7
+ data.tar.gz: 3434bf4a7299f14ffee726057d1c7738f57feb687bff860bbd3ccd01d017d0cdea3f808c40a9ae6002d5c47e3aa5ae22058af8544a73a04f768da48952eff282
@@ -7,12 +7,18 @@ jobs:
7
7
 
8
8
  runs-on: ubuntu-latest
9
9
 
10
+ strategy:
11
+ matrix:
12
+ ruby:
13
+ - 2.6.6
14
+ - 2.7.1
15
+
10
16
  steps:
11
17
  - uses: actions/checkout@v2
12
18
  - name: Set up Ruby
13
19
  uses: ruby/setup-ruby@v1
14
20
  with:
15
- ruby-version: 2.6.6
21
+ ruby-version: ${{ matrix.ruby }}
16
22
  - name: Configure Bundler
17
23
  run: |
18
24
  gem install bundler:2.1.4 --no-document
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.6
1
+ 2.7.1
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 2.6.6
1
+ ruby 2.7.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- g2_command (2.0.0)
4
+ g2_command (2.1.0)
5
5
  activemodel (>= 6.0, < 7)
6
6
  activesupport (>= 6.0, < 7)
7
7
  dry-initializer (~> 3.0)
@@ -10,61 +10,61 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (6.0.2.2)
14
- actionpack (= 6.0.2.2)
13
+ actioncable (6.0.3)
14
+ actionpack (= 6.0.3)
15
15
  nio4r (~> 2.0)
16
16
  websocket-driver (>= 0.6.1)
17
- actionmailbox (6.0.2.2)
18
- actionpack (= 6.0.2.2)
19
- activejob (= 6.0.2.2)
20
- activerecord (= 6.0.2.2)
21
- activestorage (= 6.0.2.2)
22
- activesupport (= 6.0.2.2)
17
+ actionmailbox (6.0.3)
18
+ actionpack (= 6.0.3)
19
+ activejob (= 6.0.3)
20
+ activerecord (= 6.0.3)
21
+ activestorage (= 6.0.3)
22
+ activesupport (= 6.0.3)
23
23
  mail (>= 2.7.1)
24
- actionmailer (6.0.2.2)
25
- actionpack (= 6.0.2.2)
26
- actionview (= 6.0.2.2)
27
- activejob (= 6.0.2.2)
24
+ actionmailer (6.0.3)
25
+ actionpack (= 6.0.3)
26
+ actionview (= 6.0.3)
27
+ activejob (= 6.0.3)
28
28
  mail (~> 2.5, >= 2.5.4)
29
29
  rails-dom-testing (~> 2.0)
30
- actionpack (6.0.2.2)
31
- actionview (= 6.0.2.2)
32
- activesupport (= 6.0.2.2)
30
+ actionpack (6.0.3)
31
+ actionview (= 6.0.3)
32
+ activesupport (= 6.0.3)
33
33
  rack (~> 2.0, >= 2.0.8)
34
34
  rack-test (>= 0.6.3)
35
35
  rails-dom-testing (~> 2.0)
36
36
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
37
- actiontext (6.0.2.2)
38
- actionpack (= 6.0.2.2)
39
- activerecord (= 6.0.2.2)
40
- activestorage (= 6.0.2.2)
41
- activesupport (= 6.0.2.2)
37
+ actiontext (6.0.3)
38
+ actionpack (= 6.0.3)
39
+ activerecord (= 6.0.3)
40
+ activestorage (= 6.0.3)
41
+ activesupport (= 6.0.3)
42
42
  nokogiri (>= 1.8.5)
43
- actionview (6.0.2.2)
44
- activesupport (= 6.0.2.2)
43
+ actionview (6.0.3)
44
+ activesupport (= 6.0.3)
45
45
  builder (~> 3.1)
46
46
  erubi (~> 1.4)
47
47
  rails-dom-testing (~> 2.0)
48
48
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
49
- activejob (6.0.2.2)
50
- activesupport (= 6.0.2.2)
49
+ activejob (6.0.3)
50
+ activesupport (= 6.0.3)
51
51
  globalid (>= 0.3.6)
52
- activemodel (6.0.2.2)
53
- activesupport (= 6.0.2.2)
54
- activerecord (6.0.2.2)
55
- activemodel (= 6.0.2.2)
56
- activesupport (= 6.0.2.2)
57
- activestorage (6.0.2.2)
58
- actionpack (= 6.0.2.2)
59
- activejob (= 6.0.2.2)
60
- activerecord (= 6.0.2.2)
52
+ activemodel (6.0.3)
53
+ activesupport (= 6.0.3)
54
+ activerecord (6.0.3)
55
+ activemodel (= 6.0.3)
56
+ activesupport (= 6.0.3)
57
+ activestorage (6.0.3)
58
+ actionpack (= 6.0.3)
59
+ activejob (= 6.0.3)
60
+ activerecord (= 6.0.3)
61
61
  marcel (~> 0.3.1)
62
- activesupport (6.0.2.2)
62
+ activesupport (6.0.3)
63
63
  concurrent-ruby (~> 1.0, >= 1.0.2)
64
64
  i18n (>= 0.7, < 2)
65
65
  minitest (~> 5.1)
66
66
  tzinfo (~> 1.1)
67
- zeitwerk (~> 2.2)
67
+ zeitwerk (~> 2.2, >= 2.2.2)
68
68
  ast (2.4.0)
69
69
  builder (3.2.4)
70
70
  coderay (1.1.2)
@@ -95,7 +95,7 @@ GEM
95
95
  marcel (0.3.3)
96
96
  mimemagic (~> 0.3.2)
97
97
  method_source (0.9.2)
98
- mimemagic (0.3.4)
98
+ mimemagic (0.3.5)
99
99
  mini_mime (1.0.2)
100
100
  mini_portile2 (2.4.0)
101
101
  minitest (5.14.0)
@@ -111,29 +111,29 @@ GEM
111
111
  rack (2.2.2)
112
112
  rack-test (1.1.0)
113
113
  rack (>= 1.0, < 3)
114
- rails (6.0.2.2)
115
- actioncable (= 6.0.2.2)
116
- actionmailbox (= 6.0.2.2)
117
- actionmailer (= 6.0.2.2)
118
- actionpack (= 6.0.2.2)
119
- actiontext (= 6.0.2.2)
120
- actionview (= 6.0.2.2)
121
- activejob (= 6.0.2.2)
122
- activemodel (= 6.0.2.2)
123
- activerecord (= 6.0.2.2)
124
- activestorage (= 6.0.2.2)
125
- activesupport (= 6.0.2.2)
114
+ rails (6.0.3)
115
+ actioncable (= 6.0.3)
116
+ actionmailbox (= 6.0.3)
117
+ actionmailer (= 6.0.3)
118
+ actionpack (= 6.0.3)
119
+ actiontext (= 6.0.3)
120
+ actionview (= 6.0.3)
121
+ activejob (= 6.0.3)
122
+ activemodel (= 6.0.3)
123
+ activerecord (= 6.0.3)
124
+ activestorage (= 6.0.3)
125
+ activesupport (= 6.0.3)
126
126
  bundler (>= 1.3.0)
127
- railties (= 6.0.2.2)
127
+ railties (= 6.0.3)
128
128
  sprockets-rails (>= 2.0.0)
129
129
  rails-dom-testing (2.0.3)
130
130
  activesupport (>= 4.2.0)
131
131
  nokogiri (>= 1.6)
132
132
  rails-html-sanitizer (1.3.0)
133
133
  loofah (~> 2.3)
134
- railties (6.0.2.2)
135
- actionpack (= 6.0.2.2)
136
- activesupport (= 6.0.2.2)
134
+ railties (6.0.3)
135
+ actionpack (= 6.0.3)
136
+ activesupport (= 6.0.3)
137
137
  method_source
138
138
  rake (>= 0.8.7)
139
139
  thor (>= 0.20.3, < 2.0)
data/lib/command.rb CHANGED
@@ -19,7 +19,7 @@ module Command
19
19
  include ActiveModel::Validations
20
20
 
21
21
  def initialize(inputs = {})
22
- super(Command::InputMiddleware.call(inputs))
22
+ super(**Command::InputMiddleware.call(inputs))
23
23
  end
24
24
 
25
25
  def execute
@@ -54,7 +54,7 @@ module Command
54
54
 
55
55
  class_methods do
56
56
  def run(inputs = {})
57
- new(inputs).run
57
+ new(**inputs).run
58
58
  end
59
59
 
60
60
  def run!(inputs = {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Command
4
- VERSION = '2.0.0'
4
+ VERSION = '2.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: g2_command
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamed Asghari
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-02 00:00:00.000000000 Z
11
+ date: 2020-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
- rubygems_version: 3.0.3
132
+ rubygems_version: 3.1.2
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: An implementation of the command pattern using dry-rb