deliver 1.10.2 → 1.10.3

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: 6882be5a147bd9ff07a20994c06e85526ff9998c
4
- data.tar.gz: 76e61ff854160c9a1f0880ee2fde93a385ac7d80
3
+ metadata.gz: f742e0172af5093251ba6cb860c304a0a8f010a3
4
+ data.tar.gz: f70c146c288830f8a0034199c2a6b9a687177c3f
5
5
  SHA512:
6
- metadata.gz: 46c8abdf42198abc197e60c93f8694c45763a6fcc17516d71fd210b130bf54cd56f80cab631b4e3e3ec62976e89d19d9f8e73515ff9343187ce37676f1c9ab4c
7
- data.tar.gz: 21baa62dc0269bf44414f487b41127f7d1a2dd573a6c4dbf76ef1d0a902d4b2200cefd2700f0c6abdc5bc12e0d66fb8de89d97cb6921da117e761fbb6aa43152
6
+ metadata.gz: bd96e4c87c94f82c5d2e71017f637c89092bbac3d9cd8fe62a4aebfedd498a93f2753bb815f77e70fbfa1f0c6435c25de9cc01c222fb05eb24c0a890f48e973d
7
+ data.tar.gz: bca1d1f32e7ec26854436c6a29ed46cd79699429cd1879eff5329d07079fd6544c3f9825ef5421aae7b04803b572bf0e11dbb425505ffa5ef9eb0f040df5fecf
@@ -65,7 +65,7 @@ module Deliver
65
65
  c.description = 'Create the initial `deliver` configuration based on an existing app'
66
66
  c.action do |args, options|
67
67
  if File.exist?("Deliverfile") or File.exist?("fastlane/Deliverfile")
68
- Ui.important("You already got a running deliver setup in this directory")
68
+ UI.important("You already got a running deliver setup in this directory")
69
69
  return 0
70
70
  end
71
71
 
@@ -97,7 +97,8 @@ module Deliver
97
97
  options = FastlaneCore::Configuration.create(Deliver::Options.available_options, options.__hash__)
98
98
  options.load_configuration_file("Deliverfile")
99
99
  Deliver::Runner.new(options) # to login...
100
- path = options[:screenshots_path] || (FastlaneCore::Helper.fastlane_enabled? ? './fastlane' : '.')
100
+ containing = FastlaneCore::Helper.fastlane_enabled? ? './fastlane' : '.'
101
+ path = options[:screenshots_path] || File.join(containing, 'screenshots')
101
102
  Deliver::DownloadScreenshots.run(options, path)
102
103
  end
103
104
  end
@@ -110,9 +111,10 @@ module Deliver
110
111
  options = FastlaneCore::Configuration.create(Deliver::Options.available_options, options.__hash__)
111
112
  options.load_configuration_file("Deliverfile")
112
113
  Deliver::Runner.new(options) # to login...
113
- path = options[:metadata_path] || (FastlaneCore::Helper.fastlane_enabled? ? './fastlane' : '.')
114
+ containing = FastlaneCore::Helper.fastlane_enabled? ? './fastlane' : '.'
115
+ path = options[:metadata_path] || File.join(containing, 'metadata')
114
116
  res = ENV["DELIVER_FORCE_OVERWRITE"]
115
- res ||= UI.confirm("Do you want to overwrite existing metadata on path '#{File.expand_path(path)}/metadata'?")
117
+ res ||= UI.confirm("Do you want to overwrite existing metadata on path '#{File.expand_path(path)}'?")
116
118
  if res
117
119
  require 'deliver/setup'
118
120
  v = options[:app].latest_version
@@ -23,9 +23,9 @@ module Deliver
23
23
  # If the screen shot is for an appleTV we need to store it in a way that we'll know it's an appleTV
24
24
  # screen shot later as the screen size is the same as an iPhone 6 Plus in landscape.
25
25
  if screenshot.device_type == "appleTV"
26
- containing_folder = File.join(folder_path, "screenshots", "appleTV", screenshot.language)
26
+ containing_folder = File.join(folder_path, "appleTV", screenshot.language)
27
27
  else
28
- containing_folder = File.join(folder_path, "screenshots", screenshot.language)
28
+ containing_folder = File.join(folder_path, screenshot.language)
29
29
  end
30
30
 
31
31
  begin
@@ -79,7 +79,8 @@ module Deliver
79
79
  end
80
80
 
81
81
  transporter = FastlaneCore::ItunesTransporter.new(options[:username])
82
- transporter.upload(options[:app].apple_id, package_path)
82
+ result = transporter.upload(options[:app].apple_id, package_path)
83
+ UI.user_error!("Could not upload binary to iTunes Connect. Check out the error above") unless result
83
84
  end
84
85
 
85
86
  def submit_for_review
@@ -23,7 +23,7 @@ module Deliver
23
23
  # and screenshots folders
24
24
  def generate_deliver_file(deliver_path, options)
25
25
  v = options[:app].latest_version
26
- generate_metadata_files(v, deliver_path)
26
+ generate_metadata_files(v, File.join(deliver_path, 'metadata'))
27
27
 
28
28
  # Generate the final Deliverfile here
29
29
  gem_path = Helper.gem_path('deliver')
@@ -33,9 +33,8 @@ module Deliver
33
33
  return deliver
34
34
  end
35
35
 
36
- def generate_metadata_files(v, deliver_path)
36
+ def generate_metadata_files(v, path)
37
37
  app_details = v.application.details
38
- containing = File.join(deliver_path, 'metadata')
39
38
 
40
39
  # All the localised metadata
41
40
  (UploadMetadata::LOCALISED_VERSION_VALUES + UploadMetadata::LOCALISED_APP_VALUES).each do |key|
@@ -46,7 +45,7 @@ module Deliver
46
45
  content = app_details.send(key)[language]
47
46
  end
48
47
 
49
- resulting_path = File.join(containing, language, "#{key}.txt")
48
+ resulting_path = File.join(path, language, "#{key}.txt")
50
49
  FileUtils.mkdir_p(File.expand_path('..', resulting_path))
51
50
  File.write(resulting_path, content)
52
51
  UI.message("Writing to '#{resulting_path}'")
@@ -61,7 +60,7 @@ module Deliver
61
60
  content = app_details.send(key)
62
61
  end
63
62
 
64
- resulting_path = File.join(containing, "#{key}.txt")
63
+ resulting_path = File.join(path, "#{key}.txt")
65
64
  File.write(resulting_path, content)
66
65
  UI.message("Writing to '#{resulting_path}'")
67
66
  end
@@ -70,8 +69,9 @@ module Deliver
70
69
  end
71
70
 
72
71
  def download_screenshots(deliver_path, options)
73
- FileUtils.mkdir_p(File.join(deliver_path, 'screenshots'))
74
- Deliver::DownloadScreenshots.run(options, deliver_path)
72
+ path = File.join(deliver_path, 'screenshots')
73
+ FileUtils.mkdir_p(path)
74
+ Deliver::DownloadScreenshots.run(options, path)
75
75
  end
76
76
  end
77
77
  end
@@ -1,4 +1,4 @@
1
1
  module Deliver
2
- VERSION = "1.10.2"
2
+ VERSION = "1.10.3"
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.10.2
4
+ version: 1.10.3
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-02-12 00:00:00.000000000 Z
11
+ date: 2016-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -290,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
290
290
  version: '0'
291
291
  requirements: []
292
292
  rubyforge_project:
293
- rubygems_version: 2.4.6
293
+ rubygems_version: 2.4.0
294
294
  signing_key:
295
295
  specification_version: 4
296
296
  summary: Upload screenshots, metadata and your app to the App Store using a single