apple_reporter 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/apple_reporter.rb +1 -1
- data/lib/apple_reporter/sale.rb +15 -1
- data/lib/apple_reporter/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 68ad733ac1c03c1a768daa5a3df1b22943da3f1af59094118868283f99e49024
|
4
|
+
data.tar.gz: ee402084f42e5c81993fdc07952482e3155d60707ed7a559a5a4c931c9899df5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f80632c87c808fa928bbb2d12f8798ca2e1478503423f5a20964c8519ec07b609294cffdda86d4b5ff10b6eb3e36a4f4bf8fef8760c615d06d5a9ebf2b55764b
|
7
|
+
data.tar.gz: 72cb636cb268b934844efbacebf3ed9b3a6e33cb2fb9297cd178277082382150d98e3d8ecba5f05a8bab0535a2ac72099c75cd978b435dc2ac29f5bdfc11d056
|
data/lib/apple_reporter.rb
CHANGED
@@ -8,5 +8,5 @@ require 'apple_reporter/finance'
|
|
8
8
|
require 'apple_reporter/token'
|
9
9
|
|
10
10
|
module AppleReporter
|
11
|
-
raise "Cannot require AppleReporter, unsupported engine '#{RUBY_ENGINE}'" unless RUBY_ENGINE == "ruby"
|
11
|
+
#raise "Cannot require AppleReporter, unsupported engine '#{RUBY_ENGINE}'" unless RUBY_ENGINE == "ruby"
|
12
12
|
end
|
data/lib/apple_reporter/sale.rb
CHANGED
@@ -40,8 +40,22 @@ module AppleReporter
|
|
40
40
|
# date_type: 'Daily',
|
41
41
|
# date: '20161212'
|
42
42
|
# )
|
43
|
+
#
|
44
|
+
# report = reporter.get_report(
|
45
|
+
# vendor_number: 'myVendor',
|
46
|
+
# report_type: 'SubscriptionEvent',
|
47
|
+
# report_sub_type: 'Summary',
|
48
|
+
# date_type: 'Daily',
|
49
|
+
# date: '20161212',
|
50
|
+
# version: "1_1"
|
51
|
+
# )
|
43
52
|
def get_report(params = {})
|
44
|
-
|
53
|
+
values = params.slice(:vendor_number, :report_type, :report_sub_type, :date_type, :date).values
|
54
|
+
if params[:version]
|
55
|
+
values << params[:version]
|
56
|
+
end
|
57
|
+
|
58
|
+
fetch(@config[:sales_path], (['Sales.getReport'] + [values.join(',')]).join(', '))
|
45
59
|
end
|
46
60
|
end
|
47
61
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apple_reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dean Lin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
148
|
rubyforge_project:
|
149
|
-
rubygems_version: 2.
|
149
|
+
rubygems_version: 2.7.7
|
150
150
|
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: Apple iTunes Connect Reporter
|