Skip to content

Commit

Permalink
Switching to use bundler instead of hoe for gem creation/publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
verdammelt committed Aug 14, 2011
1 parent dda9dfb commit 34ae8c6
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 42 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*~
pkg
4 changes: 4 additions & 0 deletions Gemfile
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
26 changes: 26 additions & 0 deletions Gemfile.lock
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
4 changes: 4 additions & 0 deletions History.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
=== 0.0.6 2011-08-14
* 1 Major change:
* switched from using hoe to bundler for gem creation

=== 0.0.5 2011-08-11
* 1 cosmetic change:
* removing some uneeded rake cruft
Expand Down
13 changes: 0 additions & 13 deletions Manifest.txt

This file was deleted.

7 changes: 0 additions & 7 deletions PostInstall.txt

This file was deleted.

30 changes: 12 additions & 18 deletions Rakefile
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]

4 changes: 0 additions & 4 deletions lib/rangehash.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
$:.unshift(File.dirname(__FILE__)) unless
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))

module Rangehash
VERSION = '0.0.5'
end

class RangeHash < Hash
def [](key)
value = find_value key
Expand Down
4 changes: 4 additions & 0 deletions lib/rangehash/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Rangehash
VERSION = "0.0.6"
end

28 changes: 28 additions & 0 deletions rangehash.gemspec
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

0 comments on commit 34ae8c6

Please sign in to comment.