Created
June 28, 2013 12:38
-
-
Save pzel/5884375 to your computer and use it in GitHub Desktop.
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
p@maple:/usr/local/src/camping$ git diff | |
diff --git a/Gemfile b/Gemfile | |
index b0b1ee2..aee38c4 100644 | |
--- a/Gemfile | |
+++ b/Gemfile | |
@@ -9,6 +9,12 @@ if rack = ENV['RACK'] | |
end | |
end | |
+group :development do | |
+ gem 'rdoc', '~>3.9.0' | |
+ gem 'ruby2ruby' | |
+ gem 'ruby_parser' | |
+end | |
+ | |
group :extras do | |
gem 'tilt' | |
end | |
diff --git a/lib/camping/ar.rb b/lib/camping/ar.rb | |
index b6d1f1d..1bf7488 100644 | |
--- a/lib/camping/ar.rb | |
+++ b/lib/camping/ar.rb | |
@@ -33,7 +33,7 @@ $AR_EXTRAS = %{ | |
end | |
end | |
- si = SchemaInfo.find(:first) || SchemaInfo.new(:version => opts[:assume]) | |
+ si = SchemaInfo.first || SchemaInfo.new(:version => opts[:assume]) | |
if si.version < opts[:version] | |
@migrations.sort_by { |m| m.version }.each do |k| | |
k.migrate(:up) if si.version < k.version and k.version <= opts[:version] | |
diff --git a/test/test_helper.rb b/test/test_helper.rb | |
index 8ce8a0e..38d96eb 100644 | |
--- a/test/test_helper.rb | |
+++ b/test/test_helper.rb | |
@@ -14,7 +14,7 @@ end | |
require 'minitest/autorun' | |
require 'rack/test' | |
-class TestCase < MiniTest::Unit::TestCase | |
+class TestCase < MiniTest::Test | |
include Rack::Test::Methods | |
def self.inherited(mod) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment