deliver 0.7.12 → 0.7.13

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: 41e57184b3f01ed38542f66b736cbafcc8b9f770
4
- data.tar.gz: 378b63355d1a174c0b21764e210c3affb7ef867a
3
+ metadata.gz: 0add76bf74f163777d037b134df460f0302c05e7
4
+ data.tar.gz: 9faf0e247f17458e9e621a624e8954d66138cb46
5
5
  SHA512:
6
- metadata.gz: 03117ffc1fb7543550a793b9b4020c6346aeb1907da4b1a01faf531e892f0951a9e461be7b54287d683b51d3dd976567c7c5d43c8fe379023d8996311fa704df
7
- data.tar.gz: f0a92bf67b934e81ff34c456c4c28c3f4b92be7b44044b2bbd6079cb465f001bf4d970e30b927c96f0c3ced975b23bde10c3458792a9978cb31bc78d8fc20de0
6
+ metadata.gz: 9acc3f5094509eb5d922ffb9ef23c0669509b7f048f44fba5a77b52d4fd33fe1b0f178b8116ad00435c8990fa8fbf3b9db54142a0c901e95fca2d52ed89229ab
7
+ data.tar.gz: 1d02d552eca8085f8e02b92715f86d663912fa065c1853548a0a4b9549dc71fd406fcc365a20ab91e51c6516974e66af85c733a40aee89fcc83a2476ea5202f8
data/README.md CHANGED
@@ -50,7 +50,7 @@ Get in contact with the developer on Twitter: [@KrauseFx](https://twitter.com/Kr
50
50
 
51
51
  -------
52
52
 
53
- <h5 align="center"><code>deliver</code> is part of <a href="http://fastlane.tools">fastlane</a>: connect all deployment tools into one streamlined workflow.</h5>
53
+ <h5 align="center"><code>deliver</code> is part of <a href="https://fastlane.tools">fastlane</a>: connect all deployment tools into one streamlined workflow.</h5>
54
54
 
55
55
  # Features
56
56
  - Upload hundreds of screenshots with different languages from different devices
@@ -314,9 +314,9 @@ Before actually uploading anything to iTunes, ```Deliver``` will generate a [PDF
314
314
 
315
315
  # Tips
316
316
 
317
- ## [`fastlane`](http://fastlane.tools) Toolchain
317
+ ## [`fastlane`](https://fastlane.tools) Toolchain
318
318
 
319
- - [`fastlane`](http://fastlane.tools): Connect all deployment tools into one streamlined workflow
319
+ - [`fastlane`](https://fastlane.tools): Connect all deployment tools into one streamlined workflow
320
320
  - [`snapshot`](https://github.com/KrauseFx/snapshot): Automate taking localized screenshots of your iOS app on every device
321
321
  - [`frameit`](https://github.com/KrauseFx/frameit): Quickly put your screenshots into the right device frames
322
322
  - [`PEM`](https://github.com/KrauseFx/pem): Automatically generate and renew your push notification profiles
data/bin/deliver CHANGED
@@ -14,7 +14,7 @@ class FastlaneApplication
14
14
  program :version, Deliver::VERSION
15
15
  program :description, 'CLI for \'Deliver\' - Upload screenshots, metadata and your app to the App Store using a single command'
16
16
  program :help, 'Author', 'Felix Krause <deliver@krausefx.com>'
17
- program :help, 'Website', 'http://fastlane.tools'
17
+ program :help, 'Website', 'https://fastlane.tools'
18
18
  program :help, 'GitHub', 'https://github.com/krausefx/deliver'
19
19
  program :help_formatter, :compact
20
20
 
@@ -111,7 +111,7 @@ module Deliver
111
111
  title.content = default_title
112
112
  new_locale << title
113
113
 
114
- Helper.log.info("Successfully created the new locale '#{language}'. The default title '#{default_title}' was set, since it's required by iTunesConnect.")
114
+ Helper.log.info("Successfully created the new locale '#{language}'. The default title '#{default_title}' was set.")
115
115
  Helper.log.info("You can update the title using 'app.metadata.update_title'")
116
116
 
117
117
  information[language] ||= {}
@@ -16,6 +16,8 @@ module Deliver
16
16
  IOS_55 = "iOS-5.5-in"
17
17
  # iPad
18
18
  IOS_IPAD = "iOS-iPad"
19
+ # Mac
20
+ MAC = "Mac"
19
21
  end
20
22
 
21
23
  # @return [Deliver::ScreenSize] the screen size (device type)
@@ -98,6 +100,12 @@ module Deliver
98
100
  [768, 1024],
99
101
  [1536, 2008],
100
102
  [1536, 2048]
103
+ ],
104
+ ScreenSize::MAC => [
105
+ [1280, 800],
106
+ [1440, 900],
107
+ [2880, 1800],
108
+ [2560, 1600]
101
109
  ]
102
110
  }
103
111
 
@@ -110,8 +118,7 @@ module Deliver
110
118
  end
111
119
  end
112
120
 
113
- error = "Unsupported screen size #{size} for path '#{path}'"
114
- raise error
121
+ raise "Unsupported screen size #{size} for path '#{path}'".red
115
122
  end
116
123
  end
117
124
 
@@ -132,10 +132,10 @@ module Deliver
132
132
  end
133
133
 
134
134
  def verify_app_on_itunesconnect
135
- if @ipa and is_release_build?
135
+ if (@ipa and is_release_build?) or !@ipa
136
136
  # This is a real release, which should also upload the ipa file onto production
137
137
  @app.create_new_version!(@app_version) unless Helper.is_test?
138
- @app.metadata.verify_version(@app_version)
138
+ @app.metadata.verify_version(@app_version) if @ipa
139
139
  end
140
140
  end
141
141
 
@@ -7,8 +7,4 @@ require 'deliver/itunes_connect/itunes_connect_new_version'
7
7
  require 'deliver/itunes_connect/itunes_connect_app_icon'
8
8
  require 'deliver/itunes_connect/itunes_connect_app_rating'
9
9
  require 'deliver/itunes_connect/itunes_connect_additional'
10
- require 'deliver/itunes_connect/itunes_connect_screenshot_fetcher'
11
-
12
- module Deliver
13
- ItunesConnect = FastlaneCore::ItunesConnect
14
- end
10
+ require 'deliver/itunes_connect/itunes_connect_screenshot_fetcher'
@@ -1,5 +1,5 @@
1
- module FastlaneCore
2
- class ItunesConnect
1
+ module Deliver
2
+ class ItunesConnect < FastlaneCore::ItunesConnect
3
3
  # This file sets additional information like copyright and age rating
4
4
 
5
5
  def set_copyright!(app, text)
@@ -1,7 +1,7 @@
1
1
  require 'fastimage'
2
2
 
3
- module FastlaneCore
4
- class ItunesConnect
3
+ module Deliver
4
+ class ItunesConnect < FastlaneCore::ItunesConnect
5
5
  # Uploading a new full size app icon
6
6
 
7
7
  def upload_app_icon!(app, path)
@@ -1,7 +1,7 @@
1
1
  require 'json'
2
2
 
3
- module FastlaneCore
4
- class ItunesConnect
3
+ module Deliver
4
+ class ItunesConnect < FastlaneCore::ItunesConnect
5
5
  # Setting the app's age restrictions
6
6
 
7
7
  def set_app_rating!(app, path_to_json)
@@ -19,12 +19,11 @@ module FastlaneCore
19
19
 
20
20
  rows = wait_for_elements(".defaultTable.ratingsTable > tbody > tr.ng-scope") # .ng-scope, since there is one empty row
21
21
 
22
- if rows.count != config.count
23
- raise "The number of options passed in the config file does not match the number of options available on iTC!".red
22
+ if rows.count != (config.count - 1) # -1 the kids
23
+ raise "The number of options passed in the config file does not match the number of options available on iTC! Make sure to use the latest template from https://github.com/KrauseFx/deliver/blob/master/assets/example_rating_config.json".red
24
24
  end
25
25
 
26
26
 
27
-
28
27
  # Setting all the values based on config file
29
28
  rows.each_with_index do |row, index|
30
29
  current = config[index]
@@ -38,6 +37,25 @@ module FastlaneCore
38
37
  row.first("td > div[radio-value='#{radio_value}']").click
39
38
  end
40
39
 
40
+
41
+ # Apple, doing some extra thingy for the kids section
42
+ val = config.last['level'].to_i
43
+ Helper.log.info "Setting kids mode to #{val}".green
44
+ currently_enabled = (all("div[itc-checkbox='tempPageContent.ratingDialog.madeForKidsChecked'] > * > input").last.value != "")
45
+ if val > 0
46
+ if not currently_enabled
47
+ all("div[itc-checkbox='tempPageContent.ratingDialog.madeForKidsChecked'] > * > a").last.click
48
+ end
49
+
50
+ # Kids is enabled, check mode
51
+ first("select[ng-model='tempRatings.ageBand'] > option[value='#{val - 1}']").select_option # -1 since 0 is no kids mode
52
+ else
53
+ if currently_enabled
54
+ # disable kids mode
55
+ all("div[itc-checkbox='tempPageContent.ratingDialog.madeForKidsChecked'] > * > a").last.click
56
+ end
57
+ end
58
+
41
59
  # Check if there is a warning or error message because of this rating
42
60
  error_message = first("p[ng-show='tempPageContent.ratingDialog.showErrorMessage']")
43
61
  Helper.log.error error_message.text if error_message
@@ -1,5 +1,5 @@
1
- module FastlaneCore
2
- class ItunesConnect
1
+ module Deliver
2
+ class ItunesConnect < FastlaneCore::ItunesConnect
3
3
  # This method creates a new version of your app using the
4
4
  # iTunesConnect frontend. This will happen directly after calling
5
5
  # this method.
@@ -1,6 +1,6 @@
1
- module FastlaneCore
1
+ module Deliver
2
2
  # For all the information reading (e.g. version number)
3
- class ItunesConnect
3
+ class ItunesConnect < FastlaneCore::ItunesConnect
4
4
  # This method will fetch the current status ({Deliver::App::AppStatus})
5
5
  # of your app and return it. This method uses a headless browser
6
6
  # under the hood, so it might take some time until you get the result
@@ -1,8 +1,8 @@
1
1
  require 'open-uri'
2
2
 
3
- module FastlaneCore
3
+ module Deliver
4
4
  # For all the information reading (e.g. version number)
5
- class ItunesConnect
5
+ class ItunesConnect < FastlaneCore::ItunesConnect
6
6
  ALL_INFORMATION_URL = "https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/ra/apps/version/"
7
7
 
8
8
  # This method will download all existing app screenshots
@@ -1,6 +1,6 @@
1
- module FastlaneCore
1
+ module Deliver
2
2
  # Everything related to submitting the app
3
- class ItunesConnect
3
+ class ItunesConnect < FastlaneCore::ItunesConnect
4
4
  BUTTON_ADD_NEW_BUILD = 'Click + to add a build before you submit your app.'
5
5
 
6
6
  # This will put the latest uploaded build as a new beta build
@@ -186,9 +186,9 @@ module Deliver
186
186
  "-u \"#{username}\"",
187
187
  "-p '#{escaped_password(password)}'",
188
188
  "-f '#{source}'",
189
+ ENV["DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS"], # that's here, because the user might overwrite the -t option
189
190
  "-t 'Signiant'",
190
- "-k 100000",
191
- ENV["DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS"]
191
+ "-k 100000"
192
192
  ].join(' ')
193
193
  end
194
194
 
@@ -1,3 +1,3 @@
1
1
  module Deliver
2
- VERSION = "0.7.12"
2
+ VERSION = "0.7.13"
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.7.12
4
+ version: 0.7.13
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-02-26 00:00:00.000000000 Z
11
+ date: 2015-03-06 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.1.4
19
+ version: 0.2.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.1.4
26
+ version: 0.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -236,7 +236,7 @@ files:
236
236
  - lib/deliver/pdf_generator.rb
237
237
  - lib/deliver/testflight.rb
238
238
  - lib/deliver/version.rb
239
- homepage: http://fastlane.tools
239
+ homepage: https://fastlane.tools
240
240
  licenses:
241
241
  - MIT
242
242
  metadata: {}