rails_application_service 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/README.md +2 -4
- data/lib/application_service/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2660a3497bae6216e343a1b8a930f75bbd0dd470ed3229060cc8881438d56b1
|
4
|
+
data.tar.gz: b97c1a7919d2ca70aef177a1701e14416caf3f0a170970bbecfcf10c0e745a49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ab05ae5a159d838c65ff1b41badb518df968734462c9d52eaeeed705643de2ca6cf1aec0bc529d0f4d045efc98d4c612ebec5a7f351a953f8205fa9571cce2f
|
7
|
+
data.tar.gz: ef48067c66734b18053e04c6bc87934b9841fc4adcd19e39fe7e526d032d4f64506553c7020d7ffff5b416664e2a517b1d964f4e8dc9bc4fd3360abab5e43e1e
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -6,8 +6,8 @@ Service objects for Rails - the Rails way. This Ruby gem adds service objects to
|
|
6
6
|
|
7
7
|
**1 - Add the gem to the Rails application's Gemfile by entering:**
|
8
8
|
|
9
|
-
```
|
10
|
-
gem
|
9
|
+
```bash
|
10
|
+
gem add application_service
|
11
11
|
```
|
12
12
|
|
13
13
|
**2 - Install the gem into the Rails application's directory by running:**
|
@@ -26,8 +26,6 @@ mkdir -p app/services
|
|
26
26
|
The `ApplicationService::Base` class provides a standard interface for calling service objects. It defines a class method `call` that initializes a new instance of the service object and invokes its `call` instance method. The `call` method can accept any number of arguments, which are passed to the initializer of the service object. You can define attributes and validations just like in Active Record, using the same syntax and conventions.
|
27
27
|
|
28
28
|
### Example of a basic service:
|
29
|
-
|
30
|
-
Create an `app/services` subdirectory into the Rails application's one with your service by running:
|
31
29
|
```ruby
|
32
30
|
class MyService < ApplicationService::Base
|
33
31
|
def call
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_application_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mário Marroquim
|
@@ -15,14 +15,14 @@ dependencies:
|
|
15
15
|
requirements:
|
16
16
|
- - ">="
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: 4.2
|
18
|
+
version: '4.2'
|
19
19
|
type: :runtime
|
20
20
|
prerelease: false
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
23
|
- - ">="
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: 4.2
|
25
|
+
version: '4.2'
|
26
26
|
description: This Ruby gem adds service objects to Rails applications.
|
27
27
|
email:
|
28
28
|
- mariomarroquim@gmail.com
|
@@ -55,7 +55,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
55
55
|
requirements:
|
56
56
|
- - ">="
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version: '2.
|
58
|
+
version: '2.2'
|
59
59
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - ">="
|