wwdcdownloader 20.13.2 → 20.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/wwdcdownloader.rb +8 -1
- data/wwdcdownloader.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
20.13.
|
1
|
+
20.13.3
|
data/lib/wwdcdownloader.rb
CHANGED
@@ -35,7 +35,14 @@ class WWDCDownloader
|
|
35
35
|
self.dl_dir = dl_dir
|
36
36
|
self.min_date = min_date
|
37
37
|
self.mech = Mechanize.new
|
38
|
+
self.mech.agent.http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
38
39
|
self.downloaded_files = []
|
40
|
+
|
41
|
+
if ENV['http_proxy'] || ENV['HTTP_PROXY']
|
42
|
+
uri = (ENV['http_proxy']) ? ENV['http_proxy'] : ENV['HTTP_PROXY']
|
43
|
+
parsedUrl = URI.parse(uri)
|
44
|
+
self.mech.set_proxy parsedUrl.host, parsedUrl.port
|
45
|
+
end
|
39
46
|
end
|
40
47
|
|
41
48
|
# Creates the given directory if it doesn't exist already.
|
@@ -54,7 +61,7 @@ class WWDCDownloader
|
|
54
61
|
|
55
62
|
while wrong_password do
|
56
63
|
password = ask("Enter your ADC password: ") { |q| q.echo = "*" }
|
57
|
-
|
64
|
+
|
58
65
|
self.mech.get('https://developer.apple.com/membercenter/') do |page|
|
59
66
|
my_page = page.form_with(:name => 'appleConnectForm') do |f|
|
60
67
|
f.theAccountName = ARGV[0]
|
data/wwdcdownloader.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wwdcdownloader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 20.13.
|
4
|
+
version: 20.13.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -157,7 +157,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
segments:
|
159
159
|
- 0
|
160
|
-
hash:
|
160
|
+
hash: 1886572862926813588
|
161
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
162
|
none: false
|
163
163
|
requirements:
|