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 CHANGED
@@ -1 +1 @@
1
- 20.13.4
1
+ 20.13.5
@@ -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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "wwdcdownloader"
8
- s.version = "20.13.4"
8
+ s.version = "20.13.5"
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.4
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: -3064146426134169573
160
+ hash: 218374054267708042
161
161
  required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  none: false
163
163
  requirements: