deliver 0.4.1 → 0.4.2

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: 52e8b70dfa6c0a3bcb2392bb73968de6761b070f
4
- data.tar.gz: 2e89716623be26e9086410b6b5c1ec635a1dd7ef
3
+ metadata.gz: e92daeb5d5f0058937a3e2b177303f2fdcfc001f
4
+ data.tar.gz: 8dd64896cae88f3da1e2a7d74ea25bb6791557e9
5
5
  SHA512:
6
- metadata.gz: ccc2a8bebf9154313bcd5408f004d1478924b33b8a50938a73e30c955b6ddf83e406067e75bdef176c16535e1a1d344d5a55fb220e40ea3995cbf3f8190a90dd
7
- data.tar.gz: b30db3e33eace1b85660bf6c2155f0cf0f19fc82675b48d09778b7d1e092c22f795ab4a89f9219357091d26a305e859550c45285091e25ce8a36dd47d5e37f72
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 ```screenshot_folder``` from your ```Deliverfile``` to automatically create new screenshots for each deployment.
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
 
@@ -57,6 +57,8 @@ end
57
57
 
58
58
  # ipa "./latest.ipa" # this can be used, if you prefer manually building the ipa file
59
59
 
60
+ # beta_ipa "./ad_hoc_build.ipa" # upload ipa file using `deliver --beta`
61
+
60
62
  # unit_tests do
61
63
  # system("xctool test")
62
64
  # end
@@ -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,PNG,jpg,JPG,jpeg,JPEG}"
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
- if Dir[resulting_path].count == 0
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[resulting_path].sort.each do |path|
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
@@ -1,3 +1,3 @@
1
1
  module Deliver
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
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.4.1
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: 2014-12-18 00:00:00.000000000 Z
11
+ date: 2015-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json