service_record 1.4.0 → 1.4.2

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: 761226eff3ab278171ca2a9250b6fe089ceb53eeb2b1e221b680d250c3f1d2be
4
- data.tar.gz: 567e4aa90fff412e1d42eba985a9e7a3f6397a53d622ec7e996503e22aa78a75
3
+ metadata.gz: f992dc522f3753b3ac315494c4f62201a3fe132c5b0ae0925c25a4d3c67751a4
4
+ data.tar.gz: ce53a6ca0424f9a2923edcfbd4d283ab2aa7e191a501f6a3fee546caf8fddee3
5
5
  SHA512:
6
- metadata.gz: 24c06c7384fca171053cd271ef96107ee36753015bd4198ed1b6f87e4ea5fe68db663d4a7a9e7b50af6cd8a03d71bce575ff3e17d8ffba2045442b55e8dafb19
7
- data.tar.gz: 2889e28b5f8507849beaef07ce99fd886063a4cf40c91d035ad92190788d8322d956e0315aa94a85a067471671a36d634171e84a26d56c65692fd651c0b998de
6
+ metadata.gz: c16110b86a576dbc16401aa2e50f5b762cae36a9ae29725f52cb2e5edd9be882c1627b19bbf0e6d688c619c711f1e797f439c0a9e681cc53166c8e2adbaa8677
7
+ data.tar.gz: 010c85ab785258813a4c150852d96e3e156de34cc64b4e0963b135d33e0ea81764c8af1552f0de0ec2af6c3d3b705ae2d17a49603fc26c1f9abefeff80d39761
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # ServiceRecord
2
2
 
3
3
  [![Gem](https://img.shields.io/gem/v/service_record)](https://rubygems.org/gems/service_record)
4
- [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/uxxman/service_record/CI)](https://github.com/uxxman/service_record/actions?query=workflow%3ACI)
4
+ [![GitHub Workflow Status](https://github.com/uxxman/service_record/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/uxxman/service_record/actions/workflows/ci.yml)
5
5
  [![Code Climate coverage](https://img.shields.io/codeclimate/coverage/uxxman/service_record)](https://codeclimate.com/github/uxxman/service_record)
6
6
  [![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/uxxman/service_record)](https://codeclimate.com/github/uxxman/service_record)
7
7
 
@@ -176,8 +176,6 @@ Availble callbacks are `before_perform`, `after_perform` and `around_perform`. I
176
176
 
177
177
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
178
178
 
179
- ServiceRecord uses appraisals to test the code base against multiple versions of Rails ActiveModel. When first developing, you need to run `bundle install` and then `bundle exec appraisal install`, to install the different gem sets. You can then run all appraisal files (like CI does), with `appraisal rake`.
180
-
181
179
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
182
180
 
183
181
  ## Contributing
@@ -12,16 +12,16 @@ module ServiceRecord
12
12
  end
13
13
 
14
14
  class_methods do
15
- def before_perform(*filters, &blk)
16
- set_callback(:perform, :before, *filters, &blk)
15
+ def before_perform(...)
16
+ set_callback(:perform, :before, ...)
17
17
  end
18
18
 
19
- def after_perform(*filters, &blk)
20
- set_callback(:perform, :after, *filters, &blk)
19
+ def after_perform(...)
20
+ set_callback(:perform, :after, ...)
21
21
  end
22
22
 
23
- def around_perform(*filters, &blk)
24
- set_callback(:perform, :around, *filters, &blk)
23
+ def around_perform(...)
24
+ set_callback(:perform, :around, ...)
25
25
  end
26
26
  end
27
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ServiceRecord
4
- VERSION = '1.4.0'
4
+ VERSION = '1.4.2'
5
5
  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.4.0
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muhammad Usman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-02 00:00:00.000000000 Z
11
+ date: 2024-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -16,28 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6.0'
19
+ version: '6.1'
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'
27
- - !ruby/object:Gem::Dependency
28
- name: appraisal
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.4'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.4'
26
+ version: '6.1'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rake
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -160,14 +146,14 @@ dependencies:
160
146
  requirements:
161
147
  - - "~>"
162
148
  - !ruby/object:Gem::Version
163
- version: 0.17.1
149
+ version: 0.22.0
164
150
  type: :development
165
151
  prerelease: false
166
152
  version_requirements: !ruby/object:Gem::Requirement
167
153
  requirements:
168
154
  - - "~>"
169
155
  - !ruby/object:Gem::Version
170
- version: 0.17.1
156
+ version: 0.22.0
171
157
  description: ActiveRecord lookalike but for business model requirements
172
158
  email:
173
159
  - uxman.sherwani@gmail.com
@@ -204,14 +190,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
204
190
  requirements:
205
191
  - - ">="
206
192
  - !ruby/object:Gem::Version
207
- version: 2.7.5
193
+ version: 3.0.0
208
194
  required_rubygems_version: !ruby/object:Gem::Requirement
209
195
  requirements:
210
196
  - - ">="
211
197
  - !ruby/object:Gem::Version
212
198
  version: '0'
213
199
  requirements: []
214
- rubygems_version: 3.3.7
200
+ rubygems_version: 3.5.3
215
201
  signing_key:
216
202
  specification_version: 4
217
203
  summary: Service objects for rails