Skip to content

Commit

Permalink
Use bundler to manage our four dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jun 8, 2015
1 parent 4f1493d commit 4e4b521
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
Gemfile.lock
doc
pkg
tmp/*
Expand Down
12 changes: 12 additions & 0 deletions Gemfile
@@ -0,0 +1,12 @@
source 'https://rubygems.org'

gemspec

group :test do
gem 'addressable'
end

group :development do
gem 'rake'
gem 'kramdown'
end
38 changes: 10 additions & 28 deletions Rakefile
@@ -1,36 +1,18 @@
require 'rubygems'
require 'rake'

begin
gem 'rubygems-tasks', '~> 0.1'
require 'rubygems/tasks'

Gem::Tasks.new
require 'bundler/setup'
rescue LoadError => e
warn e.message
warn "Run `gem install rubygems-tasks` to install 'rubygems/tasks'."
abort e.message
end

begin
gem 'rspec', '~> 3.0'
require 'rspec/core/rake_task'
require 'rake'

RSpec::Core::RakeTask.new
rescue LoadError => e
task :spec do
abort "Please run `gem install rspec` to install RSpec."
end
end
require 'rubygems/tasks'
Gem::Tasks.new

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
task :test => :spec
task :default => :spec

begin
gem 'yard', '~> 0.6'
require 'yard'

YARD::Rake::YardocTask.new
rescue LoadError => e
task :yard do
abort "Please run `gem install yard` to install YARD."
end
end
require 'yard'
YARD::Rake::YardocTask.new

0 comments on commit 4e4b521

Please sign in to comment.