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 +4 -4
- data/lib/component_library/engine.rb +1 -1
- data/lib/component_library/version.rb +1 -1
- data/lib/generators/component_library/install/USAGE +10 -0
- data/lib/generators/component_library/install/install_generator.rb +9 -0
- data/lib/generators/component_library/install/templates/_headers.html.erb +5 -0
- data/lib/generators/component_library/install/templates/component_library.rb.erb +4 -0
- data/lib/generators/component_library/install/templates/layout.html.erb +14 -0
- metadata +7 -3
- data/README.rdoc +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3968139d4c0cb9e1f34922a1349b0fd9e68a1dcb
|
4
|
+
data.tar.gz: 281c00ea8a854d116adb11d5861a81d131c5aca1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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|
|
@@ -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,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.
|
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-
|
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