lite-command 1.0.5 → 1.0.6

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: 9141c1c81113183cf0aef01196c5a8fb0992bbf39f65e08f40dc3eddbc568d13
4
- data.tar.gz: 0e8f03b9c8673c6b84ead04e55e57895531895b3e59abb0b297dc296fe2f9d48
3
+ metadata.gz: d87e7d29724662cbe21a43b565e0452d97acbd9556bbf4b55689c773e91b73d4
4
+ data.tar.gz: 3eeca99338dfcdb01d82946c24dc1477c712af81f1400b02bc6758a114cae68f
5
5
  SHA512:
6
- metadata.gz: fd3f5bf803c7d220d060e0d21e7525600993700744bb2b199d5d0aef2ad77505668c2f6166e7b393550582f813032431fe43b2ab23af9817535914bceeceb897
7
- data.tar.gz: 4c38a82af3484b97253c2621721daa2722090abf4dd6ddabf0d7a16671f0707e5249794034835f8caf1e7e90c1c5c0dc40b5de59f3c76139d8f96fdd914b6f38
6
+ metadata.gz: '092dde4f9c34f13e7f5df9fd848f8e77363636ba8ca7ac11cf90e1b86762f6730828d1243f6d32aa08422094c614463f1f5a8dd3e8d2fc34d77374ea3f7df0ae'
7
+ data.tar.gz: 21506fbf38db972e141b3bd638c883818304703e8d049ea571227bde7580e341fbaa73bd5b62eb02a17c17c2488258536b5eb40bd9f00a18b17989a299d6c361
@@ -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.0.6] - 2019-09-07
10
+ ### Added
11
+ - Raise error when class `call` if class doesn't respond_to `execute`
12
+
9
13
  ## [1.0.5] - 2019-09-05
10
14
  ### Added
11
15
  - Add `merge_exception!` method to errors module
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-command (1.0.5)
4
+ lite-command (1.0.6)
5
5
  lite-errors
6
6
  lite-memoize
7
7
 
@@ -105,7 +105,7 @@ GEM
105
105
  tzinfo (1.2.5)
106
106
  thread_safe (~> 0.1)
107
107
  unicode-display_width (1.6.0)
108
- zeitwerk (2.1.9)
108
+ zeitwerk (2.1.10)
109
109
 
110
110
  PLATFORMS
111
111
  ruby
@@ -8,6 +8,8 @@ module Lite
8
8
 
9
9
  def call(*args)
10
10
  klass = new(*args)
11
+ raise Lite::Command::NotImplementedError unless klass.respond_to?(:execute)
12
+
11
13
  klass.call
12
14
  klass
13
15
  end
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Command
5
5
 
6
- VERSION ||= '1.0.5'
6
+ VERSION ||= '1.0.6'
7
7
 
8
8
  end
9
9
  end
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.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-05 00:00:00.000000000 Z
11
+ date: 2019-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lite-errors