forked from lackac/app_lego
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Mazyar
committed
Apr 9, 2009
1 parent
128ea59
commit 75447a9
Showing
11 changed files
with
120 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,6 @@ | |||
gem 'chriseppstein-compass', :lib => 'compass', :version => '>= 0.3.4' | |||
|
|||
run "echo -e 'y\nn\n' | compass --rails -f blueprint" | |||
|
|||
git :add => "." | |||
git :commit => "-a -m 'Added compass for css'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
# freeze edge rails | |||
if respond_to?(:braid) | |||
braid "git://github.com/rails/rails.git", "vendor/rails" | |||
else | |||
# Guess full Rails path | |||
rails_path = Pathname.new($LOAD_PATH.find {|p| p =~ /railties/}.gsub(%r{/railties/.*}, '')).realpath | |||
run "cp -r '#{rails_path}' vendor/rails" | |||
run "rm -rf vendor/rails/.git" | |||
end | |||
|
|||
# commit changes | |||
git :add => "." | |||
git :commit => "-a -m 'frozen edge rails'" | |||
|
|||
log "rails", "edge frozen" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,8 +1,6 @@ | |||
gem 'haml', :version => '>= 2.1' | gem 'haml', :version => '>= 2.1' | ||
gem 'chriseppstein-compass', :lib => 'compass', :version => '>= 0.3.4' | |||
|
|
||
run "haml --rails ." | run "haml --rails ." | ||
run "echo -e 'y\nn\n' | compass --rails -f blueprint" | |||
|
|
||
git :add => "." | git :add => "." | ||
git :commit => "-a -m 'Added haml for views and compass for css'" | git :commit => "-a -m 'Added haml for views'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
plugin 'hoptoad_notifier', :git => "git://github.com/thoughtbot/hoptoad_notifier" | |||
|
|||
hoptoad_key = ask("\nPlease enter your Hoptoad API key: ") | |||
initializer "hoptoad.rb", <<-HOPTOAD | |||
HoptoadNotifier.configure do |config| | |||
config.api_key = '#{hoptoad_key}' | |||
end | |||
HOPTOAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
plugin "jrails", :git => "git://github.com/aaronchi/jrails" | |||
plugin "jrails_in_place_editing", :git => "git://github.com/rakuto/jrails_in_place_editing" | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,58 @@ | |||
if File.exists?('vendor/plugins/haml') | |||
|
|||
file 'app/views/layouts/_flashes.html.haml', <<-HAML | |||
#flash | |||
- flash.each do |key, value| | |||
%div{:id => "flash_\#{key}"}= value | |||
HAML | |||
|
|||
file 'app/views/layouts/application.html.haml', <<-HAML | |||
!!! XML | |||
!!! Strict | |||
%html{'xmlns' => 'http://www.w3.org/1999/xhtml', 'xml:lang' => 'en', 'lang' => 'en'} | |||
%head | |||
%meta{'http-equiv' => 'Content-Type', :content => 'text/html; charset=utf-8'} | |||
%title= "\#{page_title + ' - ' unless page_title.blank?}\#{t(:app_name)}" | |||
= stylesheet_link_tag 'screen.css', :media => 'screen, projection' | |||
= stylesheet_link_tag 'print.css', :media => 'print' | |||
/[if IE] | |||
= stylesheet_link_tag 'ie.css', :media => 'screen, projection' | |||
%body{:class => body_class} | |||
= render :partial => 'layouts/flashes' | |||
= yield | |||
HAML | |||
|
|||
else | |||
|
|||
file 'app/views/layouts/_flashes.html.erb', <<-ERB | |||
<div id="flash"> | |||
<% flash.each do |key, value| -%> | |||
<div id="flash_<%= key %>"><%=h value %></div> | |||
<% end -%> | |||
</div> | |||
ERB | |||
|
|||
file 'app/views/layouts/application.html.erb', <<-ERB | |||
<?xml version='1.0' encoding='utf-8' ?> | |||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |||
<head> | |||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |||
<title><%= page_title + ' - ' unless page_title.blank? %><%=t :app_name %></title> | |||
<%= stylesheet_link_tag 'screen.css', :media => 'screen, projection' %> | |||
<%= stylesheet_link_tag 'print.css', :media => 'print' %> | |||
<!--[if IE]> | |||
<%= stylesheet_link_tag 'ie.css', :media => 'screen, projection' %> | |||
<![endif]--> | |||
</head> | |||
<body class="<%= body_class %>"> | |||
<%= render :partial => 'layouts/flashes' -%> | |||
<%= yield %> | |||
</body> | |||
</html> | |||
ERB | |||
|
|||
end | |||
|
|||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters