guard-puma 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/guard/puma/runner.rb +1 -0
- data/lib/guard/puma/version.rb +1 -1
- data/spec/lib/guard/puma/runner_spec.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71932251adae2df83cbb466645849f2837005fd7
|
4
|
+
data.tar.gz: 94c0d39ab3a20ca17bf2c8228005bf5906367ee3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ca625c2e7e4fe4b86b7401d40de6a5bed19f9c74ec9a3407fed99313e79249a709434031b604da930f9af0175e02c87c4ecee8d5dccc68113ce12ad450dfe52
|
7
|
+
data.tar.gz: 0b3773a9a61861d1ef8893d5faf5812f9b6381cf89f252a4f3705fcf9dd9263f96efbdfac49d7f1e69578b2d6125ec59b33e9197f23611470cab190948b77713
|
data/lib/guard/puma/runner.rb
CHANGED
data/lib/guard/puma/version.rb
CHANGED
@@ -45,16 +45,18 @@ describe Guard::PumaRunner do
|
|
45
45
|
context "with config" do
|
46
46
|
let(:options) {{ :config => path }}
|
47
47
|
let(:path) { "/tmp/elephants" }
|
48
|
+
let(:environment) { "special_dev" }
|
48
49
|
it "adds path to command" do
|
49
50
|
expect(runner.cmd_opts).to match("--config #{path}")
|
50
51
|
end
|
51
52
|
|
52
53
|
context "and additional options" do
|
53
|
-
let(:options) {{ :config => path, :port => "4000", quiet: false }}
|
54
|
+
let(:options) {{ :config => path, :port => "4000", quiet: false, :environment => environment }}
|
54
55
|
it "assumes options are set in config" do
|
55
56
|
expect(runner.cmd_opts).to match("--config #{path}")
|
56
57
|
expect(runner.cmd_opts).to match("--control-token pumarules")
|
57
58
|
expect(runner.cmd_opts).to match("--control tcp")
|
59
|
+
expect(runner.cmd_opts).to match("--environment #{environment}")
|
58
60
|
end
|
59
61
|
end
|
60
62
|
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
|
+
version: 0.3.4
|
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: 2017-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
152
|
rubyforge_project:
|
153
|
-
rubygems_version: 2.
|
153
|
+
rubygems_version: 2.6.8
|
154
154
|
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: Restart puma when files change
|