deliver 1.8.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/deliver.rb +1 -0
- data/lib/deliver/commands_generator.rb +14 -0
- data/lib/deliver/generate_summary.rb +9 -0
- data/lib/deliver/options.rb +4 -0
- data/lib/deliver/runner.rb +5 -1
- data/lib/deliver/upload_screenshots.rb +2 -2
- data/lib/deliver/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 284dfba9874963053b4414c5498105fc0cfbb62c
|
4
|
+
data.tar.gz: 9d74f3004f8b57ed39f7a8dfe2fd2895ee8bcf9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 526d62c841ba5bcb1905507a20bf1a9e56e545533aac5789a479d7c7a0f34c59b17f367cd255b18c6ec8a7da8797f6eeebb65bdb99ace987eb08a90c0ab08b33
|
7
|
+
data.tar.gz: 537d93aeb93e02781db539b9e55fef5ec94137350270d45fdc9244a502c5bc8486f1f2d9ccec2970e2ecdd3b512816c1990c6182d67c81b402cca789dc6230c5
|
data/README.md
CHANGED
@@ -200,6 +200,9 @@ Change syntax highlighting to *Ruby*.
|
|
200
200
|
# Need help?
|
201
201
|
Please submit an issue on GitHub and provide information about your setup
|
202
202
|
|
203
|
+
# Code of Conduct
|
204
|
+
Help us keep `deliver` open and inclusive. Please read and follow our [Code of Conduct](https://github.com/fastlane/code-of-conduct).
|
205
|
+
|
203
206
|
# License
|
204
207
|
This project is licensed under the terms of the MIT license. See the LICENSE file.
|
205
208
|
|
data/lib/deliver.rb
CHANGED
@@ -6,6 +6,7 @@ HighLine.track_eof = false
|
|
6
6
|
module Deliver
|
7
7
|
class CommandsGenerator
|
8
8
|
include Commander::Methods
|
9
|
+
UI = FastlaneCore::UI
|
9
10
|
|
10
11
|
def self.start
|
11
12
|
FastlaneCore::UpdateChecker.start_looking_for_update('deliver')
|
@@ -66,6 +67,19 @@ module Deliver
|
|
66
67
|
end
|
67
68
|
end
|
68
69
|
|
70
|
+
command :generate_summary do |c|
|
71
|
+
c.syntax = 'deliver generate_summary'
|
72
|
+
c.description = 'Generate HTML Summary without uploading/downloading anything'
|
73
|
+
c.action do |args, options|
|
74
|
+
options = FastlaneCore::Configuration.create(Deliver::Options.available_options, options.__hash__)
|
75
|
+
options.load_configuration_file("Deliverfile")
|
76
|
+
Deliver::Runner.new(options)
|
77
|
+
html_path = Deliver::GenerateSummary.new.run(options)
|
78
|
+
UI.success "Successfully generated HTML report at '#{html_path}'"
|
79
|
+
system("open '#{html_path}'") unless options[:force]
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
69
83
|
command :download_screenshots do |c|
|
70
84
|
c.syntax = 'deliver download_screenshots'
|
71
85
|
c.description = "Downloads all existing screenshots from iTunes Connect and stores them in the screenshots folder"
|
data/lib/deliver/options.rb
CHANGED
@@ -60,6 +60,10 @@ module Deliver
|
|
60
60
|
short_option: '-w',
|
61
61
|
description: "Path to the folder containing the screenshots",
|
62
62
|
optional: true),
|
63
|
+
FastlaneCore::ConfigItem.new(key: :skip_binary_upload,
|
64
|
+
description: "Skip uploading an ipa or pkg to iTunes Connect",
|
65
|
+
is_string: false,
|
66
|
+
default_value: false),
|
63
67
|
FastlaneCore::ConfigItem.new(key: :skip_screenshots,
|
64
68
|
description: "Don't upload the screenhsots",
|
65
69
|
is_string: false,
|
data/lib/deliver/runner.rb
CHANGED
@@ -19,7 +19,11 @@ module Deliver
|
|
19
19
|
def run
|
20
20
|
verify_version if options[:app_version].to_s.length > 0
|
21
21
|
upload_metadata
|
22
|
-
|
22
|
+
|
23
|
+
has_binary = options[:ipa] || options[:pkg]
|
24
|
+
if !options[:skip_binary_upload] && has_binary
|
25
|
+
upload_binary
|
26
|
+
end
|
23
27
|
|
24
28
|
Helper.log.info "Finished the upload to iTunes Connect".green
|
25
29
|
|
@@ -70,10 +70,10 @@ module Deliver
|
|
70
70
|
next
|
71
71
|
end
|
72
72
|
|
73
|
-
files = Dir.glob(File.join(lng_folder, "*.#{extensions}"))
|
73
|
+
files = Dir.glob(File.join(lng_folder, "*.#{extensions}"), File::FNM_CASEFOLD)
|
74
74
|
next if files.count == 0
|
75
75
|
|
76
|
-
prefer_framed = Dir.glob(File.join(lng_folder, "*_framed.#{extensions}")).count > 0
|
76
|
+
prefer_framed = Dir.glob(File.join(lng_folder, "*_framed.#{extensions}"), File::FNM_CASEFOLD).count > 0
|
77
77
|
|
78
78
|
language = File.basename(lng_folder)
|
79
79
|
files.each do |file_path|
|
data/lib/deliver/version.rb
CHANGED
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.
|
4
|
+
version: 1.9.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-01
|
11
|
+
date: 2016-02-01 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.
|
19
|
+
version: 0.36.1
|
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.
|
29
|
+
version: 0.36.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.0
|
@@ -216,14 +216,14 @@ dependencies:
|
|
216
216
|
requirements:
|
217
217
|
- - "~>"
|
218
218
|
- !ruby/object:Gem::Version
|
219
|
-
version:
|
219
|
+
version: 0.35.1
|
220
220
|
type: :development
|
221
221
|
prerelease: false
|
222
222
|
version_requirements: !ruby/object:Gem::Requirement
|
223
223
|
requirements:
|
224
224
|
- - "~>"
|
225
225
|
- !ruby/object:Gem::Version
|
226
|
-
version:
|
226
|
+
version: 0.35.1
|
227
227
|
- !ruby/object:Gem::Dependency
|
228
228
|
name: fakefs
|
229
229
|
requirement: !ruby/object:Gem::Requirement
|
@@ -258,6 +258,7 @@ files:
|
|
258
258
|
- lib/deliver/commands_generator.rb
|
259
259
|
- lib/deliver/detect_values.rb
|
260
260
|
- lib/deliver/download_screenshots.rb
|
261
|
+
- lib/deliver/generate_summary.rb
|
261
262
|
- lib/deliver/html_generator.rb
|
262
263
|
- lib/deliver/loader.rb
|
263
264
|
- lib/deliver/options.rb
|