birdel 2.3.4 → 2.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f097a85055669dba2a0eaea384768916c0749056aed6b586d4cb99dd7b4d2115
4
- data.tar.gz: 1edee00a6039c88408dca0c086571a724b6845ad95eab856f003226cb4e8e603
3
+ metadata.gz: 2f36f8950b9b539f55965ae74ee6f02ebcf4768eb185cdbd100c517cee577ddb
4
+ data.tar.gz: 7afd29f47a0b52a097834cbc26a4aa563ac381ade57e8e73e32386266060a63e
5
5
  SHA512:
6
- metadata.gz: d9a8ba95f76785e34d1435168ba9d8309c409d804f570eca1c90621a636b011cfb835bc9c675c531bcbbf0be2398448176a7b2104afb410d55472938930baf4a
7
- data.tar.gz: 1ca7abdfb806614b04b9f35c773d19ccc6621acb27028101ea0f820c187c8b24fc5ac4646cf24dc690604c1f83688fe417c5386c21e674bb456d7d004f7beb08
6
+ metadata.gz: 848c6e2839ebe4cf6ff68e6ca72e4c54a4db5de4c1c5baab5a6053dc839d35b5bb13692213b86b6e83aab5b22907e95512e543e6678dae76328f563e46ce60da
7
+ data.tar.gz: 1c5eb6a5c9c32b73d0c0592220429c836edf252ef25809b406d97d844a5d3758b17dd8595f0da9ae132d36dee1aef5ad3b3fbb8ab77997668badb8c22d9f9e95
data/lib/birdel/cli.rb CHANGED
@@ -3,12 +3,8 @@ require 'birdel'
3
3
  module Birdel
4
4
  class CLI
5
5
  def self.start(args)
6
- p args
7
6
  method_name = args[0]
8
7
  method_param = args[1]
9
- p method_name
10
- p method_param
11
- p "--"
12
8
  if method_name == "synth"
13
9
  Birdel::Synth.roll
14
10
  elsif method_name == "gcom"
@@ -1,7 +1,6 @@
1
1
  module Birdel
2
2
  module Com
3
3
  def self.roll(component_ns)
4
- p component_ns
5
4
  app_path = Pathname.new("#{Dir.pwd}")
6
5
  components_path = app_path.join("app", "components")
7
6
  component_ns_camelized = component_ns.split("::").map(&:camelize).join("::")
@@ -39,7 +39,7 @@ module Birdel
39
39
  if full_css_entry_path.join(file[:name]).exist?
40
40
  puts "File #{full_css_entry_path.join(file[:name]).relative_path_from(myapp_path)} already exists".red.bold
41
41
  else
42
- puts full_css_entry_path.join(file[:name]).to_s.green.bold
42
+ puts "+ #{full_css_entry_path.join(file[:name]).relative_path_from(myapp_path).to_s}".green.bold
43
43
  full_css_entry_path.join(file[:name]).open("w") do |f|
44
44
  f.write(file[:content])
45
45
  end
@@ -47,6 +47,8 @@ module Birdel
47
47
  end
48
48
  end
49
49
 
50
+ p " "
51
+
50
52
  if full_js_entry_path.exist?
51
53
  puts "Entry #{full_js_entry_path.relative_path_from(myapp_path)} already exists".red.bold
52
54
  else
@@ -54,8 +56,6 @@ module Birdel
54
56
  js_entry_files = [
55
57
  { name: "components.js", content: "" },
56
58
  { name: "components.js.json", content: "[]" },
57
- { name: "precomponents.js", content: "" },
58
- { name: "precomponents.js.json", content: "[]" },
59
59
  { name: "index.js", content: "import \"./components\";"},
60
60
  ]
61
61
  js_entry_files.each do |file|
@@ -81,6 +81,7 @@ module Birdel
81
81
  css_index_filename_without_extension = css_index_path.basename('.css').to_s
82
82
  css_index_formatted_path = "#{css_index_directory_path}/#{css_index_filename_without_extension}"
83
83
 
84
+ p " "
84
85
 
85
86
  if full_layout_entry_path.exist?
86
87
  puts "Entry #{full_layout_entry_path.relative_path_from(myapp_path)} already exists".red.bold
@@ -46,7 +46,7 @@ module Birdel
46
46
  if full_component_path.exist?
47
47
  file_name = component_path_string.split("/").last
48
48
  puts "+ #{file_name}.css".green
49
- components_css.puts "@import url(\"#{full_component_path.relative_path_from(entry_folder_path).to_s}\");"
49
+ components_css_file.puts "@import url(\"#{full_component_path.relative_path_from(entry_folder_path).to_s}\");"
50
50
  else
51
51
  puts "Component not found: #{component_path_string}".red
52
52
  puts "Check => #{components_json.relative_path_from(root_dir_path)}".red.bold
@@ -54,13 +54,13 @@ module Birdel
54
54
  end
55
55
  end
56
56
  end
57
- puts "(css-success) Building finished.".green
57
+ puts "(css-success) Building finished.".yellow
58
58
  puts ""
59
59
 
60
60
  js_bentries_path.each_child do |entry_folder_path|
61
61
  index_path = entry_folder_path.join("components.js")
62
62
  components_json_path = entry_folder_path.join("components.js.json")
63
- puts "(js) Building #{index_path.relative_path_from(app_folder_path)}".green
63
+ puts "(js) Building #{index_path.relative_path_from(app_folder_path)}".yellow
64
64
  puts "-> (js) Components...".yellow
65
65
  File.truncate(index_path, 0)
66
66
  component_controllers = JSON.parse(File.read(components_json_path))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Birdel
4
- VERSION = "2.3.4"
4
+ VERSION = "2.3.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: birdel
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serhii