guard-puma 0.5.1 → 0.5.2
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 +4 -0
- data/README.md +0 -1
- data/lib/guard/puma/runner.rb +1 -1
- data/lib/guard/puma/version.rb +1 -1
- data/spec/lib/guard/puma/runner_spec.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c8da0e686f240e69df59f14a44c765c6e184c86179d3325d0371e5eff61c3dd
|
4
|
+
data.tar.gz: 22c92206fcd29de825da186e810116e6a614c9d3253e9434fe23c565adf7be0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c3b43c12b05fe3639af5f35d21d7d597c805b1969c1d439f60c31a7883e6c1c48257c9ad21f73b029fe55102fd365f406fa9415c54da3eac072a50421f110dd
|
7
|
+
data.tar.gz: 65fd336d42e69d0840989ab3823d2e23c87aaa75680aae004d1d77f9109593baae1018d929dacb3dfd7a34f375db1e5c31b1efa76bdb543e4912f0373b6a4c03
|
data/CHANGES.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# Guard::Puma
|
2
2
|
[](http://travis-ci.org/jc00ke/guard-puma)
|
3
|
-
[](https://gemnasium.com/jc00ke/guard-puma)
|
4
3
|
|
5
4
|
Restart Puma when some files change
|
6
5
|
|
data/lib/guard/puma/runner.rb
CHANGED
@@ -17,7 +17,7 @@ module Guard
|
|
17
17
|
@options = options
|
18
18
|
|
19
19
|
puma_options = {
|
20
|
-
puma_options_key(:config) => options
|
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
|
}
|
data/lib/guard/puma/version.rb
CHANGED
@@ -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.
|
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:
|
11
|
+
date: 2019-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|