lite-service 1.0.2 → 1.0.3

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: fbffb01cc4f2a0cc3ed9c2581adf7f903208b1bf888a34740a9d12ee63ecf7c1
4
- data.tar.gz: 41597b9d29fcd29af77c4ab5c10c1dd030193ef72433316a4d78fa93fb7ca348
3
+ metadata.gz: 122acd6543eaaf0ac66c979f6233f1c026a3ba051fc958de3cc3c307ae66c188
4
+ data.tar.gz: 2b2e1a181939525c73f804682077a02a42a91725e2c0d7e82840a942c3aac56a
5
5
  SHA512:
6
- metadata.gz: 2549a3c693bab9643b2e917947f4c43bfb12714a35dd5947033a9b396df38c6f426d938f9b117d9db2a2b454147359f2c250ea825f481be51a8980b0ab59a8a9
7
- data.tar.gz: b9f9720664c1cbd5188de94d02ad86324634d1477db0810d06a5de60de63615c1a7d02d1cfb9c0b651edd78a7cfedae00edc609874585248c0d7f290807a9515
6
+ metadata.gz: cc97f416cef81f1d7bfa4a5d7ede40788db5f7f045543e0bc74551368715380849b13f9ede1408e6fa1163fa64141d84a3fbdf363d4b822ba61069eaa5ce0be3
7
+ data.tar.gz: 97f7c060c2d3e84102fa57bb4cdcef7f559e59b4e8fe759ea2891ef2e66e3d139652ce811bcfc27dbaef5933be24d390be1156b3034eed4c7d423e122c392740
@@ -6,10 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- ## [1.0.1] - 2019-06-25
9
+ ## [1.0.3] - 2019-07-12
10
+ ### Added
11
+ - Added `self.run` method that is like call but returns the result instead of its self.
12
+
13
+ ## [1.0.2] - 2019-06-25
10
14
  ### Changed
11
15
  - Changed command module to class so that it's inheritable
12
16
 
17
+ ## [1.0.1] - 2019-06-25
18
+ ### Changed
19
+ - Rename `run` to `command`
20
+
13
21
  ## [1.0.0] - 2019-06-24
14
22
  ### Added
15
23
  - Initial project version
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-service (1.0.2)
4
+ lite-service (1.0.3)
5
5
  lite-errors
6
6
  lite-memoize
7
7
 
data/README.md CHANGED
@@ -67,11 +67,16 @@ service.called? #=> false
67
67
  service.call #=> { 'fingerprint_1' => [ 'Toy Story 1', ... ] }
68
68
  service.called? #=> true
69
69
 
70
- # or
70
+ # - or -
71
71
 
72
72
  service = SearchMovies.call('Toy Story')
73
73
  service.called? #=> true
74
74
  service.call #=> { 'fingerprint_1' => [ 'Toy Story 1', ... ] }
75
+
76
+ # - or -
77
+
78
+ # Use full when you are not using the Errors mixin.
79
+ SearchMovies.run('Toy Story') #=> { 'fingerprint_1' => [ 'Toy Story 1', ... ] }
75
80
  ```
76
81
 
77
82
  **Result**
@@ -12,6 +12,11 @@ module Lite
12
12
  klass
13
13
  end
14
14
 
15
+ def run(*args)
16
+ klass = new(*args)
17
+ klass.call
18
+ end
19
+
15
20
  end
16
21
 
17
22
  attr_reader :result
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Service
5
5
 
6
- VERSION ||= '1.0.2'
6
+ VERSION ||= '1.0.3'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
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-06-28 00:00:00.000000000 Z
11
+ date: 2019-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lite-errors