deliver 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deliver/detect_values.rb +7 -0
- data/lib/deliver/options.rb +4 -0
- data/lib/deliver/runner.rb +2 -3
- data/lib/deliver/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f97d80535959eb3d7127eb1f33531840b90eec1b
|
4
|
+
data.tar.gz: a731f86a99366affff71ff806bb3ad42ea4bd2f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 153af056e536c2dc4455007401d2c34ef798adbcd27d51cb6127b34b761a96ce22fcd24f4d7e3fb01a7635d6e4ad45cca44028ddcfadd4da5995a1953f04acff
|
7
|
+
data.tar.gz: bec6219a7112fc2e08074432c34e0381c74746faf5c9519949d717d6100c585c4c59ef77469c4f7648f9bd556023e19187a689558042f6297d109d6b6f1859a5
|
@@ -4,6 +4,7 @@ module Deliver
|
|
4
4
|
find_app_identifier(options)
|
5
5
|
find_app(options)
|
6
6
|
find_folders(options)
|
7
|
+
find_version(options)
|
7
8
|
end
|
8
9
|
|
9
10
|
def find_app_identifier(options)
|
@@ -31,5 +32,11 @@ module Deliver
|
|
31
32
|
FileUtils.mkdir_p(options[:screenshots_path])
|
32
33
|
FileUtils.mkdir_p(options[:metadata_path])
|
33
34
|
end
|
35
|
+
|
36
|
+
def find_version(options)
|
37
|
+
if options[:ipa]
|
38
|
+
options[:app_version] ||= FastlaneCore::IpaFileAnalyser.fetch_app_version(options[:ipa])
|
39
|
+
end
|
40
|
+
end
|
34
41
|
end
|
35
42
|
end
|
data/lib/deliver/options.rb
CHANGED
@@ -39,6 +39,10 @@ module Deliver
|
|
39
39
|
short_option: '-w',
|
40
40
|
description: "Path to the folder containing the screenshots",
|
41
41
|
optional: true),
|
42
|
+
FastlaneCore::ConfigItem.new(key: :app_version,
|
43
|
+
short_option: '-z',
|
44
|
+
description: "The version that should be edited or created",
|
45
|
+
optional: true),
|
42
46
|
FastlaneCore::ConfigItem.new(key: :skip_metadata,
|
43
47
|
description: "Only upload the build - no metadata",
|
44
48
|
is_string: false,
|
data/lib/deliver/runner.rb
CHANGED
@@ -15,7 +15,7 @@ module Deliver
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def run
|
18
|
-
verify_version if options[:
|
18
|
+
verify_version if options[:app_version].to_s.length > 0
|
19
19
|
upload_metadata unless options[:skip_metadata]
|
20
20
|
upload_binary if options[:ipa]
|
21
21
|
|
@@ -27,8 +27,7 @@ module Deliver
|
|
27
27
|
# Make sure the version on iTunes Connect matches the one in the ipa
|
28
28
|
# If not, the new version will automatically be created
|
29
29
|
def verify_version
|
30
|
-
app_version =
|
31
|
-
return unless app_version.to_s.length > 0
|
30
|
+
app_version = options[:app_version]
|
32
31
|
Helper.log.info "Making sure the latest version on iTunes Connect matches '#{app_version}' from the ipa file..."
|
33
32
|
|
34
33
|
changed = options[:app].ensure_version!(app_version)
|
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.1.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: 2015-09-
|
11
|
+
date: 2015-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|