guard-puma 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,10 @@
1
+ # Changes
2
+
3
+ ## 0.1.0
4
+
5
+ * Fixed pid file path. Ready for general consumption.
6
+
7
+ ## 0.0.x
8
+
9
+ * Added all CLI options for Puma
10
+ * Ported over [guard-rack](https://github.com/dblock/guard-rack)
data/README.md CHANGED
@@ -38,7 +38,8 @@ end
38
38
  * `:daemon` runs the server as a daemon, without any output to the terminal that ran `guard` (default `false`).
39
39
  * `:debugger` runs the server with the debugger enabled (default `false`). Required ruby-debug gem.
40
40
  * `:timeout` waits this number of seconds when restarting the Puma server before reporting there's a problem (default `20`).
41
- * `:config` is the path to Puma config file (optional)
41
+ * `:config` is the path to the Puma config file (optional)
42
+ * `:pidfile`` is the path to store the pid file (optional)
42
43
  * `:bind` is URI to bind to (tcp:// and unix:// only) (optional)
43
44
  * `:state` is the path to store the state details (optional)
44
45
  * `:control` is the bind URL to use for the control server. Use 'auto' to use temp unix server (optional)
@@ -50,6 +51,7 @@ end
50
51
  1. Fork it
51
52
  1. Create your feature branch (`git checkout -b my-new-feature`)
52
53
  1. Leave the version alone!
54
+ 1. Add what you changed to CHANGES.md
53
55
  1. Commit your changes (`git commit -am 'Added some feature'`)
54
56
  1. Push to the branch (`git push origin my-new-feature`)
55
57
  1. Create new Pull Request
@@ -1,4 +1,5 @@
1
1
  require 'fileutils'
2
+ require 'tmpdir'
2
3
 
3
4
  module Guard
4
5
  class PumaRunner
@@ -45,7 +46,9 @@ module Guard
45
46
  end
46
47
 
47
48
  def pid_file
48
- File.expand_path(".guard-puma-#{options[:environment]}.pid")
49
+ pidfilepath = File.expand_path(options[:pidfile]) if options[:pidfile]
50
+ @pf ||= (pidfilepath || \
51
+ File.expand_path("#{Dir.tmpdir}/guard-puma-#{options[:environment]}.pid"))
49
52
  end
50
53
 
51
54
  def pid
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module PumaVersion
3
- VERSION = "0.0.3"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-puma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,115 +12,165 @@ cert_chain: []
12
12
  date: 2012-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- type: :runtime
16
- requirement: &6060 !ruby/object:Gem::Requirement
15
+ name: guard
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 1.0.1
22
- version_requirements: *6060
23
- name: guard
22
+ type: :runtime
24
23
  prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.0.1
25
30
  - !ruby/object:Gem::Dependency
26
- type: :runtime
27
- requirement: &6116 !ruby/object:Gem::Requirement
31
+ name: rb-inotify
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
31
36
  - !ruby/object:Gem::Version
32
37
  version: '0'
33
- version_requirements: *6116
34
- name: rb-inotify
35
- prerelease: false
36
- - !ruby/object:Gem::Dependency
37
38
  type: :runtime
38
- requirement: &6160 !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
39
41
  none: false
40
42
  requirements:
41
43
  - - ! '>='
42
44
  - !ruby/object:Gem::Version
43
45
  version: '0'
44
- version_requirements: *6160
45
- name: libnotify
46
- prerelease: false
47
46
  - !ruby/object:Gem::Dependency
47
+ name: libnotify
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
48
54
  type: :runtime
49
- requirement: &6204 !ruby/object:Gem::Requirement
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
50
57
  none: false
51
58
  requirements:
52
59
  - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
- version_requirements: *6204
62
+ - !ruby/object:Gem::Dependency
56
63
  name: puma
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
57
71
  prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  - !ruby/object:Gem::Dependency
59
- type: :development
60
- requirement: &6248 !ruby/object:Gem::Requirement
79
+ name: rake
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ~>
64
84
  - !ruby/object:Gem::Version
65
85
  version: 0.9.2.2
66
- version_requirements: *6248
67
- name: rake
86
+ type: :development
68
87
  prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 0.9.2.2
69
94
  - !ruby/object:Gem::Dependency
70
- type: :development
71
- requirement: &6292 !ruby/object:Gem::Requirement
95
+ name: rspec
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
99
  - - ~>
75
100
  - !ruby/object:Gem::Version
76
101
  version: 2.9.0
77
- version_requirements: *6292
78
- name: rspec
102
+ type: :development
79
103
  prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 2.9.0
80
110
  - !ruby/object:Gem::Dependency
81
- type: :development
82
- requirement: &6336 !ruby/object:Gem::Requirement
111
+ name: guard-rspec
112
+ requirement: !ruby/object:Gem::Requirement
83
113
  none: false
84
114
  requirements:
85
115
  - - ~>
86
116
  - !ruby/object:Gem::Version
87
117
  version: 0.6.0
88
- version_requirements: *6336
89
- name: guard-rspec
118
+ type: :development
90
119
  prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: 0.6.0
91
126
  - !ruby/object:Gem::Dependency
92
- type: :development
93
- requirement: &6380 !ruby/object:Gem::Requirement
127
+ name: bundler
128
+ requirement: !ruby/object:Gem::Requirement
94
129
  none: false
95
130
  requirements:
96
131
  - - ~>
97
132
  - !ruby/object:Gem::Version
98
133
  version: 1.1.0
99
- version_requirements: *6380
100
- name: bundler
134
+ type: :development
101
135
  prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: 1.1.0
102
142
  - !ruby/object:Gem::Dependency
103
- type: :development
104
- requirement: &6424 !ruby/object:Gem::Requirement
143
+ name: fakefs
144
+ requirement: !ruby/object:Gem::Requirement
105
145
  none: false
106
146
  requirements:
107
147
  - - ! '>='
108
148
  - !ruby/object:Gem::Version
109
149
  version: '0'
110
- version_requirements: *6424
111
- name: fakefs
112
- prerelease: false
113
- - !ruby/object:Gem::Dependency
114
150
  type: :development
115
- requirement: &6468 !ruby/object:Gem::Requirement
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
116
153
  none: false
117
154
  requirements:
118
155
  - - ! '>='
119
156
  - !ruby/object:Gem::Version
120
157
  version: '0'
121
- version_requirements: *6468
158
+ - !ruby/object:Gem::Dependency
122
159
  name: mocha
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
123
167
  prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
124
174
  description:
125
175
  email:
126
176
  - jesse@jc00ke.com
@@ -130,6 +180,7 @@ extra_rdoc_files: []
130
180
  files:
131
181
  - .gitignore
132
182
  - .travis.yml
183
+ - CHANGES.md
133
184
  - Gemfile
134
185
  - Guardfile
135
186
  - LICENSE
@@ -163,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
214
  version: '0'
164
215
  requirements: []
165
216
  rubyforge_project:
166
- rubygems_version: 1.8.12
217
+ rubygems_version: 1.8.19
167
218
  signing_key:
168
219
  specification_version: 3
169
220
  summary: Restart puma when files change