deliver 0.11.5 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3438684fdc6e6ef10f2ca6b7807808800c235626
4
- data.tar.gz: 20cdd9b5afa3db7ee84bdc70903102bff756f3c2
3
+ metadata.gz: ee1f2455f67977381b2c1909c56c7bdd45c5adda
4
+ data.tar.gz: f4f29d1ce61876009a825f8202ffe9de5a88cdc9
5
5
  SHA512:
6
- metadata.gz: abf99b7b6c46c3764996aca2929b80a4bfc7edf342160335a3f637a5a4586fc9602d4935a9af5b26deb2004fc2a86b98f0252527fb5754177fb9f30855242d31
7
- data.tar.gz: b2448ddda2e9eacb0b874e1eb322972b252f52119fc5116f40d22995402d719fa7bc2175110e4150274e214e4bdf7fafc2d062474a55719df007094630a62cb7
6
+ metadata.gz: 187e3da45c63d08f418c15fa202a07dc8f2ddc34edd0cdda44d7ba4dad2c3d4fa42c1c1d616f0f990ab7bb426a506d752012878f5262a00fa77b57b2d4fd612c
7
+ data.tar.gz: cb4fd8be0b83e046a04d00230bf5065d40625dff2e86b1545e91ddfd9daee2cd732d37a53576cfbf0511c62c2742f5adc93782476b57ff8464c33315f80cfb69
@@ -4,6 +4,7 @@ $:.push File.expand_path("../../lib", __FILE__)
4
4
 
5
5
  require 'deliver'
6
6
  require 'commander'
7
+ require 'deliver/download_screenshots'
7
8
 
8
9
  HighLine.track_eof = false
9
10
 
@@ -43,18 +44,18 @@ class FastlaneApplication
43
44
 
44
45
  def run_deliver(options)
45
46
  path = (Deliver::Helper.fastlane_enabled?? './fastlane' : '.')
46
- Dir.chdir(path) do # switch the context
47
- if File.exists?(deliver_path)
48
- # Everything looks alright, use the given Deliverfile
49
- options.default :beta => false, :skip_deploy => false
50
- Deliver::Deliverer.new(deliver_path, force: options.force, is_beta_ipa: options.beta, skip_deploy: options.skip_deploy)
51
- else
52
- Deliver::Helper.log.warn("No Deliverfile found at path '#{deliver_path}'.")
53
- if agree("Do you want to create a new Deliverfile at the current directory? (y/n)", true)
54
- Deliver::DeliverfileCreator.create(enclosed_directory)
55
- end
47
+ Dir.chdir(path) do # switch the context
48
+ if File.exists?(deliver_path)
49
+ # Everything looks alright, use the given Deliverfile
50
+ options.default :beta => false, :skip_deploy => false
51
+ Deliver::Deliverer.new(deliver_path, force: options.force, is_beta_ipa: options.beta, skip_deploy: options.skip_deploy)
52
+ else
53
+ Deliver::Helper.log.warn("No Deliverfile found at path '#{deliver_path}'.")
54
+ if agree("Do you want to create a new Deliverfile at the current directory? (y/n)", true)
55
+ Deliver::DeliverfileCreator.create(enclosed_directory)
56
56
  end
57
57
  end
58
+ end
58
59
  end
59
60
 
60
61
  command :init do |c|
@@ -70,6 +71,24 @@ class FastlaneApplication
70
71
  end
71
72
  end
72
73
 
74
+ command :download_screenshots do |c|
75
+ c.syntax = 'deliver download_screenshots'
76
+ c.description = "Downloads all existing screenshots from iTunes Connect and stores them in the screenshots folder"
77
+ c.option '-a', '--app_identifier String', String, 'The App Identifier (e.g. com.krausefx.app)'
78
+ c.option '-u', '--username String', String, 'Your Apple ID'
79
+ c.action do |args, options|
80
+ set_username(options.username)
81
+
82
+ app_identifier = options.app_identifier || CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier) || ask("Please enter the app's bundle identifier: ")
83
+ app = Deliver::App.new(app_identifier: app_identifier)
84
+
85
+ path = (Deliver::Helper.fastlane_enabled?? './fastlane' : '.')
86
+ path = File.join(path, "deliver")
87
+
88
+ Deliver::DownloadScreenshots.run(app, path)
89
+ end
90
+ end
91
+
73
92
  command :testflight do |c|
74
93
  c.syntax = 'deliver testflight'
75
94
  c.description = "Uploads a given ipa file to the new Apple TestFlight"
@@ -189,7 +189,7 @@
189
189
  deliver couldn't find any screenshots. Due to a bug in iTunes Transporter this will <b>remove</b> the existing screenshots on iTunes Connect.
190
190
  </p>
191
191
  <p>
192
- Please make sure to store your screenshots in the screenshots folder. If you want to download your existing screenshots, run <i>deliver init</i> in a different directory.
192
+ Please make sure to store your screenshots in the screenshots folder. If you want to download your existing screenshots, run <i>deliver download_screenshots</i>.
193
193
  </p>
194
194
  </div>
195
195
  <% end %>
@@ -0,0 +1,14 @@
1
+ module Deliver
2
+ class DownloadScreenshots
3
+ def self.run(app, path)
4
+ begin
5
+ Helper.log.info "Downloading all existing screenshots...".green
6
+ ItunesConnect.new.download_existing_screenshots(app, path)
7
+ Helper.log.info "Successfully downloaded all existing screenshots".green
8
+ rescue Exception => ex
9
+ Helper.log.error ex
10
+ Helper.log.error "Couldn't download already existing screenshots from iTunesConnect.".red
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module Deliver
2
- VERSION = "0.11.5"
2
+ VERSION = "0.12.0"
3
3
  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: 0.11.5
4
+ version: 0.12.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-05-24 00:00:00.000000000 Z
11
+ date: 2015-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -231,6 +231,7 @@ files:
231
231
  - lib/deliver/deliverfile/deliverfile_creator.rb
232
232
  - lib/deliver/deliverfile/dsl.rb
233
233
  - lib/deliver/dependency_checker.rb
234
+ - lib/deliver/download_screenshots.rb
234
235
  - lib/deliver/html_generator.rb
235
236
  - lib/deliver/ipa_file_analyser.rb
236
237
  - lib/deliver/ipa_uploader.rb