deliver 0.9.0 → 0.9.1

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: e6cf52ea7c54cff537c5076e467d2855dd71b86f
4
- data.tar.gz: 66b241359283c9750d4deab05d260b1b9c6713ac
3
+ metadata.gz: b28de89015651dbe03c9ac0c28e74329a075c364
4
+ data.tar.gz: df5f55d91ba602887031c18f2322a11439855eeb
5
5
  SHA512:
6
- metadata.gz: f688f771ef3201824dc3f4d0786dfca5232c5c52fa102ac1296958febd8aa5ea7dfe495806ee9a1392d004e7bb7c5ecae3249c82ace132fa259b10c5865ffd9a
7
- data.tar.gz: 67a0bb0f6c225a00f59549e6859b534a764e7a71dee4e6d3c56ee557c176e9fff41d71be166bbb71db3f15f775f22409db011231f687e5d7352ce217f966bda1
6
+ metadata.gz: 9f2eebadd74349779049af994042bea47c9aef56dce60ebc2b75f3ff046e2b2e794df642fc4a96dc3ad6cfbc72decc9014588ac084d68e0524a41eee1f045abc
7
+ data.tar.gz: 19088f2ece72916b2b5c219f39ce50ba7d888aff1292a6bd75c50b4f2d1c02f6d867a9b611d8e97a7e685e3742517f67513998288c38a4958764bff62edfa92c
data/README.md CHANGED
@@ -274,7 +274,7 @@ Some examples:
274
274
  ```ruby
275
275
  require 'deliver'
276
276
 
277
- app = Deliver::App.new(app_identifier: 'at.felixkrause.app')
277
+ app = Deliver::App.new(app_identifier: 'com.krausefx.app')
278
278
 
279
279
  app.get_app_status # => Waiting for Review
280
280
  app.create_new_version!("1.4")
data/bin/deliver CHANGED
@@ -28,6 +28,8 @@ class FastlaneApplication
28
28
  c.syntax = 'deliver'
29
29
  c.description = 'Run a deploy process using the Deliverfile in the current folder'
30
30
  c.action do |args, options|
31
+ FastlaneCore::UpdateChecker.start_looking_for_update('deliver')
32
+
31
33
  path = (Deliver::Helper.fastlane_enabled?? './fastlane' : '.')
32
34
  Dir.chdir(path) do # switch the context
33
35
  if File.exists?(deliver_path)
@@ -41,6 +43,8 @@ class FastlaneApplication
41
43
  end
42
44
  end
43
45
  end
46
+
47
+ FastlaneCore::UpdateChecker.show_update_status('deliver', Deliver::VERSION)
44
48
  end
45
49
  end
46
50
 
@@ -64,11 +68,15 @@ class FastlaneApplication
64
68
  c.option '-u', '--username String', String, 'Your Apple ID'
65
69
 
66
70
  c.action do |args, options|
71
+ FastlaneCore::UpdateChecker.start_looking_for_update('deliver')
72
+
67
73
  ipa_path = (args.first || determine_ipa) + '' # unfreeze the string
68
74
 
69
75
  set_username(options.username)
70
76
 
71
77
  Deliver::Testflight.upload!(ipa_path, options.app_id, options.skip_deploy)
78
+
79
+ FastlaneCore::UpdateChecker.show_update_status('deliver', Deliver::VERSION)
72
80
  end
73
81
  end
74
82
 
data/lib/deliver.rb CHANGED
@@ -21,6 +21,5 @@ require 'fastlane_core'
21
21
  module Deliver
22
22
  Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
23
23
 
24
- FastlaneCore::UpdateChecker.verify_latest_version('deliver', Deliver::VERSION)
25
24
  Deliver::DependencyChecker.check_dependencies
26
25
  end
@@ -276,7 +276,7 @@ module Deliver
276
276
  itc = ItunesConnect.new
277
277
  itc.set_copyright!(@app, @deploy_information[Deliverer::ValKey::COPYRIGHT]) if @deploy_information[Deliverer::ValKey::COPYRIGHT]
278
278
  itc.set_app_review_information!(@app, @deploy_information[Deliverer::ValKey::APP_REVIEW_INFORMATION]) if @deploy_information[Deliverer::ValKey::APP_REVIEW_INFORMATION]
279
- itc.set_release_after_approval!(@app, @deploy_information[Deliverer::ValKey::AUTOMATIC_RELEASE]) if @deploy_information[Deliverer::ValKey::AUTOMATIC_RELEASE]
279
+ itc.set_release_after_approval!(@app, @deploy_information[Deliverer::ValKey::AUTOMATIC_RELEASE]) if @deploy_information[Deliverer::ValKey::AUTOMATIC_RELEASE] != nil
280
280
 
281
281
  # Categories
282
282
  primary = @deploy_information[Deliverer::ValKey::PRIMARY_CATEGORY]
@@ -25,7 +25,7 @@ module Deliver
25
25
  if CredentialsManager::PasswordManager.shared_manager.username and CredentialsManager::PasswordManager.shared_manager.password
26
26
  identifier = ((CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier) rescue '') || '')
27
27
  while identifier.length < 3
28
- identifier = ask("\nApp Identifier of your app (e.g. at.felixkrause.app_name): ")
28
+ identifier = ask("\nApp Identifier of your app (e.g. com.krausefx.app_name): ")
29
29
  end
30
30
 
31
31
  self.create_based_on_identifier(deliver_path, identifier, project_name)
@@ -42,8 +42,10 @@ module Deliver
42
42
 
43
43
  Helper.log.info "Setting automatic release to '#{automatic_release}'".green
44
44
 
45
+ radio_value = automatic_release ? "true" : "false"
46
+
45
47
  # Find the correct radio button
46
- first("div[itc-radio='versionInfo.releaseOnApproval.value'][radio-value='#{automatic_release.to_s}'] > * > a").click
48
+ first("div[itc-radio='versionInfo.releaseOnApproval.value'][radio-value='#{radio_value}'] > * > a").click
47
49
 
48
50
  (click_on "Save" rescue nil) # if nothing has changed, there is no back button and we don't care
49
51
  rescue => ex
@@ -57,7 +57,7 @@ module Deliver
57
57
  Helper.log.info "Successfully downloaded the latest package from iTunesConnect.".green
58
58
  else
59
59
  unless /^[0-9a-zA-Z\.\$\_]*$/ === @password
60
- Helper.log.fatal "Password contains special characters, which may not be handled properly by iTMSTransporter. If you experience problems uploading to iTunes Connect, please consider changing your password to something with only alphanumeric characters.".red
60
+ Helper.log.error "Password contains special characters, which may not be handled properly by iTMSTransporter. If you experience problems uploading to iTunes Connect, please consider changing your password to something with only alphanumeric characters."
61
61
  end
62
62
  Helper.log.fatal "Could not download metadata from iTunes Connect! It's probably related to your password or your internet connection."
63
63
  end
@@ -1,3 +1,3 @@
1
1
  module Deliver
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
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.9.0
4
+ version: 0.9.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-04-08 00:00:00.000000000 Z
11
+ date: 2015-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.3
19
+ version: 0.5.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.4.3
26
+ version: 0.5.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement