forward 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/forward/api/tunnel.rb +2 -2
- data/lib/forward/cli.rb +4 -0
- data/lib/forward/version.rb +1 -1
- metadata +2 -2
data/lib/forward/api/tunnel.rb
CHANGED
@@ -11,8 +11,8 @@ module Forward
|
|
11
11
|
:client => Forward.client_string,
|
12
12
|
}
|
13
13
|
|
14
|
-
[ :subdomain, :cname, :username, :password ].each do |param|
|
15
|
-
params[param] = options[param]
|
14
|
+
[ :subdomain, :cname, :username, :password, :no_auth ].each do |param|
|
15
|
+
params[param] = options[param] if options.has_key?(param)
|
16
16
|
end
|
17
17
|
|
18
18
|
resource.post(params)[:tunnel].symbolize_keys
|
data/lib/forward/cli.rb
CHANGED
@@ -66,6 +66,10 @@ module Forward
|
|
66
66
|
@options[:password] = password
|
67
67
|
end
|
68
68
|
|
69
|
+
opts.on('-A', '--no-auth', 'Disable authentication on this tunnel (if a default is set in your preferences)') do |credentials|
|
70
|
+
@options[:no_auth] = true
|
71
|
+
end
|
72
|
+
|
69
73
|
opts.on('-c', '--cname [CNAME]', 'Allow access to this tunnel as NAME.') do |cname|
|
70
74
|
validate_cname(cname)
|
71
75
|
@options[:cname] = cname
|
data/lib/forward/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forward
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|