acts_as_git 0.1.0 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc3679a8508f062ffe650d55db72d791a36c0127
4
- data.tar.gz: 09facb40c19acafa08e3a37b0ae12000f9850232
3
+ metadata.gz: 57d28b8bef810b5e765dbb866cfe9bcb62ae2a93
4
+ data.tar.gz: 8b289a71897459306e711a6b89ee58574736c6f5
5
5
  SHA512:
6
- metadata.gz: ef96fa5c6ec73f818a3bec7e89d6ff58871609b4e2e06e21ed4f1bdb363403d233e1e9f5ad4a04fddea793a4eb5379746ef4030d784e2d886c0edfbd14b86399
7
- data.tar.gz: 48869fd42be00dddfdd0f4c5e325e1c2c1487a4b6be12a5c443ba29953bb3d9ed17e2df1c9a9c1bd29a0a8be03c4f105b424b3f3fe7afd227ed55c30128e6191
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.0'
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[filename]
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_git
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi Amemiya