guard-sidekiq 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/guard-sidekiq.gemspec +1 -1
- data/lib/guard/sidekiq.rb +4 -3
- data/lib/guard/sidekiq/version.rb +1 -1
- metadata +18 -18
data/guard-sidekiq.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.summary = %q{guard gem for sidekiq}
|
13
13
|
s.description = %q{Guard::Sidekiq automatically starts/stops/restarts sidekiq worker}
|
14
14
|
|
15
|
-
s.add_dependency 'guard', '>=
|
15
|
+
s.add_dependency 'guard', '>= 1.1'
|
16
16
|
s.add_dependency 'sidekiq'
|
17
17
|
|
18
18
|
s.add_development_dependency 'bundler'
|
data/lib/guard/sidekiq.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'guard'
|
2
2
|
require 'guard/guard'
|
3
|
+
require 'timeout'
|
3
4
|
|
4
5
|
module Guard
|
5
6
|
class Sidekiq < Guard
|
@@ -28,10 +29,10 @@ module Guard
|
|
28
29
|
def start
|
29
30
|
stop
|
30
31
|
UI.info 'Starting up sidekiq...'
|
31
|
-
UI.info
|
32
|
+
UI.info cmd
|
32
33
|
|
33
34
|
# launch Sidekiq worker
|
34
|
-
@pid = spawn(
|
35
|
+
@pid = spawn({}, cmd)
|
35
36
|
end
|
36
37
|
|
37
38
|
def stop
|
@@ -67,7 +68,7 @@ module Guard
|
|
67
68
|
end
|
68
69
|
|
69
70
|
# Called on file(s) modifications
|
70
|
-
def
|
71
|
+
def run_on_changes(paths)
|
71
72
|
restart
|
72
73
|
end
|
73
74
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,18 +14,18 @@ date: 2012-06-21 00:00:00.000000000Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: guard
|
17
|
-
requirement: &
|
17
|
+
requirement: &70344199657880 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '1.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70344199657880
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: sidekiq
|
28
|
-
requirement: &
|
28
|
+
requirement: &70344199656880 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70344199656880
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: bundler
|
39
|
-
requirement: &
|
39
|
+
requirement: &70344199648040 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70344199648040
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rake
|
50
|
-
requirement: &
|
50
|
+
requirement: &70344199644340 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: '0'
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *70344199644340
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: rspec
|
61
|
-
requirement: &
|
61
|
+
requirement: &70344199635140 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ~>
|
@@ -66,10 +66,10 @@ dependencies:
|
|
66
66
|
version: 2.5.0
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *70344199635140
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: guard-rspec
|
72
|
-
requirement: &
|
72
|
+
requirement: &70344199632900 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ! '>='
|
@@ -77,10 +77,10 @@ dependencies:
|
|
77
77
|
version: 0.2.0
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *70344199632900
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: guard-bundler
|
83
|
-
requirement: &
|
83
|
+
requirement: &70344199611360 !ruby/object:Gem::Requirement
|
84
84
|
none: false
|
85
85
|
requirements:
|
86
86
|
- - ! '>='
|
@@ -88,7 +88,7 @@ dependencies:
|
|
88
88
|
version: 0.1.1
|
89
89
|
type: :development
|
90
90
|
prerelease: false
|
91
|
-
version_requirements: *
|
91
|
+
version_requirements: *70344199611360
|
92
92
|
description: Guard::Sidekiq automatically starts/stops/restarts sidekiq worker
|
93
93
|
email:
|
94
94
|
- team@uken.com
|
@@ -123,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
segments:
|
125
125
|
- 0
|
126
|
-
hash:
|
126
|
+
hash: 1318380748816415773
|
127
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
128
|
none: false
|
129
129
|
requirements:
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
version: '0'
|
133
133
|
segments:
|
134
134
|
- 0
|
135
|
-
hash:
|
135
|
+
hash: 1318380748816415773
|
136
136
|
requirements: []
|
137
137
|
rubyforge_project:
|
138
138
|
rubygems_version: 1.8.15
|