jobba 1.8.0 → 1.8.1

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: 937d8738afd80bda5878ea1dad5d82310d5d4090c5de83788c0f427816328180
4
- data.tar.gz: 1a23bbcc448af7634b683fe743fd8cc59a4b3cecd06575a7e076eb473caa5a0a
3
+ metadata.gz: 489a463b81e0d1dc9d7f8c79b1aacd25ab66358cea92a2692e4428e0f7b30a54
4
+ data.tar.gz: c8eb29ef8b368390b1f78eec40a04aaa06cc4dee3b45453355d9109eace62fa7
5
5
  SHA512:
6
- metadata.gz: df3b9f488b84af546a31e5931abc4e67b9641324687c6c6272ce90cb0b3b2aaa3a2480ceb448aac485cda2e656d090d3a607b776891f65ba9f2c68fb87f3e196
7
- data.tar.gz: 0cad4eb0d5c6016fba344849815ff0ec09236ce6cee8e8e52522db946442c4067553a867f301f1b6d92f2ca3fc575fb146cdf831e0b7d2f602062d3b69f0a72a
6
+ metadata.gz: 16abf20ee8428d89b11c1e76315e957a357bf4f4381b4c072efdfd90365d5863a558f2a92f0b051fda32bde52f58d012b17000a5602050be77e9202a609f7cd3
7
+ data.tar.gz: 6b63cffc85fa57a36b454913a016b6b745e7975c3741868644735505315068086f01e5dd07cb1613304dafce896a4e537f2c169c55a4926ea0d833b4949efabd
@@ -0,0 +1,42 @@
1
+ name: Tests
2
+
3
+ env:
4
+ USE_REAL_REDIS: true
5
+ REDIS_HOST: redis
6
+ REDIS_PORT: 6379
7
+ on:
8
+ pull_request:
9
+ push:
10
+ branches:
11
+ - master
12
+ jobs:
13
+ tests:
14
+ timeout-minutes: 30
15
+ runs-on: ubuntu-18.04
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ os: [ubuntu]
20
+ ruby: [ '2.5', '2.6', '2.7' ]
21
+ services:
22
+ # Label used to access the service container
23
+ redis:
24
+ # Docker Hub image
25
+ image: redis
26
+ options: >-
27
+ --health-cmd "redis-cli ping"
28
+ --health-interval 10s
29
+ --health-timeout 5s
30
+ --health-retries 5
31
+ ports:
32
+ # Maps port 6379 on service container to the host
33
+ - 6379:6379
34
+ steps:
35
+ - uses: actions/checkout@v2
36
+ - uses: ruby/setup-ruby@v1
37
+ with:
38
+ ruby-version: ${{ matrix.ruby }}
39
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
40
+ - name: Test
41
+ run: |
42
+ bundle exec rake spec
data/jobba.gemspec CHANGED
@@ -19,12 +19,11 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_runtime_dependency "redis", "~> 3.2"
23
- spec.add_runtime_dependency "oj", '~> 3.7.6'
22
+ spec.add_runtime_dependency "redis"
23
+ spec.add_runtime_dependency "oj"
24
24
  spec.add_runtime_dependency "redis-namespace"
25
25
 
26
- spec.add_development_dependency "bundler", "~> 1.10"
27
- spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "rake"
28
27
  spec.add_development_dependency "rspec"
29
28
  spec.add_development_dependency "byebug"
30
29
  spec.add_development_dependency "fakeredis"
@@ -36,7 +36,7 @@ class Jobba::Statuses
36
36
  load
37
37
 
38
38
  # preload prior attempts because loading them is not `multi`-friendly
39
- @cache.each(&:prior_attempts)
39
+ @cache.each { |cache| cache.prior_attempts.each(&:prior_attempts) }
40
40
 
41
41
  redis.multi do
42
42
  @cache.each(&:delete!)
data/lib/jobba/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jobba
2
- VERSION = "1.8.0"
2
+ VERSION = "1.8.1"
3
3
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jobba
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-26 00:00:00.000000000 Z
11
+ date: 2021-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
19
+ version: '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: '3.2'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: oj
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 3.7.6
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 3.7.6
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: redis-namespace
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,34 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: bundler
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '1.10'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '1.10'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rake
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - "~>"
59
+ - - ">="
74
60
  - !ruby/object:Gem::Version
75
- version: '10.0'
61
+ version: '0'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - "~>"
66
+ - - ">="
81
67
  - !ruby/object:Gem::Version
82
- version: '10.0'
68
+ version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: rspec
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -129,11 +115,10 @@ executables: []
129
115
  extensions: []
130
116
  extra_rdoc_files: []
131
117
  files:
118
+ - ".github/workflows/tests.yml"
132
119
  - ".gitignore"
133
120
  - ".rspec"
134
121
  - ".ruby-gemset"
135
- - ".ruby-version"
136
- - ".travis.yml"
137
122
  - Gemfile
138
123
  - LICENSE.txt
139
124
  - README.md
@@ -160,7 +145,7 @@ homepage: https://github.com/openstax/jobba
160
145
  licenses:
161
146
  - MIT
162
147
  metadata: {}
163
- post_install_message:
148
+ post_install_message:
164
149
  rdoc_options: []
165
150
  require_paths:
166
151
  - lib
@@ -175,8 +160,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
160
  - !ruby/object:Gem::Version
176
161
  version: '0'
177
162
  requirements: []
178
- rubygems_version: 3.0.2
179
- signing_key:
163
+ rubygems_version: 3.1.4
164
+ signing_key:
180
165
  specification_version: 4
181
166
  summary: Redis-based background job status tracking.
182
167
  test_files: []
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.5.3
data/.travis.yml DELETED
@@ -1,21 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.2.3
5
- - 2.3.8
6
- - 2.4.5
7
- - 2.5.3
8
- - 2.6.0
9
- cache: bundler
10
- bundler_args: --retry=6
11
- script:
12
- - bundle exec rake
13
- services:
14
- - redis-server
15
- notifications:
16
- email: false
17
- env:
18
- - USE_REAL_REDIS=false
19
- - USE_REAL_REDIS=true
20
- before_install:
21
- - gem install bundler -v '< 2'