deliver 1.13.2 → 1.13.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: 76ec28b9855115a33bb1020b293807287a8ceebb
4
- data.tar.gz: 74438ce41d66d70c8af587fae63143e052be95ae
3
+ metadata.gz: 253317c8d2cf6785e0787b07a470794fcf7dc71f
4
+ data.tar.gz: 4070511b5366fea5c6b54683a0caa526ae26e98d
5
5
  SHA512:
6
- metadata.gz: ae372b3440d0d757e085acb6e5628871cd7d8f5d068bd09c6b52a95fa12647f44accbaf438727d68afa68c2bdfaef3e521d4d7b3a113698be4e61a5cdedb814b
7
- data.tar.gz: 2abd51f2f0fe4ee3797e6074350c478617912ab5cde514e51f0c7bb8daa1f26969c618017bcd4f91512d71ee3a99bb9c2fe2c71f566ebb81b478ef01ce70a119
6
+ metadata.gz: be91200a19832cb2f8f6b4033e3fe896a24b0cfccce027a53106134b52d01ddedccdb39b0bbac51af952858d8e1ea8699f4cdf013573a133e769811461563d63
7
+ data.tar.gz: d9bc44b903bfe27091f083884828cf977878d289128efa159753b0d390b4f18fdbc0ee3e7c69c0479abc5ac731d3cd2952e455a8a40112e34d6480e66d08bd79
data/README.md CHANGED
@@ -36,7 +36,7 @@ deliver
36
36
 
37
37
  ###### Upload screenshots, metadata and your app to the App Store using a single command
38
38
 
39
- `deliver` uploads screenshots, metadata and binaries to iTunes Connect. Use `'deliver` to submit your app for App Store review.
39
+ `deliver` uploads screenshots, metadata and binaries to iTunes Connect. Use `deliver` to submit your app for App Store review.
40
40
 
41
41
  Get in contact with the developer on Twitter: [@FastlaneTools](https://twitter.com/FastlaneTools)
42
42
 
@@ -23,4 +23,8 @@ module Deliver
23
23
 
24
24
  Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
25
25
  UI = FastlaneCore::UI
26
+
27
+ # Constant that captures the root Pathname for the project. Should be used for building paths to assets or other
28
+ # resources that code needs to locate locally
29
+ ROOT = Pathname.new(File.expand_path('../..', __FILE__))
26
30
  end
@@ -14,8 +14,6 @@ module Deliver
14
14
  FastlaneCore::UpdateChecker.show_update_status('deliver', Deliver::VERSION)
15
15
  end
16
16
 
17
- # rubocop:disable Metrics/AbcSize
18
- # rubocop:disable Metrics/MethodLength
19
17
  def run
20
18
  program :version, Deliver::VERSION
21
19
  program :description, Deliver::DESCRIPTION
@@ -124,8 +122,6 @@ module Deliver
124
122
  end
125
123
  end
126
124
  end
127
- # rubocop:enable Metrics/AbcSize
128
- # rubocop:enable Metrics/MethodLength
129
125
 
130
126
  default_command :run
131
127
 
@@ -24,15 +24,13 @@ module Deliver
24
24
  if okay
25
25
  UI.success("HTML file confirmed...") # print this to give feedback to the user immediately
26
26
  else
27
- UI.user_error!("Did not upload the metadata, because the HTML file was rejected by the user", show_github_issues: false)
27
+ UI.user_error!("Did not upload the metadata, because the HTML file was rejected by the user")
28
28
  end
29
29
  end
30
30
 
31
31
  # Renders all data available to quickly see if everything was correctly generated.
32
32
  # @param export_path (String) The path to a folder where the resulting HTML file should be stored.
33
33
  def render(options, screenshots, export_path = nil)
34
- lib_path = Helper.gem_path('deliver')
35
-
36
34
  @screenshots = screenshots || []
37
35
  @options = options
38
36
 
@@ -42,7 +40,7 @@ module Deliver
42
40
  @languages = options[:description].keys if options[:description]
43
41
  @languages ||= options[:app].latest_version.description.languages
44
42
 
45
- html_path = File.join(lib_path, "lib/assets/summary.html.erb")
43
+ html_path = File.join(Deliver::ROOT, "lib/assets/summary.html.erb")
46
44
  html = ERB.new(File.read(html_path)).result(binding) # http://www.rrn.dk/rubys-erb-templating-system
47
45
 
48
46
  export_path = File.join(export_path, "Preview.html")
@@ -80,7 +80,7 @@ module Deliver
80
80
 
81
81
  transporter = FastlaneCore::ItunesTransporter.new(options[:username], nil, false, options[:itc_provider])
82
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
+ UI.user_error!("Could not upload binary to iTunes Connect. Check out the error above", show_github_issues: true) unless result
84
84
  end
85
85
 
86
86
  def submit_for_review
@@ -15,7 +15,7 @@ module Deliver
15
15
 
16
16
  # Add a README to the screenshots folder
17
17
  FileUtils.mkdir_p File.join(deliver_path, 'screenshots') # just in case the fetching didn't work
18
- File.write(File.join(deliver_path, 'screenshots', 'README.txt'), File.read("#{Helper.gem_path('deliver')}/lib/assets/ScreenshotsHelp"))
18
+ File.write(File.join(deliver_path, 'screenshots', 'README.txt'), File.read("#{Deliver::ROOT}/lib/assets/ScreenshotsHelp"))
19
19
  end
20
20
 
21
21
  UI.success("Successfully created new Deliverfile at path '#{file_path}'")
@@ -28,8 +28,7 @@ module Deliver
28
28
  generate_metadata_files(v, File.join(deliver_path, 'metadata'))
29
29
 
30
30
  # Generate the final Deliverfile here
31
- gem_path = Helper.gem_path('deliver')
32
- deliver = File.read("#{gem_path}/lib/assets/DeliverfileDefault")
31
+ deliver = File.read("#{Deliver::ROOT}/lib/assets/DeliverfileDefault")
33
32
  deliver.gsub!("[[APP_IDENTIFIER]]", options[:app].bundle_id)
34
33
  deliver.gsub!("[[USERNAME]]", Spaceship::Tunes.client.user)
35
34
  return deliver
@@ -163,7 +163,7 @@ module Deliver
163
163
  def set_review_information(v, options)
164
164
  return unless options[:app_review_information]
165
165
  info = options[:app_review_information]
166
- UI.user_error!("`app_review_information` must be a hash") unless info.kind_of?(Hash)
166
+ UI.user_error!("`app_review_information` must be a hash", show_github_issues: true) unless info.kind_of?(Hash)
167
167
 
168
168
  v.review_first_name = info[:first_name] if info[:first_name]
169
169
  v.review_last_name = info[:last_name] if info[:last_name]
@@ -1,4 +1,4 @@
1
1
  module Deliver
2
- VERSION = "1.13.2"
2
+ VERSION = "1.13.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.13.2
4
+ version: 1.13.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-08-09 00:00:00.000000000 Z
11
+ date: 2016-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.49.0
19
+ version: 0.50.3
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 1.0.0
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.49.0
29
+ version: 0.50.3
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.0
@@ -56,7 +56,7 @@ dependencies:
56
56
  requirements:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: 0.30.0
59
+ version: 0.31.6
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
62
  version: 1.0.0
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 0.30.0
69
+ version: 0.31.6
70
70
  - - "<"
71
71
  - !ruby/object:Gem::Version
72
72
  version: 1.0.0
@@ -304,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
304
  version: '0'
305
305
  requirements: []
306
306
  rubyforge_project:
307
- rubygems_version: 2.5.1
307
+ rubygems_version: 2.4.5.1
308
308
  signing_key:
309
309
  specification_version: 4
310
310
  summary: Upload screenshots, metadata and your app to the App Store using a single