deliver 1.5.0 → 1.5.1

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: dc91ccbf18e0a89a03e8192011c36db7729975ef
4
- data.tar.gz: 8110e256acc0e15a9ccfd465544face7c0621c2f
3
+ metadata.gz: 096aa98aed262deef2e031a6fa9c9d27eb7dafad
4
+ data.tar.gz: 80423da9231b1bf09e0acdd6957778f1895240a3
5
5
  SHA512:
6
- metadata.gz: 2921d2af4f26f0f818cd88a74c69d19e6befb8c5a4c556e1849844e44e14756be9077bb64f6ad7d8b5fe7edbb5fdb5e0da2fc7cadc8cd3b10227ccfff45612d7
7
- data.tar.gz: da0fb9efabcc3d7410e55bc843c80e0865a44ed0ad59d052e2374031c9e2a50c440ebe35f36daa58ece21338d6f6750186c603482c6126aaf538453440348ecd
6
+ metadata.gz: 0accb6655c8ee4e1b2e38a9c4e1ccf16b30bd995e21b4d856c9c3bd10c3db8db05e7fb761ade25728ed9d65383cf0fea633980a478c7403682c87cd45317f21b
7
+ data.tar.gz: 71d0e820ef9146fa06867b2e72be39866f023ff29d379e147a14558e12a8e3e030904cb89d989750bf816faf4e3d66df2136f9197c8f90026e88c59f8bffd316
data/README.md CHANGED
@@ -31,7 +31,7 @@ deliver
31
31
  [![Twitter: @KauseFx](https://img.shields.io/badge/contact-@KrauseFx-blue.svg?style=flat)](https://twitter.com/KrauseFx)
32
32
  [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/KrauseFx/deliver/blob/master/LICENSE)
33
33
  [![Gem](https://img.shields.io/gem/v/deliver.svg?style=flat)](http://rubygems.org/gems/deliver)
34
- [![Build Status](https://img.shields.io/travis/KrauseFx/deliver/master.svg?style=flat)](https://travis-ci.org/KrauseFx/deliver)
34
+ [![Build Status](https://img.shields.io/travis/fastlane/deliver/master.svg?style=flat)](https://travis-ci.org/fastlane/deliver)
35
35
 
36
36
  ###### Upload screenshots, metadata and your app to the App Store using a single command
37
37
 
@@ -32,39 +32,49 @@ module Deliver
32
32
  Helper.log.info "Selecting the latest build..."
33
33
  app = options[:app]
34
34
  v = app.edit_version
35
+ build = wait_for_build(app)
36
+
37
+ Helper.log.info "Selecting build #{build.train_version} (#{build.build_version})..."
38
+
39
+ v.select_build(build)
40
+ v.save!
41
+
42
+ Helper.log.info "Successfully selected build".green
43
+ end
44
+
45
+ def wait_for_build(app)
46
+ raise "Could not find app with app identifier #{WatchBuild.config[:app_identifier]}".red unless app
35
47
 
36
48
  start = Time.now
37
49
 
38
50
  loop do
39
- processing = v.candidate_builds.find_all(&:processing)
40
- break if processing.count == 0
51
+ build = find_build(app)
52
+ return build if build.processing == false
41
53
 
42
- Helper.log.info "Waiting iTunes Connect processing... this might take a while..."
54
+ Helper.log.info "Waiting iTunes Connect processing for build #{build.train_version} (#{build.build_version})... this might take a while..."
43
55
  if (Time.now - start) > (60 * 5)
44
56
  Helper.log.info ""
45
57
  Helper.log.info "You can tweet: \"iTunes Connect #iosprocessingtime #{((Time.now - start) / 60).round} minutes\""
46
58
  end
47
59
  sleep 30
48
60
  end
61
+ nil
62
+ end
49
63
 
64
+ def find_build(app)
50
65
  build = nil
51
- v.candidate_builds.each do |b|
66
+ app.latest_version.candidate_builds.each do |b|
52
67
  if !build or b.upload_date > build.upload_date
53
68
  build = b
54
69
  end
55
70
  end
56
71
 
57
72
  unless build
58
- Helper.log.fatal v.candidate_builds
59
- raise "Could not find build to select".red
73
+ Helper.log.fatal app.latest_version.candidate_builds
74
+ raise "Could not find build".red
60
75
  end
61
76
 
62
- Helper.log.info "Selecting build #{build.train_version} (#{build.build_version})..."
63
-
64
- v.select_build(build)
65
- v.save!
66
-
67
- Helper.log.info "Successfully selected build".green
77
+ return build
68
78
  end
69
79
  end
70
80
  end
@@ -1,4 +1,4 @@
1
1
  module Deliver
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
  DESCRIPTION = 'Upload screenshots, metadata and your app to the App Store using a single command'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deliver
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-30 00:00:00.000000000 Z
11
+ date: 2015-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 0.13.0
53
+ version: 0.14.0
54
54
  - - "<="
55
55
  - !ruby/object:Gem::Version
56
56
  version: 1.0.0
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: 0.13.0
63
+ version: 0.14.0
64
64
  - - "<="
65
65
  - !ruby/object:Gem::Version
66
66
  version: 1.0.0
@@ -268,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
268
  version: '0'
269
269
  requirements: []
270
270
  rubyforge_project:
271
- rubygems_version: 2.4.8
271
+ rubygems_version: 2.4.0
272
272
  signing_key:
273
273
  specification_version: 4
274
274
  summary: Upload screenshots, metadata and your app to the App Store using a single