guard-delayed 0.3.1 → 0.3.2

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: 123f175541f4c2a0df0426d65ba401fb0d9eb91c
4
- data.tar.gz: 2ecefab0007ba5c08c843623f01f780fc068a89f
3
+ metadata.gz: 154319116ef09645ef57a03c99956eaf61c4c345
4
+ data.tar.gz: 6e6d16993564cba478c9f9b178709bef5ea5f1b3
5
5
  SHA512:
6
- metadata.gz: 70c12e48fe2b8161181c3dbeebefb45ae675087dbfac2621572da851ce18e63e50b8f55afa2eab6206ff071aa43960df0d1e8a6a9bd7b9a42eabf45a40377b11
7
- data.tar.gz: 02e6e77c84f8233072244d502a01937a628d24c8b2c5b90fc150520fe78726fe1790cdb70855fa2b3965a85c6cd2caec40fdf0facb8bab8d4584fbc0e406f251
6
+ metadata.gz: 62587d88eb9578135a0690ebee1531983a1efd31a7910600373a9ae447e238393177c49c199347480e9901749a3e7945bbcf04dbc7857be7b63b106d4c210152
7
+ data.tar.gz: b836016c15c4e671af43dde88a74791207d3f32f8f08d3c09f518a36f0debf0256656461e2a7df58b6f7334edc709b04490c457d3b51597714fd0d0fc72d6054
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.1.3
1
+ 2.2.2
data/Guardfile CHANGED
@@ -3,7 +3,12 @@ guard 'bundler' do
3
3
  watch(/^.+\.gemspec/)
4
4
  end
5
5
 
6
- guard :rspec, cmd: 'bundle exec rspec' do
6
+ options = {
7
+ cmd: 'bundle exec rspec',
8
+ all_after_pass: true,
9
+ all_on_start: true
10
+ }
11
+ guard :rspec, options do
7
12
  watch(%r{^spec/.+_spec\.rb$})
8
13
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
9
14
  watch('spec/spec_helper.rb') { "spec" }
data/README.markdown CHANGED
@@ -44,11 +44,11 @@ Please create a topic branch for every separate change you make.
44
44
 
45
45
  * Push to rubygems.org:
46
46
 
47
- gem push guard-delayed-0.3.1.gem
47
+ gem push guard-delayed-0.3.2.gem
48
48
 
49
49
  ## Testing the gem locally
50
50
 
51
- gem install guard-delayed-0.3.1.gem
51
+ gem install guard-delayed-0.3.2.gem
52
52
 
53
53
 
54
54
  ## Authors
@@ -16,13 +16,14 @@ Gem::Specification.new do |s|
16
16
  s.required_rubygems_version = '>= 2.2'
17
17
  s.rubyforge_project = "guard-delayed"
18
18
 
19
- s.add_dependency 'guard', '>= 0.3', '< 3.0'
20
- s.add_dependency 'delayed_job', '~> 3'
21
-
22
- s.add_development_dependency 'bundler', '> 1.0.10'
23
- s.add_development_dependency 'rspec', '> 2.5.0'
24
- s.add_development_dependency 'guard-rspec', '> 0.2.0'
25
- s.add_development_dependency 'guard-bundler', '> 0.1.1'
19
+ s.add_dependency "guard", "~> 2.1"
20
+ s.add_dependency "guard-compat", "~> 1.1"
21
+ s.add_dependency 'delayed_job', '~> 4'
22
+
23
+ s.add_development_dependency 'bundler'
24
+ s.add_development_dependency 'rspec'
25
+ s.add_development_dependency 'guard-rspec'
26
+ s.add_development_dependency 'guard-bundler'
26
27
 
27
28
  s.files = `git ls-files`.split("\n")
28
29
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
data/lib/guard/delayed.rb CHANGED
@@ -1,5 +1,4 @@
1
- require 'guard'
2
- require 'guard/plugin'
1
+ require "guard/compat/plugin"
3
2
 
4
3
  module Guard
5
4
  class Delayed < Plugin
@@ -16,13 +15,12 @@ module Guard
16
15
  # :prefix NAME String to be prefixed to worker process names
17
16
 
18
17
  def initialize(options = {})
19
- @options = options
20
18
  super
19
+ @options = options
21
20
  end
22
21
 
23
22
  def start
24
23
  run_cmd("stop")
25
- UI.info "Starting up delayed_job..."
26
24
  parameters = "start"
27
25
  parameters << " --min-priority #{@options[:min_priority]}" if @options[:min_priority]
28
26
  parameters << " --max-priority #{@options[:max_priority]}" if @options[:max_priority]
@@ -37,14 +35,12 @@ module Guard
37
35
 
38
36
  # Called on Ctrl-C signal (when Guard quits)
39
37
  def stop
40
- UI.info "Stopping delayed_job..."
41
38
  run_cmd("stop")
42
39
  end
43
40
 
44
41
  # Called on Ctrl-Z signal
45
42
  # This method should be mainly used for "reload" (really!) actions like reloading passenger/spork/bundler/...
46
43
  def reload
47
- UI.info "Restarting delayed_job..."
48
44
  restart
49
45
  end
50
46
 
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module DelayedVersion
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'rubygems'
2
+ require 'guard/compat/test/helper'
2
3
  require 'guard/delayed'
3
4
  require "rspec"
4
5
 
@@ -11,7 +12,6 @@ RSpec.configure do |config|
11
12
  config.run_all_when_everything_filtered = true
12
13
 
13
14
  config.before(:each) do
14
- ::Guard::Notifier.stub(:notify).and_return(true)
15
15
  @fixture_path = Pathname.new(File.expand_path('../fixtures/', __FILE__))
16
16
  end
17
17
 
metadata CHANGED
@@ -1,105 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-delayed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Parry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-20 00:00:00.000000000 Z
11
+ date: 2015-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0.3'
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: '3.0'
19
+ version: '2.1'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0.3'
30
- - - "<"
26
+ version: '2.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: guard-compat
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
31
32
  - !ruby/object:Gem::Version
32
- version: '3.0'
33
+ version: '1.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
33
41
  - !ruby/object:Gem::Dependency
34
42
  name: delayed_job
35
43
  requirement: !ruby/object:Gem::Requirement
36
44
  requirements:
37
45
  - - "~>"
38
46
  - !ruby/object:Gem::Version
39
- version: '3'
47
+ version: '4'
40
48
  type: :runtime
41
49
  prerelease: false
42
50
  version_requirements: !ruby/object:Gem::Requirement
43
51
  requirements:
44
52
  - - "~>"
45
53
  - !ruby/object:Gem::Version
46
- version: '3'
54
+ version: '4'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: bundler
49
57
  requirement: !ruby/object:Gem::Requirement
50
58
  requirements:
51
- - - ">"
59
+ - - ">="
52
60
  - !ruby/object:Gem::Version
53
- version: 1.0.10
61
+ version: '0'
54
62
  type: :development
55
63
  prerelease: false
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
65
  requirements:
58
- - - ">"
66
+ - - ">="
59
67
  - !ruby/object:Gem::Version
60
- version: 1.0.10
68
+ version: '0'
61
69
  - !ruby/object:Gem::Dependency
62
70
  name: rspec
63
71
  requirement: !ruby/object:Gem::Requirement
64
72
  requirements:
65
- - - ">"
73
+ - - ">="
66
74
  - !ruby/object:Gem::Version
67
- version: 2.5.0
75
+ version: '0'
68
76
  type: :development
69
77
  prerelease: false
70
78
  version_requirements: !ruby/object:Gem::Requirement
71
79
  requirements:
72
- - - ">"
80
+ - - ">="
73
81
  - !ruby/object:Gem::Version
74
- version: 2.5.0
82
+ version: '0'
75
83
  - !ruby/object:Gem::Dependency
76
84
  name: guard-rspec
77
85
  requirement: !ruby/object:Gem::Requirement
78
86
  requirements:
79
- - - ">"
87
+ - - ">="
80
88
  - !ruby/object:Gem::Version
81
- version: 0.2.0
89
+ version: '0'
82
90
  type: :development
83
91
  prerelease: false
84
92
  version_requirements: !ruby/object:Gem::Requirement
85
93
  requirements:
86
- - - ">"
94
+ - - ">="
87
95
  - !ruby/object:Gem::Version
88
- version: 0.2.0
96
+ version: '0'
89
97
  - !ruby/object:Gem::Dependency
90
98
  name: guard-bundler
91
99
  requirement: !ruby/object:Gem::Requirement
92
100
  requirements:
93
- - - ">"
101
+ - - ">="
94
102
  - !ruby/object:Gem::Version
95
- version: 0.1.1
103
+ version: '0'
96
104
  type: :development
97
105
  prerelease: false
98
106
  version_requirements: !ruby/object:Gem::Requirement
99
107
  requirements:
100
- - - ">"
108
+ - - ">="
101
109
  - !ruby/object:Gem::Version
102
- version: 0.1.1
110
+ version: '0'
103
111
  description: Guard::Delayedjob automatically starts/stops/restarts delayed_job
104
112
  email:
105
113
  - david.parry@suranyami.com
@@ -142,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
150
  version: '2.2'
143
151
  requirements: []
144
152
  rubyforge_project: guard-delayed
145
- rubygems_version: 2.2.2
153
+ rubygems_version: 2.4.8
146
154
  signing_key:
147
155
  specification_version: 4
148
156
  summary: guard gem for delayed_job