que 0.7.2 → 0.7.3
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 +7 -7
- data/CHANGELOG.md +4 -0
- data/lib/que/job.rb +2 -1
- data/lib/que/version.rb +1 -1
- data/spec/unit/pool_spec.rb +8 -0
- metadata +32 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
5
|
-
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 321a6fede008be064052ea5d884a489e47414869
|
4
|
+
data.tar.gz: 8dc8a7f432dd4329c86aeef470d8d396e60b82e6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 416d2717f3f4fad284cd9a3852717cb04c0ed86d7cbafa6ad88c27a120294f88a5034c2ae80143ca87a3ff4736c0e209bca64ad295f726db2b6d6292a3a3a3d1
|
7
|
+
data.tar.gz: 780e42518a559ea84efe70a42d58378fd22b9a023d4e9e1a14ceb74ba12e981d877303f029f2c319a510415c3f430ba290549b9d14c42c258e3ffff3855afbc5
|
data/CHANGELOG.md
CHANGED
data/lib/que/job.rb
CHANGED
data/lib/que/version.rb
CHANGED
data/spec/unit/pool_spec.rb
CHANGED
@@ -24,6 +24,14 @@ describe "Managing the Worker pool" do
|
|
24
24
|
DB[:que_jobs].count.should be 0
|
25
25
|
end
|
26
26
|
|
27
|
+
it "should work fine with enqueuing jobs without a DB connection" do
|
28
|
+
Que.connection = nil
|
29
|
+
Que.mode = :sync
|
30
|
+
|
31
|
+
ArgsJob.enqueue(5, :testing => "synchronous").should be_an_instance_of ArgsJob
|
32
|
+
$passed_args.should == [5, {:testing => "synchronous"}]
|
33
|
+
end
|
34
|
+
|
27
35
|
it "should not affect jobs that are queued with specific run_ats" do
|
28
36
|
Que.mode = :sync
|
29
37
|
|
metadata
CHANGED
@@ -1,36 +1,36 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: que
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Chris Hanks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2014-05-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
|
-
|
17
|
-
|
18
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
19
17
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version:
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
22
20
|
type: :development
|
23
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
24
27
|
description: A job queue that uses PostgreSQL's advisory locks for speed and reliability.
|
25
|
-
email:
|
28
|
+
email:
|
26
29
|
- christopher.m.hanks@gmail.com
|
27
30
|
executables: []
|
28
|
-
|
29
31
|
extensions: []
|
30
|
-
|
31
32
|
extra_rdoc_files: []
|
32
|
-
|
33
|
-
files:
|
33
|
+
files:
|
34
34
|
- .gitignore
|
35
35
|
- .rspec
|
36
36
|
- .travis.yml
|
@@ -103,32 +103,30 @@ files:
|
|
103
103
|
- tasks/rspec.rb
|
104
104
|
- tasks/safe_shutdown.rb
|
105
105
|
homepage: https://github.com/chanks/que
|
106
|
-
licenses:
|
106
|
+
licenses:
|
107
107
|
- MIT
|
108
108
|
metadata: {}
|
109
|
-
|
110
109
|
post_install_message:
|
111
110
|
rdoc_options: []
|
112
|
-
|
113
|
-
require_paths:
|
111
|
+
require_paths:
|
114
112
|
- lib
|
115
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
-
requirements:
|
117
|
-
-
|
118
|
-
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - '>='
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
124
123
|
requirements: []
|
125
|
-
|
126
124
|
rubyforge_project:
|
127
125
|
rubygems_version: 2.2.2
|
128
126
|
signing_key:
|
129
127
|
specification_version: 4
|
130
128
|
summary: A PostgreSQL-based Job Queue
|
131
|
-
test_files:
|
129
|
+
test_files:
|
132
130
|
- spec/adapters/active_record_spec.rb
|
133
131
|
- spec/adapters/connection_pool_spec.rb
|
134
132
|
- spec/adapters/pg_spec.rb
|