Skip to content

Commit

Permalink
switch ot using Jeweler for packaging tasks, and up to version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Jan 28, 2009
1 parent a260539 commit 518385c
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 146 deletions.
6 changes: 4 additions & 2 deletions History.txt
@@ -1,3 +1,7 @@
== 1.0.0 / 2008-01-27
* Tons of awesome in here. Also, we suck at updating the history.
* Let's do better at that from now on.

== 0.8.3 / 2008-07-07
* Capture stderr and log if debug is true (rsanheim)

Expand All @@ -9,5 +13,3 @@

== 0.7.0 / 2008-01-07
* First public release!


71 changes: 0 additions & 71 deletions Manifest.txt

This file was deleted.

47 changes: 35 additions & 12 deletions Rakefile
@@ -1,17 +1,40 @@
require 'rubygems'
require 'hoe'
require './lib/grit.rb'

Hoe.new('grit', Grit::VERSION) do |p|
p.author = 'Tom Preston-Werner'
p.email = 'tom@rubyisawesome.com'
p.summary = 'Object model interface to a git repo'
p.description = p.paragraphs_of('README.txt', 2..2).join("\n\n")
p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[2..-1].map { |u| u.strip }
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
p.extra_deps << ['mime-types']
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "grit"
s.summary = "Object model interface to a git repo"
s.email = "tom@mojombo.com"
s.homepage = "http://github.com/mojombo/grit"
s.description = "Object model interface to a git repo"
s.authors = ["Tom Preston-Werner", "Scott Chacon"]
s.add_dependency('mime-types', '>= 1.15')
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

Rake::TestTask.new do |t|
t.libs << 'lib'
t.pattern = 'test/**/test_*.rb'
t.verbose = false
end

Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'grit'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end

task :default => :test

# custom

desc "Open an irb session preloaded with this library"
task :console do
sh "irb -rubygems -r ./lib/grit.rb"
Expand Down
4 changes: 4 additions & 0 deletions VERSION.yml
@@ -0,0 +1,4 @@
---
:major: 1
:minor: 0
:patch: 0
88 changes: 29 additions & 59 deletions grit.gemspec

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/grit.rb
Expand Up @@ -57,5 +57,5 @@ def log(str)

@logger ||= ::Logger.new(STDOUT)

VERSION = '0.9.4'
VERSION = '1.0.0'
end
2 changes: 1 addition & 1 deletion test/test_repo.rb
Expand Up @@ -61,7 +61,7 @@ def test_description

def test_refs_should_return_array_of_ref_objects
@r.refs.each do |ref|
assert ref.is_a? Grit::Ref
assert ref.is_a?(Grit::Ref)
end
end

Expand Down

0 comments on commit 518385c

Please sign in to comment.