ngrok-tunnel 2.0.20 → 2.0.21
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/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/lib/ngrok/tunnel.rb +1 -0
- data/lib/ngrok/tunnel/version.rb +1 -1
- data/spec/tunnel/tunnel_spec.rb +18 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48b412799e8a113e374412c2a68da389ee04c49c
|
4
|
+
data.tar.gz: aeabe2d6f25eb6224646762dc478b29c0bfcbd34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbb75e5b3c6eaa23504eebdba9d7498831bfac45ce3a1abc01c58c1ce7ac12ec5ce1fcc6a67cd94f22544df686f4d3b7a2701c1353e15a2d57f57dbe9371546f
|
7
|
+
data.tar.gz: 05901e60c7d2ab019c127b958f903385c6f9fed6a3ffe0c837def7f284b27b7b5d22a80702c600d6ae38e9a22d0295cc90df32e2815f2f9101aec69c4d154727
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/lib/ngrok/tunnel.rb
CHANGED
@@ -76,6 +76,7 @@ module Ngrok
|
|
76
76
|
exec_params << "-authtoken=#{@params[:authtoken]} " if @params[:authtoken]
|
77
77
|
exec_params << "-subdomain=#{@params[:subdomain]} " if @params[:subdomain]
|
78
78
|
exec_params << "-hostname=#{@params[:hostname]} " if @params[:hostname]
|
79
|
+
exec_params << "-inspect=#{@params[:inspect]} " if @params.has_key? :inspect
|
79
80
|
exec_params << "-config=#{@params[:config]} #{@params[:port].to_i} > #{@params[:log].path}"
|
80
81
|
end
|
81
82
|
|
data/lib/ngrok/tunnel/version.rb
CHANGED
data/spec/tunnel/tunnel_spec.rb
CHANGED
@@ -85,4 +85,22 @@ describe Ngrok::Tunnel do
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
+
describe "Custom parameters provided" do
|
89
|
+
it "should not include the -inspect parameter when it is not provided" do
|
90
|
+
Ngrok::Tunnel.start()
|
91
|
+
expect(Ngrok::Tunnel.send(:ngrok_exec_params).include? "-inspect=").to be false
|
92
|
+
Ngrok::Tunnel.stop
|
93
|
+
end
|
94
|
+
|
95
|
+
it "should include the -inspect parameter with the correct value when it is provided" do
|
96
|
+
Ngrok::Tunnel.start(inspect: true)
|
97
|
+
expect(Ngrok::Tunnel.send(:ngrok_exec_params).include? "-inspect=true").to be true
|
98
|
+
Ngrok::Tunnel.stop
|
99
|
+
|
100
|
+
Ngrok::Tunnel.start(inspect: false)
|
101
|
+
expect(Ngrok::Tunnel.send(:ngrok_exec_params).include? "-inspect=false").to be true
|
102
|
+
Ngrok::Tunnel.stop
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
88
106
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ngrok-tunnel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Bogdanovich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|