-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modules prepend, using Ruby 2.0ish way of prepending features
- Loading branch information
1 parent
ed4917e
commit 7473af4
Showing
17 changed files
with
56 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
source "http://rubygems.org" | ||
|
||
# Only install appropriate ruby debugger if we are not on travis | ||
unless ENV['CI'] | ||
if RUBY_VERSION >= '1.9.2' && RUBY_ENGINE == 'ruby' | ||
gem 'debugger' | ||
end | ||
if RUBY_VERSION == '1.8.7' | ||
gem 'ruby-debug' | ||
end | ||
end | ||
gemspec | ||
gem "jquery-rails" | ||
gem 'byebug' |
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
require 'bundler/setup' | ||
require 'rspec/core/rake_task' | ||
Bundler::GemHelper.install_tasks | ||
require 'byebug' | ||
|
||
RSpec::Core::RakeTask.new('default') do |t| | ||
t.pattern = FileList['spec/**/*_spec.rb'] | ||
end | ||
|
||
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__) | ||
load 'rails/tasks/engine.rake' | ||
Bundler::GemHelper.install_tasks |
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
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
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
require 'database_cleaner' | ||
|
||
RSpec.configure do |config| | ||
config.before(:suite) do | ||
DatabaseCleaner.clean | ||
DatabaseCleaner.strategy = :deletion | ||
config.before(:suite) do | ||
DatabaseCleaner.clean_with(:truncation) | ||
end | ||
|
||
config.before(:each) do | ||
DatabaseCleaner.start | ||
DatabaseCleaner.strategy = :transaction | ||
end | ||
|
||
config.after(:each) do | ||
DatabaseCleaner.clean | ||
config.before(:each, :js => true) do | ||
DatabaseCleaner.strategy = :truncation | ||
end | ||
|
||
at_exit do | ||
config.before(:each) do | ||
DatabaseCleaner.start | ||
end | ||
|
||
config.after(:each) do | ||
DatabaseCleaner.clean | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
class User < ActiveRecord::Base | ||
$T = true | ||
include EasyAuth::Models::Account | ||
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
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
7 changes: 7 additions & 0 deletions
7
spec/dummy/db/migrate/20130610064414_create_easy_auth_password.easy_auth_password.rb
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This migration comes from easy_auth_password (originally 20120227014024) | ||
class CreateEasyAuthPassword < ActiveRecord::Migration | ||
def change | ||
add_column :identities, :remember_token_digest, :string | ||
add_column :identities, :reset_token_digest, :string | ||
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
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