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 +4 -4
- data/lib/deliver.rb +1 -0
- data/lib/deliver/loader.rb +13 -0
- data/lib/deliver/upload_metadata.rb +1 -4
- data/lib/deliver/upload_screenshots.rb +11 -9
- data/lib/deliver/version.rb +1 -1
- metadata +18 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d944187af1f09ddb8dbd35ba7af26a8e4054a83
|
4
|
+
data.tar.gz: 0dfc83745602d624642e836a6b7c7fab5c9197a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 237217436cb0d0bd19912f017024d9e49dfafbde43dc0cd0f7dd187ab4091a94687090a8d67ff2eb89327c434e4e2d6aa56e36ad9b03adbfeea62317d671d41f
|
7
|
+
data.tar.gz: 2421573adb3cbfeb1cdae730df0be7a9b134cf5888677bc3a21dddedc5ccdeced74b3bfe66b3b67e01e7575439e6f4554298acd4a521187394ce05eb856afc5e
|
data/lib/deliver.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
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)
|
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: 1.6.
|
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-
|
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.
|
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
|