fastlane 2.29.0.beta.20170501010050 → 2.29.0.beta.20170502010055

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
2
  SHA1:
3
- metadata.gz: 778d925b988ab9cef8683dc1de8a9770cb9a8365
4
- data.tar.gz: d40e77342d59c04bca53eb9cb7eef2b15b07bec2
3
+ metadata.gz: 539747f341885d0f76b91a8a9530efb0890768ac
4
+ data.tar.gz: 710a6bbfd47cee97b6d21cf63988a068848369ce
5
5
  SHA512:
6
- metadata.gz: b68e41fa44b5bed82b6a4dfb4b8342f705f7de39ff25fc4d57294109063b72de2dbbdb7da0742d09df8118978027ab11e8d09390fd06d8b15752cbc61ffe7000
7
- data.tar.gz: 0ddbeb1c8ba42ad3e9af50bfc39f74dc062ada8fab4c061514f66b16e054d66a8c456df88f73a766efcc5fc1ed3f4e8f9ab5f1a26636114842819d9d931ef6f8
6
+ metadata.gz: 21b72adb90392e473ecc127f83594985256ce9074cc92511c6fa61dcb8dea203d681a7a774bc61c7a6a304b48ca886c8168388237f3e8b74d8cf74be70b558f6
7
+ data.tar.gz: bfd74ad36166a8a2683c1730a086345132a39ec56c765e0308a9a1ae60787af4659b4219179439e53b52069a229f8cc91047b3ac0c2eb2ce3aa98bf042b9bc88
data/README.md CHANGED
@@ -48,7 +48,7 @@ Then to deploy a new 'beta' version of your app just run
48
48
  :ghost: | [Jenkins Integration](https://docs.fastlane.tools/best-practices/continuous-integration/#jenkins-integration): Show output directly in test results
49
49
  :book: | Automatically generate Markdown documentation of your lane configurations
50
50
  :hatching_chick: | Over 170 built-in integrations available
51
- :computer: | Support for iOS, macOS, and Android apps
51
+ :computer: | Support for iOS and Android apps
52
52
  :octocat: | Full Git and Mercurial support
53
53
 
54
54
  <hr />
data/fastlane/README.md CHANGED
@@ -91,7 +91,7 @@ fastlane release
91
91
  :ghost: | [Jenkins Integration](https://docs.fastlane.tools/best-practices/continuous-integration/#jenkins-integration): Show the output directly in the Jenkins test results
92
92
  :book: | Automatically generate a markdown documentation of your lane config
93
93
  :hatching_chick: | Over 170 built-in integrations available
94
- :computer: | Support for iOS, macOS and Android apps
94
+ :computer: | Support for iOS and Android apps
95
95
  :octocat: | Full git and mercurial support
96
96
 
97
97
 
@@ -166,7 +166,7 @@ module Fastlane
166
166
  end
167
167
 
168
168
  def self.is_supported?(platform)
169
- platform == :ios
169
+ [:ios, :appletvos].include?(platform)
170
170
  end
171
171
 
172
172
  def self.example_code
@@ -128,10 +128,10 @@ module Fastlane
128
128
  end),
129
129
  FastlaneCore::ConfigItem.new(key: :platform,
130
130
  env_name: "FL_UPLOAD_SYMBOLS_TO_CRASHLYTICS_PLATFORM",
131
- description: "The platform of the app (ios, tvos, mac)",
131
+ description: "The platform of the app (ios, appletvos, mac)",
132
132
  default_value: "ios",
133
133
  verify_block: proc do |value|
134
- available = ['ios', 'tvos', 'mac']
134
+ available = ['ios', 'appletvos', 'mac']
135
135
  UI.user_error!("Invalid platform '#{value}', must be #{available.join(', ')}") unless available.include?(value)
136
136
  end)
137
137
  ]
@@ -150,7 +150,7 @@ module Fastlane
150
150
  end
151
151
 
152
152
  def self.is_supported?(platform)
153
- platform == :ios
153
+ [:ios, :appletvos].include?(platform)
154
154
  end
155
155
 
156
156
  def self.example_code
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.29.0.beta.20170501010050'.freeze
2
+ VERSION = '2.29.0.beta.20170502010055'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -33,7 +33,7 @@ module Spaceship
33
33
  PROCESSING_FOR_APP_STORE = "Processing for App Store"
34
34
  # WAITING_FOR_EXPORT_COMPLIANCE = "Waiting For Export Compliance"
35
35
  METADATA_REJECTED = "Metadata Rejected"
36
- # REMOVED_FROM_SALE = "Removed From Sale"
36
+ REMOVED_FROM_SALE = "Removed From Sale"
37
37
  # INVALID_BINARY = "Invalid Binary"
38
38
 
39
39
  # Get the app status matching based on a string (given by iTunes Connect)
@@ -48,7 +48,8 @@ module Spaceship
48
48
  'inReview' => IN_REVIEW,
49
49
  'rejected' => REJECTED,
50
50
  'pendingDeveloperRelease' => PENDING_DEVELOPER_RELEASE,
51
- 'metadataRejected' => METADATA_REJECTED
51
+ 'metadataRejected' => METADATA_REJECTED,
52
+ 'removedFromSale' => REMOVED_FROM_SALE
52
53
  }
53
54
 
54
55
  mapping.each do |k, v|
@@ -70,6 +70,43 @@ module Spaceship
70
70
  return parsed_versions
71
71
  end
72
72
 
73
+ # transforms user-set versions to iTC ones
74
+ def versions=(value = {})
75
+ if value.kind_of?(Array)
76
+ # input that comes from iTC api
77
+ return
78
+ end
79
+ new_versions = []
80
+ value.each do |language, current_version|
81
+ new_versions << {
82
+ "value" => {
83
+ "name" => { "value" => current_version[:name] },
84
+ "description" => { "value" => current_version[:description] },
85
+ "localeCode" => language.to_s
86
+ }
87
+ }
88
+ end
89
+
90
+ raw_data.set(["versions"], [{ reviewNotes: { value: @review_notes }, contentHosting: raw_data['versions'].first['contentHosting'], "details" => { "value" => new_versions }, "id" => raw_data["versions"].first["id"] }])
91
+ end
92
+
93
+ # transforms user-set intervals to iTC ones
94
+ def pricing_intervals=(value = [])
95
+ new_intervals = []
96
+ value.each do |current_interval|
97
+ new_intervals << {
98
+ "value" => {
99
+ "tierStem" => current_interval[:tier],
100
+ "priceTierEndDate" => current_interval[:end_date],
101
+ "priceTierEffectiveDate" => current_interval[:begin_date],
102
+ "grandfathered" => current_interval[:grandfathered],
103
+ "country" => current_interval[:country]
104
+ }
105
+ }
106
+ end
107
+ raw_data.set(["pricingIntervals"], new_intervals)
108
+ end
109
+
73
110
  # @return (Array) pricing intervals
74
111
  # @example:
75
112
  # [
@@ -110,26 +147,26 @@ module Spaceship
110
147
  versions_array = []
111
148
  versions.each do |language, value|
112
149
  versions_array << {
113
- value: {
114
- description: { value: value[:description] },
115
- name: { value: value[:name] },
116
- localeCode: language.to_s
150
+ "value" => {
151
+ "description" => { "value" => value[:description] },
152
+ "name" => { "value" => value[:name] },
153
+ "localeCode" => language.to_s
117
154
  }
118
155
  }
119
156
  end
120
157
 
121
- raw_data.set(["versions"], [{ reviewNotes: @review_notes, details: { value: versions_array } }])
158
+ raw_data.set(["versions"], [{ reviewNotes: { value: @review_notes }, contentHosting: raw_data['versions'].first[:contentHosting], "details" => { "value" => versions_array }, id: raw_data["versions"].first["id"] }])
122
159
 
123
160
  # transform pricingDetails
124
161
  intervals_array = []
125
162
  pricing_intervals.each do |interval|
126
163
  intervals_array << {
127
- value: {
128
- tierStem: interval[:tier],
129
- priceTierEffectiveDate: interval[:begin_date],
130
- priceTierEndDate: interval[:end_date],
131
- country: interval[:country] || "WW",
132
- grandfathered: interval[:grandfathered]
164
+ "value" => {
165
+ "tierStem" => interval[:tier],
166
+ "priceTierEffectiveDate" => interval[:begin_date],
167
+ "priceTierEndDate" => interval[:end_date],
168
+ "country" => interval[:country] || "WW",
169
+ "grandfathered" => interval[:grandfathered]
133
170
  }
134
171
  }
135
172
  end
@@ -22,6 +22,25 @@ module Spaceship
22
22
  end
23
23
  end
24
24
 
25
+ def versions=(value = {})
26
+ if value.kind_of?(Array)
27
+ # input that comes from iTC api
28
+ return
29
+ end
30
+ new_versions = []
31
+ value.each do |language, current_version|
32
+ new_versions << {
33
+ "value" => {
34
+ "subscriptionName" => { "value" => current_version[:subscription_name] },
35
+ "name" => { "value" => current_version[:name] },
36
+ "localeCode" => { "value" => language }
37
+ }
38
+ }
39
+ end
40
+
41
+ raw_data.set(["details"], { "value" => new_versions })
42
+ end
43
+
25
44
  # @return (Hash) localized names
26
45
  def versions
27
46
  parsed_versions = {}
@@ -42,15 +61,15 @@ module Spaceship
42
61
  versions_array = []
43
62
  versions.each do |language_code, value|
44
63
  versions_array << {
45
- value: {
46
- subscriptionName: { value: value[:subscription_name] },
47
- name: { value: value[:name] },
48
- localeCode: { value: language_code.to_s }
64
+ "value" => {
65
+ "subscriptionName" => { "value" => value[:subscription_name] },
66
+ "name" => { "value" => value[:name] },
67
+ "localeCode" => { "value" => language_code.to_s }
49
68
  }
50
69
  }
51
70
  end
52
71
 
53
- raw_data.set(["details"], { value: versions_array })
72
+ raw_data.set(["details"], { "value" => versions_array })
54
73
 
55
74
  client.update_iap_family!(app_id: application.apple_id, family_id: self.family_id, data: raw_data)
56
75
  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.29.0.beta.20170501010050
4
+ version: 2.29.0.beta.20170502010055
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-05-01 00:00:00.000000000 Z
18
+ date: 2017-05-02 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier
@@ -1356,23 +1356,23 @@ metadata:
1356
1356
  post_install_message:
1357
1357
  rdoc_options: []
1358
1358
  require_paths:
1359
- - match/lib
1360
- - frameit/lib
1361
- - supply/lib
1362
- - fastlane_core/lib
1363
- - produce/lib
1364
- - pilot/lib
1365
- - cert/lib
1366
1359
  - deliver/lib
1367
- - sigh/lib
1368
- - pem/lib
1360
+ - cert/lib
1361
+ - produce/lib
1369
1362
  - snapshot/lib
1363
+ - match/lib
1364
+ - pilot/lib
1365
+ - fastlane_core/lib
1366
+ - supply/lib
1367
+ - gym/lib
1368
+ - spaceship/lib
1370
1369
  - screengrab/lib
1371
- - fastlane/lib
1370
+ - sigh/lib
1372
1371
  - credentials_manager/lib
1373
- - gym/lib
1372
+ - fastlane/lib
1373
+ - frameit/lib
1374
1374
  - scan/lib
1375
- - spaceship/lib
1375
+ - pem/lib
1376
1376
  required_ruby_version: !ruby/object:Gem::Requirement
1377
1377
  requirements:
1378
1378
  - - ">="