guard-passenger 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 924273ce602f5638224c925d24db22c5b507454d
4
+ data.tar.gz: c62b9bebb4b4dddd77f2e15a618c48020204b2f0
5
+ SHA512:
6
+ metadata.gz: a654aa22f09d937464255544853222f420920d675fd4dcf7057d456711b91e39445efb005832bdef0c0ec8cfa80147d45bd7eb2f0984eff4a26cceffd1b824cb
7
+ data.tar.gz: 99b80bf769b9f86a96090861396498b0defda91cfef6a4e32eeff18dd6571660843ea00b1401a374d5ec1bd0c8e9b5c3a9d9c85637da6a55b0f1ae0d34c62af6
@@ -1,10 +1,16 @@
1
1
  module Guard
2
2
  class Passenger
3
3
  module Runner
4
- class << self
4
+ PASSENGER_VERSION = Gem.latest_spec_for('passenger').version
5
5
 
6
+ class << self
6
7
  def restart_passenger
7
- succeed = system("touch tmp/restart.txt")
8
+ if PASSENGER_VERSION >= Gem::Version.new('4.0.31')
9
+ succeed = system("passenger-config restart-app #{ Dir.getwd }")
10
+ else
11
+ succeed = system("touch tmp/restart.txt")
12
+ end
13
+
8
14
  if succeed
9
15
  UI.info "Passenger successfully restarted."
10
16
  else
@@ -27,7 +33,6 @@ module Guard
27
33
  else
28
34
  UI.error "Passenger standalone is not installed. You need at least Passenger version >= 3.0.0.\nPlease run 'gem install passenger' or add it to your Gemfile."
29
35
  throw :task_has_failed
30
- false
31
36
  end
32
37
  end
33
38
 
@@ -43,14 +48,8 @@ module Guard
43
48
  end
44
49
 
45
50
  def passenger_standalone_installed?
46
- begin
47
- gem "passenger", ">=3.0.0"
48
- rescue Gem::LoadError
49
- return false
50
- end
51
- true
51
+ PASSENGER_VERSION >= Gem::Version.new('3')
52
52
  end
53
-
54
53
  end
55
54
  end
56
55
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module PassengerVersion
3
- VERSION = '0.5.1'
3
+ VERSION = '0.6.0'
4
4
  end
5
- end
5
+ end
@@ -40,7 +40,7 @@ module Guard
40
40
  def start
41
41
  UI.info 'Guard::Passenger is running!'
42
42
  if standalone?
43
- @running = Runner.start_passenger(cli_start, @sudo)
43
+ running = Runner.start_passenger(cli_start, @sudo)
44
44
  else
45
45
  true
46
46
  end
@@ -76,7 +76,7 @@ module Guard
76
76
  def cli_stop
77
77
  cmd_parts = []
78
78
  cmd_parts << "--port #{port}" if port != 3000
79
- cmd_parts << "--pid_file #{pid_file}" if pid_file
79
+ cmd_parts << "--pid-file #{pid_file}" if pid_file
80
80
  cmd_parts.join(' ')
81
81
  end
82
82
 
metadata CHANGED
@@ -1,71 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-passenger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
5
- prerelease:
4
+ version: 0.6.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Fabio Kuhn
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-07-02 00:00:00.000000000 Z
11
+ date: 2014-08-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: guard
16
- requirement: &70236373651900 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 1.1.0.beta
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70236373651900
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.1.0.beta
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: bundler
27
- requirement: &70236373651440 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ~>
31
32
  - !ruby/object:Gem::Version
32
- version: 1.1.3
33
+ version: '1.1'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *70236373651440
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: rspec
38
- requirement: &70236373650980 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 2.11.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.11.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-mocks
57
+ requirement: !ruby/object:Gem::Requirement
40
58
  requirements:
41
59
  - - ~>
42
60
  - !ruby/object:Gem::Version
43
- version: 2.10.0
61
+ version: 2.11.0
44
62
  type: :development
45
63
  prerelease: false
46
- version_requirements: *70236373650980
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 2.11.0
47
69
  - !ruby/object:Gem::Dependency
48
70
  name: guard-rspec
49
- requirement: &70236373650520 !ruby/object:Gem::Requirement
50
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
51
72
  requirements:
52
73
  - - ~>
53
74
  - !ruby/object:Gem::Version
54
- version: 1.1.0
75
+ version: 0.7.3
55
76
  type: :development
56
77
  prerelease: false
57
- version_requirements: *70236373650520
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 0.7.3
58
83
  - !ruby/object:Gem::Dependency
59
84
  name: guard-bundler
60
- requirement: &70236373650060 !ruby/object:Gem::Requirement
61
- none: false
85
+ requirement: !ruby/object:Gem::Requirement
62
86
  requirements:
63
87
  - - ~>
64
88
  - !ruby/object:Gem::Version
65
- version: 1.0.0
89
+ version: 0.1.3
66
90
  type: :development
67
91
  prerelease: false
68
- version_requirements: *70236373650060
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 0.1.3
69
97
  description: Guard::Passenger automatically restarts Passenger when needed.
70
98
  email:
71
99
  - mordaroso@gmail.com
@@ -73,35 +101,34 @@ executables: []
73
101
  extensions: []
74
102
  extra_rdoc_files: []
75
103
  files:
76
- - lib/guard/passenger/pinger.rb
104
+ - lib/guard/passenger/version.rb
77
105
  - lib/guard/passenger/runner.rb
106
+ - lib/guard/passenger/pinger.rb
78
107
  - lib/guard/passenger/templates/Guardfile
79
- - lib/guard/passenger/version.rb
80
108
  - lib/guard/passenger.rb
81
109
  - LICENSE
82
110
  - README.rdoc
83
111
  homepage: http://rubygems.org/gems/guard-passenger
84
112
  licenses: []
113
+ metadata: {}
85
114
  post_install_message:
86
115
  rdoc_options: []
87
116
  require_paths:
88
117
  - lib
89
118
  required_ruby_version: !ruby/object:Gem::Requirement
90
- none: false
91
119
  requirements:
92
- - - ! '>='
120
+ - - '>='
93
121
  - !ruby/object:Gem::Version
94
122
  version: '0'
95
123
  required_rubygems_version: !ruby/object:Gem::Requirement
96
- none: false
97
124
  requirements:
98
- - - ! '>='
125
+ - - '>='
99
126
  - !ruby/object:Gem::Version
100
127
  version: 1.3.6
101
128
  requirements: []
102
129
  rubyforge_project: guard-passenger
103
- rubygems_version: 1.8.17
130
+ rubygems_version: 2.0.14
104
131
  signing_key:
105
- specification_version: 3
132
+ specification_version: 4
106
133
  summary: Guard gem for Passenger
107
134
  test_files: []