guard-puma 0.3.4 → 0.3.5
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 +4 -4
- data/CHANGES.md +8 -0
- data/lib/guard/puma/runner.rb +9 -3
- data/lib/guard/puma/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa42e7d35d1d4cc10ee6dd9a5f4e9d178cd60015
|
4
|
+
data.tar.gz: ca8bc2c3c9f863335435246cbfabf2d72346c053
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2e73c32c2e6fe69f813025c5e9d81a1bb1a7576d85e7df99aaf5f4a3fae204c51c4dc492a20cba180dd26ccecbe1ba5390b40bcf880f422f34c595f86f778bc
|
7
|
+
data.tar.gz: 0a34e77741ce6afb948162f6df96dc1236feb5f12c3b9cde82307fbaca2a0341d4f28078a822154409044e12274b3113cb331cecab0680a5e48c32c9e0338a43
|
data/CHANGES.md
CHANGED
data/lib/guard/puma/runner.rb
CHANGED
@@ -43,11 +43,18 @@ module Guard
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def halt
|
46
|
-
|
46
|
+
Net::HTTP.get build_uri('halt')
|
47
|
+
# server may not have been stopped correctly, but we are halting so who cares.
|
48
|
+
return true
|
47
49
|
end
|
48
50
|
|
49
51
|
def restart
|
50
|
-
run_puma_command!(
|
52
|
+
if run_puma_command!('restart')
|
53
|
+
return true
|
54
|
+
else
|
55
|
+
# server may not have been started correctly, or crashed. Let's try to start it.
|
56
|
+
return start
|
57
|
+
end
|
51
58
|
end
|
52
59
|
|
53
60
|
def sleep_time
|
@@ -70,4 +77,3 @@ module Guard
|
|
70
77
|
|
71
78
|
end
|
72
79
|
end
|
73
|
-
|
data/lib/guard/puma/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-puma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|