deliver 1.0.0 → 1.1.0

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: 378c2f96308661a4789cbc964292cd718cefefd6
4
- data.tar.gz: 52af302ce95ff889843fe3e19cde99843decdedb
3
+ metadata.gz: f97d80535959eb3d7127eb1f33531840b90eec1b
4
+ data.tar.gz: a731f86a99366affff71ff806bb3ad42ea4bd2f4
5
5
  SHA512:
6
- metadata.gz: 0539da9621b93495117e4ffda50912b48c645ea4053554f84e156b7da1ea213d7402beac25e3ac36319d67c7caf5b45d9f83913c1db4ce7ce44bd7da29f9a3c7
7
- data.tar.gz: 869d38700ba0fe4d108ba19e88e8c70f42786da7f363bef4e4ac35c01dabe0198eccfe538cd0bc335b2f4cee54af2c3967f92118add357d22d6f80fb55860430
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
@@ -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,
@@ -15,7 +15,7 @@ module Deliver
15
15
  end
16
16
 
17
17
  def run
18
- verify_version if options[:ipa]
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 = FastlaneCore::IpaFileAnalyser.fetch_app_version(options[:ipa])
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)
@@ -1,4 +1,4 @@
1
1
  module Deliver
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
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.0.0
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-29 00:00:00.000000000 Z
11
+ date: 2015-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core