servicify 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +7 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/README.md +9 -1
- data/lib/servicify/object.rb +3 -0
- data/lib/servicify/version.rb +1 -1
- data/servicify.gemspec +2 -2
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4096c92302448f13875473e6b0173709a3de73fb7a74eac10afea5f32b1a3b26
|
4
|
+
data.tar.gz: 06eddf0c15e0bc5526655046ab4cc12b9f5fdf9951560bc0f0593dca2753fc29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27461e8ef8adad3cdc86910919d77dccfe00d88c4e2a397558b5a593f4218d2bf89f5fe4dc5899d785f8a1484cefd277e9c70a82518ea1d16f5f28c521040b24
|
7
|
+
data.tar.gz: 47c6aebd3c1d3b925c68d478eef1aff065560073439bf2b6825ef40b8870856e8ba28b75240f8251445f217748f9fa679a4d104d37036b40738b311cd5e9d9a7
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -21,6 +21,7 @@ Or install it yourself as:
|
|
21
21
|
## Usage
|
22
22
|
|
23
23
|
> https://www.driftingruby.com/episodes/service-objects-for-api-interactions-with-twilio
|
24
|
+
|
24
25
|
> All the credit goes to [Dave Kimura](https://www.twitter.com/kobaltz) from [DriftingRuby](https://www.driftingruby.com)
|
25
26
|
|
26
27
|
```ruby
|
@@ -34,7 +35,14 @@ class MyService < Servicify::Object
|
|
34
35
|
end
|
35
36
|
```
|
36
37
|
|
37
|
-
Your service
|
38
|
+
Your service will then gets access to `success?`, `failure?`, and `errors` methods.
|
39
|
+
|
40
|
+
You can also write your service to inherit from `ServiceResult` class
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
class MyService < ServiceResult
|
44
|
+
end
|
45
|
+
```
|
38
46
|
|
39
47
|
## Development
|
40
48
|
|
data/lib/servicify/object.rb
CHANGED
data/lib/servicify/version.rb
CHANGED
data/servicify.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ["Olivier"]
|
9
9
|
spec.email = ["olivier@yafoy.com"]
|
10
10
|
|
11
|
-
spec.summary = "A Ruby gem
|
12
|
-
spec.homepage = "https://github.com/olimart/
|
11
|
+
spec.summary = "A Ruby gem providing a skeleton to build service object"
|
12
|
+
spec.homepage = "https://github.com/olimart/servicify"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: servicify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -56,22 +56,22 @@ dependencies:
|
|
56
56
|
name: minitest-reporters
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '1.3'
|
62
59
|
- - ">="
|
63
60
|
- !ruby/object:Gem::Version
|
64
61
|
version: 1.3.0
|
62
|
+
- - "~>"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '1.3'
|
65
65
|
type: :development
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- - "~>"
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '1.3'
|
72
69
|
- - ">="
|
73
70
|
- !ruby/object:Gem::Version
|
74
71
|
version: 1.3.0
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '1.3'
|
75
75
|
description:
|
76
76
|
email:
|
77
77
|
- olivier@yafoy.com
|
@@ -94,7 +94,7 @@ files:
|
|
94
94
|
- lib/servicify/object.rb
|
95
95
|
- lib/servicify/version.rb
|
96
96
|
- servicify.gemspec
|
97
|
-
homepage: https://github.com/olimart/
|
97
|
+
homepage: https://github.com/olimart/servicify
|
98
98
|
licenses:
|
99
99
|
- MIT
|
100
100
|
metadata: {}
|
@@ -113,9 +113,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
|
-
|
117
|
-
rubygems_version: 2.7.6
|
116
|
+
rubygems_version: 3.0.3
|
118
117
|
signing_key:
|
119
118
|
specification_version: 4
|
120
|
-
summary: A Ruby gem
|
119
|
+
summary: A Ruby gem providing a skeleton to build service object
|
121
120
|
test_files: []
|