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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a54c2710e578f7af30ef239cd96b7f837630a02
4
- data.tar.gz: a33159048724d2925ca48fb06acd92a67402833e
3
+ metadata.gz: dad7bfee465c7ed9ad1586772701aca8adff2912
4
+ data.tar.gz: 42588b8e641640855dfbc60c291dd0fc0110025d
5
5
  SHA512:
6
- metadata.gz: 3c117a3e88a73ef1f712407d5fab186500759ec62f66f5617685dbeebed75b2a3a58adf0fd2f225b8b2dcfd6015864d0fe70e8729932abebddd07c93f65a2144
7
- data.tar.gz: 8c661d04be05bf37b2916f79033b16f2a5208fb99978a03e31b05c5eddf3f2d39825fd946b95bef7e304b9799c7c6cf48c08cbf192b27e27051fc099119ff7ff
6
+ metadata.gz: 6daa4d30dc27c1f3338e5426b149c22aa5add6b00f095a0f30d248f9e01973cbbba184974cbb7a386cba810bdd81e60210e357229d8a4c28f16f2b339fb3e596
7
+ data.tar.gz: 40f96c5d9c5ad7b592e23493f284631acb6e19f8912241bc0ea75060054971a91d96694bd2a80cd61042a0c923ded09865ed039893741bbd02401892bde099d7
data/.travis.yml CHANGED
@@ -2,6 +2,7 @@ language: ruby
2
2
  rvm:
3
3
  - 2.2.5
4
4
  - 2.3.1
5
+ - 2.4.0
5
6
  services:
6
7
  - redis-server
7
8
  before_install:
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.3
22
+ #### Ruby >= 2.2.5
23
23
 
24
24
  #### Rails >= 4.0
25
25
 
26
- #### Redis >= 2.8
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
 
@@ -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?
@@ -1,3 +1,3 @@
1
1
  module Services
2
- VERSION = '5.0.0'.freeze
2
+ VERSION = '5.1.0'.freeze
3
3
  end
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 = '~> 2.0'
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', '>= 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', '~> 3.0'
28
- gem.add_development_dependency 'redis', '~> 3.0'
29
- gem.add_development_dependency 'tries', '~> 0.3'
30
- gem.add_development_dependency 'timecop', '~> 0.7'
31
- gem.add_development_dependency 'sqlite3', '~> 1.3'
32
- gem.add_development_dependency 'appraisal', '~> 2.1'
33
- gem.add_runtime_dependency 'rails', '>= 4.0.0'
34
- gem.add_runtime_dependency 'gem_config', '~> 0.3'
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.0.0
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-14 00:00:00.000000000 Z
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: '3.0'
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: '3.0'
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: '2.0'
242
+ version: 2.2.5
229
243
  required_rubygems_version: !ruby/object:Gem::Requirement
230
244
  requirements:
231
245
  - - ">="