component_library 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: b4185601bb49faa1ee46a96f5c110cda52f8e52e
4
- data.tar.gz: b0371017de86bfc068d7cd5883a97b33a3e1cf06
3
+ metadata.gz: 3968139d4c0cb9e1f34922a1349b0fd9e68a1dcb
4
+ data.tar.gz: 281c00ea8a854d116adb11d5861a81d131c5aca1
5
5
  SHA512:
6
- metadata.gz: 26b2065319be021705f565d42aa15641655bcc78df317403bcc36f501d4fea6bea2e6f6f66f6618f2da8b8b2f15f1ff7b0e37b15f4399b62bd8a68a38f1d8923
7
- data.tar.gz: 5c04680d48bbc96677b13b5cb5bc1cbea1fefb36765fba89e16244dab2426617d1c810a1ed1be5b1953a81155add057b1d81c95b668f41c1ba651a2da0c70286
6
+ metadata.gz: 96f8452394e12929ddf9cd19b5363eb531a5b79346ae908ce76b65f79b2e0e988deca943090b0cd8a30501deff202813644da54db9d50bf77b39b887bfbadece
7
+ data.tar.gz: c145bcf9cd8c37f64faa0aca07c5444323c50f6d8933b74fc0101e59aa034429d4de04bb898029b65d07d12d61e827a078facafdd7cd665772c359dcfa60b8ab
@@ -1,7 +1,7 @@
1
1
  module ComponentLibrary
2
2
  class Engine < ::Rails::Engine
3
3
  initializer "component_library.assets.precompile" do |app|
4
- app.config.assets.precompile += ["#{ComponentLibrary.stylesheet_path}.css", ComponentLibrary.javascript_path]
4
+ app.config.assets.precompile += ["#{ComponentLibrary.stylesheet_path}.css", "#{ComponentLibrary.javascript_path}.js"]
5
5
  end
6
6
 
7
7
  config.generators do |g|
@@ -1,3 +1,3 @@
1
1
  module ComponentLibrary
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -0,0 +1,10 @@
1
+ Description:
2
+ Explain the generator
3
+
4
+ Example:
5
+ rails generate component_library:install components
6
+
7
+ This will create:
8
+ config/initializers/component_library.rb
9
+ app/views/layouts/component_library.html.erb
10
+ app/views/components/_headers.html.erb
@@ -0,0 +1,9 @@
1
+ class ComponentLibrary::InstallGenerator < Rails::Generators::NamedBase
2
+ source_root File.expand_path('../templates', __FILE__)
3
+
4
+ def copy_initializer_file
5
+ template "component_library.rb.erb", "config/initializers/component_library.rb"
6
+ copy_file "layout.html.erb", "app/views/layouts/component_library.html.erb"
7
+ copy_file "_headers.html.erb", "app/views/#{file_name}/_headers.html.erb"
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ <h1>Header 1</h1>
2
+ <h2>Header 2</h2>
3
+ <h3>Header 3</h3>
4
+ <h4>Header 4</h4>
5
+ <h5>Header 5</h5>
@@ -0,0 +1,4 @@
1
+ ComponentLibrary.setup do |config|
2
+ config.root_path = '<%= file_name %>'
3
+ config.root_directory = '<%= file_name %>'
4
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Component</title>
5
+ <%= stylesheet_link_tag 'application', media: 'all' %>
6
+ <%= stylesheet_link_tag ComponentLibrary.stylesheet_path, media: 'all' %>
7
+ </head>
8
+ <body>
9
+
10
+ <%= yield %>
11
+
12
+ <%= javascript_include_tag ComponentLibrary.javascript_path %>
13
+ </body>
14
+ </html>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: component_library
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich Archer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-10 00:00:00.000000000 Z
11
+ date: 2016-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -80,7 +80,6 @@ extensions: []
80
80
  extra_rdoc_files: []
81
81
  files:
82
82
  - MIT-LICENSE
83
- - README.rdoc
84
83
  - Rakefile
85
84
  - app/assets/javascripts/_component_library/_prism.js
86
85
  - app/assets/javascripts/_component_library/library.js
@@ -97,6 +96,11 @@ files:
97
96
  - lib/component_library.rb
98
97
  - lib/component_library/engine.rb
99
98
  - lib/component_library/version.rb
99
+ - lib/generators/component_library/install/USAGE
100
+ - lib/generators/component_library/install/install_generator.rb
101
+ - lib/generators/component_library/install/templates/_headers.html.erb
102
+ - lib/generators/component_library/install/templates/component_library.rb.erb
103
+ - lib/generators/component_library/install/templates/layout.html.erb
100
104
  - lib/tasks/component_library_tasks.rake
101
105
  homepage: https://github.com/richarcher/component_library
102
106
  licenses:
data/README.rdoc DELETED
@@ -1,3 +0,0 @@
1
- = ComponentLibrary
2
-
3
- This project rocks and uses MIT-LICENSE.