diff --git a/.gitignore b/.gitignore index c1e0daf..2e02545 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,7 @@ rdoc pkg ## PROJECT::SPECIFIC + +vendor/bin/* +vendor/gems/* +!vendor/gems/cache/ diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..086b558 --- /dev/null +++ b/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" \ No newline at end of file diff --git a/Rakefile b/Rakefile index bb925ac..0355f26 100644 --- a/Rakefile +++ b/Rakefile @@ -32,10 +32,16 @@ end Spec::Rake::SpecTask.new(:rcov) do |spec| spec.libs << 'lib' << 'spec' spec.pattern = 'spec/**/*_spec.rb' + spec.rcov_opts = ['--exclude', '.gem,Library,spec', '--sort', 'coverage'] spec.rcov = true end -task :spec => :check_dependencies +task :bundle do + require 'vendor/gems/environment' + Bundler.require_env +end + +task :spec => [:bundle, :check_dependencies] task :default => :spec @@ -44,7 +50,7 @@ Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : "" rdoc.rdoc_dir = 'rdoc' - rdoc.title = "translator #{version}" + rdoc.title = "YMDP #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end