Permalink
Browse files

cleanup gemfile, requires, rdoc

  • Loading branch information...
1 parent 9baf387 commit 8cb9a3d6b8d540419562122a3352c26734f97417 @ehutzelman ehutzelman committed May 28, 2011
View
@@ -1,3 +1,8 @@
source :rubygems
-gemspec
+gemspec
+
+group :development do
+ gem 'rake'
+ gem "rspec", "~> 1.3"
+end
View
@@ -1,6 +1,8 @@
require 'rubygems'
+require 'bundler/setup'
+
require 'rake'
-require 'rake/rdoctask'
+require 'rdoc/task'
require 'spec/rake/spectask'
require File.expand_path('../lib/happymapper/version', __FILE__)
@@ -33,7 +35,7 @@ task :website do
sh %{rsync -av website/ jnunemaker@rubyforge.org:/var/www/gforge-projects/happymapper}
end
-Rake::RDocTask.new do |r|
+RDoc::Task.new do |r|
r.title = 'HappyMapper Docs'
r.main = 'README.rdoc'
r.rdoc_dir = 'doc'
View
@@ -15,5 +15,4 @@ Gem::Specification.new do |s|
s.files = Dir.glob("{examples,lib,spec}/**/*") + %w[License Rakefile README.rdoc]
s.add_dependency 'libxml-ruby', '~> 2.0'
- s.add_development_dependency 'rspec', '~> 1.3.0'
end
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
+require 'spec_helper'
describe HappyMapper::Attribute do
describe "initialization" do
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
+require 'spec_helper'
describe HappyMapper::Element do
describe "initialization" do
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
+require 'spec_helper'
module Foo
class Bar; end
View
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
+require 'spec_helper'
require 'pp'
require 'uri'
require 'support/models'
View
@@ -1,3 +1,6 @@
+require 'rubygems'
+require 'bundler/setup'
+
require 'spec'
require File.expand_path('../../lib/happymapper', __FILE__)

0 comments on commit 8cb9a3d

Please sign in to comment.