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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b2baef8128147cadcb6858143c00c4380bff8f2
4
- data.tar.gz: 84784c4e4992ee324434e010223bcda7d856c199
3
+ metadata.gz: 48b412799e8a113e374412c2a68da389ee04c49c
4
+ data.tar.gz: aeabe2d6f25eb6224646762dc478b29c0bfcbd34
5
5
  SHA512:
6
- metadata.gz: dd86f77e18570238f54aafe6797b241fc1f2d09e17a45748d5025a99d8af9e490659640fc5929c760be5f03be959e8b382ecc743ef4499135663ed177cf6839a
7
- data.tar.gz: deeaaad3b014a8676bea57e55cda44eb44b4b480b762a7538f92ad6ae54885b06998b6e1859b307a941ed88e83bcfd4372bcc02442fd21e04825032c615b24af
6
+ metadata.gz: cbb75e5b3c6eaa23504eebdba9d7498831bfac45ce3a1abc01c58c1ce7ac12ec5ce1fcc6a67cd94f22544df686f4d3b7a2701c1353e15a2d57f57dbe9371546f
7
+ data.tar.gz: 05901e60c7d2ab019c127b958f903385c6f9fed6a3ffe0c837def7f284b27b7b5d22a80702c600d6ae38e9a22d0295cc90df32e2815f2f9101aec69c4d154727
@@ -1,3 +1,7 @@
1
+ ## 2.0.21
2
+
3
+ - Added support for -inspect option
4
+
1
5
  ## 2.0.20
2
6
 
3
7
  - Added support for custom hostname
data/README.md CHANGED
@@ -67,6 +67,7 @@ Ngrok::Tunnel.start(port: 3333,
67
67
  subdomain: 'MY_SUBDOMAIN',
68
68
  hostname: 'MY_HOSTNAME',
69
69
  authtoken: 'MY_TOKEN',
70
+ inspect: false,
70
71
  log: 'ngrok.log',
71
72
  config: '~/.ngrok')
72
73
 
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Ngrok
2
2
  class Tunnel
3
- VERSION = "2.0.20"
3
+ VERSION = "2.0.21"
4
4
  end
5
5
  end
@@ -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.20
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-07-25 00:00:00.000000000 Z
11
+ date: 2015-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry