easymin 0.1.0 → 0.1.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.
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
+ .DS_STORE
@@ -1,3 +1,3 @@
1
1
  module Easymin
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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.0
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: []