apk_downloader 1.1.1 → 1.1.2

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: 70b02e099993728ee1fa3b153541b1e0f64cae90
4
- data.tar.gz: 12ffb2a2d4095b133e4b353d0d899d9881cb738b
3
+ metadata.gz: 1639227456509769eff2009236f6065a711324ea
4
+ data.tar.gz: c1523b22fdb1eb872c9fe8995d305210aecc61bc
5
5
  SHA512:
6
- metadata.gz: 9c16b3d95e9aa5426d61b57536c713e791bae6ddd1eeb62139a8e67f612aebb153cf94505a8889548f61014b337310d6202baffe8873ee0929d9c4b5ecdc6692
7
- data.tar.gz: 5eefa126c6b69757daa71f41771da0e3b5b5f8fa526097b58e5c119ac9266c5e378d62e63e37965bd176fb20ff79b7a6f75faf25698e141bc310fcdb305facd1
6
+ metadata.gz: cde067a666190525a174176fc165d6dd78f801323d898f1b192ebee57c71811528fc3fbb7853e7e639ed31aabe79059cad8855a6b032005d759d590a220ebdf6
7
+ data.tar.gz: 5661631707617afc358e8682d8f6fc0bd0840e8863bce3417992504f9a5dde6ae7c1e2ce4217d164dcc7e102146a8b8051cc98924ead26347bf1e48c68e27c5f
@@ -36,8 +36,9 @@ module ApkDownloader
36
36
 
37
37
  login_http = Net::HTTP.new LoginUri.host, LoginUri.port
38
38
  login_http.use_ssl = true
39
+ login_http.verify_mode = OpenSSL::SSL::VERIFY_NONE
39
40
 
40
- post = Net::HTTP::Post.new LoginUri
41
+ post = Net::HTTP::Post.new LoginUri.to_s
41
42
  post.set_form_data params
42
43
  post["Accept-Encoding"] = ""
43
44
 
@@ -80,7 +81,9 @@ module ApkDownloader
80
81
  raise ArgumentError, 'HTTP redirect too deep' if tries == 0
81
82
 
82
83
  http = Net::HTTP.new url.host, url.port
83
- req = Net::HTTP::Get.new url
84
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
85
+
86
+ req = Net::HTTP::Get.new url.to_s
84
87
  req['Accept-Encoding'] = ''
85
88
  req['User-Agent'] = 'AndroidDownloadManager/4.1.1 (Linux; U; Android 4.1.1; Nexus S Build/JRO03E)'
86
89
  req['Cookie'] = [cookie.name, cookie.value].join('=')
@@ -101,6 +104,7 @@ module ApkDownloader
101
104
  if @http.nil?
102
105
  @http = Net::HTTP.new GoogleApiUri.host, GoogleApiUri.port
103
106
  @http.use_ssl = true
107
+ @http.verify_mode = OpenSSL::SSL::VERIFY_NONE
104
108
  end
105
109
 
106
110
  api_headers = {
@@ -125,9 +129,9 @@ module ApkDownloader
125
129
 
126
130
  req = if type == :get
127
131
  uri.query = URI.encode_www_form data
128
- Net::HTTP::Get.new uri
132
+ Net::HTTP::Get.new uri.to_s
129
133
  else
130
- post = Net::HTTP::Post.new uri
134
+ post = Net::HTTP::Post.new uri.to_s
131
135
  post.tap { |p| p.set_form_data data }
132
136
  end
133
137
 
@@ -1,3 +1,3 @@
1
1
  module ApkDownloader
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
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.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Lindsey