birdel 2.3.5 → 3.0.1

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: 625f0866c72775c4a71eea1d69e30ff32a31a7eb6f9d65fb8d5e28991f655e15
4
- data.tar.gz: 7238894031f457dd4f34f3e2a8c0c93372340ebc006a927c34f3b4f782cc2bbe
3
+ metadata.gz: 40599925aad88f556556c06495eb89752d71a8865a71debbb1347bbc34890a1b
4
+ data.tar.gz: c7365b76eaa804f685b01e96b40348620c07e3fbaacad38d34a6333b968fd438
5
5
  SHA512:
6
- metadata.gz: b35139f93ddcb5688303f298b171f50af9733466f16e6ac2dceb858cec92fa606cfc39f349a469b5b969f11cacb0afb6935ec4596b3339de71290706d77ba14c
7
- data.tar.gz: f157c950458ddd04b410bf84e58bca139ca5d81dc609af3e9204a410d52bce2d1a7507d6a4207456c7ca295dea80555a823190ca84004c9a315434a62f4913a7
6
+ metadata.gz: 9422f02523f26ab5273fbb0b120280d3c0ebdf0ae952bf9d159237b964220dd2e1d3203582a7000a1be377f6aaffb4d97d539e8cd64f98bb83b7e87f5e783dc7
7
+ data.tar.gz: d11f384d3fd2858294e609cce4399f950be2acce572a71ec74b0891cb10ac69d3362788ac88466f61603616f5fdb9cf820632119b0c7858aa8e463ef886621a4
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
+ puts ""
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
+ puts ""
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
@@ -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.5"
4
+ VERSION = "3.0.1"
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.5
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serhii