talentbox-delayed_job_sequel 4.1.0 → 4.2.0

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
  SHA1:
3
- metadata.gz: 1e533fcbcda3ce78b2c6bad187b62a19e085103b
4
- data.tar.gz: 2c40fdc180963165fcc84ea81b3d3c46fc761feb
3
+ metadata.gz: d9df707759cfb493fe5e571ad10821e3506a8462
4
+ data.tar.gz: cfede796ece37d2adc97ea8b3f7ac3bb084d1750
5
5
  SHA512:
6
- metadata.gz: f8ab43e1ceca96e0405cfdbfeab609bc377ac1918081183298fbebfa01e5475ddf1c46b2b6adad2f6d0affafbc090d7d0a282d146661ab49505d998e1822fb70
7
- data.tar.gz: e6a47703436a779ba61d764080c6c28a8515da332452845cc5c5cfc81c810859543579c3244c35af847f58be13deb2b22814d3c13747139398e317ed887b9a2c
6
+ metadata.gz: c20129c55cbc45d31ea37322378957dff34f355d2258bf08c9510e0e648b120cb53b3d1af12a90f321e671ed2a216fdef9e211e38ff1650e2b08680bf8fed815
7
+ data.tar.gz: be4523110985804fd3a8ef06746f5a6d43d70f77db5a059c2ebd47436fb5d84a9f537170e1a4627b0304a4d1940fb639c8147b802e9866965206e72cbb7a7e90
data/README.md CHANGED
@@ -22,7 +22,7 @@ Create an initializer to setup the DelayedJob backend:
22
22
  ```ruby
23
23
  # config/initializers/delayed_job.rb
24
24
 
25
- ::Delayed::Job.backend = :sequel
25
+ ::Delayed::Worker.backend = :sequel
26
26
  ```
27
27
 
28
28
  Create the table (using the sequel migration syntax):
@@ -47,9 +47,10 @@ Create the table (using the sequel migration syntax):
47
47
 
48
48
  Improvements has been made by those awesome contributors:
49
49
 
50
- * Mark Rushakoff (mark-rushakoff)
50
+ * Mark Rushakoff (@mark-rushakoff)
51
51
  * Phan Le
52
52
  * Tim Labeeuw
53
+ * James Goodhouse (@jamesgoodhouse)
53
54
 
54
55
  ## How to contribute
55
56
 
@@ -108,6 +108,8 @@ describe Delayed::Backend::Sequel::Job do
108
108
  Delayed::Job.table_name.should == :another_delayed_jobs
109
109
  ensure
110
110
  change_table_name nil
111
+ # Replace described_class with reloaded
112
+ self.class.metadata[:example_group][:described_class] = ::Delayed::Backend::Sequel::Job
111
113
  end
112
114
  end
113
115
  end
data/spec/spec_helper.rb CHANGED
@@ -14,7 +14,11 @@ end
14
14
  DB = case ENV["DB"]
15
15
  when "mysql"
16
16
  begin
17
- Sequel.connect adapter: "mysql2", database: "delayed_jobs", test: true
17
+ if jruby?
18
+ Sequel.connect "jdbc:mysql://localhost/delayed_jobs", test: true
19
+ else
20
+ Sequel.connect adapter: "mysql2", database: "delayed_jobs", test: true
21
+ end
18
22
  rescue Sequel::DatabaseConnectionError
19
23
  system "mysql -e 'CREATE DATABASE IF NOT EXISTS `delayed_jobs` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci'"
20
24
  retry
@@ -31,7 +35,11 @@ when "postgres"
31
35
  retry
32
36
  end
33
37
  else
34
- Sequel.sqlite
38
+ if jruby?
39
+ Sequel.connect "jdbc:sqlite::memory:", test: true
40
+ else
41
+ Sequel.sqlite
42
+ end
35
43
  end
36
44
 
37
45
  DB.drop_table :delayed_jobs rescue Sequel::DatabaseError
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talentbox-delayed_job_sequel
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Tron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-12 00:00:00.000000000 Z
11
+ date: 2016-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 4.0.0
39
+ version: 4.1.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 4.0.0
46
+ version: 4.1.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: tzinfo
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.4.5
130
+ rubygems_version: 2.4.5.1
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Sequel backend for DelayedJob