adcdownload 0.1.0 → 0.1.1

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: 327595157e8ed7d8f5c1f2e3adf822ce8256010c
4
- data.tar.gz: 8cf925b291932d79a9d6abfad36a02191e852776
3
+ metadata.gz: c096bea8f04089355238de3bd29e9ca5d145740f
4
+ data.tar.gz: fd7252c95b232caf3187c09118d9b885aa020bbb
5
5
  SHA512:
6
- metadata.gz: 8452a51de4e08fcad543bac27ddcb5964d093472f07e4e2ece7e4c68db17bff4a8f743cb2484d66b65f5a58cfb5f658667d1a084e5836093997ce4765e992b68
7
- data.tar.gz: d54767c5a7a681c6ab3fcbf86a095154365ab929ad19246a58f54e9d5b5e717a0f871743d9cc0f31e22c64f404011f73f51e27a6a76dd705da7bdccab5853466
6
+ metadata.gz: 22880a6ed7fb99a1e84acb7ce13ae2a1e45151575f13f69154d968c0337537424856d9e9178a58c550817b03ee210faa77147ece21676408d54eaf30cb9629a6
7
+ data.tar.gz: 33437f3caabeb3b16527f525493ef19a2a3af88847d851d3c0b5fdeb571d6d4b336f49a266c902e095430435260324ab2fdcc22ebdeafc8cc75bf4d131407c72
data/Gemfile.lock CHANGED
@@ -1,58 +1,65 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- adcdownload (0.1.0)
4
+ adcdownload (0.1.1)
5
5
  activesupport (~> 4.2)
6
6
  bundler (~> 1.10)
7
7
  commander (~> 4.3)
8
8
  http-cookie (~> 1.0)
9
9
  logging (~> 2.0)
10
- spaceship (~> 0.7)
10
+ spaceship (~> 0.34)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- activesupport (4.2.4)
15
+ activesupport (4.2.7.1)
16
16
  i18n (~> 0.7)
17
17
  json (~> 1.7, >= 1.7.7)
18
18
  minitest (~> 5.1)
19
19
  thread_safe (~> 0.3, >= 0.3.4)
20
20
  tzinfo (~> 1.1)
21
+ addressable (2.3.8)
21
22
  ast (2.1.0)
22
23
  astrolabe (1.3.1)
23
24
  parser (~> 2.2)
24
25
  coderay (1.1.0)
25
26
  colored (1.2)
26
- commander (4.3.5)
27
+ commander (4.4.0)
27
28
  highline (~> 1.7.2)
28
- credentials_manager (0.8.2)
29
+ credentials_manager (0.16.0)
29
30
  colored
31
+ commander (>= 4.3.5)
30
32
  highline (>= 1.7.1)
31
33
  security
32
34
  diff-lcs (1.2.5)
33
- domain_name (0.5.24)
35
+ domain_name (0.5.20160826)
34
36
  unf (>= 0.0.5, < 1.0.0)
35
- faraday (0.9.1)
37
+ faraday (0.9.2)
36
38
  multipart-post (>= 1.2, < 3)
39
+ faraday-cookie_jar (0.0.6)
40
+ faraday (>= 0.7.4)
41
+ http-cookie (~> 1.0.0)
37
42
  faraday_middleware (0.10.0)
38
43
  faraday (>= 0.7.4, < 0.10)
39
- highline (1.7.7)
44
+ fastimage (1.9.0)
45
+ addressable (~> 2.3.5)
46
+ highline (1.7.8)
40
47
  http-cookie (1.0.2)
41
48
  domain_name (~> 0.5)
42
49
  i18n (0.7.0)
43
50
  json (1.8.3)
44
51
  little-plugger (1.1.4)
45
- logging (2.0.0)
52
+ logging (2.1.0)
46
53
  little-plugger (~> 1.1)
47
54
  multi_json (~> 1.10)
48
55
  method_source (0.8.2)
49
- minitest (5.8.1)
50
- multi_json (1.11.2)
56
+ minitest (5.9.0)
57
+ multi_json (1.12.1)
51
58
  multi_xml (0.5.5)
52
59
  multipart-post (2.0.0)
53
60
  parser (2.2.2.6)
54
61
  ast (>= 1.1, < 3.0)
55
- plist (3.1.0)
62
+ plist (3.2.0)
56
63
  powerpack (0.1.1)
57
64
  pry (0.10.2)
58
65
  coderay (~> 1.1.0)
@@ -81,10 +88,13 @@ GEM
81
88
  ruby-progressbar (1.7.5)
82
89
  security (0.1.3)
83
90
  slop (3.6.0)
84
- spaceship (0.7.0)
85
- credentials_manager (>= 0.8.1)
91
+ spaceship (0.34.1)
92
+ colored
93
+ credentials_manager (>= 0.16.0)
86
94
  faraday (~> 0.9)
95
+ faraday-cookie_jar (~> 0.0.6)
87
96
  faraday_middleware (~> 0.9)
97
+ fastimage (~> 1.6)
88
98
  multi_xml (~> 0.5)
89
99
  plist (~> 3.1)
90
100
  thread_safe (0.3.5)
@@ -92,7 +102,7 @@ GEM
92
102
  thread_safe (~> 0.1)
93
103
  unf (0.1.4)
94
104
  unf_ext
95
- unf_ext (0.0.7.1)
105
+ unf_ext (0.0.7.2)
96
106
 
97
107
  PLATFORMS
98
108
  ruby
@@ -104,4 +114,4 @@ DEPENDENCIES
104
114
  rubocop (~> 0.32)
105
115
 
106
116
  BUNDLED WITH
107
- 1.10.6
117
+ 1.12.4
data/adcdownload.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.add_runtime_dependency "activesupport", "~> 4.2"
18
18
  s.add_runtime_dependency "logging", "~> 2.0"
19
19
  s.add_runtime_dependency "commander", "~> 4.3"
20
- s.add_runtime_dependency "spaceship", "~> 0.7"
20
+ s.add_runtime_dependency "spaceship", "~> 0.34"
21
21
  s.add_runtime_dependency "http-cookie", "~> 1.0"
22
22
  s.add_development_dependency "rspec", "~> 3.3"
23
23
  s.add_development_dependency "pry", "~> 0.10"
@@ -14,10 +14,10 @@ module ADCDownload
14
14
  rescue Errno::ENOENT
15
15
  end
16
16
  return cached if cached
17
-
18
- landing_url = "https://developer.apple.com/membercenter/index.action"
17
+ landing_url = "https://developer.apple.com/account/"
19
18
  logger.info("GET: " + landing_url)
20
- headers = @client.get(landing_url).headers
19
+ response = @client.get(landing_url)
20
+ headers = response.headers
21
21
  results = headers['location'].match(/.*appIdKey=(\h+)/)
22
22
  if (results || []).length > 1
23
23
  api_key = results[1]
@@ -30,13 +30,18 @@ module ADCDownload
30
30
 
31
31
  def get_cookies(user, password)
32
32
  jar = HTTP::CookieJar.new(store: :hash, filename: 'cookies.txt')
33
- response = request(:post, "https://idmsa.apple.com/IDMSWebAuth/authenticate", {
33
+ params = {
34
+ appIdKey: api_key,
35
+ accNameLocked: "false",
36
+ language: "US-EN",
37
+ path: '/account/',
38
+ rv: "1",
39
+ Env: "PROD",
34
40
  appleId: user,
35
- accountPassword: password,
36
- appIdKey: api_key
37
- })
41
+ accountPassword: password
42
+ }
43
+ response = request(:post, "https://idmsa.apple.com/IDMSWebAuth/authenticate", params)
38
44
  jar.parse(response['Set-Cookie'], "http://idmsa.apple.com")
39
-
40
45
  if response['Set-Cookie'] =~ /myacinfo=(\w+);/
41
46
  @cookie = "myacinfo=#{$1};"
42
47
  else
@@ -1,3 +1,3 @@
1
1
  module ADCDownload
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,139 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adcdownload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-26 00:00:00.000000000 Z
11
+ date: 2016-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.10'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.10'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '4.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: logging
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: commander
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '4.3'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '4.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: spaceship
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.7'
75
+ version: '0.34'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.7'
82
+ version: '0.34'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: http-cookie
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '3.3'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '3.3'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: pry
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0.10'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0.10'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0.32'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0.32'
139
139
  description: This gem helps you download files from Apple Developer Center.
@@ -144,7 +144,7 @@ executables:
144
144
  extensions: []
145
145
  extra_rdoc_files: []
146
146
  files:
147
- - .gitignore
147
+ - ".gitignore"
148
148
  - Gemfile
149
149
  - Gemfile.lock
150
150
  - README.md
@@ -166,19 +166,18 @@ require_paths:
166
166
  - lib
167
167
  required_ruby_version: !ruby/object:Gem::Requirement
168
168
  requirements:
169
- - - '>='
169
+ - - ">="
170
170
  - !ruby/object:Gem::Version
171
171
  version: '0'
172
172
  required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  requirements:
174
- - - '>='
174
+ - - ">="
175
175
  - !ruby/object:Gem::Version
176
176
  version: 2.4.7
177
177
  requirements: []
178
178
  rubyforge_project:
179
- rubygems_version: 2.4.8
179
+ rubygems_version: 2.6.6
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: ADCDownload - Apple Developer Center Downloader.
183
183
  test_files: []
184
- has_rdoc: