libgss 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82555ace2305603163a4444d5be9bdd36c538d62
4
- data.tar.gz: 0e6d24fbc385b0a1fb411728babfd1474ae03300
3
+ metadata.gz: c505709088c670ad66152242ccf741dc6f496920
4
+ data.tar.gz: 8e47f642d28bfe7e46e672e73936ddc6cade5435
5
5
  SHA512:
6
- metadata.gz: 12aef0dfd8c4a0033bc874ac8d2d46dcdba94dcacaa8799f0b4a4e3bb8754fda50043c39a10f04bff003dcaa9991b72e228e7feb10c0b55bb0111cfcf480288d
7
- data.tar.gz: e82fb888326e7463b2fdc17384847afd0ae89d5996cfa98d761b33db3c589bf32510143855bc8580fe760a2b1df07f59bfb0e3d752e9d4feb35f20a42162334e
6
+ metadata.gz: ce9dd3a2c2db9ec6c2393ea04b80ef53adee5e7c62fde75c632ae526a4fac5db56e2b00c3da363d8c9fdd5094cc87523f85f4c80d373a415a61ff9c38a2ad7b1
7
+ data.tar.gz: ccf730d15575450a684561800874519047105d11ecd5bc68b4dd03a8e7ce2826e329654665cbc446d35f6c8e985c98fa2d7c23ce84c995513edad1e66fce0b43
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- libgss (0.8.2)
4
+ libgss (0.8.3)
5
5
  httpclient
6
6
  json
7
7
  oauth
@@ -61,16 +61,17 @@ module Libgss
61
61
  # @option options [Boolean] :skip_verifying_signature レスポンスのシグネチャキーによる署名の検証をスキップするかどうか
62
62
  # @option options [Integer] :device_type_cd GSS/fontanaに登録されたデバイス種別
63
63
  # @option options [String] :client_version GSS/fontanaに登録されたクライアントリリースのバージョン
64
+ # @option options [Integer] :https_port HTTPSで接続する際の接続先のポート番号
64
65
  def initialize(base_url_or_host, options = {})
65
66
  @ssl_disabled = options.delete(:ssl_disabled)
66
67
  if base_url_or_host =~ URI.regexp
67
68
  @base_url = base_url_or_host.sub(/\/\Z/, '')
68
69
  uri = URI.parse(@base_url)
69
- @ssl_base_url = build_https_url(uri)
70
+ @ssl_base_url = build_https_url(uri, options[:https_port])
70
71
  else
71
72
  uri = URI::Generic.build({scheme: "http", host: base_url_or_host, port: DEFAULT_HTTP_PORT}.update(options))
72
73
  @base_url = uri.to_s
73
- @ssl_base_url = build_https_url(uri)
74
+ @ssl_base_url = build_https_url(uri, options[:https_port])
74
75
  end
75
76
  @ssl_base_url = @base_url if @ssl_disabled
76
77
  @platform = options[:platform] || "fontana"
@@ -260,9 +261,9 @@ module Libgss
260
261
  end
261
262
  end
262
263
 
263
- def build_https_url(uri)
264
+ def build_https_url(uri, port = nil)
264
265
  uri.scheme = "https"
265
- uri.port = (uri.port == PRODUCTION_HTTP_PORT) ? PRODUCTION_HTTPS_PORT : uri.port + 1
266
+ uri.port = port || (uri.port == PRODUCTION_HTTP_PORT ? PRODUCTION_HTTPS_PORT : uri.port + 1)
266
267
  uri.to_s
267
268
  end
268
269
 
@@ -1,3 +1,3 @@
1
1
  module Libgss
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libgss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - akima