queue_classic-later 0.2.0 → 0.3.0

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: a2580e08873e13b279a8384c68fc291639c165dd
4
- data.tar.gz: f2919a70a50b932018d838c7433cab1eaef46e9d
3
+ metadata.gz: 5c6c624872c78beddc1879f38d3b4a38e77a50ce
4
+ data.tar.gz: 64ad5158e66a593e2fde9f764153e2e7268ca4eb
5
5
  SHA512:
6
- metadata.gz: 09482af2038b4f71e8ad4481b4c215f967a2a75d6763640e6220e8c4491e80d28d76642d5bdfea3a234c3a1c4209d1a7966947617fc420f2b3970578903ff8a5
7
- data.tar.gz: babb7ab1471790dfcc906a87877eb230edad5345a59fd577a56f6cece90662b2312b7ac72f5914bccd5efcb185f0b0dbd1257ec0618738da4fc5856a3f89e0c4
6
+ metadata.gz: 04fb7e121dfd39c9042f734a0c0dd8f4d7a2875f7e6bcfa3807593c9c7a0acdf174c3b482b74e2d5511a953a780a16b92f7fdf830da4326714383f6c2d0ae980
7
+ data.tar.gz: c7ae6d386a579e063876c67acad0c3eae5c7878e646a0444013093949d58111817fade2b36ec61a6ce370b44e84fc9d558566f7687604862b33443e1ca527701
data/README.md CHANGED
@@ -20,6 +20,8 @@ Or install it yourself as:
20
20
 
21
21
  First, follow the queue_classic setup directions.
22
22
 
23
+ **NOTE for Ruby 1.8.7**: *You'll also need to install the `json` gem--but you really should upgrade to a newer version of ruby, it's no longer being maintained.*
24
+
23
25
  QC::Later has database setup to do, much like queue_classic itself. Use the same process suggested by the queue_classic
24
26
  directions to run `QC::Later::Setup.create` in a database migration or similar.
25
27
 
@@ -1,3 +1,5 @@
1
+ require "json"
2
+
1
3
  require "queue_classic"
2
4
  require "queue_classic/later/version"
3
5
 
@@ -28,7 +30,7 @@ module QC
28
30
  def insert(q_name, not_before, method, args)
29
31
  QC.log_yield(:action => "insert_later_job") do
30
32
  s = "INSERT INTO #{QC::Later::TABLE_NAME} (q_name, not_before, method, args) VALUES ($1, $2, $3, $4)"
31
- QC::Conn.execute(s, q_name, not_before, method, MultiJson.encode(args))
33
+ QC::Conn.execute(s, q_name, not_before, method, JSON.dump(args))
32
34
  end
33
35
  end
34
36
 
@@ -56,7 +58,7 @@ module QC
56
58
  QC::Conn.transaction do
57
59
  QC::Later::Queries.delete_and_capture(Time.now).each do |job|
58
60
  queue = QC::Queue.new(job["q_name"])
59
- queue.enqueue(job["method"], *MultiJson.decode(job["args"]))
61
+ queue.enqueue(job["method"], *JSON.parse(job["args"]))
60
62
  end
61
63
  end
62
64
  end
@@ -1,5 +1,5 @@
1
1
  module QC
2
2
  module Later
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queue_classic-later
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Peterson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-30 00:00:00.000000000 Z
11
+ date: 2014-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: queue_classic
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.1.3
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
26
  version: 2.1.3
27
27
  description: Do things later with queue_classic
@@ -31,7 +31,7 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - .gitignore
34
+ - ".gitignore"
35
35
  - Gemfile
36
36
  - LICENSE.txt
37
37
  - README.md
@@ -49,19 +49,18 @@ require_paths:
49
49
  - lib
50
50
  required_ruby_version: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - '>='
57
+ - - ">="
58
58
  - !ruby/object:Gem::Version
59
59
  version: '0'
60
60
  requirements: []
61
61
  rubyforge_project:
62
- rubygems_version: 2.0.3
62
+ rubygems_version: 2.2.0
63
63
  signing_key:
64
64
  specification_version: 4
65
65
  summary: Do things later with queue_classic
66
66
  test_files: []
67
- has_rdoc: