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
| var custom_wymeditor_boot_options = { | |
| skin: 'refinery' | |
| , containersItems: [ | |
| {'name': 'h3', 'title':'Heading_3', 'css':'wym_containers_h3'} | |
| , {'name': 'h4', 'title':'Heading_4', 'css':'wym_containers_h4'} | |
| , {'name': 'h5', 'title':'Heading_5', 'css':'wym_containers_h5'} | |
| , {'name': 'p', 'title':'Paragraph', 'css':'wym_containers_p'} | |
| ] | |
| , classesItems: [ |
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
| project_type = :rails | |
| project_path = Compass::AppIntegration::Rails.root | |
| environment = Compass::AppIntegration::Rails.env | |
| FileUtils.mkdir_p(Rails.root.join("tmp", "stylesheets")) | |
| Rails.configuration.middleware.insert_before('Rack::Sendfile', 'Rack::Static', | |
| :urls => ['/stylesheets'], | |
| :root => "#{Rails.root}/tmp") | |
| http_path = '/' |
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
| namespace :deploy do | |
| desc "Deploy to Heroku" | |
| task :heroku do | |
| Rake::Task["deploy:precompile_assets_and_upload_to_s3"].invoke | |
| Rake::Task["deploy:push_heroku"].invoke | |
| end | |
| desc "Precompile assets and upload to s3" | |
| task :precompile_assets_and_upload_to_s3 do | |
| storage = Fog::Storage.new :provider => 'AWS', :aws_access_key_id => "123", :aws_secret_access_key => "123" |
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
| group :development, :test do | |
| gem 'rspec-rails', '~> 2.7.0' | |
| gem 'capybara-webkit', '~> 0.7.2' | |
| gem 'database_cleaner', '~> 0.6.7' | |
| end |
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
| RSpec.configure do |config| | |
| #... | |
| config.use_transactional_fixtures = false | |
| config.before(:suite) do | |
| DatabaseCleaner.strategy = :truncation | |
| end |
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
| #... | |
| ENV["RAILS_ENV"] ||= 'test' | |
| require File.expand_path("../../config/environment", __FILE__) | |
| require 'rspec/rails' | |
| require 'capybara/rspec' | |
| Capybara.javascript_driver = :webkit | |
| #... |
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
| config.cache_classes = !(ENV['DRB'] == 'true') |
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
| :map ,t :w\|:!rspec --color %<cr> |
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
| curl https://raw.github.com/garybernhardt/destroy-all-software-extras/master/das-0010-fast-tests-with-and-without-rails/test > script/test |
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
| class CanonicalRedirect | |
| def initialize(app) | |
| @app = app | |
| end | |
| def call(env) | |
| request = Rack::Request.new(env) | |
| # | |
| # | |
| # |
OlderNewer