mastiff 0.1.3 → 0.1.4

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: 3ee2ebfe3bcd9bc90e4f7846b15abd70e08f439a
4
- data.tar.gz: 819bc0653ffa755a7a5a93823df778f554b6b4cf
3
+ metadata.gz: 942869f116aed0a656e8ef35f053491096b4f1e6
4
+ data.tar.gz: ffc8ce8e208991ad2a9e0ab8ece9dd90b517ec6d
5
5
  SHA512:
6
- metadata.gz: 784ebed606f9781eb395420ccca9bd2c0b4bb0e3fae88cf21e2c298d988bd06c11735a763618d1cf8a528146a2b7137237d80e91a637f7bad837a6948a339e70
7
- data.tar.gz: 456dbf511371fec3ed6b75d88c37c13d5ac15d2adb1c07389449c8b8e0165ef502131a88a3c5a3d5422aa9dd53246c5e8ce127207005f57d3b5e7cc6e176f5c7
6
+ metadata.gz: c5ba979954f9e8dc600866892f08812e2941c62ea7e3609c068e1ed0a347ee1fdebcaf8704881c783f7780efc311dc1ad74cd6bb74559439b14643a37aff7355
7
+ data.tar.gz: dfdab6b3f03522159519630bc82c281d7680b46eafc3fba572373a28f91dba41bb3ad69707b82a8532507b72d8da01a16b16676bdfec31782f6542955156b5ca
@@ -3,11 +3,9 @@ require 'sidekiq-lock'
3
3
  class SyncMailWorker
4
4
  include Sidekiq::Worker
5
5
  include Sidekiq::Lock::Worker
6
- include Sidetiq::Schedulable
7
6
  sidekiq_options :queue => :email_queue, :retry => false, :backtrace => true
8
7
  sidekiq_options lock: { timeout: 120000, name: 'lock-mail-worker' }
9
8
 
10
- recurrence { minutely }
11
9
 
12
10
  def perform
13
11
  if lock.acquire!
@@ -19,4 +17,5 @@ class SyncMailWorker
19
17
  end
20
18
  end
21
19
 
22
- end
20
+ end
21
+ Sidekiq::Cron::Job.create(name: 'SyncMailWorker', cron: '*/10 * * * *', klass: 'SyncMailWorker')
@@ -1,3 +1,3 @@
1
1
  module Mastiff
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastiff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashley Raiteri
@@ -100,28 +100,28 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 3.0.0
103
+ version: 3.5.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 3.0.0
110
+ version: 3.5.0
111
111
  - !ruby/object:Gem::Dependency
112
- name: sidetiq
112
+ name: sidekiq-cron
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.6.3
117
+ version: 0.3.1
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 0.6.3
124
+ version: 0.3.1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: sidekiq-lock
127
127
  requirement: !ruby/object:Gem::Requirement