Initial Gemfile for dependencies. Touched a .gitignore for the various
folders needed.
This commit is contained in:
parent
050bfd9c68
commit
6a8d6bcaf4
|
@ -0,0 +1,2 @@
|
||||||
|
bin/gembin/*
|
||||||
|
vendor/gems/*
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Gems required for the lib to even run
|
||||||
|
gem "net-ssh", ">= 2.0.19"
|
||||||
|
|
||||||
|
# Gems required for testing only. To install run
|
||||||
|
# gem bundle test
|
||||||
|
only :test do
|
||||||
|
gem "contest", ">= 0.1.2"
|
||||||
|
gem "mocha", ">= 0.9.8"
|
||||||
|
end
|
||||||
|
|
||||||
|
# Since hobo uses bin/, change the bin_path to something
|
||||||
|
# else...
|
||||||
|
bin_path "bin/gembin"
|
||||||
|
|
||||||
|
# Makes sure that our code doesn't request gems outside
|
||||||
|
# of our dependency list.
|
||||||
|
disable_system_gems
|
|
@ -0,0 +1,23 @@
|
||||||
|
begin
|
||||||
|
require File.join(File.dirname(__FILE__), 'vendor', 'gems', 'environment')
|
||||||
|
rescue LoadError
|
||||||
|
puts <<-ENVERR
|
||||||
|
==================================================
|
||||||
|
ERROR: Gem environment file not found!
|
||||||
|
|
||||||
|
Hobo uses bundler to handle gem dependencies. To setup the
|
||||||
|
test environment, please run `gem bundle test` If you don't
|
||||||
|
have bundler, you can install that with `gem install bundler`
|
||||||
|
==================================================
|
||||||
|
ENVERR
|
||||||
|
exit
|
||||||
|
end
|
||||||
|
|
||||||
|
require 'rake/testtask'
|
||||||
|
|
||||||
|
task :default => :test
|
||||||
|
|
||||||
|
Rake::TestTask.new do |t|
|
||||||
|
t.libs << "test"
|
||||||
|
t.pattern = 'test/*_test.rb'
|
||||||
|
end
|
Loading…
Reference in New Issue