Skip to content

Commit

Permalink
Use bundler for development, add rake task for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
porras committed Feb 14, 2014
1 parent 5203e19 commit 6383ad0
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org/'

gemspec
18 changes: 18 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
PATH
remote: .
specs:
data_uri (0.0.3)

GEM
remote: https://rubygems.org/
specs:
minitest (5.2.3)
rake (10.1.1)

PLATFORMS
ruby

DEPENDENCIES
data_uri!
minitest
rake
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
require 'rake/testtask'
Rake::TestTask.new
task :default => :test

desc "Build a gem file"
task :build do
system "gem build data_uri.gemspec"
end

3 changes: 3 additions & 0 deletions data_uri.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ Gem::Specification.new do |s|

s.require_path = 'lib'
s.files = %w(README.rdoc Rakefile) + Dir.glob("lib/**/*")

s.add_development_dependency 'rake'
s.add_development_dependency 'minitest'
end
2 changes: 1 addition & 1 deletion test/test_data_open_uri.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'data_uri'
require 'open-uri'
require 'data_uri/open_uri'
require 'minitest/spec'
require 'minitest/autorun'
require 'minitest/spec'

describe URI::Data do

Expand Down
2 changes: 1 addition & 1 deletion test/test_data_uri.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'data_uri'
require 'minitest/spec'
require 'minitest/autorun'
require 'minitest/spec'

describe URI::Data do

Expand Down

0 comments on commit 6383ad0

Please sign in to comment.