Permalink
Browse files

Use Bundler and latest RSpec

  • Loading branch information...
1 parent b26caa0 commit 27275b2a0deafdff75ed50554be742f639def94d @tpope committed Sep 14, 2011
Showing with 20 additions and 39 deletions.
  1. +5 −14 Rakefile
  2. +13 −23 rumember.gemspec
  3. +2 −2 spec/spec_helper.rb
View
@@ -1,17 +1,8 @@
-begin; require 'rubygems'; rescue LoadError; end
-require 'rake'
-require 'rake/gempackagetask'
+require "bundler/gem_tasks"
-spec = eval(File.read(File.join(File.dirname(__FILE__),'rumember.gemspec')))
-Rake::GemPackageTask.new(spec) do |p|
- p.gem_spec = spec
+require "rspec/core/rake_task"
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = "spec/**/*_spec.rb"
end
-begin
- require 'spec/rake/spectask'
- Spec::Rake::SpecTask.new(:spec) do |t|
- t.spec_files = FileList["spec/**/*_spec.rb"]
- end
- task :default => :spec
-rescue LoadError
-end
+task :default => :spec
View
@@ -1,28 +1,18 @@
Gem::Specification.new do |s|
- s.name = "rumember"
- s.version = "0.0.0"
+ s.name = "rumember"
+ s.version = "0.0.0"
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Tim Pope"]
+ s.email = ["code@tpope.n"+'et']
+ s.homepage = "http://github.com/tpope/rumember"
+ s.summary = "Remember The Milk Ruby API and command line client"
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
- s.summary = "Remember The Milk Ruby API and command line client"
- s.authors = ["Tim Pope"]
- s.email = "code@tpope.n"+'et'
- s.homepage = "http://github.com/tpope/rumember"
- s.default_executable = "ru"
- s.executables = ["ru"]
- s.files = [
- "README.markdown",
- "MIT-LICENSE",
- "rumember.gemspec",
- "bin/ru",
- "lib/rumember.rb",
- "lib/rumember/abstract.rb",
- "lib/rumember/account.rb",
- "lib/rumember/list.rb",
- "lib/rumember/location.rb",
- "lib/rumember/task.rb",
- "lib/rumember/timeline.rb",
- "lib/rumember/transaction.rb",
- ]
s.add_runtime_dependency("json", ["~> 1.4.0"])
s.add_runtime_dependency("launchy", ["~> 0.3.0"])
- s.add_development_dependency("rspec", ["~> 1.3.0"])
+ s.add_development_dependency("rspec", ["~> 2.5"])
end
View
@@ -1,7 +1,7 @@
$LOAD_PATH.unshift(File.join(File.dirname(File.dirname(__FILE__)),'lib'))
require 'rumember'
begin; require 'rubygems'; rescue LoadError; end
-require 'spec'
+require 'rspec'
-Spec::Runner.configure do |config|
+RSpec.configure do |config|
end

0 comments on commit 27275b2

Please sign in to comment.