| * added Gemfile * made sure gem works when only the gems specified in the Gemfi… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit 21ab96484ec25815c10c7438e09efe7a1644bd60 | |
| parent 21ce513690014780c93aae68065379b39baff23b | |
| Author: Marco Otte-Witte <[email protected]> | |
| Date: Thu, 25 Feb 2010 20:14:01 +0100 | |
| * added Gemfile | |
| * made sure gem works when only the gems specified in the Gemfile are present a… | |
| Diffstat: | |
| M .gitignore | 2 ++ | |
| A Gemfile | 12 ++++++++++++ | |
| M Rakefile | 25 ++++++++++++------------- | |
| M spec/boot.rb | 2 +- | |
| 4 files changed, 27 insertions(+), 14 deletions(-) | |
| --- | |
| diff --git a/.gitignore b/.gitignore | |
| @@ -1,4 +1,6 @@ | |
| .DS_Store | |
| +.bundle | |
| +Gemfile.lock | |
| spec/log/spec.log | |
| spec/db/reportable.sqlite3.db | |
| doc | |
| diff --git a/Gemfile b/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' | |
| diff --git a/Rakefile b/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 | |
| @@ -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 | |
| diff --git a/spec/boot.rb b/spec/boot.rb | |
| @@ -15,7 +15,7 @@ Rails::Initializer.run(:initialize_time_zone) do |config| | |
| 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'… |