wwdcdownloader 20.13.4 → 20.13.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/wwdcdownloader.rb +16 -0
- data/wwdcdownloader.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
20.13.
|
1
|
+
20.13.5
|
data/lib/wwdcdownloader.rb
CHANGED
@@ -36,6 +36,7 @@ class WWDCDownloader
|
|
36
36
|
self.min_date = min_date
|
37
37
|
self.mech = Mechanize.new
|
38
38
|
self.mech.agent.http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
39
|
+
self.mech.agent.follow_meta_refresh = true
|
39
40
|
self.downloaded_files = []
|
40
41
|
|
41
42
|
if ENV['http_proxy'] || ENV['HTTP_PROXY']
|
@@ -72,6 +73,21 @@ class WWDCDownloader
|
|
72
73
|
puts "Wrong password, please try again."
|
73
74
|
else
|
74
75
|
wrong_password = false
|
76
|
+
|
77
|
+
# do we still need to select a team?
|
78
|
+
if my_page.body =~ /saveTeamSelection/
|
79
|
+
team_form = my_page.form_with(:name => 'saveTeamSelection')
|
80
|
+
|
81
|
+
# select first team
|
82
|
+
team_select = team_form.field_with(:id => 'teams')
|
83
|
+
team_option = team_select.options[0]
|
84
|
+
team_select.value = team_option
|
85
|
+
|
86
|
+
puts "Selecting Team #{team_option.text}"
|
87
|
+
|
88
|
+
button = team_form.button_with(:value => "Continue")
|
89
|
+
team_select_result_page = team_form.click_button(button)
|
90
|
+
end
|
75
91
|
end
|
76
92
|
end
|
77
93
|
end
|
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.5
|
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: 218374054267708042
|
161
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
162
|
none: false
|
163
163
|
requirements:
|