Last active
December 13, 2015 20:38
-
-
Save threetreeslight/4971539 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$ rails new hoge -T --skip-bundle | |
$ vim ./.rvmrc | |
rvm use 1.9.3@hoge | |
$ vim ./.pryrc | |
begin | |
require 'hirb' | |
rescue LoadError | |
# Missing goodies, bummer | |
end | |
if defined? Hirb | |
# Slightly dirty hack to fully support in-session Hirb.disable/enable toggling | |
Hirb::View.instance_eval do | |
def enable_output_method | |
@output_method = true | |
@old_print = Pry.config.print | |
Pry.config.print = proc do |output, value| | |
Hirb::View.view_or_page_output(value) || @old_print.call(output, value) | |
end | |
end | |
def disable_output_method | |
Pry.config.print = @old_print | |
@output_method = nil | |
end | |
end | |
Hirb.enable | |
end | |
$ rails generate rspec:install | |
$ vim ./.gitignore | |
*.rbc | |
*.sassc | |
.sass-cache | |
capybara-*.html | |
.rspec | |
.rvmrc | |
/.bundle | |
/vendor/bundle | |
/log/* | |
/tmp/* | |
/db/*.sqlite3 | |
/public/system/* | |
/coverage/ | |
/spec/tmp/* | |
**.orig | |
rerun.txt | |
pickle-email-*.html | |
.project | |
$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.sass | |
$ mv app/assets/javascripts/application.js app/assets/javascripts/application.js.coffee | |
$ vim app/assets/stylesheets/application.css.sass | |
//= require _font-awesome | |
# if you need adopted IE7 | |
//= require _font-awesome-ie7.min | |
@import "bootstrap" | |
@import "sassy-buttons" | |
$ vim app/assets/javascripts/application.js.coffee | |
#= require bootstrap | |
$ bundle exec compass init --syntax sass | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment