deliver 1.6.2 → 1.6.3

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: 8a5ac4e91c50690b7453f12f37e364d3b0d5c2a9
4
- data.tar.gz: d5ff925845ead11f1a408bb1ec648c1bd8463ef6
3
+ metadata.gz: 4d944187af1f09ddb8dbd35ba7af26a8e4054a83
4
+ data.tar.gz: 0dfc83745602d624642e836a6b7c7fab5c9197a1
5
5
  SHA512:
6
- metadata.gz: 272aef64218df3e1cd7bf7c8c8c80a51c767f9d476ad9f31a7ce7582f5c05dfc1b505e81427723470dfeaae6565ccc72b38fe91e2907034775a649c702bea8de
7
- data.tar.gz: 251f008d352c9174b22b209d2660b345a30f7025bba57397dbc13a84ca6770e6184b82c503803b624f20cec3dadf072632bbd3b1ee59ec4d224658105732f1f1
6
+ metadata.gz: 237217436cb0d0bd19912f017024d9e49dfafbde43dc0cd0f7dd187ab4091a94687090a8d67ff2eb89327c434e4e2d6aa56e36ad9b03adbfeea62317d671d41f
7
+ data.tar.gz: 2421573adb3cbfeb1cdae730df0be7a9b134cf5888677bc3a21dddedc5ccdeced74b3bfe66b3b67e01e7575439e6f4554298acd4a521187394ce05eb856afc5e
@@ -11,6 +11,7 @@ require 'deliver/upload_assets'
11
11
  require 'deliver/submit_for_review'
12
12
  require 'deliver/app_screenshot'
13
13
  require 'deliver/html_generator'
14
+ require 'deliver/loader'
14
15
 
15
16
  require 'spaceship'
16
17
  require 'fastlane_core'
@@ -0,0 +1,13 @@
1
+ require 'fastlane_core/languages'
2
+
3
+ module Deliver
4
+ module Loader
5
+ ALL_LANGUAGES = FastlaneCore::Languages::ALL_LANGUAGES.map(&:downcase).freeze
6
+
7
+ def self.language_folders(root)
8
+ Dir.glob(File.join(root, '*')).select do |path|
9
+ File.directory?(path) && ALL_LANGUAGES.include?(File.basename(path).downcase)
10
+ end.sort
11
+ end
12
+ end
13
+ end
@@ -95,11 +95,8 @@ module Deliver
95
95
  return if options[:skip_metadata]
96
96
 
97
97
  # Load localised data
98
- Dir.glob(File.join(options[:metadata_path], "*")).each do |lng_folder|
99
- next unless File.directory?(lng_folder) # We don't want to read txt as they are non localised
100
-
98
+ Loader.language_folders(options[:metadata_path]).each do |lng_folder|
101
99
  language = File.basename(lng_folder)
102
-
103
100
  (LOCALISED_VERSION_VALUES + LOCALISED_APP_VALUES).each do |key|
104
101
  path = File.join(lng_folder, "#{key}.txt")
105
102
  next unless File.exist?(path)
@@ -57,21 +57,23 @@ module Deliver
57
57
 
58
58
  screenshots = []
59
59
  extensions = '{png,jpg,jpeg}'
60
- Dir.glob(File.join(options[:screenshots_path], "*"), File::FNM_CASEFOLD).sort.each do |lng_folder|
61
- language = File.basename(lng_folder)
62
-
60
+ Loader.language_folders(options[:screenshots_path]).each do |lng_folder|
63
61
  files = Dir.glob(File.join(lng_folder, "*.#{extensions}"))
64
62
  next if files.count == 0
65
63
 
66
64
  prefer_framed = Dir.glob(File.join(lng_folder, "*_framed.#{extensions}")).count > 0
67
65
 
66
+ language = File.basename(lng_folder)
68
67
  files.each do |path|
69
- if prefer_framed && !path.downcase.include?("_framed.#{extensions}") && !path.downcase.include?("watch")
70
- next
71
- end
72
-
73
- if !prefer_framed && path.downcase.include?("_framed.#{extensions}")
74
- next
68
+ if path.downcase.include?("_framed.")
69
+ # That's cool
70
+ else
71
+ if path.downcase.include?("watch")
72
+ # Watch doesn't support frames (yet)
73
+ else
74
+ # That might not be cool... if that screenshot is not framed but we only want framed
75
+ next if prefer_framed
76
+ end
75
77
  end
76
78
 
77
79
  screenshots << AppScreenshot.new(path, language)
@@ -1,4 +1,4 @@
1
1
  module Deliver
2
- VERSION = "1.6.2"
2
+ VERSION = "1.6.3"
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.6.2
4
+ version: 1.6.3
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-12-03 00:00:00.000000000 Z
11
+ date: 2015-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -224,6 +224,20 @@ dependencies:
224
224
  - - "~>"
225
225
  - !ruby/object:Gem::Version
226
226
  version: '0.34'
227
+ - !ruby/object:Gem::Dependency
228
+ name: fakefs
229
+ requirement: !ruby/object:Gem::Requirement
230
+ requirements:
231
+ - - ">="
232
+ - !ruby/object:Gem::Version
233
+ version: '0'
234
+ type: :development
235
+ prerelease: false
236
+ version_requirements: !ruby/object:Gem::Requirement
237
+ requirements:
238
+ - - ">="
239
+ - !ruby/object:Gem::Version
240
+ version: '0'
227
241
  description: Upload screenshots, metadata and your app to the App Store using a single
228
242
  command
229
243
  email:
@@ -245,6 +259,7 @@ files:
245
259
  - lib/deliver/detect_values.rb
246
260
  - lib/deliver/download_screenshots.rb
247
261
  - lib/deliver/html_generator.rb
262
+ - lib/deliver/loader.rb
248
263
  - lib/deliver/options.rb
249
264
  - lib/deliver/runner.rb
250
265
  - lib/deliver/setup.rb
@@ -274,7 +289,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
289
  version: '0'
275
290
  requirements: []
276
291
  rubyforge_project:
277
- rubygems_version: 2.4.0
292
+ rubygems_version: 2.4.6
278
293
  signing_key:
279
294
  specification_version: 4
280
295
  summary: Upload screenshots, metadata and your app to the App Store using a single