fastlane 2.72.0.beta.20171230010003 → 2.72.0.beta.20171231010003

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: 498cbb3d8f84771eebe9f9ff7d51ef98df043a2b
4
- data.tar.gz: 21f852677a5e546681e7b1e384fa01e07550c207
3
+ metadata.gz: 2ea6e4c7e85f8ac67127a33d9c1a7d208ccd6b7a
4
+ data.tar.gz: 0947191d1dc9d367171e686779c1cbab4a70e537
5
5
  SHA512:
6
- metadata.gz: ba0eb7a3eb059516b9809c8d370074562a425f8240f82a74b2df63f5036e01bdd8a7c7c13f803b8555f24db47aed7f3b7e13ae07acf5014d1f70b29c5e342989
7
- data.tar.gz: cec4bb31dfa61479ec0415d83d5bcfc827edae858c9a71e1621ab462e375f009e46054db69278b47260ffe2ca1a28d4d14051f17a49c5626a024158a229a6018
6
+ metadata.gz: 91ad04abef436779aff0fabdf35e193164d0e16cb0cd8b04c7537379281178bd53ebb7a25b0df757432b3b2ff67bd568d2a89ad10e9625c0bea0fe272a8a7e61
7
+ data.tar.gz: 7e0fc6faef9893c65de4c597eb09a3fbb5945bd81eedbb5c908fdb1d8a8584718142fed3749bd8956719183724aa0a0408181eb2bd3c0d29bd7a0e42e98e250c
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.72.0.beta.20171230010003'.freeze
2
+ VERSION = '2.72.0.beta.20171231010003'.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
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
@@ -11,4 +11,4 @@ class Deliverfile: DeliverfileProtocol {
11
11
 
12
12
 
13
13
 
14
- // Generated with fastlane 2.70.3
14
+ // Generated with fastlane 2.71.0
@@ -11,4 +11,4 @@ class Gymfile: GymfileProtocol {
11
11
 
12
12
 
13
13
 
14
- // Generated with fastlane 2.70.3
14
+ // Generated with fastlane 2.71.0
@@ -11,4 +11,4 @@ class Matchfile: MatchfileProtocol {
11
11
 
12
12
 
13
13
 
14
- // Generated with fastlane 2.70.3
14
+ // Generated with fastlane 2.71.0
@@ -11,4 +11,4 @@ class Precheckfile: PrecheckfileProtocol {
11
11
 
12
12
 
13
13
 
14
- // Generated with fastlane 2.70.3
14
+ // Generated with fastlane 2.71.0
@@ -11,4 +11,4 @@ class Scanfile: ScanfileProtocol {
11
11
 
12
12
 
13
13
 
14
- // Generated with fastlane 2.70.3
14
+ // Generated with fastlane 2.71.0
@@ -11,4 +11,4 @@ class Screengrabfile: ScreengrabfileProtocol {
11
11
 
12
12
 
13
13
 
14
- // Generated with fastlane 2.70.3
14
+ // Generated with fastlane 2.71.0
@@ -11,4 +11,4 @@ class Snapshotfile: SnapshotfileProtocol {
11
11
 
12
12
 
13
13
 
14
- // Generated with fastlane 2.70.3
14
+ // Generated with fastlane 2.71.0
@@ -30,6 +30,11 @@ module Gym
30
30
 
31
31
  config[:build_path] ||= archive_path_from_local_xcode_preferences
32
32
 
33
+ # Make sure the output name is valid and remove a trailing `.ipa` extension
34
+ # as it will be added by gym for free
35
+ config[:output_name].gsub!(".ipa", "")
36
+ config[:output_name].gsub!(File::SEPARATOR, "_")
37
+
33
38
  return config
34
39
  end
35
40
 
@@ -7,6 +7,7 @@ module Gym
7
7
  # We go 2 folders up, to not show "Contents/Developer/"
8
8
  values = Gym.config.values(ask: false)
9
9
  values[:xcode_path] = File.expand_path("../..", FastlaneCore::Helper.xcode_path)
10
+
10
11
  FastlaneCore::PrintTable.print_values(config: values,
11
12
  hide_keys: [],
12
13
  title: "Summary for gym #{Fastlane::VERSION}")
@@ -61,11 +61,7 @@ module Gym
61
61
  short_option: "-n",
62
62
  env_name: "GYM_OUTPUT_NAME",
63
63
  description: "The name of the resulting ipa file",
64
- optional: true,
65
- verify_block: proc do |value|
66
- value.gsub!(".ipa", "")
67
- value.gsub!(File::SEPARATOR, "_")
68
- end),
64
+ optional: true),
69
65
  FastlaneCore::ConfigItem.new(key: :configuration,
70
66
  short_option: "-q",
71
67
  env_name: "GYM_CONFIGURATION",
@@ -98,7 +98,7 @@ module Spaceship
98
98
  }
99
99
  }
100
100
  end
101
- raw_data.set(["subscriptions"], new_intervals)
101
+ raw_data.set(["pricingIntervals"], new_intervals)
102
102
  end
103
103
 
104
104
  # @return (Array) pricing intervals
@@ -112,7 +112,7 @@ module Spaceship
112
112
  # }
113
113
  # ]
114
114
  def pricing_intervals
115
- @pricing_intervals ||= raw_data["subscriptions"].map do |interval|
115
+ @pricing_intervals ||= raw_data["pricingIntervals"].map do |interval|
116
116
  {
117
117
  tier: interval["value"]["tierStem"].to_i,
118
118
  begin_date: interval["value"]["priceTierEffectiveDate"],
@@ -53,28 +53,14 @@ module Spaceship
53
53
  end
54
54
 
55
55
  def edit
56
- Tunes::IAPDetail.new(build_iap)
56
+ attrs = client.load_iap(app_id: application.apple_id, purchase_id: self.purchase_id)
57
+ attrs[:application] = application
58
+ Tunes::IAPDetail.new(attrs)
57
59
  end
58
60
 
59
61
  def delete!
60
62
  client.delete_iap!(app_id: application.apple_id, purchase_id: self.purchase_id)
61
63
  end
62
-
63
- private
64
-
65
- def build_iap
66
- attrs = [*iap_prices, *iap_details].to_h
67
- attrs[:application] = application
68
- attrs
69
- end
70
-
71
- def iap_prices
72
- client.load_iap_prices(app_id: application.apple_id, purchase_id: self.purchase_id)
73
- end
74
-
75
- def iap_details
76
- client.load_iap_details(app_id: application.apple_id, purchase_id: self.purchase_id)
77
- end
78
64
  end
79
65
  end
80
66
  end
@@ -534,7 +534,7 @@ module Spaceship
534
534
  end
535
535
 
536
536
  def price_tier(app_id)
537
- r = request(:get, "ra/apps/#{app_id}/pricing")
537
+ r = request(:get, "ra/apps/#{app_id}/pricing/intervals")
538
538
  data = parse_response(r, 'data')
539
539
 
540
540
  begin
@@ -1043,14 +1043,8 @@ module Spaceship
1043
1043
  handle_itc_response(r)
1044
1044
  end
1045
1045
 
1046
- # Loads the iap prices for specific product
1047
- def load_iap_prices(app_id: nil, purchase_id: nil)
1048
- r = request(:get, "ra/apps/#{app_id}/iaps/#{purchase_id}/pricing")
1049
- parse_response(r, 'data')
1050
- end
1051
-
1052
- # Loads iap full details
1053
- def load_iap_details(app_id: nil, purchase_id: nil)
1046
+ # Loads the full In-App-Purchases
1047
+ def load_iap(app_id: nil, purchase_id: nil)
1054
1048
  r = request(:get, "ra/apps/#{app_id}/iaps/#{purchase_id}")
1055
1049
  parse_response(r, 'data')
1056
1050
  end
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.72.0.beta.20171230010003
4
+ version: 2.72.0.beta.20171231010003
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-12-30 00:00:00.000000000 Z
18
+ date: 2017-12-31 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier