itunes-connect 0.12.0 → 0.12.1
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.
@@ -8,10 +8,10 @@ module ItunesConnect::Commands
|
|
8
8
|
c.opt('c', 'country',
|
9
9
|
:desc => 'A two-letter country code to filter results with')
|
10
10
|
c.opt('f', 'from', :desc => 'The starting date, inclusive') do |f|
|
11
|
-
Date.
|
11
|
+
Date.strptime(f, "%m/%d/%Y")
|
12
12
|
end
|
13
13
|
c.opt('t', 'to', :desc => 'The ending date, inclusive') do |t|
|
14
|
-
Date.
|
14
|
+
Date.strptime(t, "%m/%d/%Y")
|
15
15
|
end
|
16
16
|
c.flag('s', 'summarize', :desc => 'Summarize results by country code')
|
17
17
|
c.flag('n', 'no-header', :desc => 'Suppress the column headers on output')
|
@@ -80,7 +80,7 @@ module ItunesConnect
|
|
80
80
|
# this method to raise an <tt>ArgumentError</tt>.
|
81
81
|
#
|
82
82
|
def get_report(date, out, period = 'Daily')
|
83
|
-
date = Date.
|
83
|
+
date = Date.strptime(date, "%m/%d/%Y") if String === date
|
84
84
|
if date >= Date.today
|
85
85
|
raise ArgumentError, "You must specify a date before today"
|
86
86
|
end
|
@@ -235,15 +235,14 @@ module ItunesConnect
|
|
235
235
|
end
|
236
236
|
|
237
237
|
# skip past new license available notifications
|
238
|
-
new_license = page.body.match(/
|
238
|
+
new_license = page.body.match(/Agreement Update/)
|
239
239
|
if new_license
|
240
|
-
debug_msg("
|
241
|
-
|
242
|
-
raise "could not determine
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
end.submit
|
240
|
+
debug_msg("agreement update detected, skipping")
|
241
|
+
next_url = page.body.match(/a href="(.*?)">\s*<img[^>]+src="\/itc\/images\/btn-continue.png"/)
|
242
|
+
raise "could not determine continue url" unless next_url
|
243
|
+
continue_link = page.link_with(:href => next_url[1])
|
244
|
+
raise "could not find continue link" unless continue_link
|
245
|
+
page = client.click(continue_link)
|
247
246
|
end
|
248
247
|
|
249
248
|
# Click the sales and trends link
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 12
|
8
|
-
-
|
9
|
-
version: 0.12.
|
8
|
+
- 1
|
9
|
+
version: 0.12.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Alex Vollmer
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-24 00:00:00 +10:30
|
18
18
|
default_executable: itunes_connect
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|