services 7.3.1 → 7.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/services/modules/uniqueness_checker.rb +3 -3
- data/lib/services/version.rb +1 -1
- data/services.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 510d4c3f8f8663e0079e9a9cea599cbf4d6173b674531b3c562e86596b510cb8
|
4
|
+
data.tar.gz: b4c3da22b80c5336cb5d1db80f89519847e0057c25a6a9875fe4b4c5693eda05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae00b7c9086d4a975e347a57389a179b6c71dece21e16bf6fbd80dfe692b7a85b6204eaff77bf5109a0e02e08e45025ee6b95a3aae2cb4126d8878c575fd12e2
|
7
|
+
data.tar.gz: d98eba78f597b98c1df33a7f87d1d939153af67267246ec0a4c80363863871e48834cb76af59bc97d9c39994e699e554a9710ec634db96c8d97f3d4c1b7e082d
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Services
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/services.png)](http://badge.fury.io/rb/services)
|
4
|
-
[![Build Status](https://secure.travis-ci.org/
|
5
|
-
[![Code Climate](https://codeclimate.com/github/
|
4
|
+
[![Build Status](https://secure.travis-ci.org/manuelmeurer/services.png)](http://travis-ci.org/manuelmeurer/services)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/manuelmeurer/services.png)](https://codeclimate.com/github/manuelmeurer/services)
|
6
6
|
|
7
7
|
Services is a collection of modules and base classes that let you simply add a service layer to your Rails app.
|
8
8
|
|
@@ -28,7 +28,7 @@ Redis is used at several points, e.g. to store information about the currently r
|
|
28
28
|
|
29
29
|
#### Postgres (optional)
|
30
30
|
|
31
|
-
The SQL that `Services::Query` (discussed further down) generates is optimized for Postgres. It might work with other databases but it's not guaranteed. If you're not using Postgres, you can still use all other parts of Services, just don't use `Services::Query` or, even better, submit a [pull request](https://github.com/
|
31
|
+
The SQL that `Services::Query` (discussed further down) generates is optimized for Postgres. It might work with other databases but it's not guaranteed. If you're not using Postgres, you can still use all other parts of Services, just don't use `Services::Query` or, even better, submit a [pull request](https://github.com/manuelmeurer/services/issues) that fixes it to work with your database!
|
32
32
|
|
33
33
|
#### Sidekiq (optional)
|
34
34
|
|
@@ -14,7 +14,7 @@ module Services
|
|
14
14
|
).freeze
|
15
15
|
|
16
16
|
MAX_RETRIES = 10.freeze
|
17
|
-
|
17
|
+
THIRTY_DAYS = (60 * 60 * 24 * 30).freeze
|
18
18
|
|
19
19
|
def self.prepended(mod)
|
20
20
|
mod.const_set :NotUniqueError, Class.new(mod::Error)
|
@@ -37,7 +37,7 @@ module Services
|
|
37
37
|
else
|
38
38
|
@_uniqueness_keys ||= []
|
39
39
|
@_uniqueness_keys << new_uniqueness_key
|
40
|
-
Services.redis.setex new_uniqueness_key,
|
40
|
+
Services.redis.setex new_uniqueness_key, THIRTY_DAYS, @id
|
41
41
|
true
|
42
42
|
end
|
43
43
|
end
|
@@ -103,7 +103,7 @@ module Services
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def increase_error_count
|
106
|
-
Services.redis.setex error_count_key, retry_delay +
|
106
|
+
Services.redis.setex error_count_key, retry_delay + THIRTY_DAYS, error_count + 1
|
107
107
|
end
|
108
108
|
|
109
109
|
def uniqueness_key(args)
|
data/lib/services/version.rb
CHANGED
data/services.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.email = 'manuel@krautcomputing.com'
|
12
12
|
gem.summary = 'A nifty service layer for your Rails app'
|
13
13
|
gem.description = 'A nifty service layer for your Rails app'
|
14
|
-
gem.homepage = 'http://
|
14
|
+
gem.homepage = 'http://manuelmeurer.github.io/services'
|
15
15
|
gem.license = 'MIT'
|
16
16
|
gem.required_ruby_version = '>= 2.2.5'
|
17
17
|
gem.files = `git ls-files`.split($/)
|
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: 7.3.
|
4
|
+
version: 7.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel Meurer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -227,11 +227,11 @@ files:
|
|
227
227
|
- spec/support/redis-server
|
228
228
|
- spec/support/shared.rb
|
229
229
|
- spec/support/test_services.rb
|
230
|
-
homepage: http://
|
230
|
+
homepage: http://manuelmeurer.github.io/services
|
231
231
|
licenses:
|
232
232
|
- MIT
|
233
233
|
metadata: {}
|
234
|
-
post_install_message:
|
234
|
+
post_install_message:
|
235
235
|
rdoc_options: []
|
236
236
|
require_paths:
|
237
237
|
- lib
|
@@ -246,8 +246,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
246
246
|
- !ruby/object:Gem::Version
|
247
247
|
version: '0'
|
248
248
|
requirements: []
|
249
|
-
rubygems_version: 3.1.
|
250
|
-
signing_key:
|
249
|
+
rubygems_version: 3.1.3
|
250
|
+
signing_key:
|
251
251
|
specification_version: 4
|
252
252
|
summary: A nifty service layer for your Rails app
|
253
253
|
test_files:
|