schleyfox-grit 2.3.0 → 2.3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/grit.rb CHANGED
@@ -57,7 +57,7 @@ require 'grit/blame'
57
57
  require 'grit/merge'
58
58
 
59
59
  module Grit
60
- VERSION = '2.3.0'
60
+ VERSION = '2.3.0.1'
61
61
 
62
62
  class << self
63
63
  # Set +debug+ to true to log all git calls and responses
data/lib/grit/repo.rb CHANGED
@@ -502,7 +502,7 @@ module Grit
502
502
  diff = self.git.native('diff', {:full_index => true}, a, b, '--', *paths)
503
503
 
504
504
  if diff =~ /diff --git a/
505
- diff = diff.sub(/.+?(diff --git a)/m, '\1')
505
+ diff = diff.sub(/.*?(diff --git a)/m, '\1')
506
506
  else
507
507
  diff = ''
508
508
  end
@@ -0,0 +1,76 @@
1
+ Gem::Specification.new do |s|
2
+ s.specification_version = 2 if s.respond_to? :specification_version=
3
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
4
+ s.rubygems_version = '1.3.5'
5
+
6
+ s.name = 'schleyfox-grit'
7
+ s.version = '2.3.0.1'
8
+ s.date = '2010-11-29'
9
+ s.rubyforge_project = 'schleyfox-grit'
10
+
11
+ s.summary = "Ruby Git bindings."
12
+ s.description = "Grit is a Ruby library for extracting information from a git repository in an object oriented manner."
13
+
14
+ s.authors = ["Tom Preston-Werner", "Scott Chacon"]
15
+ s.email = 'tom@github.com'
16
+ s.homepage = 'http://github.com/mojombo/grit'
17
+
18
+ s.require_paths = %w[lib]
19
+
20
+ s.rdoc_options = ["--charset=UTF-8"]
21
+ s.extra_rdoc_files = %w[README.md LICENSE]
22
+
23
+ s.add_dependency('mime-types', "~> 1.15")
24
+ s.add_dependency('diff-lcs', "~> 1.1")
25
+
26
+ s.add_development_dependency('mocha')
27
+
28
+ # = MANIFEST =
29
+ s.files = %w[
30
+ API.txt
31
+ History.txt
32
+ LICENSE
33
+ PURE_TODO
34
+ README.md
35
+ Rakefile
36
+ benchmarks.rb
37
+ benchmarks.txt
38
+ examples/ex_add_commit.rb
39
+ examples/ex_index.rb
40
+ lib/grit.rb
41
+ lib/grit/actor.rb
42
+ lib/grit/blame.rb
43
+ lib/grit/blob.rb
44
+ lib/grit/commit.rb
45
+ lib/grit/commit_stats.rb
46
+ lib/grit/config.rb
47
+ lib/grit/diff.rb
48
+ lib/grit/errors.rb
49
+ lib/grit/git-ruby.rb
50
+ lib/grit/git-ruby/commit_db.rb
51
+ lib/grit/git-ruby/file_index.rb
52
+ lib/grit/git-ruby/git_object.rb
53
+ lib/grit/git-ruby/internal/file_window.rb
54
+ lib/grit/git-ruby/internal/loose.rb
55
+ lib/grit/git-ruby/internal/pack.rb
56
+ lib/grit/git-ruby/internal/raw_object.rb
57
+ lib/grit/git-ruby/object.rb
58
+ lib/grit/git-ruby/repository.rb
59
+ lib/grit/git.rb
60
+ lib/grit/index.rb
61
+ lib/grit/lazy.rb
62
+ lib/grit/merge.rb
63
+ lib/grit/open3_detach.rb
64
+ lib/grit/ref.rb
65
+ lib/grit/repo.rb
66
+ lib/grit/ruby1.9.rb
67
+ lib/grit/status.rb
68
+ lib/grit/submodule.rb
69
+ lib/grit/tag.rb
70
+ lib/grit/tree.rb
71
+ schleyfox-grit.gemspec
72
+ ]
73
+ # = MANIFEST =
74
+
75
+ s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
76
+ end
metadata CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 2
7
7
  - 3
8
8
  - 0
9
- version: 2.3.0
9
+ - 1
10
+ version: 2.3.0.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Tom Preston-Werner
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-11-28 00:00:00 -05:00
19
+ date: 2010-11-29 00:00:00 -05:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
@@ -107,6 +108,7 @@ files:
107
108
  - lib/grit/submodule.rb
108
109
  - lib/grit/tag.rb
109
110
  - lib/grit/tree.rb
111
+ - schleyfox-grit.gemspec
110
112
  has_rdoc: true
111
113
  homepage: http://github.com/mojombo/grit
112
114
  licenses: []