apk_downloader 1.1.0 → 1.1.1

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: 922b806886ee7ab311a2c564f06f7cc53b018152
4
- data.tar.gz: f17407c8a53e34f9662eeca86dfcdd8cd5211b97
3
+ metadata.gz: 70b02e099993728ee1fa3b153541b1e0f64cae90
4
+ data.tar.gz: 12ffb2a2d4095b133e4b353d0d899d9881cb738b
5
5
  SHA512:
6
- metadata.gz: 9a85b9af880a60c2a12c87e04e2bacaaaf8c78420b5ca9f8a96a9ebbcf59f940bb0253496cde260152235cd79683c1a11eba082e674150be85b0b6580134dbd4
7
- data.tar.gz: dd1ec1ce8e5545258d9db4e55c06dcbc0791beff9fe6e8b18167b02b32f11a041c9382af85cc27d5d862d871f9c5ff579daf4973a1c055cffc9468fbaed0bbd5
6
+ metadata.gz: 9c16b3d95e9aa5426d61b57536c713e791bae6ddd1eeb62139a8e67f612aebb153cf94505a8889548f61014b337310d6202baffe8873ee0929d9c4b5ecdc6692
7
+ data.tar.gz: 5eefa126c6b69757daa71f41771da0e3b5b5f8fa526097b58e5c119ac9266c5e378d62e63e37965bd176fb20ff79b7a6f75faf25698e141bc310fcdb305facd1
@@ -34,7 +34,7 @@ module ApkDownloader
34
34
  "sdk_version" => "16"
35
35
  }
36
36
 
37
- login_http = Net::HTTP.new LoginUri.hostname, LoginUri.port
37
+ login_http = Net::HTTP.new LoginUri.host, LoginUri.port
38
38
  login_http.use_ssl = true
39
39
 
40
40
  post = Net::HTTP::Post.new LoginUri
@@ -79,7 +79,7 @@ module ApkDownloader
79
79
  def recursive_apk_fetch url, cookie, tries = 5
80
80
  raise ArgumentError, 'HTTP redirect too deep' if tries == 0
81
81
 
82
- http = Net::HTTP.new url.hostname, url.port
82
+ http = Net::HTTP.new url.host, url.port
83
83
  req = Net::HTTP::Get.new url
84
84
  req['Accept-Encoding'] = ''
85
85
  req['User-Agent'] = 'AndroidDownloadManager/4.1.1 (Linux; U; Android 4.1.1; Nexus S Build/JRO03E)'
@@ -99,7 +99,7 @@ module ApkDownloader
99
99
 
100
100
  def api_request type, path, data = {}
101
101
  if @http.nil?
102
- @http = Net::HTTP.new GoogleApiUri.hostname, GoogleApiUri.port
102
+ @http = Net::HTTP.new GoogleApiUri.host, GoogleApiUri.port
103
103
  @http.use_ssl = true
104
104
  end
105
105
 
@@ -1,3 +1,3 @@
1
1
  module ApkDownloader
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apk_downloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Lindsey