deliver 1.1.1 → 1.1.2

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: 0a8b650f488ed63a642a8e64f7e08747b32c1751
4
- data.tar.gz: f93802deb4101f138b6dc1cffd419c68bfd55ae3
3
+ metadata.gz: ffed9f20a1ffa1f977ffdc5e4834b9746aff0969
4
+ data.tar.gz: c7d8303e3f631c689841aef920db146d00724c1c
5
5
  SHA512:
6
- metadata.gz: 70b724356499554a47cd489d87bdbadb1ae5da1b1405acd2dc87272fdf015b50ba9424d03bd920a9bae68bf5136dbe37aeb4202aa775d1c42d4bb8a876f8c4de
7
- data.tar.gz: 50bfbd3edc106c63721a3f4679e38dd75c6b0a3bae9095bd3ee59d97def77d7ee4816a958bdcd4975b51d52bc963c15d23cb7e3477e2f07783daa86cd31568ed
6
+ metadata.gz: 0c153be49bb375ee14e6298653e12529fd563106a9467ffb125bd1d7977e53b36bb542335c460699417a87d5d094f4da4e0a35278019554a5e8246748cd726ae
7
+ data.tar.gz: 43b50e4c92f00ad72e77d00b6eb515eb5004655bad47236bf703c136fd1c38fb9ca77d73b363e4af2d3bfcbaa6d9ccc3db40594635018a90d439295b2bdd3888
@@ -52,7 +52,7 @@ module Deliver
52
52
  ScreenSize::IOS_55 => "iphone6Plus",
53
53
  ScreenSize::IOS_IPAD => "ipad",
54
54
  ScreenSize::MAC => "mac",
55
- ScreenSize::IOS_APPLE_WATCH => "Watch"
55
+ ScreenSize::IOS_APPLE_WATCH => "watch"
56
56
  }
57
57
  return matching[self.screen_size]
58
58
  end
@@ -46,16 +46,20 @@ module Deliver
46
46
 
47
47
  def collect_screenshots(options)
48
48
  screenshots = []
49
+ extensions = '{png,jpg,jpeg}'
49
50
  Dir.glob(File.join(options[:screenshots_path], "*"), File::FNM_CASEFOLD).sort.each do |lng_folder|
50
51
  language = File.basename(lng_folder)
51
52
 
52
- files = Dir.glob(File.join(lng_folder, '*.{png,PNG,jpg,JPG}'))
53
+ files = Dir.glob(File.join(lng_folder, "*.#{extensions}"))
53
54
  next if files.count == 0
54
55
 
55
- prefer_framed = Dir.glob(File.join(lng_folder, '*_framed.{png,PNG,jpg,JPG}')).count > 0
56
+ prefer_framed = Dir.glob(File.join(lng_folder, '*_framed.#{extensions}')).count > 0
56
57
 
57
58
  files.each do |path|
58
- next if prefer_framed && !path.include?("_framed.{png,PNG,jpg,JPG}")
59
+ if prefer_framed && !path.downcase.include?("_framed.#{extensions}") && !path.downcase.include?("watch")
60
+ next
61
+ end
62
+
59
63
  screenshots << AppScreenshot.new(path, language)
60
64
  end
61
65
  end
@@ -1,4 +1,4 @@
1
1
  module Deliver
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  DESCRIPTION = 'Upload screenshots, metadata and your app to the App Store using a single command'
4
4
  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: 1.1.1
4
+ version: 1.1.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: 2015-09-30 00:00:00.000000000 Z
11
+ date: 2015-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core