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 +4 -4
- data/lib/apk_downloader/api.rb +3 -3
- data/lib/apk_downloader/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70b02e099993728ee1fa3b153541b1e0f64cae90
|
4
|
+
data.tar.gz: 12ffb2a2d4095b133e4b353d0d899d9881cb738b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c16b3d95e9aa5426d61b57536c713e791bae6ddd1eeb62139a8e67f612aebb153cf94505a8889548f61014b337310d6202baffe8873ee0929d9c4b5ecdc6692
|
7
|
+
data.tar.gz: 5eefa126c6b69757daa71f41771da0e3b5b5f8fa526097b58e5c119ac9266c5e378d62e63e37965bd176fb20ff79b7a6f75faf25698e141bc310fcdb305facd1
|
data/lib/apk_downloader/api.rb
CHANGED
@@ -34,7 +34,7 @@ module ApkDownloader
|
|
34
34
|
"sdk_version" => "16"
|
35
35
|
}
|
36
36
|
|
37
|
-
login_http = Net::HTTP.new LoginUri.
|
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.
|
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.
|
102
|
+
@http = Net::HTTP.new GoogleApiUri.host, GoogleApiUri.port
|
103
103
|
@http.use_ssl = true
|
104
104
|
end
|
105
105
|
|