fastlane 2.51.0.beta.20170805010003 → 2.51.0.beta.20170806010003

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c80a60da667579980bad460738cbe5b059919917
4
- data.tar.gz: 4357bd33a339313330880af387993c43f2f28c6f
3
+ metadata.gz: 7df61df3b899ddc2e8d9a2378ac08e8f9c0f08d2
4
+ data.tar.gz: 60770563b17ee83d5a45231be4afcbb6d62b4846
5
5
  SHA512:
6
- metadata.gz: de777b2403bdd92db984ea1b8515a9183e13cfcea5430045956e486488a323a35ba50894add2fe7142dfd8f39c19bcbb3443d98afdbc54673f998a82c20384c6
7
- data.tar.gz: 89d84c143b3b6838946a2a17c5e84f3db7b964a28bf40381feffb0ac0baccdf1ddc7646f3f70ad6c0f838954a54aeb4b9b8db8a401b4646f2cb01ecb43d22675
6
+ metadata.gz: 8f46f8a2ea46e50859ff763e2e3bea09cea25d17c6f78bbc00dbd62cb3ba5c75f38938e901829ea46d6992af241c2682649a890837aef3063223fa0eec916c27
7
+ data.tar.gz: f259ca025933f742be368b6d8b749eea53c530bc4275cf137f624c0dbcc1fc46eed7d0825003d518d64b34b89555682415929cc6800833a206ecf3fdfb0ba1d4
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.51.0.beta.20170805010003'.freeze
2
+ VERSION = '2.51.0.beta.20170806010003'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  end
@@ -41,15 +41,9 @@ module Spaceship
41
41
  )
42
42
 
43
43
  class << self
44
- # Create a new object based on a hash.
45
- # This is used to create a new object based on the server response.
46
- def factory(attrs)
47
- self.new(attrs)
48
- end
49
-
50
44
  # @return (Array) Returns all passbook available for this account
51
45
  def all
52
- client.passbooks.map { |pass_type| self.factory(pass_type) }
46
+ client.passbooks.map { |pass_type| self.new(pass_type) }
53
47
  end
54
48
 
55
49
  # Creates a new Passbook ID on the Apple Dev Portal
@@ -41,16 +41,10 @@ module Spaceship
41
41
  )
42
42
 
43
43
  class << self
44
- # Create a new object based on a hash.
45
- # This is used to create a new object based on the server response.
46
- def factory(attrs)
47
- self.new(attrs)
48
- end
49
-
50
44
  # @param mac [Bool] Fetches Mac website push if true
51
45
  # @return (Array) Returns all website push available for this account
52
46
  def all(mac: false)
53
- client.website_push(mac: mac).map { |website_push| self.factory(website_push) }
47
+ client.website_push(mac: mac).map { |website_push| self.new(website_push) }
54
48
  end
55
49
 
56
50
  # Creates a new Website Push ID on the Apple Dev Portal
@@ -44,8 +44,8 @@ module Spaceship
44
44
  end
45
45
 
46
46
  # @return (Array) of Review Objects
47
- def reviews(store_front, versionId = '')
48
- raw_reviews = client.get_reviews(application.apple_id, application.platform, store_front, versionId)
47
+ def reviews(store_front = '', version_id = '')
48
+ raw_reviews = client.get_reviews(application.apple_id, application.platform, store_front, version_id)
49
49
  raw_reviews.map do |review|
50
50
  review["value"]["application"] = self.application
51
51
  AppReview.factory(review["value"])
@@ -98,8 +98,8 @@ module Spaceship
98
98
  'lastModified' => :last_modified,
99
99
  'helpfulViews' => :helpful_views,
100
100
  'totalViews' => :total_views,
101
- 'developerResponse' => :raw_developer_response,
102
- 'edited' => :edited
101
+ 'edited' => :edited,
102
+ 'developerResponse' => :raw_developer_response
103
103
  })
104
104
  class << self
105
105
  # Create a new object based on a hash.
@@ -14,17 +14,11 @@ module Spaceship
14
14
  # @return (Spaceship::Tunes::Application) A reference to the application
15
15
  attr_accessor :application
16
16
 
17
- class << self
18
- def factory(attrs)
19
- return self.new(attrs)
20
- end
21
- end
22
-
23
17
  # @return (Spaceship::Tunes::IAPFamilies) A reference to the familie list
24
18
  def families
25
19
  attrs = {}
26
20
  attrs[:application] = self.application
27
- Tunes::IAPFamilies.factory(attrs)
21
+ Tunes::IAPFamilies.new(attrs)
28
22
  end
29
23
 
30
24
  # Creates a new In-App-Purchese on iTunes Connect
@@ -43,12 +43,6 @@ module Spaceship
43
43
  'clearedForSale.value' => :cleared_for_sale
44
44
  })
45
45
 
46
- class << self
47
- def factory(attrs)
48
- return self.new(attrs)
49
- end
50
- end
51
-
52
46
  # @return (Hash) Hash of languages
53
47
  # @example: {
54
48
  # 'de-DE': {
@@ -5,12 +5,6 @@ module Spaceship
5
5
  # @return (Spaceship::Tunes::Application) A reference to the application
6
6
  attr_accessor :application
7
7
 
8
- class << self
9
- def factory(attrs)
10
- return self.new(attrs)
11
- end
12
- end
13
-
14
8
  # Create a new Purchase Family
15
9
  # a freshly created family has to have atleast one product.
16
10
  # the product will be created, and versions/pricing_intervals and so on
@@ -16,12 +16,6 @@ module Spaceship
16
16
  'name.value' => :name
17
17
  })
18
18
 
19
- class << self
20
- def factory(attrs)
21
- return self.new(attrs)
22
- end
23
- end
24
-
25
19
  def versions=(value = {})
26
20
  if value.kind_of?(Array)
27
21
  # input that comes from iTC api
@@ -16,17 +16,11 @@ module Spaceship
16
16
  'name.value' => :name
17
17
  })
18
18
 
19
- class << self
20
- def factory(attrs)
21
- return self.new(attrs)
22
- end
23
- end
24
-
25
19
  # return a editable family object
26
20
  def edit
27
21
  attrs = client.load_iap_family(app_id: application.apple_id, family_id: self.family_id)
28
22
  attrs[:application] = application
29
- Tunes::IAPFamilyDetails.factory(attrs)
23
+ Tunes::IAPFamilyDetails.new(attrs)
30
24
  end
31
25
  end
32
26
  end
@@ -44,12 +44,6 @@ module Spaceship
44
44
  'canDeleteAddOn' => :can_delete_addon
45
45
  })
46
46
 
47
- class << self
48
- def factory(attrs)
49
- return self.new(attrs)
50
- end
51
- end
52
-
53
47
  def type
54
48
  Tunes::IAPType.get_from_string(raw_data["addOnType"])
55
49
  end
@@ -61,7 +55,7 @@ module Spaceship
61
55
  def edit
62
56
  attrs = client.load_iap(app_id: application.apple_id, purchase_id: self.purchase_id)
63
57
  attrs[:application] = application
64
- Tunes::IAPDetail.factory(attrs)
58
+ Tunes::IAPDetail.new(attrs)
65
59
  end
66
60
 
67
61
  def delete!
@@ -258,22 +258,28 @@ module Spaceship
258
258
  parse_response(r, 'data')
259
259
  end
260
260
 
261
- def get_ratings(app_id, platform, versionId = '', storefront = '')
262
- # if storefront or versionId is empty api fails
261
+ def get_ratings(app_id, platform, version_id = '', storefront = '')
262
+ # if storefront or version_id is empty api fails
263
263
  rating_url = "ra/apps/#{app_id}/platforms/#{platform}/reviews/summary?"
264
264
  rating_url << "storefront=#{storefront}" unless storefront.empty?
265
- rating_url << "versionId=#{versionId}" unless versionId.empty?
265
+ rating_url << "version_id=#{version_id}" unless version_id.empty?
266
266
 
267
267
  r = request(:get, rating_url)
268
268
  parse_response(r, 'data')
269
269
  end
270
270
 
271
- def get_reviews(app_id, platform, storefront, versionId = '')
271
+ def get_reviews(app_id, platform, storefront, version_id)
272
272
  index = 0
273
273
  per_page = 100 # apple default
274
274
  all_reviews = []
275
275
  loop do
276
- r = request(:get, "ra/apps/#{app_id}/platforms/#{platform}/reviews?storefront=#{storefront}&versionId=#{versionId}&index=#{index}")
276
+ rating_url = "ra/apps/#{app_id}/platforms/#{platform}/reviews?"
277
+ rating_url << "sort=REVIEW_SORT_ORDER_MOST_RECENT"
278
+ rating_url << "&index=#{index}"
279
+ rating_url << "&storefront=#{storefront}" unless storefront.empty?
280
+ rating_url << "&version_id=#{version_id}" unless version_id.empty?
281
+
282
+ r = request(:get, rating_url)
277
283
  all_reviews.concat(parse_response(r, 'data')['reviews'])
278
284
  if all_reviews.count < parse_response(r, 'data')['reviewCount']
279
285
  index += per_page
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.51.0.beta.20170805010003
4
+ version: 2.51.0.beta.20170806010003
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-08-05 00:00:00.000000000 Z
18
+ date: 2017-08-06 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier