grit-ext 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/lib/grit-ext.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'grit'
2
+ require 'grit/ext/blob'
2
3
  require 'grit/ext/diff'
3
4
  require 'grit/ext/diff_hunk'
4
5
  require 'grit/ext/diff_header'
@@ -0,0 +1,7 @@
1
+ module Grit
2
+ class Blob
3
+ def id
4
+ @repo.git.rev_parse({}, @id)
5
+ end
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  module Grit
2
2
  module Ext
3
- VERSION = '0.0.6'
3
+ VERSION = '0.0.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grit-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-03 00:00:00.000000000 Z
12
+ date: 2013-07-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: grit
@@ -66,6 +66,7 @@ executables: []
66
66
  extensions: []
67
67
  extra_rdoc_files: []
68
68
  files:
69
+ - lib/grit/ext/blob.rb
69
70
  - lib/grit/ext/diff.rb
70
71
  - lib/grit/ext/diff_header.rb
71
72
  - lib/grit/ext/diff_hunk.rb