guard-puma 0.5.1 → 0.5.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
  SHA256:
3
- metadata.gz: b6e7cb3193562472fe9de202bc57e0de36c193a285fece2aff9483ec507c0b0d
4
- data.tar.gz: a7e7804c35f85149bb5ab97f2f262e67f4a61b63dcdaad6202b96824efb1692e
3
+ metadata.gz: 8c8da0e686f240e69df59f14a44c765c6e184c86179d3325d0371e5eff61c3dd
4
+ data.tar.gz: 22c92206fcd29de825da186e810116e6a614c9d3253e9434fe23c565adf7be0c
5
5
  SHA512:
6
- metadata.gz: 11da58b3176949ebc7ef1918e258aedfb8f4eabe4e76f8e9478b2d644cd5be10f353b134c4b983c10c6e1829ba28ff7f97520515a182bb20ef6e8126c69b26df
7
- data.tar.gz: adfd87ad98caa8061173e64978457db3816adcebbfd7829afdfc8a21d1c872d9b6ec530308f2c47dc0b8bc57aa2363f066ee981d4f29f06b362142720886e038
6
+ metadata.gz: 9c3b43c12b05fe3639af5f35d21d7d597c805b1969c1d439f60c31a7883e6c1c48257c9ad21f73b029fe55102fd365f406fa9415c54da3eac072a50421f110dd
7
+ data.tar.gz: 65fd336d42e69d0840989ab3823d2e23c87aaa75680aae004d1d77f9109593baae1018d929dacb3dfd7a34f375db1e5c31b1efa76bdb543e4912f0373b6a4c03
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 0.5.2
4
+
5
+ * Default config to `-` instead of `nil`. Fixes #38
6
+
3
7
  ## 0.5.1
4
8
 
5
9
  * Detect and use `config/puma.rb` if present
data/README.md CHANGED
@@ -1,6 +1,5 @@
1
1
  # Guard::Puma
2
2
  [![Build Status](https://secure.travis-ci.org/jc00ke/guard-puma.png)](http://travis-ci.org/jc00ke/guard-puma)
3
- [![Dependency Status](https://gemnasium.com/jc00ke/guard-puma.png?travis)](https://gemnasium.com/jc00ke/guard-puma)
4
3
 
5
4
  Restart Puma when some files change
6
5
 
@@ -17,7 +17,7 @@ module Guard
17
17
  @options = options
18
18
 
19
19
  puma_options = {
20
- puma_options_key(:config) => options[:config],
20
+ puma_options_key(:config) => options.fetch(:config, "-"),
21
21
  puma_options_key(:control_token) => @control_token,
22
22
  puma_options_key(:control_url) => "tcp://#{@control_url}"
23
23
  }
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module PumaVersion
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
@@ -13,6 +13,16 @@ describe Guard::PumaRunner do
13
13
  it "sets options" do
14
14
  expect(runner.options).to eq(options)
15
15
  end
16
+
17
+ it "sets the command options" do
18
+ runner = described_class.new(options.merge(control_token: "abc"))
19
+ expect(runner.cmd_opts).to include("--config - ")
20
+ expect(runner.cmd_opts).to include("--control-token abc")
21
+ expect(runner.cmd_opts).to include("--control tcp://localhost:9293")
22
+ expect(runner.cmd_opts).to include("--port 4000")
23
+ expect(runner.cmd_opts).to include("--environment development")
24
+ expect(runner.cmd_opts).to include("--quiet")
25
+ end
16
26
  end
17
27
 
18
28
  %w[halt restart].each do |cmd|
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.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-12 00:00:00.000000000 Z
11
+ date: 2019-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard