produce 1.1.4 → 1.2.0

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: 0521ba36cf93619b46ef5651c75dc2979fa109b3
4
- data.tar.gz: e420e4cab3b23210f2709c4949980d76be4d56bc
3
+ metadata.gz: fc37ab8e3d1a5c1d2fe3a88876f02d343ed9e8a0
4
+ data.tar.gz: cd2f9c9f7f963d516974ea53092c3f585e620daf
5
5
  SHA512:
6
- metadata.gz: 0cf3414637a45272abbc344c11e9411a686477964372b440ce5699e833a4a58e333e59fd14a763e22e720454b334d7e496f7922884d8730b59cc0c20e7593282
7
- data.tar.gz: 358e0f91a5bf7e6bb14c65522c076156c7cb8dce51c0875be535bb6493927774cdd3bda3289087ae9f35b4852c6998eb7e263222bad183961aab7bc0b6e74c74
6
+ metadata.gz: 26be9c28fe7fa2ea43f3273fd40f14b587ecef85da43c002062333920bd7a7b2cfdc1e4464967cc8c7eec93a70e61fce38bfd9369a7438ee474d2ebb0c64010b
7
+ data.tar.gz: dba886da19190cd3a67a0f2b4f83eb432e1922491520b4ebf9c8adc6e1817c285a4f9f385111a281f6aa7e602116cbceafc38113259bad8ffe653eac3adcdbcd
@@ -22,14 +22,29 @@ module Produce
22
22
 
23
23
  Produce.config[:bundle_identifier_suffix] = '' unless wildcard_bundle?
24
24
 
25
- Spaceship::Tunes::Application.create!(name: Produce.config[:app_name],
26
- primary_language: language,
27
- version: Produce.config[:app_version] || "1.0",
28
- sku: Produce.config[:sku].to_s, # might be an int
29
- bundle_id: app_identifier,
30
- bundle_id_suffix: Produce.config[:bundle_identifier_suffix],
31
- company_name: Produce.config[:company_name])
25
+ generated_app = Spaceship::Tunes::Application.create!(name: Produce.config[:app_name],
26
+ primary_language: language,
27
+ version: Produce.config[:app_version] || "1.0",
28
+ sku: Produce.config[:sku].to_s, # might be an int
29
+ bundle_id: app_identifier,
30
+ bundle_id_suffix: Produce.config[:bundle_identifier_suffix],
31
+ company_name: Produce.config[:company_name])
32
+
33
+ UI.crash!("Something went wrong when creating the new app on iTC") if generated_app["adamId"].to_s.empty?
34
+
32
35
  application = fetch_application
36
+ counter = 0
37
+ while application.nil?
38
+ counter += 1
39
+ UI.crash!("Couldn't find newly created app on iTunes Connect - please check the website for more information") if counter == 60
40
+
41
+ # Since 2016-08-10 iTunes Connect takes some time to actually list the newly created application
42
+ # We have no choice but to poll to see if the newly created app is already available
43
+ UI.message("Waiting for the newly created application to be available on iTunes Connect...")
44
+ sleep 10
45
+ application = fetch_application
46
+ end
47
+
33
48
  UI.crash!("Something went wrong when creating the new app - it's not listed in the App's list") unless application
34
49
 
35
50
  UI.success "Successfully created new app '#{Produce.config[:app_name]}' on iTunes Connect with ID #{application.apple_id}"
@@ -1,3 +1,3 @@
1
1
  module Produce
2
- VERSION = "1.1.4"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: produce
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-03 00:00:00.000000000 Z
11
+ date: 2016-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -36,7 +36,7 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 0.29.1
39
+ version: 0.31.1
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.0.0
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 0.29.1
49
+ version: 0.31.1
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: 1.0.0
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  version: '0'
233
233
  requirements: []
234
234
  rubyforge_project:
235
- rubygems_version: 2.2.2
235
+ rubygems_version: 2.6.6
236
236
  signing_key:
237
237
  specification_version: 4
238
238
  summary: Create new iOS apps on iTunes Connect and Dev Portal using the command line