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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c641e4fbbd7285a049ad2591e7a2b3718454d16d6a073c25a300b4c710a1488
4
- data.tar.gz: eb5ebadd1db4a2c99f87f4412e26fb4c0d7e2bef4591e08a3254fd1ad139c9ab
3
+ metadata.gz: f2660a3497bae6216e343a1b8a930f75bbd0dd470ed3229060cc8881438d56b1
4
+ data.tar.gz: b97c1a7919d2ca70aef177a1701e14416caf3f0a170970bbecfcf10c0e745a49
5
5
  SHA512:
6
- metadata.gz: e809c189672e0e993fa9e57426f792056d6911a3c7dcd2141f584dd7987c9292d70f135d1ce1de1668d330b474c728a502ceb22046a57536c1c375695a1a2b78
7
- data.tar.gz: b7a2964668a29e95b7d3482c0f2f9756f211af8e7d8bd1c8877f90ac32c6332801ef6c8c8c793dbe9aabfe389c41f66e898c04f5cb03e20af602d26da5f8c934
6
+ metadata.gz: 5ab05ae5a159d838c65ff1b41badb518df968734462c9d52eaeeed705643de2ca6cf1aec0bc529d0f4d045efc98d4c612ebec5a7f351a953f8205fa9571cce2f
7
+ data.tar.gz: ef48067c66734b18053e04c6bc87934b9841fc4adcd19e39fe7e526d032d4f64506553c7020d7ffff5b416664e2a517b1d964f4e8dc9bc4fd3360abab5e43e1e
data/.rubocop.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  AllCops:
2
2
  NewCops: enable
3
- TargetRubyVersion: 2.0
3
+ TargetRubyVersion: 2.2
4
4
  SuggestExtensions: false
5
5
 
6
6
  Style/StringLiterals:
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
- ```yaml
10
- gem "application_service", git: "https://github.com/mariomarroquim/rails_application_service"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApplicationService
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
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.3.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.5
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.5
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.0'
58
+ version: '2.2'
59
59
  required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - ">="