tdreyno-staticmatic 2.9.7 → 2.10.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generator.rb +1 -0
- data/lib/merb/init.rb +2 -2
- data/lib/template/config/init.rb +6 -2
- metadata +3 -3
data/lib/generator.rb
CHANGED
@@ -9,6 +9,7 @@ module Generators
|
|
9
9
|
desc "Creates a new staticmatic scaffold."
|
10
10
|
first_argument :location, :required => true, :desc => "Project location"
|
11
11
|
option :rack, :as => :boolean, :default => false, :desc => 'Should generate rackup (ru) file for Passenger'
|
12
|
+
option :compass, :as => :boolean, :default => false, :desc => 'Should enable Compass integration'
|
12
13
|
|
13
14
|
def destination_root
|
14
15
|
File.expand_path(location)
|
data/lib/merb/init.rb
CHANGED
@@ -25,5 +25,5 @@ Merb.push_path(:image, Merb.dir_for(:public) / "images", nil)
|
|
25
25
|
Merb.push_path(:view, Merb.root / "pages")
|
26
26
|
Merb.push_path(:helper, Merb.root / "helpers")
|
27
27
|
|
28
|
-
Merb::Plugins.config[:sass][:template_location] = Merb.root / "stylesheets"
|
29
|
-
Merb::Plugins.config[:sass][:css_location] = Merb.dir_for(:stylesheet)
|
28
|
+
# Merb::Plugins.config[:sass][:template_location] = Merb.root / "stylesheets"
|
29
|
+
# Merb::Plugins.config[:sass][:css_location] = Merb.dir_for(:stylesheet)
|
data/lib/template/config/init.rb
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
# Include default staticmatic init
|
2
2
|
require '<%= ::File.join(::File.expand_path(::File.join(source_root, '..')), 'merb', 'init') %>'
|
3
3
|
|
4
|
+
<% if compass %>
|
4
5
|
# Enable Compass
|
6
|
+
gem 'haml-edge', '>= 2.1'
|
7
|
+
dependency "merb-haml"
|
5
8
|
dependency "chriseppstein-compass", :require_as => 'compass'
|
6
|
-
|
7
|
-
|
9
|
+
<% else %>
|
10
|
+
dependency "merb-haml"
|
11
|
+
<% end %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tdreyno-staticmatic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Bartholomew
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
13
|
+
date: 2009-05-28 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -100,7 +100,7 @@ files:
|
|
100
100
|
- lib/template/pages/layout/site.html.haml
|
101
101
|
- lib/template/stylesheets/site.sass
|
102
102
|
- README.textile
|
103
|
-
has_rdoc:
|
103
|
+
has_rdoc: false
|
104
104
|
homepage: http://github.com/tdreyno/staticmatic
|
105
105
|
post_install_message:
|
106
106
|
rdoc_options:
|