Skip to content

Commit

Permalink
Use bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
progressions committed Jan 23, 2010
1 parent fa79e5c commit e276402
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -19,3 +19,7 @@ rdoc
pkg pkg


## PROJECT::SPECIFIC ## PROJECT::SPECIFIC

vendor/bin/*
vendor/gems/*
!vendor/gems/cache/
8 changes: 8 additions & 0 deletions Gemfile
@@ -0,0 +1,8 @@
gem "ruby-growl", ">= 0"
gem "progressions-g", ">= 0"
gem "activesupport", :require_as => "active_support"
gem "natural_time", ">= 0"
gem "rspec", ">= 0"
gem "timecop", ">= 0"

bin_path "vendor/bin"
10 changes: 8 additions & 2 deletions Rakefile
Expand Up @@ -32,10 +32,16 @@ end
Spec::Rake::SpecTask.new(:rcov) do |spec| Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec' spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb' spec.pattern = 'spec/**/*_spec.rb'
spec.rcov_opts = ['--exclude', '.gem,Library,spec', '--sort', 'coverage']
spec.rcov = true spec.rcov = true
end end


task :spec => :check_dependencies task :bundle do
require 'vendor/gems/environment'
Bundler.require_env
end

task :spec => [:bundle, :check_dependencies]


task :default => :spec task :default => :spec


Expand All @@ -44,7 +50,7 @@ Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : "" version = File.exist?('VERSION') ? File.read('VERSION') : ""


rdoc.rdoc_dir = 'rdoc' rdoc.rdoc_dir = 'rdoc'
rdoc.title = "translator #{version}" rdoc.title = "YMDP #{version}"
rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb') rdoc.rdoc_files.include('lib/**/*.rb')
end end

0 comments on commit e276402

Please sign in to comment.