hsume2-localtunnel 0.3.beta.2 → 0.3.beta.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{hsume2-localtunnel}
5
- s.version = "0.3.beta.2"
5
+ s.version = "0.3.beta.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jeff Lindsay"]
@@ -77,8 +77,12 @@ class LocalTunnel::Tunnel
77
77
  urls[k] = URI.join("http://#{tunnel['host']}", v).to_s
78
78
  urls
79
79
  end
80
- pn = @account.incoming_phone_numbers.get(@config['phone_number_sid']).update(properties)
81
- puts " Updated #{pn.phone_number} for localtunnel."
80
+ sids = [@config['phone_number_sid']]
81
+ sids |= @config['phone_number_sids'] if @config['phone_number_sids']
82
+ sids.compact.flatten.each do |sid|
83
+ pn = @account.incoming_phone_numbers.get(sid).update(properties)
84
+ puts " Updated #{pn.phone_number} for localtunnel."
85
+ end
82
86
  end
83
87
 
84
88
  puts " Port #{port} is now publicly accessible from http://#{tunnel['host']} ..."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hsume2-localtunnel
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196303
4
+ hash: 62196301
5
5
  prerelease: 4
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
9
  - beta
10
- - 2
11
- version: 0.3.beta.2
10
+ - 3
11
+ version: 0.3.beta.3
12
12
  platform: ruby
13
13
  authors:
14
14
  - Jeff Lindsay