service_record 1.2.0 → 1.2.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: 3fce5a993bb3878ab4264d9e3d95e5f103bc8fcddb3c79f9f0b0067676f5a1c0
4
- data.tar.gz: 2bab1660dc7fba8727bc93b43c37c39d7d4d8017a9183c1316605de8db3e6f75
3
+ metadata.gz: 8b23ad5166c690ec30fa91fa0c637a0d3bfd64d38701faea13f97227ac252685
4
+ data.tar.gz: dd33a9b4cd704ba9eb3359b70b86c230b794933cc60a3e8721136281c0d4eba6
5
5
  SHA512:
6
- metadata.gz: 8d2393518ed0c59f47d52515c265123a361094b87ce464635f243c6fedf42104c70acae4e86f6343620dbb2f74640b06c5427eda25fb2362a906798abbd6ed9d
7
- data.tar.gz: cdca60c091b1f82f4e585e4ba4fa1dc2b7050e5606c863f9697eaf920a71a55ed999b607ebdfde3d33b5f119d08da74f52426f50c703a7fda72108df933b8da8
6
+ metadata.gz: 204fb25c50a741f3b888dd3064d0a3f9682da4e81ff6fb0ac72c96afb292ea41b012a7438ee9afc04552a5c9c921fbd908fe2e831f1cde033f6b668635a82df9
7
+ data.tar.gz: b4b301a4a6daf42d10c4febc30abb28e163dc1ea58a194a163786c2083884241d92d94f4b88e0af8dd2131d89218a4ecff959b0532587b5d35015e81b208c747
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # ServiceRecord
2
2
 
3
- ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/uxxman/service_record/Continuous%20Integration)
4
- [![Maintainability](https://api.codeclimate.com/v1/badges/7634ecae285ff14e6bd6/maintainability)](https://codeclimate.com/github/uxxman/service_record/maintainability)
5
- [![Gem Version](https://badge.fury.io/rb/service_record.svg)](https://badge.fury.io/rb/service_record)
3
+ [![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
+ [![Code Climate coverage](https://img.shields.io/codeclimate/coverage/uxxman/service_record)](https://codeclimate.com/github/uxxman/service_record)
5
+ [![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/uxxman/service_record)](https://codeclimate.com/github/uxxman/service_record)
6
+ [![Gem](https://img.shields.io/gem/v/service_record)](https://rubygems.org/gems/service_record)
6
7
 
7
8
  An ActiveRecord lookalike but for business model requirements, a.k.a Service Objects.
8
9
 
@@ -5,7 +5,7 @@ module ServiceRecord
5
5
  included do
6
6
  include ActiveSupport::Callbacks
7
7
 
8
- define_callbacks :perform
8
+ define_callbacks :perform, skip_after_callbacks_if_terminated: true
9
9
  end
10
10
 
11
11
  class_methods do
@@ -1,3 +1,3 @@
1
1
  module ServiceRecord
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.2.1'.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.0
4
+ version: 1.2.1
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-18 00:00:00.000000000 Z
11
+ date: 2020-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -16,31 +16,25 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 6.0.3.1
19
+ version: '6.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.3.1
26
+ version: '6.0'
27
27
  description: ActiveRecord lookalike but for business model requirements
28
28
  email:
29
29
  - uxman.sherwani@gmail.com
30
30
  executables: []
31
31
  extensions: []
32
- extra_rdoc_files: []
32
+ extra_rdoc_files:
33
+ - README.md
34
+ - LICENSE.txt
33
35
  files:
34
- - ".github/workflows/ci.yml"
35
- - ".gitignore"
36
- - ".rspec"
37
- - Gemfile
38
- - Gemfile.lock
39
36
  - LICENSE.txt
40
37
  - README.md
41
- - Rakefile
42
- - bin/console
43
- - bin/setup
44
38
  - lib/rails/generators/service/service_generator.rb
45
39
  - lib/rails/generators/service/templates/application_service.rb.tt
46
40
  - lib/rails/generators/service/templates/service.rb.tt
@@ -48,14 +42,13 @@ files:
48
42
  - lib/service_record/base.rb
49
43
  - lib/service_record/callbacks.rb
50
44
  - lib/service_record/version.rb
51
- - service_record.gemspec
52
45
  homepage: https://github.com/uxxman/service_record
53
46
  licenses:
54
47
  - MIT
55
48
  metadata:
56
49
  homepage_uri: https://github.com/uxxman/service_record
57
50
  source_code_uri: https://github.com/uxxman/service_record
58
- changelog_uri: https://github.com/uxxman/service_record
51
+ changelog_uri: https://github.com/uxxman/service_record/releases
59
52
  post_install_message:
60
53
  rdoc_options: []
61
54
  require_paths:
@@ -1,26 +0,0 @@
1
- name: Continuous Integration
2
-
3
- on:
4
- push:
5
- branches: [ main ]
6
- pull_request:
7
- branches: [ main ]
8
-
9
- jobs:
10
- test:
11
- runs-on: ubuntu-latest
12
-
13
- steps:
14
- - name: Checkout
15
- uses: actions/checkout@v2
16
-
17
- - name: Set up Ruby
18
- uses: ruby/setup-ruby@v1
19
- with:
20
- ruby-version: 2.7
21
-
22
- - name: Install dependencies
23
- run: bundle install
24
-
25
- - name: Run tests
26
- run: bundle exec rake
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/Gemfile DELETED
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in service_record.gemspec
4
- gemspec
5
-
6
- gem 'rake', '~> 12.3'
7
- gem 'rspec', '~> 3.9'
@@ -1,51 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- service_record (1.2.0)
5
- activemodel (>= 6.0.3.1)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activemodel (6.0.3.4)
11
- activesupport (= 6.0.3.4)
12
- activesupport (6.0.3.4)
13
- concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 0.7, < 2)
15
- minitest (~> 5.1)
16
- tzinfo (~> 1.1)
17
- zeitwerk (~> 2.2, >= 2.2.2)
18
- concurrent-ruby (1.1.7)
19
- diff-lcs (1.3)
20
- i18n (1.8.5)
21
- concurrent-ruby (~> 1.0)
22
- minitest (5.14.2)
23
- rake (12.3.3)
24
- rspec (3.9.0)
25
- rspec-core (~> 3.9.0)
26
- rspec-expectations (~> 3.9.0)
27
- rspec-mocks (~> 3.9.0)
28
- rspec-core (3.9.1)
29
- rspec-support (~> 3.9.1)
30
- rspec-expectations (3.9.1)
31
- diff-lcs (>= 1.2.0, < 2.0)
32
- rspec-support (~> 3.9.0)
33
- rspec-mocks (3.9.1)
34
- diff-lcs (>= 1.2.0, < 2.0)
35
- rspec-support (~> 3.9.0)
36
- rspec-support (3.9.2)
37
- thread_safe (0.3.6)
38
- tzinfo (1.2.7)
39
- thread_safe (~> 0.1)
40
- zeitwerk (2.4.0)
41
-
42
- PLATFORMS
43
- ruby
44
-
45
- DEPENDENCIES
46
- rake (~> 12.3)
47
- rspec (~> 3.9)
48
- service_record!
49
-
50
- BUNDLED WITH
51
- 2.1.4
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task default: :spec
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "service_record"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,30 +0,0 @@
1
- require_relative 'lib/service_record/version'
2
-
3
- Gem::Specification.new do |spec|
4
- spec.name = 'service_record'
5
- spec.version = ServiceRecord::VERSION
6
- spec.authors = ['Muhammad Usman']
7
- spec.email = ['uxman.sherwani@gmail.com']
8
-
9
- spec.summary = 'Service objects for rails'
10
- spec.description = 'ActiveRecord lookalike but for business model requirements'
11
- spec.homepage = 'https://github.com/uxxman/service_record'
12
- spec.license = 'MIT'
13
- spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
14
-
15
- spec.metadata['homepage_uri'] = spec.homepage
16
- spec.metadata['source_code_uri'] = spec.homepage
17
- spec.metadata['changelog_uri'] = spec.homepage
18
-
19
- # Specify which files should be added to the gem when it is released.
20
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
- end
24
-
25
- spec.bindir = 'exe'
26
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
- spec.require_paths = ['lib']
28
-
29
- spec.add_dependency 'activemodel', '>= 6.0.3.1'
30
- end