guard-puma 0.3.3 → 0.3.4

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: 0f1ba3d428c0825ebf74e307b1c8112584aa3d71
4
- data.tar.gz: 08e3ee04831e1e5a1f2362afe89f249bd2a4dcdb
3
+ metadata.gz: 71932251adae2df83cbb466645849f2837005fd7
4
+ data.tar.gz: 94c0d39ab3a20ca17bf2c8228005bf5906367ee3
5
5
  SHA512:
6
- metadata.gz: 16e1d3471f680c7104a90e79aa993921e64bacdbd16448ecc49a4355122be1814f1110f8421bdd939a59d2d5e8bb679c686e94ac611e202807b5963e30df03c8
7
- data.tar.gz: 1970e7d0b71dee03fa0d2e3a6c6ac08b2cff0d914affe96df77d997279d3bcf7fcea145a4e5a8e7dff571e03a011a143768586b8c07cd4d616cf2d56af32070d
6
+ metadata.gz: 6ca625c2e7e4fe4b86b7401d40de6a5bed19f9c74ec9a3407fed99313e79249a709434031b604da930f9af0175e02c87c4ecee8d5dccc68113ce12ad450dfe52
7
+ data.tar.gz: 0b3773a9a61861d1ef8893d5faf5812f9b6381cf89f252a4f3705fcf9dd9263f96efbdfac49d7f1e69578b2d6125ec59b33e9197f23611470cab190948b77713
@@ -20,6 +20,7 @@ module Guard
20
20
  '--config' => options[:config],
21
21
  '--control-token' => @control_token,
22
22
  '--control' => "tcp://#{@control_url}",
23
+ '--environment' => options[:environment]
23
24
  }
24
25
  else
25
26
  {
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module PumaVersion
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
@@ -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.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: 2016-11-07 00:00:00.000000000 Z
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.5.1
153
+ rubygems_version: 2.6.8
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: Restart puma when files change