services 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/README.md +2 -2
- data/lib/services/query.rb +1 -1
- data/lib/services/version.rb +1 -1
- data/services.gemspec +13 -12
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dad7bfee465c7ed9ad1586772701aca8adff2912
|
4
|
+
data.tar.gz: 42588b8e641640855dfbc60c291dd0fc0110025d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6daa4d30dc27c1f3338e5426b149c22aa5add6b00f095a0f30d248f9e01973cbbba184974cbb7a386cba810bdd81e60210e357229d8a4c28f16f2b339fb3e596
|
7
|
+
data.tar.gz: 40f96c5d9c5ad7b592e23493f284631acb6e19f8912241bc0ea75060054971a91d96694bd2a80cd61042a0c923ded09865ed039893741bbd02401892bde099d7
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -19,11 +19,11 @@ For disambiguation: in this README, when you read "Services" with a uppercase "S
|
|
19
19
|
|
20
20
|
### Requirements
|
21
21
|
|
22
|
-
#### Ruby >= 2.2.
|
22
|
+
#### Ruby >= 2.2.5
|
23
23
|
|
24
24
|
#### Rails >= 4.0
|
25
25
|
|
26
|
-
#### Redis >=
|
26
|
+
#### Redis >= 3.0
|
27
27
|
|
28
28
|
Redis is used at several points, e.g. to store information about the currently running services, so you can enforce uniqueness for specific services, i.e. make sure no more than one instance of such a service is executed simultaneously.
|
29
29
|
|
data/lib/services/query.rb
CHANGED
@@ -23,7 +23,7 @@ module Services
|
|
23
23
|
special_conditions = conditions.extract!(:order, :limit, :page, :per_page)
|
24
24
|
special_conditions[:order] = object_table_id unless special_conditions.has_key?(:order)
|
25
25
|
|
26
|
-
scope = object_class.public_send(ActiveRecord::VERSION::MAJOR == 3 ? :scoped : :all)
|
26
|
+
scope = conditions.delete(:scope) || object_class.public_send(ActiveRecord::VERSION::MAJOR == 3 ? :scoped : :all)
|
27
27
|
scope = scope.where(object_table_id => ids) unless ids.empty?
|
28
28
|
|
29
29
|
unless conditions.empty?
|
data/lib/services/version.rb
CHANGED
data/services.gemspec
CHANGED
@@ -15,21 +15,22 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.description = 'A nifty service layer for your Rails app'
|
16
16
|
gem.homepage = 'http://krautcomputing.github.io/services'
|
17
17
|
gem.license = 'MIT'
|
18
|
-
gem.required_ruby_version = '
|
18
|
+
gem.required_ruby_version = '>= 2.2.5'
|
19
19
|
gem.files = `git ls-files`.split($/)
|
20
20
|
gem.executables = gem.files.grep(%r(^bin/)).map { |f| File.basename(f) }
|
21
21
|
gem.test_files = gem.files.grep(%r(^(test|spec|features)/))
|
22
22
|
gem.require_paths = ['lib']
|
23
23
|
|
24
|
-
gem.add_development_dependency 'rake',
|
25
|
-
gem.add_development_dependency 'guard-rspec',
|
26
|
-
gem.add_development_dependency 'rspec',
|
27
|
-
gem.add_development_dependency 'sidekiq',
|
28
|
-
gem.add_development_dependency 'redis',
|
29
|
-
gem.add_development_dependency '
|
30
|
-
gem.add_development_dependency '
|
31
|
-
gem.add_development_dependency '
|
32
|
-
gem.add_development_dependency '
|
33
|
-
gem.
|
34
|
-
gem.add_runtime_dependency '
|
24
|
+
gem.add_development_dependency 'rake', '>= 0.9.0'
|
25
|
+
gem.add_development_dependency 'guard-rspec', '~> 4.2'
|
26
|
+
gem.add_development_dependency 'rspec', '~> 3.0'
|
27
|
+
gem.add_development_dependency 'sidekiq', '~> 4.0'
|
28
|
+
gem.add_development_dependency 'redis', '~> 3.0'
|
29
|
+
gem.add_development_dependency 'redis-namespace', '~> 1.5'
|
30
|
+
gem.add_development_dependency 'tries', '~> 0.3'
|
31
|
+
gem.add_development_dependency 'timecop', '~> 0.7'
|
32
|
+
gem.add_development_dependency 'sqlite3', '~> 1.3'
|
33
|
+
gem.add_development_dependency 'appraisal', '~> 2.1'
|
34
|
+
gem.add_runtime_dependency 'rails', '>= 4.0.0'
|
35
|
+
gem.add_runtime_dependency 'gem_config', '~> 0.3'
|
35
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel Meurer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '4.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '4.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: redis
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: redis-namespace
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.5'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.5'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: tries
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -223,9 +237,9 @@ require_paths:
|
|
223
237
|
- lib
|
224
238
|
required_ruby_version: !ruby/object:Gem::Requirement
|
225
239
|
requirements:
|
226
|
-
- - "
|
240
|
+
- - ">="
|
227
241
|
- !ruby/object:Gem::Version
|
228
|
-
version:
|
242
|
+
version: 2.2.5
|
229
243
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
244
|
requirements:
|
231
245
|
- - ">="
|