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 CHANGED
@@ -1 +1 @@
1
- 20.13.2
1
+ 20.13.3
@@ -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]
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "wwdcdownloader"
8
- s.version = "20.13.2"
8
+ s.version = "20.13.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Johannes Fahrenkrug"]
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.2
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: -1269138192650412738
160
+ hash: 1886572862926813588
161
161
  required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  none: false
163
163
  requirements: