solara 0.7.1 → 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: 46ea56483f52c7dc15a2a1fa784f8071a97d05d0e38f4e0dac462551b74a282a
4
- data.tar.gz: e76afce57fbb369b687e6350ee5f3021e054c7ed5af58f272ba3f3a0e3fd74fc
3
+ metadata.gz: 5f359a3ba4f7f58b06a5c26efa077d45900f5d98952c8ffb85ed80407b5060b5
4
+ data.tar.gz: 1f9bf9dc53e840e154f7c8ad3474f04cf4423bbd0ee97f201aa751e1a03423d0
5
5
  SHA512:
6
- metadata.gz: da4d00729e4914590d29740e5b7dfae4cf06b6b6d78c0f082fa0c9f6841a95e63edd7d3e8d01ddcc417bfd56cc613a2917af0a3b59401fb28cd5450f8ac35831
7
- data.tar.gz: a6cd734730a731cd495c05fc6eb75ae0dc61eeb6b9771851e50ae7a15b53c4413ce5ee1d56557aa8d67e931c7143a6b5bd1d930b1f564d414eff3cd9b00f9cea
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)
@@ -1,3 +1,3 @@
1
1
  module Solara
2
- VERSION = "0.7.1"
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.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Malek Kamel