-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switching to use bundler instead of hoe for gem creation/publishing
- Loading branch information
1 parent
dda9dfb
commit 34ae8c6
Showing
10 changed files
with
79 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*~ | ||
pkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source "http://rubygems.org" | ||
|
||
# Specify your gem's dependencies in rangehash.gemspec | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
RangeHash (0.0.6) | ||
|
||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
diff-lcs (1.1.2) | ||
rcov (0.9.10) | ||
rspec (2.6.0) | ||
rspec-core (~> 2.6.0) | ||
rspec-expectations (~> 2.6.0) | ||
rspec-mocks (~> 2.6.0) | ||
rspec-core (2.6.4) | ||
rspec-expectations (2.6.0) | ||
diff-lcs (~> 1.1.2) | ||
rspec-mocks (2.6.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
RangeHash! | ||
rcov | ||
rspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
# -*- coding: utf-8 -*- | ||
require 'rubygems' | ||
gem 'hoe', '>= 2.1.0' | ||
require 'hoe' | ||
require 'fileutils' | ||
require './lib/rangehash' | ||
require 'rake' | ||
require 'rspec/core/rake_task' | ||
require "bundler/gem_tasks" | ||
|
||
Hoe.plugin :newgem | ||
Hoe.plugin :flay | ||
Hoe.plugin :flog | ||
Hoe.plugin :reek | ||
Hoe.plugin :roodi | ||
RSpec::Core::RakeTask.new(:spec) do |t| | ||
t.rspec_opts = ['--format', 'progress' ] | ||
end | ||
|
||
$hoe = Hoe.spec 'rangehash' do | ||
self.developer 'Mark Simpson', 'verdammelt@gmail.com' | ||
self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required | ||
self.rubyforge_name = self.name | ||
self.test_globs = ["spec/**/*_spec.rb"] | ||
self.extra_rdoc_files = ["README.rdoc"] | ||
desc "Run all specs with RCov" | ||
RSpec::Core::RakeTask.new(:rcov) do |t| | ||
t.rcov = true | ||
t.rcov_opts = ['--text-report', '--save', 'coverage.info', '--exclude', 'spec_helper', '--exclude', '^/'] | ||
end | ||
|
||
require 'newgem/tasks' | ||
task :default => [:spec] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module Rangehash | ||
VERSION = "0.0.6" | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# -*- encoding: utf-8 -*- | ||
$:.push File.expand_path("../lib", __FILE__) | ||
require "rangehash/version" | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "RangeHash" | ||
s.version = Rangehash::VERSION | ||
s.authors = ["Mark Simpson"] | ||
s.email = ["verdammelt@gmail.com"] | ||
s.license = 'MIT' | ||
s.homepage = "https://github.com/verdammelt/rangehash" | ||
s.summary = %q{Subclass of Hash which allows Ranges as the keys} | ||
s.description = <<-EOF | ||
RangeHash subclasses Hash and adds functionality so that Ranges can | ||
be the keys and values can be found by FixNums within those ranges. | ||
EOF | ||
|
||
s.rubyforge_project = "rangehash" | ||
|
||
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"] | ||
|
||
# specify any dependencies here; for example: | ||
s.add_development_dependency "rspec" | ||
s.add_development_dependency "rcov" | ||
end |