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
~/Code/spence$ ey deploy | |
Connecting to the server... | |
Beginning deploy for 'Spence' in 'Moe' on server... | |
~> Deploying revision 9e2c8d7... try this gemfile | |
~> Pushing code to all servers | |
~> Starting full deploy | |
~> Copying to /data/Spence/releases/20100825045300 | |
~> Ensuring proper ownership | |
~> Gemfile detected, bundling gems | |
/usr/lib/ruby/gems/1.8/gems/bundler-1.0.0.rc.3/lib/bundler/resolver.rb:235:in `resolve': undefined method `name' for nil:NilClass (NoMethodError) |
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
demolicious/ | |
|-- LICENSE | |
|-- README | |
|-- page_layouts | |
| |-- config.yml | |
| |-- homepage.erb.html | |
| `-- locale.yml | |
|-- images | |
|-- stylesheets | |
`-- 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
namespace :refinery do | |
desc "Prepare a basic environment with blank directories ready to override core files safely." | |
task :override => :environment do | |
dirs = ["app", "app/views", "app/views/layouts", "app/views/admin", "app/views/shared", "app/controllers", "app/models", "app/controllers/admin", "app/helpers", "app/helpers/admin"] | |
dirs.each do |dir| | |
dir = File.join([RAILS_ROOT] | dir.split('/')) | |
Dir.mkdir dir unless File.directory? dir | |
end | |
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
def convert_encoding(result) | |
["’", "’"].each do |quote| | |
result.gsub!(quote, "'") | |
end | |
["—", "―"].each do |mdash| | |
result.gsub!(mdash, "—") | |
end | |
result.gsub!("…", "…") |