sidejob 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b52b912e86a573ece661bf11ca1a5eadcd410a98
4
- data.tar.gz: a545d0cafa16991899ee4890713a8fef114e6c7c
3
+ metadata.gz: 8c508ddf20a2498ce9d4b37f1bb5a9ff46a0cf80
4
+ data.tar.gz: 8e5b8fbdb89070d8e01857734669883b8cbc6be5
5
5
  SHA512:
6
- metadata.gz: 7c95368c762967a120677d1c01bfe073a73fd4d6e034d186d0d6d40dc1e18fe9663a7ebb110ed2a3b325e3093d8402b7178ec3a415c992aafb1e41ca03408d3e
7
- data.tar.gz: 45a2d1e8a186af6236a000fb5ae66d4f9a4ea1238fbd578663c4827bbfc8c90cad733ca03cd914568815e6ee4294ce50e0e163d04832bb1da358e0bcb0bf15e6
6
+ metadata.gz: 22a8451a4c19f630a9a26d72b771b8cf40879e7ce55daaed0f702137ccfe5d233e5eebe3edbfe80d15a514e63917c8ba5378d002e456ae578bef49e7bbd712dd
7
+ data.tar.gz: a61a49db836b89ddb5298b20b376f70fda787b2cb81a4e3ef052c309c996287f7461118ecdd1e9953ceb8593671c856c56559baee8bdfc77ac7d2760e75dabd6
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
+ /Gemfile.lock
1
2
  .bundle/
2
3
  *.gem
3
- coverage/
4
- .yardoc/
5
- doc/
4
+ /coverage
5
+ /.yardoc
6
+ /doc
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-2015 Austin Che
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -67,7 +67,8 @@ Data Structure
67
67
  SideJob uses Redis for all job processing and storage. Code using SideJob should use API functions instead of accessing
68
68
  redis directly, but this is a description of the current data storage format.
69
69
 
70
- The easiest way to set the redis location is via the environment variable SIDEJOB_URL, e.g. redis://redis.myhost.com:6379/4
70
+ The easiest way to set the redis location is via an environment variable SIDEJOB_HOST=redis.myhost.com or
71
+ SIDEJOB_URL=redis://redis.myhost.com:6379/4
71
72
 
72
73
  The keys used by Sidekiq:
73
74
 
data/lib/sidejob.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'sidekiq'
2
2
  require 'sidekiq/api'
3
+ require 'sidejob/version'
3
4
  require 'sidejob/port'
4
5
  require 'sidejob/job'
5
6
  require 'sidejob/worker'
@@ -118,5 +119,7 @@ end
118
119
 
119
120
  if ENV['SIDEJOB_URL']
120
121
  SideJob.redis = {url: ENV['SIDEJOB_URL']}
122
+ elsif ENV['SIDEJOB_HOST']
123
+ SideJob.redis = {host: ENV['SIDEJOB_HOST']}
121
124
  end
122
125
  # :nocov:
@@ -1,4 +1,4 @@
1
1
  module SideJob
2
2
  # The current SideJob version
3
- VERSION = '4.0.1'
3
+ VERSION = '4.0.2'
4
4
  end
data/sidejob.gemspec CHANGED
@@ -5,15 +5,14 @@ Gem::Specification.new do |s|
5
5
  s.version = SideJob::VERSION
6
6
  s.authors = ['Austin Che']
7
7
  s.email = ['austin@ginkgobioworks.com']
8
- s.summary = 'Use SideJob to run sidekiq jobs with a flow-based model'
9
-
8
+ s.summary = 'Run sidekiq jobs with a flow-based programming model'
9
+ s.homepage = 'https://github.com/austinche/sidejob'
10
+ s.license = 'MIT'
10
11
  s.files = `git ls-files`.split($/)
11
-
12
12
  s.require_paths = ['lib']
13
13
 
14
- s.add_dependency 'sidekiq', '~>3.2.5'
14
+ s.add_runtime_dependency 'sidekiq'
15
15
 
16
- # development
17
16
  s.add_development_dependency 'pry'
18
17
  s.add_development_dependency 'rspec'
19
18
  s.add_development_dependency 'simplecov'
data/web/Gemfile.lock CHANGED
@@ -1,15 +1,16 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- sidejob (4.0.1)
5
- sidekiq (~> 3.2.5)
4
+ sidejob (4.0.2)
5
+ sidekiq
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- celluloid (0.15.2)
11
- timers (~> 1.1.0)
10
+ celluloid (0.16.0)
11
+ timers (~> 4.0.0)
12
12
  connection_pool (2.2.0)
13
+ hitimes (1.2.2)
13
14
  json (1.8.2)
14
15
  puma (2.10.2)
15
16
  rack (>= 1.1, < 2.0)
@@ -20,9 +21,9 @@ GEM
20
21
  redis (3.2.1)
21
22
  redis-namespace (1.5.2)
22
23
  redis (~> 3.0, >= 3.0.4)
23
- sidekiq (3.2.6)
24
- celluloid (= 0.15.2)
25
- connection_pool (>= 2.0.0)
24
+ sidekiq (3.3.4)
25
+ celluloid (>= 0.16.0)
26
+ connection_pool (>= 2.1.1)
26
27
  json
27
28
  redis (>= 3.0.6)
28
29
  redis-namespace (>= 1.3.1)
@@ -31,7 +32,8 @@ GEM
31
32
  rack-protection (~> 1.4)
32
33
  tilt (~> 1.3, >= 1.3.4)
33
34
  tilt (1.4.1)
34
- timers (1.1.0)
35
+ timers (4.0.1)
36
+ hitimes
35
37
 
36
38
  PLATFORMS
37
39
  ruby
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidejob
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Che
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-30 00:00:00.000000000 Z
11
+ date: 2015-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.5
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.5
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -90,7 +90,7 @@ files:
90
90
  - ".gitignore"
91
91
  - ".rspec"
92
92
  - Gemfile
93
- - Gemfile.lock
93
+ - LICENSE
94
94
  - README.md
95
95
  - bin/build
96
96
  - bin/console
@@ -117,8 +117,9 @@ files:
117
117
  - web/Gemfile.lock
118
118
  - web/app.rb
119
119
  - web/config.ru
120
- homepage:
121
- licenses: []
120
+ homepage: https://github.com/austinche/sidejob
121
+ licenses:
122
+ - MIT
122
123
  metadata: {}
123
124
  post_install_message:
124
125
  rdoc_options: []
@@ -139,6 +140,6 @@ rubyforge_project:
139
140
  rubygems_version: 2.2.2
140
141
  signing_key:
141
142
  specification_version: 4
142
- summary: Use SideJob to run sidekiq jobs with a flow-based model
143
+ summary: Run sidekiq jobs with a flow-based programming model
143
144
  test_files: []
144
145
  has_rdoc:
data/Gemfile.lock DELETED
@@ -1,61 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- sidejob (4.0.1)
5
- sidekiq (~> 3.2.5)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- celluloid (0.15.2)
11
- timers (~> 1.1.0)
12
- coderay (1.1.0)
13
- connection_pool (2.2.0)
14
- diff-lcs (1.2.5)
15
- docile (1.1.5)
16
- json (1.8.2)
17
- method_source (0.8.2)
18
- multi_json (1.10.1)
19
- pry (0.9.12.6)
20
- coderay (~> 1.0)
21
- method_source (~> 0.8)
22
- slop (~> 3.4)
23
- redis (3.2.1)
24
- redis-namespace (1.5.2)
25
- redis (~> 3.0, >= 3.0.4)
26
- rspec (3.1.0)
27
- rspec-core (~> 3.1.0)
28
- rspec-expectations (~> 3.1.0)
29
- rspec-mocks (~> 3.1.0)
30
- rspec-core (3.1.7)
31
- rspec-support (~> 3.1.0)
32
- rspec-expectations (3.1.2)
33
- diff-lcs (>= 1.2.0, < 2.0)
34
- rspec-support (~> 3.1.0)
35
- rspec-mocks (3.1.3)
36
- rspec-support (~> 3.1.0)
37
- rspec-support (3.1.2)
38
- sidekiq (3.2.6)
39
- celluloid (= 0.15.2)
40
- connection_pool (>= 2.0.0)
41
- json
42
- redis (>= 3.0.6)
43
- redis-namespace (>= 1.3.1)
44
- simplecov (0.9.0)
45
- docile (~> 1.1.0)
46
- multi_json
47
- simplecov-html (~> 0.8.0)
48
- simplecov-html (0.8.0)
49
- slop (3.4.7)
50
- timers (1.1.0)
51
- yard (0.8.7.4)
52
-
53
- PLATFORMS
54
- ruby
55
-
56
- DEPENDENCIES
57
- pry
58
- rspec
59
- sidejob!
60
- simplecov
61
- yard