solara 0.7.0 → 0.7.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
  SHA256:
3
- metadata.gz: ee9572ad8162826e8ebd8ed6b9f5e6a0ba5c2ef23ecec56ed610206becc3e80f
4
- data.tar.gz: d0cfbf2ba68d160fdf531f3148e216662063d2a9182c341ea22e1266e283bcf5
3
+ metadata.gz: 5f359a3ba4f7f58b06a5c26efa077d45900f5d98952c8ffb85ed80407b5060b5
4
+ data.tar.gz: 1f9bf9dc53e840e154f7c8ad3474f04cf4423bbd0ee97f201aa751e1a03423d0
5
5
  SHA512:
6
- metadata.gz: 7e2e2c181701aa9af6099694beedc3f68e926446e8a1d67b4841e66b5ecf1da8fad76c9b479a52738f0bf7a48551328b7058c0bbafcc1574a68b9b388b37035a
7
- data.tar.gz: e3e2d47d57ed66593435bb6294013c99711177bfadb4ae25ea74d2ebb1d511abc0eb98dd7fa9f4579106cf7ec26cf76393294b7d4fd9b6c89aa0c679343ef8e3
6
+ metadata.gz: bbf72d63463d30bd732fc79bb254c66aeba2f65773bb488ac697688656b462860c3e1b9b0ac4a0d506ccc7d249dad2cf4130b2e0f7da06d8d1862765f8cf81dc
7
+ data.tar.gz: 36ddb1dcdbcf3c3c0540ea5c78461083bc5fc98751a94e864cd81278ead26919006b80bd037d2a57d5d9be557a0b7916a829e04420366abb99db7ba6fb4ad905
@@ -40,11 +40,13 @@ class TemplateManager
40
40
  end
41
41
 
42
42
  def templates
43
- result = parse_configurations
44
- collect_json_templates.each do |template|
45
- result << template unless result.any? { |r| r['filename'] == template['filename'] }
43
+ result = parse_configurations.compact
44
+ user_defined_items = collect_user_defined_json.compact
45
+ user_defined_items.each do |user_defined_item|
46
+ next if result.any? { |r| r[:filename] == user_defined_item[:filename] }
47
+ result << user_defined_item
46
48
  end
47
- result.compact
49
+ result
48
50
  rescue StandardError => e
49
51
  Solara.logger.error("Failed to generate templates: #{e.message}")
50
52
  []
@@ -71,7 +73,7 @@ class TemplateManager
71
73
  []
72
74
  end
73
75
 
74
- def collect_json_templates
76
+ def collect_user_defined_json
75
77
  directories = [
76
78
  FilePath.brand_global_json_dir,
77
79
  FilePath.brand_json_dir(@brand_key)
@@ -32,7 +32,6 @@ class GitignoreManager
32
32
  end
33
33
 
34
34
  def add_item(item)
35
- puts item
36
35
  existing_items = read_gitignore
37
36
 
38
37
  if existing_items.include?(item)
@@ -63,7 +63,8 @@ class JsonManifestProcessor
63
63
  file_name = File.basename(file_path)
64
64
  # Skip files that were already processed via manifest
65
65
  next if manifest_files.include?(file_name)
66
- next if file_name == 'json_manifest.json'
66
+ ignored = %w[flutter_json_manifest.json android_json_manifest.json ios_json_manifest.json global_json_manifest.json]
67
+ next if ignored.any? { |item| item == file_name }
67
68
 
68
69
  class_name = derive_class_name(file_name)
69
70
  process_json_file(file_path, class_name, {}, false)
@@ -1,3 +1,3 @@
1
1
  module Solara
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Malek Kamel