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
# lib/tasks/assets.rake | |
namespace :assets do | |
ManifestPattern = /^manifest-[0-9a-f]{32}\.json$/ | |
ExtensionsToCompress = %w{.js .css .json}.freeze | |
desc "GZip assets" | |
task :compress do | |
files = Pathname.glob(Rails.root.join('public/assets/**/*')).map do |file| | |
next unless file.extname.in? ExtensionsToCompress |
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
source 'https://rubygems.org' | |
gem 'bundler', '~> 1.0' | |
gem 'railties', '~> 3.2.6' | |
gem 'actionmailer' | |
gem 'actionpack' | |
gem 'activeresource' | |
gem 'activesupport' | |
gem "mongoid", "~> 3.0.6" |
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
$ruby zentest.rb | |
W, [2012-11-05T16:32:03.672936 #15942] WARN -- : ZendeskAPI::User - find | |
W, [2012-11-05T16:32:03.673034 #15942] WARN -- : uninitialized constant ZendeskAPI::Middleware::Response::Gzip::Zlib | |
W, [2012-11-05T16:32:03.673071 #15942] WARN -- : /usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/zendesk_api-0.1.10/lib/zendesk_api/middleware/response/gzip.rb:11:in `block in <class:Gzip>' | |
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/faraday_middleware-0.9.0/lib/faraday_middleware/response_middleware.rb:48:in `call' | |
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/faraday_middleware-0.9.0/lib/faraday_middleware/response_middleware.rb:48:in `parse' | |
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/faraday_middleware-0.9.0/lib/faraday_middleware/response_middleware.rb:39:in `process_response' | |
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/faraday_middleware-0.9.0/lib/faraday_middleware/response_middleware.rb:32:in `block in call' | |
/usr/local/Cellar/ |
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
<IfModule mod_passenger.c> | |
<VirtualHost 68.168.103.75:80> | |
DocumentRoot /rails/public | |
ServerName site.com | |
ServerAlias www.site.com | |
RackBaseURI / | |
XSendFile on | |
XSendFilePath /rails |
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
GEM | |
remote: http://rubygems.org/ | |
specs: | |
actionmailer (3.1.0.rc1) | |
actionpack (= 3.1.0.rc1) | |
mail (~> 2.3.0) | |
actionpack (3.1.0.rc1) | |
activemodel (= 3.1.0.rc1) | |
activesupport (= 3.1.0.rc1) | |
builder (~> 3.0.0) |
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
$rake spec | |
(in /home/amw/spree) | |
########################### api ######################### | |
rm api/Gemfile* | |
cd api && /var/lib/gems/1.8/bin/rake test_app | |
(in /home/amw/spree/api) | |
run rails new test_app --database=sqlite3 -GJTq --skip-gemfile from "./spec" | |
run rake spree_core:install from "./test_app" | |
(in /home/amw/spree/api/spec/test_app) | |
run rake spree_auth:install from "./test_app" |
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
$git diff | |
diff --git a/auth/spec/spec_helper.rb b/auth/spec/spec_helper.rb | |
index 2d271e6..825c2d2 100644 | |
--- a/auth/spec/spec_helper.rb | |
+++ b/auth/spec/spec_helper.rb | |
@@ -3,6 +3,7 @@ | |
ENV["RAILS_ENV"] ||= 'test' | |
require File.expand_path("../test_app/config/environment", __FILE__) | |
require 'rspec/rails' | |
+require 'faker' |
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
$rake spec | |
(in /home/amw/spree) | |
########################### api ######################### | |
rm api/Gemfile* | |
cd api && /var/lib/gems/1.8/bin/rake test_app | |
(in /home/amw/spree/api) | |
run rails new test_app --database=sqlite3 -GJTq --skip-gemfile from "./spec" | |
run rake spree_core:install from "./test_app" | |
(in /home/amw/spree/api/spec/test_app) | |
run rake spree_auth:install from "./test_app" |
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
spree[fix-order-scopes]$rake spec | |
(in /Users/amw/Projects/spree) | |
########################### api ######################### | |
rm api/Gemfile* | |
cd api && /opt/local/bin/rake test_app | |
(in /Users/amw/Projects/spree/api) | |
run rake spree_core:install from "./test_app" | |
(in /Users/amw/Projects/spree/api/spec/test_app) | |
run rake spree_auth:install from "./test_app" | |
(in /Users/amw/Projects/spree/api/spec/test_app) |
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
module SharedDatabase | |
module UniquenessValidator | |
def self.included(validator) | |
validator.class_eval do | |
def setup_with_subdomain_account(klass) | |
return unless klass.table_exists? | |
if klass.column_names.include? 'subdomain_account_id' | |
scope = [:subdomain_account_id] |