Skip to content

Commit

Permalink
* added Gemfile
Browse files Browse the repository at this point in the history
* made sure gem works when only the gems specified in the Gemfile are present and no system gems
  • Loading branch information
marcoow committed Feb 25, 2010
1 parent 21ce513 commit 21ab964
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,4 +1,6 @@
.DS_Store
.bundle
Gemfile.lock
spec/log/spec.log
spec/db/reportable.sqlite3.db
doc
Expand Down
12 changes: 12 additions & 0 deletions Gemfile
@@ -0,0 +1,12 @@
source :gemcutter

gem 'activerecord', '>= 2.0.0', :require => 'active_record'
gem 'activesupport', '>= 2.0.0', :require => 'active_support'

gem 'rake', '>= 0.8.7'
gem 'rspec', '>= 1.2.0'
gem 'rcov', '>= 0.8.1'
gem 'excellent', '>= 1.5.4'
gem 'yard', '>= 0.4.0'
gem 'yard-rspec', '>= 0.1.0'
gem 'bluecloth', '>= 2.0.5'
25 changes: 12 additions & 13 deletions Rakefile
@@ -1,5 +1,12 @@
require 'rubygems'
require 'rake'
require 'bundler'

Bundler.setup
Bundler.require

require 'spec/rake/spectask'
require 'simplabs/excellent/rake'

desc 'Default: run specs.'
task :default => :spec
Expand All @@ -12,19 +19,11 @@ Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
end

begin
require 'yard'
YARD::Rake::YardocTask.new(:doc) do |t|
t.files = ['lib/**/*.rb', '-', 'HISTORY.md']
t.options = ['--no-private', '--title', 'Reportable Documentation']
end
rescue LoadError
YARD::Rake::YardocTask.new(:doc) do |t|
t.files = ['lib/**/*.rb', '-', 'HISTORY.md']
t.options = ['--no-private', '--title', 'Reportable Documentation']
end

begin
require 'simplabs/excellent/rake'
Simplabs::Excellent::Rake::ExcellentTask.new(:excellent) do |t|
t.paths = %w(lib)
end
rescue LoadError
Simplabs::Excellent::Rake::ExcellentTask.new(:excellent) do |t|
t.paths = %w(lib)
end
2 changes: 1 addition & 1 deletion spec/boot.rb
Expand Up @@ -15,7 +15,7 @@
config.time_zone = 'Pacific Time (US & Canada)'
end

require File.join(File.dirname(__FILE__), '/../init.rb')
require File.join(File.dirname(__FILE__), '..', 'rails', 'init.rb')

FileUtils.mkdir_p File.join(File.dirname(__FILE__), 'log')
ActiveRecord::Base.logger = Logger.new(File.join(File.dirname(__FILE__), 'log', 'spec.log'))
Expand Down

0 comments on commit 21ab964

Please sign in to comment.