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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8db0c58e244d72b5457bdf5fcabb578e51401a7ff4103354ef06eefde1c4b3e
4
- data.tar.gz: b5105268fdbbef71e39b2defe1eb4c75e7b613f58c6794b3488f64c0cc601d28
3
+ metadata.gz: 510d4c3f8f8663e0079e9a9cea599cbf4d6173b674531b3c562e86596b510cb8
4
+ data.tar.gz: b4c3da22b80c5336cb5d1db80f89519847e0057c25a6a9875fe4b4c5693eda05
5
5
  SHA512:
6
- metadata.gz: 0f74f5fa4e42eae9fbad7ed40a78ccbff64175de7006b5addbc559e715687bbabbf8ed8a50ca04242d17ec22a8dc6a87b2ec54e8a4eea61decd2d9b16a7ab14d
7
- data.tar.gz: 1fa8fef130e06e9c7de3fd97cd4f7a62878e5faeee17f16878b8c29d748e4586a300fd9ef6eb4aa5fb98c15f30bd9c1bfb6b07eeb65ac1c2ce54270776864e32
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/krautcomputing/services.png)](http://travis-ci.org/krautcomputing/services)
5
- [![Code Climate](https://codeclimate.com/github/krautcomputing/services.png)](https://codeclimate.com/github/krautcomputing/services)
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/krautcomputing/services/issues) that fixes it to work with your database!
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
- ONE_DAY = (60 * 60 * 24).freeze
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, ONE_DAY, @id
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 + ONE_DAY, error_count + 1
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)
@@ -1,3 +1,3 @@
1
1
  module Services
2
- VERSION = '7.3.1'.freeze
2
+ VERSION = '7.3.3'.freeze
3
3
  end
@@ -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://krautcomputing.github.io/services'
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.1
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-01-28 00:00:00.000000000 Z
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://krautcomputing.github.io/services
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.2
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: