acts_as_git 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/acts_as_git.gemspec +1 -1
- data/lib/acts_as_git.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57d28b8bef810b5e765dbb866cfe9bcb62ae2a93
|
4
|
+
data.tar.gz: 8b289a71897459306e711a6b89ee58574736c6f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cdcc4881e2072c571d229daf2b6c59a88ed8948effd5ebf64fc578a9076cababfd1ba00b646df77a6eabd9ddd02e88d8286f923eedaa13fdb0ca307cc28a1ac
|
7
|
+
data.tar.gz: 982b943454ed3e833326b05018f1cf79f8ac3ee8e72977cf6a01b9e94062fa374f4de9e32881c8f9fa0494544431878f853b6535ff7c20f07968e1301faca5d3
|
data/acts_as_git.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.homepage = "https://github.com/rail44/acts_as_git"
|
9
9
|
s.summary = "Make your field act as a git repo"
|
10
10
|
s.description = "Make your field act as a git repo. Save the content to a file, and load the content from a file."
|
11
|
-
s.version = '0.1.
|
11
|
+
s.version = '0.1.1'
|
12
12
|
s.date = Time.now.strftime("%Y-%m-%d")
|
13
13
|
|
14
14
|
s.extra_rdoc_files = Dir["*.rdoc"]
|
data/lib/acts_as_git.rb
CHANGED
@@ -125,7 +125,7 @@ module ActsAsGit
|
|
125
125
|
return nil unless repodir
|
126
126
|
return nil unless filename
|
127
127
|
return nil if @@repo.empty?
|
128
|
-
return nil unless fileob = commit.tree
|
128
|
+
return nil unless fileob = commit.tree.path(filename)
|
129
129
|
oid = fileob[:oid]
|
130
130
|
file = StringIO.new(@@repo.lookup(oid).content)
|
131
131
|
file.seek(offset) if offset
|