deliver 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/assets/DeliverfileExample +2 -0
- data/lib/deliver/app_metadata.rb +5 -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: e92daeb5d5f0058937a3e2b177303f2fdcfc001f
|
4
|
+
data.tar.gz: 8dd64896cae88f3da1e2a7d74ea25bb6791557e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1989b0ba55fe2fa98287575d73b08c4d49f492d0cb882dc5c99cefbf9272106c2af02fd1a0ffd83a34bf194dd03a17a12286696ab362bbb19d3c48f9cba24594
|
7
|
+
data.tar.gz: cb746319220f76fd3b4c09926850c89161ec3e2c9268359cbc3120f5629f6cb2bf25daaae40cb60f64b5dfd3f03e73153e40124adf20904f000e0396aeb34e0f
|
data/README.md
CHANGED
@@ -300,7 +300,7 @@ You can easily create screenshots completely automatically in the background usi
|
|
300
300
|
- Run ```snapshot init``` in your project folder
|
301
301
|
- You can edit the new ```snapshot.js``` file with your UI Automation code
|
302
302
|
- Run ```snapshot``` to test if the screenshots work as expected
|
303
|
-
- Remove the line ```
|
303
|
+
- Remove the line ```screenshots_path``` from your ```Deliverfile``` to automatically create new screenshots for each deployment.
|
304
304
|
|
305
305
|
From now on, when you start ```deliver```, it will first create the new screenshots for you, which then will be uploaded to iTunes Connect.
|
306
306
|
|
data/lib/deliver/app_metadata.rb
CHANGED
@@ -300,16 +300,18 @@ module Deliver
|
|
300
300
|
raise AppMetadataParameterError.new("Parameter needs to be an hash, containg strings with the new description") unless hash.kind_of?Hash
|
301
301
|
|
302
302
|
hash.each do |language, current_path|
|
303
|
-
resulting_path = "#{current_path}/**/*.{png,
|
303
|
+
resulting_path = "#{current_path}/**/*.{png,jpg,jpeg}"
|
304
304
|
|
305
305
|
raise AppMetadataParameterError.new(INVALID_LANGUAGE_ERROR) unless Languages::ALL_LANGUAGES.include?language
|
306
306
|
|
307
|
-
|
307
|
+
# https://stackoverflow.com/questions/21688855/
|
308
|
+
# File::FNM_CASEFOLD = ignore case
|
309
|
+
if Dir.glob(resulting_path, File::FNM_CASEFOLD).count == 0
|
308
310
|
Helper.log.error("No screenshots found at the given path '#{resulting_path}'")
|
309
311
|
else
|
310
312
|
self.clear_all_screenshots(language)
|
311
313
|
|
312
|
-
Dir
|
314
|
+
Dir.glob(resulting_path, File::FNM_CASEFOLD).sort.each do |path|
|
313
315
|
add_screenshot(language, Deliver::AppScreenshot.new(path))
|
314
316
|
end
|
315
317
|
end
|
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: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|