g2_command 2.4.0 → 2.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b498126a177312a5f04fe6b4c410de93ac2bf9ba04979bd97eb4b557f9db2ba
4
- data.tar.gz: 8c92c87dced570aa7529ba71e0bc7b81821c65b86dc6303aeb8d466dde436f3b
3
+ metadata.gz: f1c4f9ab0d59f753d75d5bb7cbc5c192bcd439948743fe961cc9a01694100265
4
+ data.tar.gz: 9df11cdc0c347adc088dfc71c8250fa0f93421643474d4673c77c7bb66bd6d80
5
5
  SHA512:
6
- metadata.gz: 90fac7759c6ef26ed7f687a5217758aa78094149b1397bb7d63cd398e0dc8327ea2197f8559e67645a02f43ec691433a9bf13a1feaf3e97706af7deeb606d293
7
- data.tar.gz: 8384432912974a58e364540608a70f673ab17c80f29ddc082d77c800a307a5788b916cc586688b60c85b72f7402320266367eaac694657329ac08efce78ad419
6
+ metadata.gz: 1efe1b711a961cf41a1e94e623ff15a0d4e8ebb71f5ed87296e35007646a02b055b639b20af46b195112f153a97ef6688cedea675880e031be7ab4310e4fe6d9
7
+ data.tar.gz: f4f52986d616a8984efae1e1a36fcbe142b02019a1d7407a39322d1775f9e353e18e22d33c83096524ac02e1536b1c5fb329aeb3ebc29e0bf719df3a46e73a3a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- g2_command (2.4.0)
4
+ g2_command (2.4.1)
5
5
  activemodel (>= 5.0, < 7)
6
6
  activesupport (>= 5.0, < 7)
7
7
  dry-initializer (~> 3.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- g2_command (2.4.0)
4
+ g2_command (2.4.1)
5
5
  activemodel (>= 5.0, < 7)
6
6
  activesupport (>= 5.0, < 7)
7
7
  dry-initializer (~> 3.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- g2_command (2.4.0)
4
+ g2_command (2.4.1)
5
5
  activemodel (>= 5.0, < 7)
6
6
  activesupport (>= 5.0, < 7)
7
7
  dry-initializer (~> 3.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- g2_command (2.4.0)
4
+ g2_command (2.4.1)
5
5
  activemodel (>= 5.0, < 7)
6
6
  activesupport (>= 5.0, < 7)
7
7
  dry-initializer (~> 3.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- g2_command (2.4.0)
4
+ g2_command (2.4.1)
5
5
  activemodel (>= 5.0, < 7)
6
6
  activesupport (>= 5.0, < 7)
7
7
  dry-initializer (~> 3.0)
data/lib/command.rb CHANGED
@@ -38,8 +38,8 @@ module Command
38
38
  errors.empty? ? Success(result) : Failure(Command::Failure.new(result, errors))
39
39
  end
40
40
 
41
- def compose(command, **args)
42
- outcome = command.run(**args)
41
+ def compose(command, *args)
42
+ outcome = command.run(*args)
43
43
 
44
44
  raise Command::Interrupt, outcome.failure.errors if outcome.failure?
45
45
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Command
4
- VERSION = '2.4.0'
4
+ VERSION = '2.4.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: g2_command
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamed Asghari