perfectqueue 0.7.31 → 0.7.32

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f80914c5d9cacd678348735b7bb64343153ee3c0
4
+ data.tar.gz: 5e5c88e7748b4d8ad13e5b65ceb569935434936c
5
+ SHA512:
6
+ metadata.gz: 0f4d15f8e6ac83846de46a1363a92a260f30568480117f3536a154fdd06ffc874837f11c8df030ccadbcc827562d7448e82ae6463eb9c44dc4e37a50bedbe3d0
7
+ data.tar.gz: 3d433c82757132a7866be3cb13ec6d626fe049b760c43ef52e5f55b11b6dce9d6ed35229c6a117a67f2da7623ac8a3cac303c2877ba3d3ff673e7ff818ee5ca0
data/ChangeLog CHANGED
@@ -1,3 +1,10 @@
1
+ == 2016-07-22 version 0.7.32
2
+
3
+ DON'T USE THIS VERSION UNLESS YOU KNOW WHAT THIS IS!
4
+ This version is for migration v07 to v0.8.48.
5
+
6
+ * Use PerfectQueue v0.8.48's timeout model (#41)
7
+
1
8
 
2
9
  == 2014-10-08 version 0.7.31
3
10
 
@@ -3,6 +3,8 @@ module PerfectQueue
3
3
 
4
4
 
5
5
  class RDBBackend < Backend
6
+ DELETE_OFFSET = 10_0000_0000
7
+
6
8
  def initialize(uri, table, config={})
7
9
  require 'sequel'
8
10
  require 'uri'
@@ -136,7 +138,7 @@ SQL
136
138
 
137
139
  def finish(id, delete_timeout=3600, now=Time.now.to_i)
138
140
  connect {
139
- n = @db["UPDATE `#{@table}` SET timeout=?, created_at=NULL, resource=NULL WHERE id=? AND created_at IS NOT NULL;", now+delete_timeout, id].update
141
+ n = @db["UPDATE `#{@table}` SET timeout=?, created_at=NULL, resource=NULL WHERE id=? AND created_at IS NOT NULL;", now+delete_timeout-DELETE_OFFSET, id].update
140
142
  return n > 0
141
143
  }
142
144
  end
@@ -1,5 +1,5 @@
1
1
  module PerfectQueue
2
2
 
3
- VERSION = '0.7.31'
3
+ VERSION = '0.7.32'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perfectqueue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.31
5
- prerelease:
4
+ version: 0.7.32
6
5
  platform: ruby
7
6
  authors:
8
7
  - Sadayuki Furuhashi
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-10-08 00:00:00.000000000 Z
11
+ date: 2016-07-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: sequel
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.48.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.48.0
30
27
  description:
@@ -36,6 +33,8 @@ extra_rdoc_files:
36
33
  - ChangeLog
37
34
  - README.rdoc
38
35
  files:
36
+ - ChangeLog
37
+ - README.rdoc
39
38
  - bin/perfectqueue
40
39
  - lib/perfectqueue.rb
41
40
  - lib/perfectqueue/backend.rb
@@ -46,40 +45,37 @@ files:
46
45
  - lib/perfectqueue/engine.rb
47
46
  - lib/perfectqueue/version.rb
48
47
  - lib/perfectqueue/worker.rb
49
- - ChangeLog
50
- - README.rdoc
51
48
  - test/backend_test.rb
52
- - test/exec_test.rb
53
- - test/stress.rb
54
- - test/test_helper.rb
55
49
  - test/cat.sh
56
50
  - test/echo.sh
51
+ - test/exec_test.rb
57
52
  - test/fail.sh
58
53
  - test/huge.sh
54
+ - test/stress.rb
59
55
  - test/success.sh
56
+ - test/test_helper.rb
60
57
  homepage: https://github.com/treasure-data/perfectqueue
61
58
  licenses: []
59
+ metadata: {}
62
60
  post_install_message:
63
61
  rdoc_options: []
64
62
  require_paths:
65
63
  - lib
66
64
  required_ruby_version: !ruby/object:Gem::Requirement
67
- none: false
68
65
  requirements:
69
- - - ! '>='
66
+ - - ">="
70
67
  - !ruby/object:Gem::Version
71
68
  version: '0'
72
69
  required_rubygems_version: !ruby/object:Gem::Requirement
73
- none: false
74
70
  requirements:
75
- - - ! '>='
71
+ - - ">="
76
72
  - !ruby/object:Gem::Version
77
73
  version: '0'
78
74
  requirements: []
79
75
  rubyforge_project:
80
- rubygems_version: 1.8.24
76
+ rubygems_version: 2.5.1
81
77
  signing_key:
82
- specification_version: 3
78
+ specification_version: 4
83
79
  summary: Highly available distributed queue built on RDBMS or SimpleDB
84
80
  test_files:
85
81
  - test/backend_test.rb