redbreast 1.3.1 → 1.4.0

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
  SHA256:
3
- metadata.gz: a7ce16fccb9741bca97a4f08ef76c0bb64ce67686aa48edbe8a7a426aca2951c
4
- data.tar.gz: 4ee49fe8fa9a16e0f6a8c1631b59fc8bd3b23d1bad9de3e706949777d8648104
3
+ metadata.gz: 0af297ef6e37a2914f39cefda66be835e4d8550728f87faebf68748843ba0e8d
4
+ data.tar.gz: c2b0b4251ae80070c635453c9988eec30d285e2a3e7cab4607a14aa10f54d220
5
5
  SHA512:
6
- metadata.gz: 7db01230335e6eca956d71cdebc2611d7af0855fe4183b472dcfd45c08263c1e65b3b0c074cd8df12d1d0997620d570503e5ad9527a0fcb401f21c3663480fb7
7
- data.tar.gz: 4779524e2b16d31b3d056334d2233a0bb70fd0c65863dd8769f049da8d40973bf76f20c18105289bee8b53a326d1751cc0479ace42ded5c9fb1a8b1bf775c91b
6
+ metadata.gz: 7af2661161d5e3b4c6fd4764d4836065eb136494dbb70ff0767c51cb847ab66f9c6c631429267072a74fb255f22baa17bab18f95d7813ef287a21278a4d01690
7
+ data.tar.gz: 806e793afb6fe385b2207b96cc60bf239f58f249d1da38d048bd5f884c9d9ff3e76436dd124c0b983f06845898548040afff714b8be3353091daec87f2ea0d28
@@ -10,19 +10,21 @@ module Redbreast
10
10
  end
11
11
 
12
12
  def call
13
- return if bundles.first[:outputSourcePathColors].nil?
13
+ filtered_bundles = bundles.select { |bundle| bundle[:outputSourcePathColors] }
14
+ return if filtered_bundles.empty?
14
15
 
15
16
  prompt.say('Generating color resources...')
16
- generate_color_sources(bundles, programming_language, app_name)
17
+ generate_color_sources(filtered_bundles, app_name)
17
18
  success('Color resources generated!')
18
19
  end
19
20
 
20
21
  private
21
22
 
22
- def generate_color_sources(bundles, programming_language, app_name)
23
+ def generate_color_sources(bundles, app_name)
23
24
  bundles.each do |bundle|
24
25
  color_names = pull_asset_names(bundle[:assetsSearchPath])
25
- write_colors(color_names, bundle, programming_language, app_name)
26
+ bundle_language = bundle[:language] || programming_language
27
+ write_colors(color_names, bundle, bundle_language, app_name)
26
28
  end
27
29
  end
28
30
 
@@ -14,16 +14,17 @@ module Redbreast
14
14
  return if filtered_bundles.empty?
15
15
 
16
16
  prompt.say('Generating color test resources...')
17
- generate_test_sources(bundles, programming_language, app_name)
17
+ generate_test_sources(bundles, app_name)
18
18
  success('Color test resources generated!')
19
19
  end
20
20
 
21
21
  private
22
22
 
23
- def generate_test_sources(bundles, programming_language, app_name)
23
+ def generate_test_sources(bundles, app_name)
24
24
  bundles.each do |bundle|
25
25
  color_names = pull_asset_names(bundle[:assetsSearchPath])
26
- write_tests(color_names, bundle, programming_language, app_name)
26
+ bundle_language = bundle[:language] || programming_language
27
+ write_tests(color_names, bundle, bundle_language, app_name)
27
28
  end
28
29
  end
29
30
 
@@ -10,19 +10,21 @@ module Redbreast
10
10
  end
11
11
 
12
12
  def call
13
- return if bundles.first[:outputSourcePathImages].nil?
13
+ filtered_bundles = bundles.select { |bundle| bundle[:outputSourcePathImages] }
14
+ return if filtered_bundles.empty?
14
15
 
15
16
  prompt.say('Generating image resources...')
16
- generate_image_sources(bundles, programming_language, app_name)
17
+ generate_image_sources(filtered_bundles, app_name)
17
18
  success('Image resources generated!')
18
19
  end
19
20
 
20
21
  private
21
22
 
22
- def generate_image_sources(bundles, programming_language, app_name)
23
+ def generate_image_sources(bundles, app_name)
23
24
  bundles.each do |bundle|
24
25
  image_names = pull_asset_names(bundle[:assetsSearchPath])
25
- write_images(image_names, bundle, programming_language, app_name)
26
+ bundle_language = bundle[:language] || programming_language
27
+ write_images(image_names, bundle, bundle_language, app_name)
26
28
  end
27
29
  end
28
30
 
@@ -14,16 +14,17 @@ module Redbreast
14
14
  return if filtered_bundles.empty?
15
15
 
16
16
  prompt.say('Generating images test resources...')
17
- generate_test_sources(bundles, programming_language, app_name)
17
+ generate_test_sources(bundles, app_name)
18
18
  success('Images test resources generated!')
19
19
  end
20
20
 
21
21
  private
22
22
 
23
- def generate_test_sources(bundles, programming_language, app_name)
23
+ def generate_test_sources(bundles, app_name)
24
24
  bundles.each do |bundle|
25
25
  image_names = pull_asset_names(bundle[:assetsSearchPath])
26
- write_tests(image_names, bundle, programming_language, app_name)
26
+ bundle_language = bundle[:language] || programming_language
27
+ write_tests(image_names, bundle, bundle_language, app_name)
27
28
  end
28
29
  end
29
30
 
@@ -1,3 +1,3 @@
1
1
  module Redbreast
2
- VERSION = '1.3.1'
2
+ VERSION = '1.4.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redbreast
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maroje
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-21 00:00:00.000000000 Z
11
+ date: 2023-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler