deliver 1.3.0 → 1.3.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: 16a26c982e70fdc949e41cbdb28c50a04ada5e77
4
- data.tar.gz: 4253b0accbcdb2490daf60faba15c8fb3d303daf
3
+ metadata.gz: 6d04c2495a693fdc21532673b5e3dbdfeec568b6
4
+ data.tar.gz: 9faf1083bf9bc1cd9c1d0f4163de88f238673c29
5
5
  SHA512:
6
- metadata.gz: 1958cb3eed9905b36b05e0a26df7cf78f27c17b03991f3ef808e1acef8c00ac655e46dce47af36fc67ab706d4275999c01dd078aa6204c86f61250b3d478368c
7
- data.tar.gz: c76ec542d9a52184c6f8365cf0a65d4a9903aa296748e721650334afde25816bdd588662ae155c5744510c0114547ba087fcedbd43629c5553b2d6f40c743409
6
+ metadata.gz: 7619350e5a706714d14c1cd5fb57aeb5ac4503393d209d9e800ef2d702ac31982e8bdbd28798393db481e65b05e134b8746ae7e8bd0b0afb631d920179b1ce61
7
+ data.tar.gz: 086c9d30b18b36ae32a47e4a7044f95256b26a60db2bf21a97ef96584394ed01b7a52190422c00c7e9ac3c9b3d7a5a561bd2a2cf56745864a3b6c6305278c877
@@ -159,7 +159,13 @@
159
159
  <div id="app-screenshots">
160
160
  <div class="cat-headline">Screenshots</div>
161
161
 
162
- <% if @screenshots.count > 0 %>
162
+ <% if options[:skip_screenshots] %>
163
+ <h2 style="color: blue">Skipped Screenshots</h2>
164
+ <p>
165
+ Options to skip_screenshots activated. <i>deliver</i> will not modify your app screenshots.
166
+ </p>
167
+ </div>
168
+ <% elsif @screenshots.count > 0 %>
163
169
  <% last_size = nil %>
164
170
  <% sc = @screenshots.find_all { |s| s.language == language } %>
165
171
  <% sc.sort {|a, b| [a.screen_size, a.path] <=> [b.screen_size, b.path]}.each do |screenshot| %>
@@ -48,7 +48,7 @@ module Deliver
48
48
  description: "The version that should be edited or created",
49
49
  optional: true),
50
50
  FastlaneCore::ConfigItem.new(key: :skip_metadata,
51
- description: "Only upload the build - no metadata",
51
+ description: "Don't upload the metadata (e.g. title, description), this will still upload screenshots",
52
52
  is_string: false,
53
53
  default_value: false),
54
54
  FastlaneCore::ConfigItem.new(key: :force,
@@ -17,7 +17,7 @@ module Deliver
17
17
 
18
18
  def run
19
19
  verify_version if options[:app_version].to_s.length > 0
20
- upload_metadata unless options[:skip_metadata]
20
+ upload_metadata
21
21
  upload_binary if options[:ipa]
22
22
 
23
23
  Helper.log.info "Finished the upload to iTunes Connect".green
@@ -44,7 +44,7 @@ module Deliver
44
44
  Helper.log.info ""
45
45
  Helper.log.info "You can tweet: \"iTunes Connect #iosprocessingtime #{((Time.now - start) / 60).round} minutes\""
46
46
  end
47
- sleep 10
47
+ sleep 30
48
48
  end
49
49
 
50
50
  build = nil
@@ -18,6 +18,7 @@ module Deliver
18
18
 
19
19
  # Make sure to call `load_from_filesystem` before calling upload
20
20
  def upload(options)
21
+ return if options[:skip_metadata]
21
22
  verify_available_languages!(options)
22
23
 
23
24
  app = options[:app]
@@ -26,7 +27,7 @@ module Deliver
26
27
  v = app.edit_version
27
28
 
28
29
  (LOCALISED_VERSION_VALUES + LOCALISED_APP_VALUES).each do |key|
29
- current = options[key]
30
+ current = options[key].to_s.strip
30
31
  next unless current
31
32
 
32
33
  unless current.kind_of?(Hash)
@@ -42,7 +43,7 @@ module Deliver
42
43
  end
43
44
 
44
45
  (NON_LOCALISED_VERSION_VALUES + NON_LOCALISED_APP_VALUES).each do |key|
45
- current = options[key]
46
+ current = options[key].to_s.strip
46
47
  next unless current.to_s.length > 0
47
48
  v.send("#{key}=", current) if NON_LOCALISED_VERSION_VALUES.include?(key)
48
49
  details.send("#{key}=", current) if NON_LOCALISED_APP_VALUES.include?(key)
@@ -61,6 +62,8 @@ module Deliver
61
62
 
62
63
  # Makes sure all languages we need are actually created
63
64
  def verify_available_languages!(options)
65
+ return if options[:skip_metadata]
66
+
64
67
  # Collect all languages we need
65
68
  # We only care about languages from user provided values
66
69
  # as the other languages are on iTC already anyway
@@ -88,6 +91,8 @@ module Deliver
88
91
 
89
92
  # Loads the metadata files and stores them into the options object
90
93
  def load_from_filesystem(options)
94
+ return if options[:skip_metadata]
95
+
91
96
  # Load localised data
92
97
  Dir.glob(File.join(options[:metadata_path], "*")).each do |lng_folder|
93
98
  next unless File.directory?(lng_folder) # We don't want to read txt as they are non localised
@@ -1,4 +1,4 @@
1
1
  module Deliver
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.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.3.0
4
+ version: 1.3.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-07 00:00:00.000000000 Z
11
+ date: 2015-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -36,21 +36,21 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 0.8.2
39
+ version: 0.9.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 0.8.2
46
+ version: 0.9.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: spaceship
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 0.11.2
53
+ version: 0.11.4
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.11.2
63
+ version: 0.11.4
64
64
  - - "<="
65
65
  - !ruby/object:Gem::Version
66
66
  version: 1.0.0