sidekiq-sync 0.0.1
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 +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +91 -0
- data/Guardfile +81 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/e2e +5 -0
- data/bin/setup +8 -0
- data/e2e/e2e.rb +27 -0
- data/e2e/e2e_worker.rb +11 -0
- data/lib/sidekiq/sync.rb +13 -0
- data/lib/sidekiq/sync/class_methods.rb +31 -0
- data/lib/sidekiq/sync/options.rb +15 -0
- data/lib/sidekiq/sync/performer.rb +21 -0
- data/lib/sidekiq/sync/timeout_error.rb +6 -0
- data/lib/sidekiq/sync/version.rb +5 -0
- data/lib/sidekiq/sync/worker.rb +13 -0
- data/sidekiq-sync.gemspec +33 -0
- metadata +210 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 938b02f90b02175bc9026e419c5dbb3f0619810e0b2f9b124d575a0dd67d9b6c
|
|
4
|
+
data.tar.gz: fab017628c8313197775a1a7ceada980dd5a0dabd828aa1a59c9c35beb9a5cce
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 95f9a34eb6d594faf37b3f6d6b29e33b812f6569d041d89e13acf7ca94859ad051cecd399150289968315f6d1c2aea322a921b8afc4b2ecedc73b3840ef057f7
|
|
7
|
+
data.tar.gz: c153f63cfd67198750a134f25129cf0088cb2fcc2f4a97b1ab95cde64f62b518091631c1823111c02a0773631e229e22c1b1e91b91a26b58ef42e274e6d733ff
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-gemset
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
sidekiq-sync
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.5.1
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
sidekiq-sync (0.0.1)
|
|
5
|
+
sidekiq (~> 5.1, = 5.1.3)
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
coderay (1.1.2)
|
|
11
|
+
concurrent-ruby (1.0.5)
|
|
12
|
+
connection_pool (2.2.2)
|
|
13
|
+
diff-lcs (1.3)
|
|
14
|
+
ffi (1.9.25)
|
|
15
|
+
formatador (0.2.5)
|
|
16
|
+
guard (2.14.2)
|
|
17
|
+
formatador (>= 0.2.4)
|
|
18
|
+
listen (>= 2.7, < 4.0)
|
|
19
|
+
lumberjack (>= 1.0.12, < 2.0)
|
|
20
|
+
nenv (~> 0.1)
|
|
21
|
+
notiffany (~> 0.0)
|
|
22
|
+
pry (>= 0.9.12)
|
|
23
|
+
shellany (~> 0.0)
|
|
24
|
+
thor (>= 0.18.1)
|
|
25
|
+
guard-compat (1.2.1)
|
|
26
|
+
guard-rspec (4.7.3)
|
|
27
|
+
guard (~> 2.1)
|
|
28
|
+
guard-compat (~> 1.1)
|
|
29
|
+
rspec (>= 2.99.0, < 4.0)
|
|
30
|
+
guard-sidekiq (0.1.0)
|
|
31
|
+
guard (>= 2)
|
|
32
|
+
sidekiq
|
|
33
|
+
kommando (0.1.2)
|
|
34
|
+
listen (3.1.5)
|
|
35
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
36
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
|
37
|
+
ruby_dep (~> 1.2)
|
|
38
|
+
lumberjack (1.0.13)
|
|
39
|
+
method_source (0.9.0)
|
|
40
|
+
nenv (0.3.0)
|
|
41
|
+
notiffany (0.1.1)
|
|
42
|
+
nenv (~> 0.1)
|
|
43
|
+
shellany (~> 0.0)
|
|
44
|
+
pry (0.11.3)
|
|
45
|
+
coderay (~> 1.1.0)
|
|
46
|
+
method_source (~> 0.9.0)
|
|
47
|
+
rack (2.0.5)
|
|
48
|
+
rack-protection (2.0.3)
|
|
49
|
+
rack
|
|
50
|
+
rake (10.5.0)
|
|
51
|
+
rb-fsevent (0.10.3)
|
|
52
|
+
rb-inotify (0.9.10)
|
|
53
|
+
ffi (>= 0.5.0, < 2)
|
|
54
|
+
redis (4.0.1)
|
|
55
|
+
rspec (3.7.0)
|
|
56
|
+
rspec-core (~> 3.7.0)
|
|
57
|
+
rspec-expectations (~> 3.7.0)
|
|
58
|
+
rspec-mocks (~> 3.7.0)
|
|
59
|
+
rspec-core (3.7.1)
|
|
60
|
+
rspec-support (~> 3.7.0)
|
|
61
|
+
rspec-expectations (3.7.0)
|
|
62
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
63
|
+
rspec-support (~> 3.7.0)
|
|
64
|
+
rspec-mocks (3.7.0)
|
|
65
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
66
|
+
rspec-support (~> 3.7.0)
|
|
67
|
+
rspec-support (3.7.1)
|
|
68
|
+
ruby_dep (1.5.0)
|
|
69
|
+
shellany (0.0.1)
|
|
70
|
+
sidekiq (5.1.3)
|
|
71
|
+
concurrent-ruby (~> 1.0)
|
|
72
|
+
connection_pool (~> 2.2, >= 2.2.0)
|
|
73
|
+
rack-protection (>= 1.5.0)
|
|
74
|
+
redis (>= 3.3.5, < 5)
|
|
75
|
+
thor (0.20.0)
|
|
76
|
+
|
|
77
|
+
PLATFORMS
|
|
78
|
+
ruby
|
|
79
|
+
|
|
80
|
+
DEPENDENCIES
|
|
81
|
+
bundler (~> 1.16)
|
|
82
|
+
guard (~> 2.14, = 2.14.2)
|
|
83
|
+
guard-rspec (~> 4.7, = 4.7.3)
|
|
84
|
+
guard-sidekiq (~> 0.1, = 0.1.0)
|
|
85
|
+
kommando (~> 0.1, = 0.1.2)
|
|
86
|
+
rake (~> 10.0)
|
|
87
|
+
rspec (~> 3.0)
|
|
88
|
+
sidekiq-sync!
|
|
89
|
+
|
|
90
|
+
BUNDLED WITH
|
|
91
|
+
1.16.2
|
data/Guardfile
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# A sample Guardfile
|
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
|
3
|
+
|
|
4
|
+
## Uncomment and set this to only include directories you want to watch
|
|
5
|
+
# directories %w(app lib config test spec features) \
|
|
6
|
+
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
|
7
|
+
|
|
8
|
+
## Note: if you are using the `directories` clause above and you are not
|
|
9
|
+
## watching the project directory ('.'), then you will want to move
|
|
10
|
+
## the Guardfile to a watched dir and symlink it back, e.g.
|
|
11
|
+
#
|
|
12
|
+
# $ mkdir config
|
|
13
|
+
# $ mv Guardfile config/
|
|
14
|
+
# $ ln -s config/Guardfile .
|
|
15
|
+
#
|
|
16
|
+
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
|
17
|
+
|
|
18
|
+
### Guard::Sidekiq
|
|
19
|
+
# available options:
|
|
20
|
+
# - :verbose
|
|
21
|
+
# - :queue (defaults to "default") can be an array
|
|
22
|
+
# - :concurrency (defaults to 1)
|
|
23
|
+
# - :timeout
|
|
24
|
+
# - :environment (corresponds to RAILS_ENV for the Sidekiq worker)
|
|
25
|
+
guard 'sidekiq', :environment => 'development', require: './spec/workers/*.rb' do
|
|
26
|
+
watch(%r{spec/workers/(.+)\.rb$})
|
|
27
|
+
watch(%r{lib/sidekiq/sync/(.+)\.rb$})
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Note: The cmd option is now required due to the increasing number of ways
|
|
31
|
+
# rspec may be run, below are examples of the most common uses.
|
|
32
|
+
# * bundler: 'bundle exec rspec'
|
|
33
|
+
# * bundler binstubs: 'bin/rspec'
|
|
34
|
+
# * spring: 'bin/rspec' (This will use spring if running and you have
|
|
35
|
+
# installed the spring binstubs per the docs)
|
|
36
|
+
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
|
37
|
+
# * 'just' rspec: 'rspec'
|
|
38
|
+
guard :rspec, cmd: "GUARD_ACTIVE=true bundle exec rspec", all_on_start: true, all_after_pass: true do
|
|
39
|
+
require "guard/rspec/dsl"
|
|
40
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
|
41
|
+
|
|
42
|
+
# Feel free to open issues for suggestions and improvements
|
|
43
|
+
|
|
44
|
+
# RSpec files
|
|
45
|
+
rspec = dsl.rspec
|
|
46
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
|
47
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
|
48
|
+
watch(rspec.spec_files)
|
|
49
|
+
|
|
50
|
+
# Ruby files
|
|
51
|
+
ruby = dsl.ruby
|
|
52
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
|
53
|
+
|
|
54
|
+
# Rails files
|
|
55
|
+
rails = dsl.rails(view_extensions: %w(erb haml slim))
|
|
56
|
+
dsl.watch_spec_files_for(rails.app_files)
|
|
57
|
+
dsl.watch_spec_files_for(rails.views)
|
|
58
|
+
|
|
59
|
+
watch(rails.controllers) do |m|
|
|
60
|
+
[
|
|
61
|
+
rspec.spec.call("routing/#{m[1]}_routing"),
|
|
62
|
+
rspec.spec.call("controllers/#{m[1]}_controller"),
|
|
63
|
+
rspec.spec.call("acceptance/#{m[1]}")
|
|
64
|
+
]
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Rails config changes
|
|
68
|
+
watch(rails.spec_helper) { rspec.spec_dir }
|
|
69
|
+
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
|
70
|
+
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
|
71
|
+
|
|
72
|
+
# Capybara features specs
|
|
73
|
+
watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
|
|
74
|
+
watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
|
|
75
|
+
|
|
76
|
+
# Turnip features and steps
|
|
77
|
+
watch(%r{^spec/acceptance/(.+)\.feature$})
|
|
78
|
+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
|
79
|
+
Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
|
|
80
|
+
end
|
|
81
|
+
end
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Matti Paksula
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# sidekiq-sync
|
|
2
|
+
|
|
3
|
+
Adds `perform_sync` to Sidekiq to get return value from perform while still executing through Sidekiq (distributed workers!). Internally it stores the result in a unique queue that is polled.
|
|
4
|
+
|
|
5
|
+
## Usage:
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
class HardWorker
|
|
9
|
+
include Sidekiq::Sync::Worker
|
|
10
|
+
|
|
11
|
+
def perform(how_hard="super hard", how_long=1)
|
|
12
|
+
puts "working #{how_hard}"
|
|
13
|
+
sleep how_long
|
|
14
|
+
"I worked #{how_hard}"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
puts HardWorker.perform_sync("really hard")
|
|
19
|
+
# outputs "I worked really hard"
|
|
20
|
+
|
|
21
|
+
puts HardWorker.perform_async("really hard")
|
|
22
|
+
# outputs the sidekiq job..
|
|
23
|
+
|
|
24
|
+
options = Sidekiq::Sync::Options.new(timeout: 3)
|
|
25
|
+
puts HardWorker.perform_sync(options, "really hard", 4)
|
|
26
|
+
# times out in 3 seconds and raises Sidekiq::Sync::TimeoutError
|
|
27
|
+
|
|
28
|
+
options = Sidekiq::Sync::Options.new(timeout: 3, raise: false)
|
|
29
|
+
puts HardWorker.perform_sync(options, "really hard", 4)
|
|
30
|
+
# times out in 3 seconds, returns nil, does not raise
|
|
31
|
+
|
|
32
|
+
options = Sidekiq::Sync::Options.new(timeout: 3, raise: false)
|
|
33
|
+
puts HardWorker.perform_sync(options, "really hard", 4)
|
|
34
|
+
# times out in 3 seconds, returns nil, does not raise
|
|
35
|
+
|
|
36
|
+
options = Sidekiq::Sync::Options.new(timeout: 3, raise: false)
|
|
37
|
+
puts HardWorker.perform_sync("really hard", options, 4)
|
|
38
|
+
# options can be wherever you wish (still sleeps 4, timeouts in 3 and does not raise)
|
|
39
|
+
```
|
data/Rakefile
ADDED
data/bin/console
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "sidekiq/sync"
|
|
5
|
+
|
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
+
|
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
+
# require "pry"
|
|
11
|
+
# Pry.start
|
|
12
|
+
|
|
13
|
+
require "irb"
|
|
14
|
+
IRB.start(__FILE__)
|
data/bin/e2e
ADDED
data/bin/setup
ADDED
data/e2e/e2e.rb
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
$stdout.sync = true
|
|
2
|
+
|
|
3
|
+
require "sidekiq"
|
|
4
|
+
require_relative "e2e_worker"
|
|
5
|
+
|
|
6
|
+
require "kommando"
|
|
7
|
+
$sidekiq_runner = Kommando.new "sidekiq -r./e2e/e2e_worker.rb", {
|
|
8
|
+
output: true
|
|
9
|
+
}
|
|
10
|
+
$sidekiq_runner.run_async
|
|
11
|
+
|
|
12
|
+
smoke_value = E2EWorker.perform_sync "smoke"
|
|
13
|
+
raise "smoke" unless smoke_value == "smoke"
|
|
14
|
+
|
|
15
|
+
got_exception = false
|
|
16
|
+
begin
|
|
17
|
+
E2EWorker.perform_sync "nothing", 2, Sidekiq::Sync::Options.new(timeout: 1)
|
|
18
|
+
rescue Sidekiq::Sync::TimeoutError
|
|
19
|
+
got_exception = true
|
|
20
|
+
end
|
|
21
|
+
raise "raise" unless got_exception
|
|
22
|
+
|
|
23
|
+
timeout_value = E2EWorker.perform_sync "timeout_and_raise_false", 2, Sidekiq::Sync::Options.new(timeout: 1, raise: false)
|
|
24
|
+
raise "timeout_and_raise_false" if timeout_value
|
|
25
|
+
|
|
26
|
+
puts "OK"
|
|
27
|
+
$sidekiq_runner.kill
|
data/e2e/e2e_worker.rb
ADDED
data/lib/sidekiq/sync.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
require "redis"
|
|
2
|
+
|
|
3
|
+
require_relative "sync/version"
|
|
4
|
+
require_relative "sync/worker"
|
|
5
|
+
require_relative "sync/class_methods"
|
|
6
|
+
require_relative "sync/performer"
|
|
7
|
+
require_relative "sync/timeout_error"
|
|
8
|
+
require_relative "sync/options"
|
|
9
|
+
|
|
10
|
+
module Sidekiq
|
|
11
|
+
module Sync
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
module Sidekiq
|
|
2
|
+
module Sync
|
|
3
|
+
module ClassMethods
|
|
4
|
+
def perform_sync(*args)
|
|
5
|
+
real_args = []
|
|
6
|
+
options = Sidekiq::Sync::Options.new
|
|
7
|
+
for arg in args
|
|
8
|
+
if arg.is_a? Sidekiq::Sync::Options
|
|
9
|
+
options = arg
|
|
10
|
+
else
|
|
11
|
+
real_args << arg
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
return_channel = "sidekiq-sync:#{SecureRandom::uuid}"
|
|
16
|
+
|
|
17
|
+
self.perform_async(return_channel, *real_args)
|
|
18
|
+
# queue_or_nil_if_timeout, value = Sidekiq::Sync.redis.blpop return_channel, timeout: options.timeout
|
|
19
|
+
queue_or_nil_if_timeout, value = Sidekiq.redis do |r|
|
|
20
|
+
r.blpop return_channel, timeout: options.timeout
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
unless queue_or_nil_if_timeout
|
|
24
|
+
raise Sidekiq::Sync::TimeoutError if options.raise
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
value
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module Sidekiq
|
|
2
|
+
module Sync
|
|
3
|
+
module Performer
|
|
4
|
+
def perform(*args)
|
|
5
|
+
if args[0] && args[0].start_with?("sidekiq-sync:")
|
|
6
|
+
channel = args.shift
|
|
7
|
+
result = super(*args)
|
|
8
|
+
|
|
9
|
+
Sidekiq.redis do |r|
|
|
10
|
+
r.lpush channel, result
|
|
11
|
+
r.expire channel, 1
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
result
|
|
15
|
+
else
|
|
16
|
+
super(*args)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require_relative "lib/sidekiq/sync/version"
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "sidekiq-sync"
|
|
8
|
+
spec.version = Sidekiq::Sync::VERSION
|
|
9
|
+
spec.authors = ["Matti Paksula"]
|
|
10
|
+
spec.email = ["matti.paksula@iki.fi"]
|
|
11
|
+
|
|
12
|
+
spec.summary = %q{perform_sync for Sidekiq}
|
|
13
|
+
spec.description = %q{Adds perform_sync next to perform_async}
|
|
14
|
+
spec.homepage = "https://github.com/matti/sidekiq-sync"
|
|
15
|
+
spec.license = "MIT"
|
|
16
|
+
|
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
|
19
|
+
end
|
|
20
|
+
spec.bindir = "exe"
|
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
22
|
+
spec.require_paths = ["lib"]
|
|
23
|
+
|
|
24
|
+
spec.add_dependency "sidekiq", "5.1.3", "~> 5.1"
|
|
25
|
+
|
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
|
28
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
|
29
|
+
spec.add_development_dependency "guard", "2.14.2", "~> 2.14"
|
|
30
|
+
spec.add_development_dependency "guard-sidekiq", "0.1.0", "~> 0.1"
|
|
31
|
+
spec.add_development_dependency "guard-rspec", "4.7.3", "~> 4.7"
|
|
32
|
+
spec.add_development_dependency "kommando", "0.1.2", "~> 0.1"
|
|
33
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: sidekiq-sync
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Matti Paksula
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2018-07-10 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: sidekiq
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - '='
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 5.1.3
|
|
20
|
+
- - "~>"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '5.1'
|
|
23
|
+
type: :runtime
|
|
24
|
+
prerelease: false
|
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
26
|
+
requirements:
|
|
27
|
+
- - '='
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: 5.1.3
|
|
30
|
+
- - "~>"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '5.1'
|
|
33
|
+
- !ruby/object:Gem::Dependency
|
|
34
|
+
name: bundler
|
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '1.16'
|
|
40
|
+
type: :development
|
|
41
|
+
prerelease: false
|
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '1.16'
|
|
47
|
+
- !ruby/object:Gem::Dependency
|
|
48
|
+
name: rake
|
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '10.0'
|
|
54
|
+
type: :development
|
|
55
|
+
prerelease: false
|
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - "~>"
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '10.0'
|
|
61
|
+
- !ruby/object:Gem::Dependency
|
|
62
|
+
name: rspec
|
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - "~>"
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '3.0'
|
|
68
|
+
type: :development
|
|
69
|
+
prerelease: false
|
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - "~>"
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '3.0'
|
|
75
|
+
- !ruby/object:Gem::Dependency
|
|
76
|
+
name: guard
|
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - '='
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: 2.14.2
|
|
82
|
+
- - "~>"
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: '2.14'
|
|
85
|
+
type: :development
|
|
86
|
+
prerelease: false
|
|
87
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
88
|
+
requirements:
|
|
89
|
+
- - '='
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: 2.14.2
|
|
92
|
+
- - "~>"
|
|
93
|
+
- !ruby/object:Gem::Version
|
|
94
|
+
version: '2.14'
|
|
95
|
+
- !ruby/object:Gem::Dependency
|
|
96
|
+
name: guard-sidekiq
|
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
|
98
|
+
requirements:
|
|
99
|
+
- - '='
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: 0.1.0
|
|
102
|
+
- - "~>"
|
|
103
|
+
- !ruby/object:Gem::Version
|
|
104
|
+
version: '0.1'
|
|
105
|
+
type: :development
|
|
106
|
+
prerelease: false
|
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
108
|
+
requirements:
|
|
109
|
+
- - '='
|
|
110
|
+
- !ruby/object:Gem::Version
|
|
111
|
+
version: 0.1.0
|
|
112
|
+
- - "~>"
|
|
113
|
+
- !ruby/object:Gem::Version
|
|
114
|
+
version: '0.1'
|
|
115
|
+
- !ruby/object:Gem::Dependency
|
|
116
|
+
name: guard-rspec
|
|
117
|
+
requirement: !ruby/object:Gem::Requirement
|
|
118
|
+
requirements:
|
|
119
|
+
- - '='
|
|
120
|
+
- !ruby/object:Gem::Version
|
|
121
|
+
version: 4.7.3
|
|
122
|
+
- - "~>"
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '4.7'
|
|
125
|
+
type: :development
|
|
126
|
+
prerelease: false
|
|
127
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - '='
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: 4.7.3
|
|
132
|
+
- - "~>"
|
|
133
|
+
- !ruby/object:Gem::Version
|
|
134
|
+
version: '4.7'
|
|
135
|
+
- !ruby/object:Gem::Dependency
|
|
136
|
+
name: kommando
|
|
137
|
+
requirement: !ruby/object:Gem::Requirement
|
|
138
|
+
requirements:
|
|
139
|
+
- - '='
|
|
140
|
+
- !ruby/object:Gem::Version
|
|
141
|
+
version: 0.1.2
|
|
142
|
+
- - "~>"
|
|
143
|
+
- !ruby/object:Gem::Version
|
|
144
|
+
version: '0.1'
|
|
145
|
+
type: :development
|
|
146
|
+
prerelease: false
|
|
147
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
148
|
+
requirements:
|
|
149
|
+
- - '='
|
|
150
|
+
- !ruby/object:Gem::Version
|
|
151
|
+
version: 0.1.2
|
|
152
|
+
- - "~>"
|
|
153
|
+
- !ruby/object:Gem::Version
|
|
154
|
+
version: '0.1'
|
|
155
|
+
description: Adds perform_sync next to perform_async
|
|
156
|
+
email:
|
|
157
|
+
- matti.paksula@iki.fi
|
|
158
|
+
executables: []
|
|
159
|
+
extensions: []
|
|
160
|
+
extra_rdoc_files: []
|
|
161
|
+
files:
|
|
162
|
+
- ".gitignore"
|
|
163
|
+
- ".rspec"
|
|
164
|
+
- ".ruby-gemset"
|
|
165
|
+
- ".ruby-version"
|
|
166
|
+
- ".travis.yml"
|
|
167
|
+
- Gemfile
|
|
168
|
+
- Gemfile.lock
|
|
169
|
+
- Guardfile
|
|
170
|
+
- LICENSE.txt
|
|
171
|
+
- README.md
|
|
172
|
+
- Rakefile
|
|
173
|
+
- bin/console
|
|
174
|
+
- bin/e2e
|
|
175
|
+
- bin/setup
|
|
176
|
+
- e2e/e2e.rb
|
|
177
|
+
- e2e/e2e_worker.rb
|
|
178
|
+
- lib/sidekiq/sync.rb
|
|
179
|
+
- lib/sidekiq/sync/class_methods.rb
|
|
180
|
+
- lib/sidekiq/sync/options.rb
|
|
181
|
+
- lib/sidekiq/sync/performer.rb
|
|
182
|
+
- lib/sidekiq/sync/timeout_error.rb
|
|
183
|
+
- lib/sidekiq/sync/version.rb
|
|
184
|
+
- lib/sidekiq/sync/worker.rb
|
|
185
|
+
- sidekiq-sync.gemspec
|
|
186
|
+
homepage: https://github.com/matti/sidekiq-sync
|
|
187
|
+
licenses:
|
|
188
|
+
- MIT
|
|
189
|
+
metadata: {}
|
|
190
|
+
post_install_message:
|
|
191
|
+
rdoc_options: []
|
|
192
|
+
require_paths:
|
|
193
|
+
- lib
|
|
194
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
195
|
+
requirements:
|
|
196
|
+
- - ">="
|
|
197
|
+
- !ruby/object:Gem::Version
|
|
198
|
+
version: '0'
|
|
199
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
|
+
requirements:
|
|
201
|
+
- - ">="
|
|
202
|
+
- !ruby/object:Gem::Version
|
|
203
|
+
version: '0'
|
|
204
|
+
requirements: []
|
|
205
|
+
rubyforge_project:
|
|
206
|
+
rubygems_version: 2.7.6
|
|
207
|
+
signing_key:
|
|
208
|
+
specification_version: 4
|
|
209
|
+
summary: perform_sync for Sidekiq
|
|
210
|
+
test_files: []
|