Permalink
Browse files

Use bundler for build and release

  • Loading branch information...
1 parent 02cc016 commit b6cde68b8b732c3192352c583723c2f69342734d @adzap committed May 25, 2011
Showing with 16 additions and 12 deletions.
  1. +9 −0 Gemfile
  2. +5 −10 Rakefile
  3. +1 −1 spec/spec_helper.rb
  4. +1 −1 timeliness.gemspec
View
@@ -0,0 +1,9 @@
+source 'http://rubygems.org'
+
+gemspec
+
+gem 'rspec', '~> 2.4'
+gem 'activesupport', '~> 3.0'
+gem 'i18n'
+gem 'timecop'
+gem 'tzinfo'
View
@@ -1,12 +1,9 @@
-require 'rubygems'
+require 'bundler'
+Bundler::GemHelper.install_tasks
+
require 'rake/rdoctask'
require 'rspec/core/rake_task'
-GEM_NAME = "timeliness"
-
-desc 'Default: run specs.'
-task :default => :spec
-
desc "Run specs"
RSpec::Core::RakeTask.new(:spec)
@@ -25,7 +22,5 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-desc "Create a gemspec file"
-task :build do
- `gem build #{GEM_NAME}.gemspec`
-end
+desc 'Default: run specs.'
+task :default => :spec
View
@@ -31,7 +31,7 @@ def should_not_parse(*args)
end
end
-Rspec.configure do |c|
+RSpec.configure do |c|
c.mock_with :rspec
c.include TimelinessHelpers
end
View
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
s.rubyforge_project = %q{timeliness}
s.files = `git ls-files`.split("\n")
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.files = `git ls-files`.split("\n") - %w{ .gitignore .rspec Gemfile Gemfile.lock }
s.extra_rdoc_files = ["README.rdoc", "CHANGELOG.rdoc"]
s.require_paths = ["lib"]
end

0 comments on commit b6cde68

Please sign in to comment.