зеркало из https://github.com/github/grit.git
switch ot using Jeweler for packaging tasks, and up to version 1.0.0
This commit is contained in:
Родитель
a26053925a
Коммит
518385c5af
|
@ -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)
|
||||
|
||||
|
@ -9,5 +13,3 @@
|
|||
|
||||
== 0.7.0 / 2008-01-07
|
||||
* First public release!
|
||||
|
||||
|
||||
|
|
71
Manifest.txt
71
Manifest.txt
|
@ -1,71 +0,0 @@
|
|||
History.txt
|
||||
Manifest.txt
|
||||
README.txt
|
||||
Rakefile
|
||||
grit.gemspec
|
||||
lib/grit/actor.rb
|
||||
lib/grit/blob.rb
|
||||
lib/grit/commit.rb
|
||||
lib/grit/commit_stats.rb
|
||||
lib/grit/config.rb
|
||||
lib/grit/diff.rb
|
||||
lib/grit/errors.rb
|
||||
lib/grit/git-ruby/commit_db.rb
|
||||
lib/grit/git-ruby/file_index.rb
|
||||
lib/grit/git-ruby/git_object.rb
|
||||
lib/grit/git-ruby/internal/loose.rb
|
||||
lib/grit/git-ruby/internal/mmap.rb
|
||||
lib/grit/git-ruby/internal/pack.rb
|
||||
lib/grit/git-ruby/internal/raw_object.rb
|
||||
lib/grit/git-ruby/object.rb
|
||||
lib/grit/git-ruby/repository.rb
|
||||
lib/grit/git-ruby.rb
|
||||
lib/grit/git.rb
|
||||
lib/grit/head.rb
|
||||
lib/grit/index.rb
|
||||
lib/grit/lazy.rb
|
||||
lib/grit/ref.rb
|
||||
lib/grit/repo.rb
|
||||
lib/grit/status.rb
|
||||
lib/grit/submodule.rb
|
||||
lib/grit/tag.rb
|
||||
lib/grit/tree.rb
|
||||
lib/grit.rb
|
||||
test/fixtures/blame
|
||||
test/fixtures/cat_file_blob
|
||||
test/fixtures/cat_file_blob_size
|
||||
test/fixtures/diff_2
|
||||
test/fixtures/diff_2f
|
||||
test/fixtures/diff_f
|
||||
test/fixtures/diff_i
|
||||
test/fixtures/diff_mode_only
|
||||
test/fixtures/diff_new_mode
|
||||
test/fixtures/diff_p
|
||||
test/fixtures/for_each_ref
|
||||
test/fixtures/for_each_ref_remotes
|
||||
test/fixtures/for_each_ref_tags
|
||||
test/fixtures/ls_tree_a
|
||||
test/fixtures/ls_tree_b
|
||||
test/fixtures/ls_tree_commit
|
||||
test/fixtures/rev_list
|
||||
test/fixtures/rev_list_count
|
||||
test/fixtures/rev_list_single
|
||||
test/fixtures/rev_parse
|
||||
test/fixtures/show_empty_commit
|
||||
test/fixtures/simple_config
|
||||
test/helper.rb
|
||||
test/profile.rb
|
||||
test/suite.rb
|
||||
test/test_actor.rb
|
||||
test/test_blob.rb
|
||||
test/test_commit.rb
|
||||
test/test_config.rb
|
||||
test/test_diff.rb
|
||||
test/test_git.rb
|
||||
test/test_grit.rb
|
||||
test/test_head.rb
|
||||
test/test_reality.rb
|
||||
test/test_remote.rb
|
||||
test/test_repo.rb
|
||||
test/test_tag.rb
|
||||
test/test_tree.rb
|
45
Rakefile
45
Rakefile
|
@ -1,17 +1,40 @@
|
|||
require 'rubygems'
|
||||
require 'hoe'
|
||||
require './lib/grit.rb'
|
||||
require 'rake'
|
||||
require 'rake/testtask'
|
||||
require 'rake/rdoctask'
|
||||
|
||||
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']
|
||||
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"
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
:major: 1
|
||||
:minor: 0
|
||||
:patch: 0
|
88
grit.gemspec
88
grit.gemspec
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -57,5 +57,5 @@ module Grit
|
|||
|
||||
@logger ||= ::Logger.new(STDOUT)
|
||||
|
||||
VERSION = '0.9.4'
|
||||
VERSION = '1.0.0'
|
||||
end
|
||||
|
|
|
@ -61,7 +61,7 @@ class TestRepo < Test::Unit::TestCase
|
|||
|
||||
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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче