service_record 1.2.3 → 1.2.4

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: 18360cbcbc1cfc03843dc3b6a705853cc8a346c1784403a12718603a1b4d5542
4
- data.tar.gz: 89570b1eaf7ad8718912ed1a7c10a9be1a278868f3987abbe184d6d0004e0401
3
+ metadata.gz: b7916d1e6a73deee6ce9dddf92550452365db224960d08d4171db0581bc67fde
4
+ data.tar.gz: 57d614b6361e6643890c88730100fe33b490c109962d66e4dae241a985bf9e42
5
5
  SHA512:
6
- metadata.gz: 7ef18d0df8ae49e3bcfc1ebaed6337b537877d5f82962d7e3cfae93ee5106c4c8ded431203c59e25465f8377fd28d5869350e8046e939ba1c2e68548c7720e01
7
- data.tar.gz: d0242117bbcad6173708a181f4ca16ff330991c40e76333c5ce5b08290af6b6ff85a6dccfe0adbf1d316ce972bf2601faa543fb67af530ea540440fd01e7f82c
6
+ metadata.gz: 4e4807fa30e0d3b053dd769078c8d3938eb02ad7de3f14812fa3bf9a6442f38652a317bff66ac4765c273b1b29c24697ae71cc857040263de03df4361869f4cd
7
+ data.tar.gz: '0488df45e2d0177e24db8f1f88077ccc94b1e8c91e7612a6176ad70f99802561fe0f774e61a73eaccaf0a0c1ce9cfaf4b6223a0cbe1a4743877305e389924e8f'
data/README.md CHANGED
@@ -64,7 +64,9 @@ The returned response from a service will have the following useful attributes/m
64
64
  * `success?` contains true if service was performed without any errors, false otherwise
65
65
  * `failure?` contains opposite of success?
66
66
  * `result` contains returned value of service perform function
67
- * `errors` contains details about issues that occurr while performing the service
67
+ * `errors` contains details about issues that occurr while performing the service
68
+
69
+ There is a **perform!** (with a bang !) method which will raise **ServiceRecord::Failure** in case of service failure.
68
70
 
69
71
 
70
72
 
@@ -1,3 +1,3 @@
1
1
  module ServiceRecord
2
- VERSION = '1.2.3'.freeze
2
+ VERSION = '1.2.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: service_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muhammad Usman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-19 00:00:00.000000000 Z
11
+ date: 2020-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6.0'
19
+ version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '6.0'
26
+ version: '5.0'
27
27
  description: ActiveRecord lookalike but for business model requirements
28
28
  email:
29
29
  - uxman.sherwani@gmail.com