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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d7b0d8ee407b6024a34eb2c38d4bd58a0c71ca24
4
- data.tar.gz: 95a62804de25c89f5fc278649b38097dbbab851f
2
+ SHA256:
3
+ metadata.gz: 68ad733ac1c03c1a768daa5a3df1b22943da3f1af59094118868283f99e49024
4
+ data.tar.gz: ee402084f42e5c81993fdc07952482e3155d60707ed7a559a5a4c931c9899df5
5
5
  SHA512:
6
- metadata.gz: 902c2ac017f889c94abdef8655d59c55d007bef0a79cafc2f6ca1615532e54add7b418733babcf2fccd341360a2f93b1698b2d0d45b2e3995aa4552e2b3dbb44
7
- data.tar.gz: 8b61c6f719bd2f7665a32392aa4483dd6538357d1aba6650f15dd5cceda712a530ecbc65b1cad13b6b7978c5d0737ec47fd1421513535d832c7e9929c2162fec
6
+ metadata.gz: f80632c87c808fa928bbb2d12f8798ca2e1478503423f5a20964c8519ec07b609294cffdda86d4b5ff10b6eb3e36a4f4bf8fef8760c615d06d5a9ebf2b55764b
7
+ data.tar.gz: 72cb636cb268b934844efbacebf3ed9b3a6e33cb2fb9297cd178277082382150d98e3d8ecba5f05a8bab0535a2ac72099c75cd978b435dc2ac29f5bdfc11d056
@@ -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
@@ -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
- fetch(@config[:sales_path], (['Sales.getReport'] + [params.slice(:vendor_number, :report_type, :report_sub_type, :date_type, :date).values.join(',')]).join(', '))
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
@@ -1,3 +1,3 @@
1
1
  module AppleReporter
2
- VERSION = '0.1.5'.freeze
2
+ VERSION = '0.1.6'.freeze
3
3
  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.5
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-09-04 00:00:00.000000000 Z
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.6.14
149
+ rubygems_version: 2.7.7
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Apple iTunes Connect Reporter