This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
major clean up with new gemspec, Gemfile, and .rvmrc, specs are not y…
…et working though
- Loading branch information
Showing
36 changed files
with
168 additions
and
270 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,6 +1,9 @@ | ||
pkg | ||
doc | ||
spec/database.yml | ||
Gemfile.lock | ||
.bundle | ||
*.gem | ||
tmp/* | ||
*.sqlite3 | ||
database.yml | ||
nbproject | ||
*.swp | ||
**/*.swp |
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 @@ | ||
--color |
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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# adapted from: http://rvm.beginrescueend.com/workflow/rvmrc/ | ||
|
||
ruby_string="1.9.2" | ||
gemset_name="populator" | ||
|
||
if rvm list strings | grep -q "${ruby_string}" ; then | ||
|
||
# Load or create the specified environment | ||
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \ | ||
&& -s "${rvm_path:-$HOME/.rvm}/environments/${ruby_string}@${gemset_name}" ]] ; then | ||
\. "${rvm_path:-$HOME/.rvm}/environments/${ruby_string}@${gemset_name}" | ||
else | ||
rvm --create "${ruby_string}@${gemset_name}" | ||
fi | ||
|
||
else | ||
|
||
# Notify the user to install the desired interpreter before proceeding. | ||
echo "${ruby_string} was not found, please run 'rvm install ${ruby_string}' and then cd back into the project directory." | ||
|
||
fi |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source "http://rubygems.org" | ||
|
||
gemspec |
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,15 +1,23 @@ | ||
require 'rubygems' | ||
require 'rake' | ||
require 'echoe' | ||
|
||
Echoe.new('populator', '0.2.4') do |p| | ||
p.summary = "Mass populate an Active Record database." | ||
p.description = "Mass populate an Active Record database." | ||
p.url = "http://github.com/ryanb/populator" | ||
p.author = 'Ryan Bates' | ||
p.email = "ryan (at) railscasts (dot) com" | ||
p.ignore_pattern = ["script/*", "**/*.sqlite3", "tmp/*"] | ||
p.development_dependencies = [] | ||
end | ||
require 'rspec/core/rake_task' | ||
|
||
ADAPTERS = YAML.load(File.read(File.dirname(__FILE__) + "/../spec/database.yml")).keys | ||
|
||
desc "Run specs under all supported databases" | ||
task :spec => ADAPTERS.map { |a| "spec:#{a}" } | ||
|
||
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext } | ||
namespace :spec do | ||
ADAPTERS.each do |adapter| | ||
namespace :prepare do | ||
task adapter do | ||
ENV["POPULATOR_ADAPTER"] = adapter | ||
end | ||
end | ||
|
||
desc "Run specs under #{adapter}" | ||
RSpec::Core::RakeTask.new(adapter => "spec:prepare:#{adapter}") do |t| | ||
t.verbose = false | ||
end | ||
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
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
Oops, something went wrong.