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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71932251adae2df83cbb466645849f2837005fd7
4
- data.tar.gz: 94c0d39ab3a20ca17bf2c8228005bf5906367ee3
3
+ metadata.gz: aa42e7d35d1d4cc10ee6dd9a5f4e9d178cd60015
4
+ data.tar.gz: ca8bc2c3c9f863335435246cbfabf2d72346c053
5
5
  SHA512:
6
- metadata.gz: 6ca625c2e7e4fe4b86b7401d40de6a5bed19f9c74ec9a3407fed99313e79249a709434031b604da930f9af0175e02c87c4ecee8d5dccc68113ce12ad450dfe52
7
- data.tar.gz: 0b3773a9a61861d1ef8893d5faf5812f9b6381cf89f252a4f3705fcf9dd9263f96efbdfac49d7f1e69578b2d6125ec59b33e9197f23611470cab190948b77713
6
+ metadata.gz: e2e73c32c2e6fe69f813025c5e9d81a1bb1a7576d85e7df99aaf5f4a3fae204c51c4dc492a20cba180dd26ccecbe1ba5390b40bcf880f422f34c595f86f778bc
7
+ data.tar.gz: 0a34e77741ce6afb948162f6df96dc1236feb5f12c3b9cde82307fbaca2a0341d4f28078a822154409044e12274b3113cb331cecab0680a5e48c32c9e0338a43
data/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changes
2
2
 
3
+ ## 0.3.5
4
+
5
+ * If puma crashed don't fail when trying to restart. Fixes #22
6
+
7
+ ## 0.3.4
8
+
9
+ * Respect the environment when using a config file. Fixes #21
10
+
3
11
  ## 0.3.3
4
12
 
5
13
  * Update deps
@@ -43,11 +43,18 @@ module Guard
43
43
  end
44
44
 
45
45
  def halt
46
- run_puma_command!("halt")
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!("restart")
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
-
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module PumaVersion
3
- VERSION = "0.3.4"
3
+ VERSION = "0.3.5"
4
4
  end
5
5
  end
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
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-20 00:00:00.000000000 Z
11
+ date: 2017-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard