shinq 1.0.0 → 1.0.1

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: a67651195e68cb9fb0f5ee0cb98db58a40ecdcb7
4
- data.tar.gz: 14f7f91d02b1ea4e3cc4035cd30ff073058fd926
3
+ metadata.gz: aecce95cddb0d008c214ae89763a3747ab98db0f
4
+ data.tar.gz: 32a2e126b9b45e25c452fcaecdcb9542a9ac2ea1
5
5
  SHA512:
6
- metadata.gz: dbd5b976361080d37a57f8fa392017624f91610ee67814cfad83e1e8fe46be779cd07b22dff8d0921a5593f95100d5f2a2dbd9f7bd666d7a19bdf9e429b05eeb
7
- data.tar.gz: b18f064fee0b01b968791d31370a44fa7d95fbd95d9b1360dd0bc4e25b508b0e998553b850f298aabbc287bbfde3b1c1ea5132c448939042dabc22057f86122c
6
+ metadata.gz: d88808963ddc7099bc8cce9cccacf71a9455949b3e2b06a069e093b0e0df86210f5f4782679974edb16b68f5740c1c4a2747fdf068cb7f7a639d4e5cbae332c2
7
+ data.tar.gz: 794108886e577c20625e9e9fc07edaef5f15ed9c29140713ffeea5ba784e97fd6ce81d1286561adfa61fc8c376dde8b3408d64cc50e1c6efd81920586facd762
@@ -1,6 +1,14 @@
1
1
  module ActiveJob
2
2
  module QueueAdapters
3
3
  class ShinqAdapter
4
+ def enqueue(job)
5
+ self.class.enqueue job
6
+ end
7
+
8
+ def enqueue_at(job, timestamp)
9
+ self.class.enqueue_at job, timestamp
10
+ end
11
+
4
12
  class << self
5
13
  def enqueue(job)
6
14
  Shinq::Client.enqueue(
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "shinq"
7
- spec.version = '1.0.0'
7
+ spec.version = '1.0.1'
8
8
  spec.authors = ["Ryoichi SEKIGUCHI"]
9
9
  spec.email = ["ryopeko@gmail.com"]
10
10
  spec.summary = %q{Worker and enqueuer for Q4M using the interface of ActiveJob.}
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.add_dependency "mysql2", ">= 0.3.16", "< 0.5"
29
29
  spec.add_dependency "sql-maker", "~> 0.0.4"
30
- spec.add_dependency "activesupport", "~> 4.2.0"
31
- spec.add_dependency "activejob", "~> 4.2.0"
30
+ spec.add_dependency "activesupport", ">= 4.2.0", "< 6"
31
+ spec.add_dependency "activejob", ">= 4.2.0", "< 6"
32
32
  spec.add_dependency 'serverengine', '~> 1.5.9'
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shinq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryoichi SEKIGUCHI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-13 00:00:00.000000000 Z
11
+ date: 2018-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -160,30 +160,42 @@ dependencies:
160
160
  name: activesupport
161
161
  requirement: !ruby/object:Gem::Requirement
162
162
  requirements:
163
- - - "~>"
163
+ - - ">="
164
164
  - !ruby/object:Gem::Version
165
165
  version: 4.2.0
166
+ - - "<"
167
+ - !ruby/object:Gem::Version
168
+ version: '6'
166
169
  type: :runtime
167
170
  prerelease: false
168
171
  version_requirements: !ruby/object:Gem::Requirement
169
172
  requirements:
170
- - - "~>"
173
+ - - ">="
171
174
  - !ruby/object:Gem::Version
172
175
  version: 4.2.0
176
+ - - "<"
177
+ - !ruby/object:Gem::Version
178
+ version: '6'
173
179
  - !ruby/object:Gem::Dependency
174
180
  name: activejob
175
181
  requirement: !ruby/object:Gem::Requirement
176
182
  requirements:
177
- - - "~>"
183
+ - - ">="
178
184
  - !ruby/object:Gem::Version
179
185
  version: 4.2.0
186
+ - - "<"
187
+ - !ruby/object:Gem::Version
188
+ version: '6'
180
189
  type: :runtime
181
190
  prerelease: false
182
191
  version_requirements: !ruby/object:Gem::Requirement
183
192
  requirements:
184
- - - "~>"
193
+ - - ">="
185
194
  - !ruby/object:Gem::Version
186
195
  version: 4.2.0
196
+ - - "<"
197
+ - !ruby/object:Gem::Version
198
+ version: '6'
187
199
  - !ruby/object:Gem::Dependency
188
200
  name: serverengine
189
201
  requirement: !ruby/object:Gem::Requirement