easymin 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/lib/easymin/version.rb +1 -1
- data/lib/generators/easymin/layout/layout_generator.rb +16 -0
- metadata +2 -1
data/.gitignore
CHANGED
data/lib/easymin/version.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
module Easymin
|
2
|
+
module Generators
|
3
|
+
class LayoutGenerator < ::Rails::Generators::Base
|
4
|
+
desc "Generate a basic layout, so you can customize it"
|
5
|
+
|
6
|
+
class_option :name, :type => :string, :default => 'easymin', :desc => "Change name of the layout, default easymin"
|
7
|
+
source_root File.expand_path("../../../../../app/views/layouts", __FILE__)
|
8
|
+
|
9
|
+
def generate_layout
|
10
|
+
path = "app/views/layouts"
|
11
|
+
|
12
|
+
template 'easymin.haml', "#{path}/#{options.name}.haml"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: easymin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Bruno Wernimont
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- lib/easymin/compass.rb
|
110
110
|
- lib/easymin/defaults.rb
|
111
111
|
- lib/easymin/version.rb
|
112
|
+
- lib/generators/easymin/layout/layout_generator.rb
|
112
113
|
has_rdoc: true
|
113
114
|
homepage: ""
|
114
115
|
licenses: []
|