forward 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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] unless options[param].nil?
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Forward
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
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.0
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: 2012-12-12 00:00:00.000000000 Z
12
+ date: 2013-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json