grit-ext 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/lib/grit/ext/blob.rb CHANGED
@@ -3,5 +3,12 @@ module Grit
3
3
  def id
4
4
  @repo.git.rev_parse({}, @id)
5
5
  end
6
+
7
+ def create_tempfile
8
+ file = Tempfile.new(id)
9
+ file.write(data)
10
+ file.close
11
+ file
12
+ end
6
13
  end
7
14
  end
@@ -1,5 +1,5 @@
1
1
  module Grit
2
2
  module Ext
3
- VERSION = '0.0.10'
3
+ VERSION = '0.0.11'
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.10
4
+ version: 0.0.11
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-20 00:00:00.000000000 Z
12
+ date: 2013-07-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: grit