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 +4 -4
- data/README.md +4 -3
- data/lib/service_record/callbacks.rb +1 -1
- data/lib/service_record/version.rb +1 -1
- metadata +8 -15
- data/.github/workflows/ci.yml +0 -26
- data/.gitignore +0 -11
- data/.rspec +0 -3
- data/Gemfile +0 -7
- data/Gemfile.lock +0 -51
- data/Rakefile +0 -6
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/service_record.gemspec +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b23ad5166c690ec30fa91fa0c637a0d3bfd64d38701faea13f97227ac252685
|
4
|
+
data.tar.gz: dd33a9b4cd704ba9eb3359b70b86c230b794933cc60a3e8721136281c0d4eba6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
4
|
-
[![
|
5
|
-
[![
|
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
|
|
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.
|
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-
|
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
|
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
|
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:
|
data/.github/workflows/ci.yml
DELETED
@@ -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
data/.rspec
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -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
data/bin/console
DELETED
@@ -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
data/service_record.gemspec
DELETED
@@ -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
|