Permalink
Browse files

Fix dependencies and remove Rakefile.base.

  • Loading branch information...
1 parent da7cdbe commit eb4debe9c05f13490e7b220c0245e289df5786b4 @bramstein bramstein committed Mar 15, 2016
Showing with 6 additions and 33 deletions.
  1. +3 −2 Rakefile
  2. +0 −31 Rakefile.base
  3. +3 −0 fontvariationdescription.gemspec
View
@@ -1,9 +1,10 @@
-load "Rakefile.base"
+# Ensures we don't push gems to RubyGems.org
+# https://github.com/bundler/bundler/blob/master/lib/bundler/gem_helper.rb#L184-L186
+ENV['gem_push'] = 'off'
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
-
View
@@ -1,31 +0,0 @@
-require 'bundler'
-Bundler::GemHelper.install_tasks
-
-module Bundler
- class GemHelper
- # Override Bundler's concept of release.
- def release_gem
- guard_already_tagged
- edit_changelog
- sh "git commit --allow-empty -a -m 'Release #{version_tag}'"
- tag_version
- build_gem
- git_push
- end
- def edit_changelog
- unless `which git-changelog`.empty?
- sh "git-changelog"
- else
- abort "git-changelog isn't found. Install it with `brew install git-extras`"
- end
- end
- end
-end
-
-desc "Run all tests"
-task :default => :test
-
-desc "Update Rakefile.base"
-task :selfupdate do
- sh "curl -sO https://github.com/rcarver/gembase/raw/master/Rakefile.base"
-end
@@ -16,4 +16,7 @@ Gem::Specification.new do |s|
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.add_development_dependency('test-unit', ["~> 3.1.7"])
+ s.add_development_dependency('rake', ["~> 0.9.2"])
end

0 comments on commit eb4debe

Please sign in to comment.