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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37c3daf09566ed4264b0a00906fac11a9e72a2f3388fe69e483c2b9381432a74
4
- data.tar.gz: 7dd31cec35ddda18db5f0bd955de8814bbd9307e5afbd2dc03ac7cfbdc09dd17
3
+ metadata.gz: 4096c92302448f13875473e6b0173709a3de73fb7a74eac10afea5f32b1a3b26
4
+ data.tar.gz: 06eddf0c15e0bc5526655046ab4cc12b9f5fdf9951560bc0f0593dca2753fc29
5
5
  SHA512:
6
- metadata.gz: 360df49177b4cf73283ba3d2806f26ea5d40ab54696caf16f36cdd4ffe6ba0e126c47920cf64e43585734ac52df421998076a01072aa6856fd4b4daec3c6e5ab
7
- data.tar.gz: 8307040197e980f3515ecaef53974904f58d2a6b9d6e462b651d9c0412c96c2d08ba6c59d23c837fd76287d7f901f8a507bde4036e68b401992bf48569e7df30
6
+ metadata.gz: 27461e8ef8adad3cdc86910919d77dccfe00d88c4e2a397558b5a593f4218d2bf89f5fe4dc5899d785f8a1484cefd277e9c70a82518ea1d16f5f28c521040b24
7
+ data.tar.gz: 47c6aebd3c1d3b925c68d478eef1aff065560073439bf2b6825ef40b8870856e8ba28b75240f8251445f217748f9fa679a4d104d37036b40738b311cd5e9d9a7
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
  /log/
10
10
  **/.DS_Store
11
11
  .DS_Store
12
+ *.gem
@@ -1,3 +1,9 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.0 / 2018-07-17
3
+ ## 0.1.1 / 2019-05-03
4
+
5
+ - Alias `ServiceResult` to `Servicify::Object`
6
+
7
+ ## 0.1.0 / 2018-10-15
8
+
9
+ - Initial release
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
5
  # Specify your gem's dependencies in scaffold.gemspec
6
6
  gemspec
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- servicify (0.1.0)
4
+ servicify (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -28,4 +28,4 @@ DEPENDENCIES
28
28
  servicify!
29
29
 
30
30
  BUNDLED WITH
31
- 1.16.1
31
+ 1.17.2
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 gives you access to `success?`, `failure?`, and `errors` methods when run.
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
 
@@ -7,6 +7,7 @@ module Servicify
7
7
  end
8
8
 
9
9
  attr_reader :result
10
+
10
11
  def constructor
11
12
  @result = call
12
13
  self
@@ -29,3 +30,5 @@ module Servicify
29
30
  end
30
31
  end
31
32
  end
33
+
34
+ class ServiceResult < Servicify::Object; end
@@ -1,3 +1,3 @@
1
1
  module Servicify
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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 for interacting with XXX's REST API"
12
- spec.homepage = "https://github.com/olimart/XXX"
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.0
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: 2018-10-15 00:00:00.000000000 Z
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/XXX
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
- rubyforge_project:
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 for interacting with XXX's REST API
119
+ summary: A Ruby gem providing a skeleton to build service object
121
120
  test_files: []