Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Remove gem commands #31

Closed
wants to merge 2 commits into from

2 participants

Pistos added some commits
@Pistos Pistos Remove gem commands.
Specs run with:

    ruby -w -Ilib:bin:test:. -I../rdbi-driver-mock/lib -I../epoxy/lib -I../typelib/lib test/test_*.rb
3f3b746
@Pistos Pistos Added a test:dev rake task which uses local development libs when ava…
…ilable.
deee76b
@Pistos
Owner

ping :)

@pilcrow
Owner

Belatedly resolving as obsolete.

@pilcrow pilcrow closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 25, 2011
  1. @Pistos

    Remove gem commands.

    Pistos authored
    Specs run with:
    
        ruby -w -Ilib:bin:test:. -I../rdbi-driver-mock/lib -I../epoxy/lib -I../typelib/lib test/test_*.rb
  2. @Pistos
This page is out of date. Refresh to see the latest.
Showing with 14 additions and 4 deletions.
  1. +14 −1 Rakefile
  2. +0 −2  perf/profile.rb
  3. +0 −1  test/helper.rb
View
15 Rakefile
@@ -24,7 +24,7 @@ spec = Hoe.spec 'rdbi' do
self.summary = 'RDBI is a database interface built out of small parts.'
self.url = %w[http://github.com/rdbi/rdbi]
-
+
require_ruby_version ">= 1.8.7"
extra_dev_deps << ['rdbi-driver-mock']
@@ -50,4 +50,17 @@ end
task :install => [:gem] do
sh "gem install pkg/#{spec.name}-#{spec.version}.gem"
end
+
+namespace 'test' do
+ desc 'Run tests using local development versions of [certain] libraries if available'
+ task 'dev' do
+ if ENV['RUBYLIB'].nil?
+ ENV['RUBYLIB'] = ':../epoxy/lib:../typelib/lib:../rdbi-driver-mock/lib'
+ else
+ ENV['RUBYLIB'] += ':../epoxy/lib:../typelib/lib:../rdbi-driver-mock/lib'
+ end
+ Rake::Task['test'].execute
+ end
+end
+
# vim: syntax=ruby
View
2  perf/profile.rb
@@ -3,9 +3,7 @@
require 'rdbi'
require 'fileutils'
ENV["driver"] ||= "SQLite3"
-gem "rdbi-driver-#{ENV["driver"].downcase}"
require "rdbi/driver/#{ENV["driver"].downcase}"
-gem 'perftools.rb'
require 'perftools'
FileUtils.rm 'test.db' rescue nil
View
1  test/helper.rb
@@ -1,5 +1,4 @@
require 'rubygems'
-gem 'rdbi-driver-mock'
require 'test/unit'
$LOAD_PATH.unshift(File.dirname(__FILE__))
Something went wrong with that request. Please try again.