git-trip 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +2 -1
- data/History.txt +4 -0
- data/Manifest.txt +3 -56
- data/bin/git-trip +3 -0
- data/git-trip.gemspec +36 -0
- data/lib/git-trip.rb +3 -5
- data/lib/git-trip/errors.rb +1 -0
- data/lib/git-trip/gitter.rb +1 -0
- data/lib/git-trip/gitter/github.rb +68 -0
- data/lib/git-trip/gitter/uri.rb +27 -0
- data/spec/git-trip/errors_spec.rb +4 -0
- data/spec/git-trip/gitter/github_spec.rb +30 -0
- data/spec/git-trip/gitter/uri_spec.rb +4 -1
- data/spec/git-trip/gitter_spec.rb +8 -0
- metadata +5 -61
- metadata.gz.sig +0 -0
- data/vendor/grit/History.txt +0 -6
- data/vendor/grit/Manifest.txt +0 -53
- data/vendor/grit/README.txt +0 -213
- data/vendor/grit/Rakefile +0 -29
- data/vendor/grit/grit.gemspec +0 -16
- data/vendor/grit/lib/grit.rb +0 -37
- data/vendor/grit/lib/grit/actor.rb +0 -36
- data/vendor/grit/lib/grit/blob.rb +0 -117
- data/vendor/grit/lib/grit/commit.rb +0 -208
- data/vendor/grit/lib/grit/config.rb +0 -44
- data/vendor/grit/lib/grit/diff.rb +0 -70
- data/vendor/grit/lib/grit/errors.rb +0 -7
- data/vendor/grit/lib/grit/git.rb +0 -116
- data/vendor/grit/lib/grit/index.rb +0 -77
- data/vendor/grit/lib/grit/lazy.rb +0 -31
- data/vendor/grit/lib/grit/ref.rb +0 -110
- data/vendor/grit/lib/grit/repo.rb +0 -318
- data/vendor/grit/lib/grit/tree.rb +0 -99
- data/vendor/grit/test/fixtures/blame +0 -131
- data/vendor/grit/test/fixtures/cat_file_blob +0 -1
- data/vendor/grit/test/fixtures/cat_file_blob_size +0 -1
- data/vendor/grit/test/fixtures/diff_2 +0 -54
- data/vendor/grit/test/fixtures/diff_2f +0 -19
- data/vendor/grit/test/fixtures/diff_f +0 -15
- data/vendor/grit/test/fixtures/diff_i +0 -201
- data/vendor/grit/test/fixtures/diff_mode_only +0 -1152
- data/vendor/grit/test/fixtures/diff_new_mode +0 -17
- data/vendor/grit/test/fixtures/diff_p +0 -610
- data/vendor/grit/test/fixtures/for_each_ref +0 -0
- data/vendor/grit/test/fixtures/for_each_ref_remotes +0 -0
- data/vendor/grit/test/fixtures/for_each_ref_tags +0 -0
- data/vendor/grit/test/fixtures/ls_tree_a +0 -7
- data/vendor/grit/test/fixtures/ls_tree_b +0 -2
- data/vendor/grit/test/fixtures/ls_tree_commit +0 -3
- data/vendor/grit/test/fixtures/rev_list +0 -26
- data/vendor/grit/test/fixtures/rev_list_count +0 -655
- data/vendor/grit/test/fixtures/rev_list_single +0 -7
- data/vendor/grit/test/fixtures/rev_parse +0 -1
- data/vendor/grit/test/fixtures/show_empty_commit +0 -6
- data/vendor/grit/test/fixtures/simple_config +0 -2
- data/vendor/grit/test/helper.rb +0 -17
- data/vendor/grit/test/profile.rb +0 -21
- data/vendor/grit/test/suite.rb +0 -6
- data/vendor/grit/test/test_actor.rb +0 -35
- data/vendor/grit/test/test_blob.rb +0 -74
- data/vendor/grit/test/test_commit.rb +0 -182
- data/vendor/grit/test/test_config.rb +0 -58
- data/vendor/grit/test/test_diff.rb +0 -18
- data/vendor/grit/test/test_git.rb +0 -52
- data/vendor/grit/test/test_head.rb +0 -22
- data/vendor/grit/test/test_real.rb +0 -19
- data/vendor/grit/test/test_reality.rb +0 -17
- data/vendor/grit/test/test_remote.rb +0 -15
- data/vendor/grit/test/test_repo.rb +0 -278
- data/vendor/grit/test/test_tag.rb +0 -29
- data/vendor/grit/test/test_tree.rb +0 -91
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
i4wjШC��С��b5��x%AA@���#t�
|
2
|
+
L����?ߘV?�־Z�a;�Lwh��y83���f��b`ZSafD����X�]�#c@�"�)GeNdL;��{��N+��ρcG�����
|
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -4,12 +4,14 @@ README.txt
|
|
4
4
|
Rakefile
|
5
5
|
bin/git-trip
|
6
6
|
doc/USAGE.txt
|
7
|
+
git-trip.gemspec
|
7
8
|
lib/core_ext/hash.rb
|
8
9
|
lib/git-trip.rb
|
9
10
|
lib/git-trip/errors.rb
|
10
11
|
lib/git-trip/gitter.rb
|
11
12
|
lib/git-trip/gitter/base.rb
|
12
13
|
lib/git-trip/gitter/dir.rb
|
14
|
+
lib/git-trip/gitter/github.rb
|
13
15
|
lib/git-trip/gitter/uri.rb
|
14
16
|
lib/git-trip/paint_mode.rb
|
15
17
|
lib/git-trip/painter.rb
|
@@ -17,6 +19,7 @@ spec/core_ext/hash_spec.rb
|
|
17
19
|
spec/git-trip/errors_spec.rb
|
18
20
|
spec/git-trip/gitter/base_spec.rb
|
19
21
|
spec/git-trip/gitter/dir_spec.rb
|
22
|
+
spec/git-trip/gitter/github_spec.rb
|
20
23
|
spec/git-trip/gitter/uri_spec.rb
|
21
24
|
spec/git-trip/gitter_spec.rb
|
22
25
|
spec/git-trip/paint_mode_spec.rb
|
@@ -31,59 +34,3 @@ tasks/gittrip.rake
|
|
31
34
|
tasks/rspec.rake
|
32
35
|
tasks/site.rake
|
33
36
|
tasks/util.rake
|
34
|
-
vendor/grit/History.txt
|
35
|
-
vendor/grit/Manifest.txt
|
36
|
-
vendor/grit/README.txt
|
37
|
-
vendor/grit/Rakefile
|
38
|
-
vendor/grit/grit.gemspec
|
39
|
-
vendor/grit/lib/grit.rb
|
40
|
-
vendor/grit/lib/grit/actor.rb
|
41
|
-
vendor/grit/lib/grit/blob.rb
|
42
|
-
vendor/grit/lib/grit/commit.rb
|
43
|
-
vendor/grit/lib/grit/config.rb
|
44
|
-
vendor/grit/lib/grit/diff.rb
|
45
|
-
vendor/grit/lib/grit/errors.rb
|
46
|
-
vendor/grit/lib/grit/git.rb
|
47
|
-
vendor/grit/lib/grit/index.rb
|
48
|
-
vendor/grit/lib/grit/lazy.rb
|
49
|
-
vendor/grit/lib/grit/ref.rb
|
50
|
-
vendor/grit/lib/grit/repo.rb
|
51
|
-
vendor/grit/lib/grit/tree.rb
|
52
|
-
vendor/grit/test/fixtures/blame
|
53
|
-
vendor/grit/test/fixtures/cat_file_blob
|
54
|
-
vendor/grit/test/fixtures/cat_file_blob_size
|
55
|
-
vendor/grit/test/fixtures/diff_2
|
56
|
-
vendor/grit/test/fixtures/diff_2f
|
57
|
-
vendor/grit/test/fixtures/diff_f
|
58
|
-
vendor/grit/test/fixtures/diff_i
|
59
|
-
vendor/grit/test/fixtures/diff_mode_only
|
60
|
-
vendor/grit/test/fixtures/diff_new_mode
|
61
|
-
vendor/grit/test/fixtures/diff_p
|
62
|
-
vendor/grit/test/fixtures/for_each_ref
|
63
|
-
vendor/grit/test/fixtures/for_each_ref_remotes
|
64
|
-
vendor/grit/test/fixtures/for_each_ref_tags
|
65
|
-
vendor/grit/test/fixtures/ls_tree_a
|
66
|
-
vendor/grit/test/fixtures/ls_tree_b
|
67
|
-
vendor/grit/test/fixtures/ls_tree_commit
|
68
|
-
vendor/grit/test/fixtures/rev_list
|
69
|
-
vendor/grit/test/fixtures/rev_list_count
|
70
|
-
vendor/grit/test/fixtures/rev_list_single
|
71
|
-
vendor/grit/test/fixtures/rev_parse
|
72
|
-
vendor/grit/test/fixtures/show_empty_commit
|
73
|
-
vendor/grit/test/fixtures/simple_config
|
74
|
-
vendor/grit/test/helper.rb
|
75
|
-
vendor/grit/test/profile.rb
|
76
|
-
vendor/grit/test/suite.rb
|
77
|
-
vendor/grit/test/test_actor.rb
|
78
|
-
vendor/grit/test/test_blob.rb
|
79
|
-
vendor/grit/test/test_commit.rb
|
80
|
-
vendor/grit/test/test_config.rb
|
81
|
-
vendor/grit/test/test_diff.rb
|
82
|
-
vendor/grit/test/test_git.rb
|
83
|
-
vendor/grit/test/test_head.rb
|
84
|
-
vendor/grit/test/test_real.rb
|
85
|
-
vendor/grit/test/test_reality.rb
|
86
|
-
vendor/grit/test/test_remote.rb
|
87
|
-
vendor/grit/test/test_repo.rb
|
88
|
-
vendor/grit/test/test_tag.rb
|
89
|
-
vendor/grit/test/test_tree.rb
|
data/bin/git-trip
CHANGED
data/git-trip.gemspec
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = 'git-trip'
|
3
|
+
s.version = '0.0.5'
|
4
|
+
s.authors = ['Dale Campbell']
|
5
|
+
s.email = ['dale@save-state.net']
|
6
|
+
s.homepage = 'http://git-trip.rubyforge.org'
|
7
|
+
s.date = %q{2008-07-08}
|
8
|
+
s.summary = %q{Visualize git commit SHAs.}
|
9
|
+
s.description = %q{Visualize git commit SHAs. It's nerd acid!}
|
10
|
+
|
11
|
+
s.rubyforge_project = %q{git-trip}
|
12
|
+
s.rubygems_version = %q{1.2.0}
|
13
|
+
|
14
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
15
|
+
s.require_paths = ["lib"]
|
16
|
+
s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/git-trip", "doc/USAGE.txt", "lib/core_ext/hash.rb", "lib/git-trip.rb", "lib/git-trip/errors.rb", "lib/git-trip/gitter.rb", "lib/git-trip/gitter/base.rb", "lib/git-trip/gitter/dir.rb", "lib/git-trip/gitter/uri.rb", "lib/git-trip/paint_mode.rb", "lib/git-trip/painter.rb", "spec/core_ext/hash_spec.rb", "spec/git-trip/errors_spec.rb", "spec/git-trip/gitter/base_spec.rb", "spec/git-trip/gitter/dir_spec.rb", "spec/git-trip/gitter/uri_spec.rb", "spec/git-trip/gitter_spec.rb", "spec/git-trip/paint_mode_spec.rb", "spec/git-trip/painter_spec.rb", "spec/git_trip_spec.rb", "spec/rcov.opts", "spec/spec.opts", "spec/spec_helper.rb", "tasks/ditz.rake", "tasks/docs.rake", "tasks/gittrip.rake", "tasks/rspec.rake", "tasks/site.rake", "tasks/util.rake", "vendor/grit/History.txt", "vendor/grit/Manifest.txt", "vendor/grit/README.txt", "vendor/grit/Rakefile", "vendor/grit/grit.gemspec", "vendor/grit/lib/grit.rb", "vendor/grit/lib/grit/actor.rb", "vendor/grit/lib/grit/blob.rb", "vendor/grit/lib/grit/commit.rb", "vendor/grit/lib/grit/config.rb", "vendor/grit/lib/grit/diff.rb", "vendor/grit/lib/grit/errors.rb", "vendor/grit/lib/grit/git.rb", "vendor/grit/lib/grit/index.rb", "vendor/grit/lib/grit/lazy.rb", "vendor/grit/lib/grit/ref.rb", "vendor/grit/lib/grit/repo.rb", "vendor/grit/lib/grit/tree.rb", "vendor/grit/test/fixtures/blame", "vendor/grit/test/fixtures/cat_file_blob", "vendor/grit/test/fixtures/cat_file_blob_size", "vendor/grit/test/fixtures/diff_2", "vendor/grit/test/fixtures/diff_2f", "vendor/grit/test/fixtures/diff_f", "vendor/grit/test/fixtures/diff_i", "vendor/grit/test/fixtures/diff_mode_only", "vendor/grit/test/fixtures/diff_new_mode", "vendor/grit/test/fixtures/diff_p", "vendor/grit/test/fixtures/for_each_ref", "vendor/grit/test/fixtures/for_each_ref_remotes", "vendor/grit/test/fixtures/for_each_ref_tags", "vendor/grit/test/fixtures/ls_tree_a", "vendor/grit/test/fixtures/ls_tree_b", "vendor/grit/test/fixtures/ls_tree_commit", "vendor/grit/test/fixtures/rev_list", "vendor/grit/test/fixtures/rev_list_count", "vendor/grit/test/fixtures/rev_list_single", "vendor/grit/test/fixtures/rev_parse", "vendor/grit/test/fixtures/show_empty_commit", "vendor/grit/test/fixtures/simple_config", "vendor/grit/test/helper.rb", "vendor/grit/test/profile.rb", "vendor/grit/test/suite.rb", "vendor/grit/test/test_actor.rb", "vendor/grit/test/test_blob.rb", "vendor/grit/test/test_commit.rb", "vendor/grit/test/test_config.rb", "vendor/grit/test/test_diff.rb", "vendor/grit/test/test_git.rb", "vendor/grit/test/test_head.rb", "vendor/grit/test/test_real.rb", "vendor/grit/test/test_reality.rb", "vendor/grit/test/test_remote.rb", "vendor/grit/test/test_repo.rb", "vendor/grit/test/test_tag.rb", "vendor/grit/test/test_tree.rb"]
|
17
|
+
|
18
|
+
s.has_rdoc = true
|
19
|
+
s.remote_rdoc_dir = 'api'
|
20
|
+
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt", "doc/USAGE.txt"]
|
21
|
+
rdoc_title = 'GitTrip v0.0.5 Documentation'
|
22
|
+
s.rdoc_options = ["--main", "README.txt", '--all', '--inline-source', '--line-numbers', "--title #{rdoc_title}"]
|
23
|
+
|
24
|
+
if s.respond_to? :specification_version then
|
25
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
26
|
+
s.specification_version = 2
|
27
|
+
|
28
|
+
if current_version >= 3 then
|
29
|
+
s.add_runtime_dependency(%q<hoe>, [">= 1.6.0"])
|
30
|
+
else
|
31
|
+
s.add_dependency(%q<hoe>, [">= 1.6.0"])
|
32
|
+
end
|
33
|
+
else
|
34
|
+
s.add_dependency(%q<hoe>, [">= 1.6.0"])
|
35
|
+
end
|
36
|
+
end
|
data/lib/git-trip.rb
CHANGED
@@ -1,15 +1,13 @@
|
|
1
|
-
$LOAD_PATH.unshift File.dirname(__FILE__)
|
1
|
+
$LOAD_PATH.unshift File.dirname(__FILE__)
|
2
2
|
|
3
3
|
# Third-party libraries...
|
4
4
|
require 'rubygems'
|
5
5
|
require 'digest/sha1'
|
6
|
+
require 'grit'
|
6
7
|
require 'json'
|
7
8
|
require 'open-uri'
|
8
9
|
require 'RMagick'
|
9
10
|
|
10
|
-
# ...in ./vendor/
|
11
|
-
require 'vendor/grit/lib/grit'
|
12
|
-
|
13
11
|
# GitTrip libraries.
|
14
12
|
require 'core_ext/hash'
|
15
13
|
require 'git-trip/errors'
|
@@ -18,6 +16,6 @@ require 'git-trip/paint_mode'
|
|
18
16
|
require 'git-trip/painter'
|
19
17
|
|
20
18
|
module GitTrip
|
21
|
-
VERSION = '0.0.
|
19
|
+
VERSION = '0.0.5'
|
22
20
|
include GitTrip::Errors
|
23
21
|
end
|
data/lib/git-trip/errors.rb
CHANGED
data/lib/git-trip/gitter.rb
CHANGED
@@ -0,0 +1,68 @@
|
|
1
|
+
module GitTrip
|
2
|
+
module Gitter
|
3
|
+
|
4
|
+
# Handles fetching git repository information Github.
|
5
|
+
class GitHub < Gitter::Base
|
6
|
+
FORMATS = %w{ json xml }
|
7
|
+
DEFAULTS = {
|
8
|
+
:format => 'json'
|
9
|
+
}
|
10
|
+
|
11
|
+
# Takes a GitHub +tag+ in the form of 'Username/repository'.
|
12
|
+
# ex. 'Oshuma/git-trip'.
|
13
|
+
#
|
14
|
+
# +options+ can be a hash containing:
|
15
|
+
# * <tt>format</tt>: See FORMATS; defaults to 'json'.
|
16
|
+
#
|
17
|
+
# TODO: Add 'branch' option; default to master.
|
18
|
+
def initialize(tag, options = {})
|
19
|
+
raise Errors::InvalidGitHubTag if invalid_tag?(tag)
|
20
|
+
@options = DEFAULTS.merge(options)
|
21
|
+
raise Errors::InvalidFormat if invalid_format?(@options[:format])
|
22
|
+
@tag = tag
|
23
|
+
@uri = "http://github.com/api/v1/#{@options[:format]}/#{@tag}/commits/master"
|
24
|
+
@data = {}
|
25
|
+
@repo = nil
|
26
|
+
fetch_repo
|
27
|
+
setup_data_hash
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
# Fetches repository information from the <tt>@uri</tt>.
|
33
|
+
def fetch_repo
|
34
|
+
@repo = case @options[:format]
|
35
|
+
when 'json'
|
36
|
+
JSON.parse(open(@uri).read).symbolize_keys
|
37
|
+
end
|
38
|
+
@repo[:commits].each { |h| h.symbolize_keys! if h.is_a? Hash }
|
39
|
+
end
|
40
|
+
|
41
|
+
# Returns true if the given +format+ is invalid.
|
42
|
+
def invalid_format?(format)
|
43
|
+
return true unless FORMATS.include?(format)
|
44
|
+
end
|
45
|
+
|
46
|
+
# Returns true if the given +tag+ is not formatted as such:
|
47
|
+
# 'Username/repo_name'
|
48
|
+
def invalid_tag?(tag)
|
49
|
+
tag.grep(/\w*\/\w*/).empty?
|
50
|
+
end
|
51
|
+
|
52
|
+
# Loads the <tt>@data</tt> hash with repository information.
|
53
|
+
def setup_data_hash
|
54
|
+
load_repo_commits
|
55
|
+
end
|
56
|
+
|
57
|
+
# Loads a hash of commits into <tt>@data[:commits]</tt>.
|
58
|
+
def load_repo_commits
|
59
|
+
commits = []
|
60
|
+
@repo[:commits].each do |commit|
|
61
|
+
commits << commit[:id]
|
62
|
+
end
|
63
|
+
@data[:commits] = commits
|
64
|
+
end
|
65
|
+
end # of GitHub
|
66
|
+
|
67
|
+
end # of Gitter
|
68
|
+
end
|
data/lib/git-trip/gitter/uri.rb
CHANGED
@@ -21,10 +21,23 @@ module GitTrip
|
|
21
21
|
@uri = uri
|
22
22
|
@options = DEFAULTS.merge(options)
|
23
23
|
raise Errors::InvalidFormat if invalid_format?(@options[:format])
|
24
|
+
@repo = nil
|
25
|
+
@data = {}
|
26
|
+
fetch_repo
|
27
|
+
setup_data_hash
|
24
28
|
end
|
25
29
|
|
26
30
|
private
|
27
31
|
|
32
|
+
# Fetches repository information from the <tt>@uri</tt>.
|
33
|
+
def fetch_repo
|
34
|
+
@repo = case @options[:format]
|
35
|
+
when 'json'
|
36
|
+
JSON.parse(open(@uri).read).symbolize_keys
|
37
|
+
end
|
38
|
+
@repo[:commits].each { |h| h.symbolize_keys! if h.is_a? Hash }
|
39
|
+
end
|
40
|
+
|
28
41
|
# Returns true if the given +format+ is invalid.
|
29
42
|
def invalid_format?(format)
|
30
43
|
return true unless FORMATS.include?(format)
|
@@ -34,6 +47,20 @@ module GitTrip
|
|
34
47
|
def invalid_uri?(uri)
|
35
48
|
uri.grep(/^(#{PROTOCOLS.join('|')}):\/\/\w/).empty?
|
36
49
|
end
|
50
|
+
|
51
|
+
# Loads the <tt>@data</tt> hash with repository information.
|
52
|
+
def setup_data_hash
|
53
|
+
load_repo_commits
|
54
|
+
end
|
55
|
+
|
56
|
+
# Loads a hash of commits into <tt>@data[:commits]</tt>.
|
57
|
+
def load_repo_commits
|
58
|
+
commits = []
|
59
|
+
@repo[:commits].each do |commit|
|
60
|
+
commits << commit[:id]
|
61
|
+
end
|
62
|
+
@data[:commits] = commits
|
63
|
+
end
|
37
64
|
end # of URI
|
38
65
|
|
39
66
|
end # of Gitter
|
@@ -9,6 +9,10 @@ describe Errors do
|
|
9
9
|
Errors::InvalidFormat.should be_a_kind_of(Class)
|
10
10
|
end
|
11
11
|
|
12
|
+
it "should define InvalidGitHubTag" do
|
13
|
+
Errors::InvalidGitHubTag.should be_a_kind_of(Class)
|
14
|
+
end
|
15
|
+
|
12
16
|
it "should define InvalidGitRepo" do
|
13
17
|
Errors::InvalidGitRepo.should be_a_kind_of(Class)
|
14
18
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
2
|
+
|
3
|
+
describe Gitter::GitHub do
|
4
|
+
before(:each) do
|
5
|
+
@tag = 'Oshuma/git-trip'
|
6
|
+
@repo = Gitter::GitHub.new(@tag)
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should read a repository from GitHub" do
|
10
|
+
@repo.should be_a_kind_of(Gitter::GitHub)
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should raise Errors::InvalidFormat" do
|
14
|
+
lambda do
|
15
|
+
Gitter::GitHub.new(@tag, :format => 'invalid')
|
16
|
+
end.should raise_error(Errors::InvalidFormat)
|
17
|
+
end
|
18
|
+
|
19
|
+
it "should raise Errors::InvalidGitHubTag" do
|
20
|
+
lambda do
|
21
|
+
Gitter::GitHub.new('bogus tag')
|
22
|
+
end.should raise_error(Errors::InvalidGitHubTag)
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should return an array of commit SHAs" do
|
26
|
+
@repo.commits.should_not be_empty
|
27
|
+
end
|
28
|
+
|
29
|
+
it "should return the author of a commit"
|
30
|
+
end
|
@@ -20,6 +20,9 @@ describe Gitter::URI do
|
|
20
20
|
lambda { Gitter::URI.new('bogus URI') }.should raise_error(Errors::InvalidURI)
|
21
21
|
end
|
22
22
|
|
23
|
-
it "should return an array of commit SHAs"
|
23
|
+
it "should return an array of commit SHAs" do
|
24
|
+
@repo.commits.should_not be_empty
|
25
|
+
end
|
26
|
+
|
24
27
|
it "should return the author of a commit"
|
25
28
|
end
|
@@ -1,10 +1,18 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
2
|
|
3
3
|
describe Gitter, '(module)' do
|
4
|
+
it "should include Gitter::Base" do
|
5
|
+
Gitter::Base.should be_a_kind_of(Class)
|
6
|
+
end
|
7
|
+
|
4
8
|
it "should include Gitter::Dir" do
|
5
9
|
Gitter::Dir.should be_a_kind_of(Class)
|
6
10
|
end
|
7
11
|
|
12
|
+
it "should include Gitter::GitHub" do
|
13
|
+
Gitter::GitHub.should be_a_kind_of(Class)
|
14
|
+
end
|
15
|
+
|
8
16
|
it "should include Gitter::URI" do
|
9
17
|
Gitter::URI.should be_a_kind_of(Class)
|
10
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-trip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dale Campbell
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
hZs=
|
31
31
|
-----END CERTIFICATE-----
|
32
32
|
|
33
|
-
date: 2008-07-
|
33
|
+
date: 2008-07-09 00:00:00 -05:00
|
34
34
|
default_executable:
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
@@ -55,9 +55,6 @@ extra_rdoc_files:
|
|
55
55
|
- Manifest.txt
|
56
56
|
- README.txt
|
57
57
|
- doc/USAGE.txt
|
58
|
-
- vendor/grit/History.txt
|
59
|
-
- vendor/grit/Manifest.txt
|
60
|
-
- vendor/grit/README.txt
|
61
58
|
files:
|
62
59
|
- History.txt
|
63
60
|
- Manifest.txt
|
@@ -65,12 +62,14 @@ files:
|
|
65
62
|
- Rakefile
|
66
63
|
- bin/git-trip
|
67
64
|
- doc/USAGE.txt
|
65
|
+
- git-trip.gemspec
|
68
66
|
- lib/core_ext/hash.rb
|
69
67
|
- lib/git-trip.rb
|
70
68
|
- lib/git-trip/errors.rb
|
71
69
|
- lib/git-trip/gitter.rb
|
72
70
|
- lib/git-trip/gitter/base.rb
|
73
71
|
- lib/git-trip/gitter/dir.rb
|
72
|
+
- lib/git-trip/gitter/github.rb
|
74
73
|
- lib/git-trip/gitter/uri.rb
|
75
74
|
- lib/git-trip/paint_mode.rb
|
76
75
|
- lib/git-trip/painter.rb
|
@@ -78,6 +77,7 @@ files:
|
|
78
77
|
- spec/git-trip/errors_spec.rb
|
79
78
|
- spec/git-trip/gitter/base_spec.rb
|
80
79
|
- spec/git-trip/gitter/dir_spec.rb
|
80
|
+
- spec/git-trip/gitter/github_spec.rb
|
81
81
|
- spec/git-trip/gitter/uri_spec.rb
|
82
82
|
- spec/git-trip/gitter_spec.rb
|
83
83
|
- spec/git-trip/paint_mode_spec.rb
|
@@ -92,62 +92,6 @@ files:
|
|
92
92
|
- tasks/rspec.rake
|
93
93
|
- tasks/site.rake
|
94
94
|
- tasks/util.rake
|
95
|
-
- vendor/grit/History.txt
|
96
|
-
- vendor/grit/Manifest.txt
|
97
|
-
- vendor/grit/README.txt
|
98
|
-
- vendor/grit/Rakefile
|
99
|
-
- vendor/grit/grit.gemspec
|
100
|
-
- vendor/grit/lib/grit.rb
|
101
|
-
- vendor/grit/lib/grit/actor.rb
|
102
|
-
- vendor/grit/lib/grit/blob.rb
|
103
|
-
- vendor/grit/lib/grit/commit.rb
|
104
|
-
- vendor/grit/lib/grit/config.rb
|
105
|
-
- vendor/grit/lib/grit/diff.rb
|
106
|
-
- vendor/grit/lib/grit/errors.rb
|
107
|
-
- vendor/grit/lib/grit/git.rb
|
108
|
-
- vendor/grit/lib/grit/index.rb
|
109
|
-
- vendor/grit/lib/grit/lazy.rb
|
110
|
-
- vendor/grit/lib/grit/ref.rb
|
111
|
-
- vendor/grit/lib/grit/repo.rb
|
112
|
-
- vendor/grit/lib/grit/tree.rb
|
113
|
-
- vendor/grit/test/fixtures/blame
|
114
|
-
- vendor/grit/test/fixtures/cat_file_blob
|
115
|
-
- vendor/grit/test/fixtures/cat_file_blob_size
|
116
|
-
- vendor/grit/test/fixtures/diff_2
|
117
|
-
- vendor/grit/test/fixtures/diff_2f
|
118
|
-
- vendor/grit/test/fixtures/diff_f
|
119
|
-
- vendor/grit/test/fixtures/diff_i
|
120
|
-
- vendor/grit/test/fixtures/diff_mode_only
|
121
|
-
- vendor/grit/test/fixtures/diff_new_mode
|
122
|
-
- vendor/grit/test/fixtures/diff_p
|
123
|
-
- vendor/grit/test/fixtures/for_each_ref
|
124
|
-
- vendor/grit/test/fixtures/for_each_ref_remotes
|
125
|
-
- vendor/grit/test/fixtures/for_each_ref_tags
|
126
|
-
- vendor/grit/test/fixtures/ls_tree_a
|
127
|
-
- vendor/grit/test/fixtures/ls_tree_b
|
128
|
-
- vendor/grit/test/fixtures/ls_tree_commit
|
129
|
-
- vendor/grit/test/fixtures/rev_list
|
130
|
-
- vendor/grit/test/fixtures/rev_list_count
|
131
|
-
- vendor/grit/test/fixtures/rev_list_single
|
132
|
-
- vendor/grit/test/fixtures/rev_parse
|
133
|
-
- vendor/grit/test/fixtures/show_empty_commit
|
134
|
-
- vendor/grit/test/fixtures/simple_config
|
135
|
-
- vendor/grit/test/helper.rb
|
136
|
-
- vendor/grit/test/profile.rb
|
137
|
-
- vendor/grit/test/suite.rb
|
138
|
-
- vendor/grit/test/test_actor.rb
|
139
|
-
- vendor/grit/test/test_blob.rb
|
140
|
-
- vendor/grit/test/test_commit.rb
|
141
|
-
- vendor/grit/test/test_config.rb
|
142
|
-
- vendor/grit/test/test_diff.rb
|
143
|
-
- vendor/grit/test/test_git.rb
|
144
|
-
- vendor/grit/test/test_head.rb
|
145
|
-
- vendor/grit/test/test_real.rb
|
146
|
-
- vendor/grit/test/test_reality.rb
|
147
|
-
- vendor/grit/test/test_remote.rb
|
148
|
-
- vendor/grit/test/test_repo.rb
|
149
|
-
- vendor/grit/test/test_tag.rb
|
150
|
-
- vendor/grit/test/test_tree.rb
|
151
95
|
has_rdoc: true
|
152
96
|
homepage: "Author:: Dale Campbell <dale@save-state.net>"
|
153
97
|
post_install_message:
|