rhomobile-grit 2.4.1 → 2.4.2

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.
Files changed (4) hide show
  1. data/grit.gemspec +2 -2
  2. data/lib/grit.rb +1 -1
  3. data/lib/grit/index.rb +2 -1
  4. metadata +4 -4
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'rhomobile-grit'
7
- s.version = '2.4.1'
8
- s.date = '2011-01-13'
7
+ s.version = '2.4.2'
8
+ s.date = '2011-04-28'
9
9
  s.rubyforge_project = 'grit'
10
10
 
11
11
  s.summary = "Ruby Git bindings."
@@ -55,7 +55,7 @@ if defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /jruby/
55
55
  end
56
56
 
57
57
  module Grit
58
- VERSION = '2.4.1'
58
+ VERSION = '2.4.2'
59
59
 
60
60
  class << self
61
61
  # Set +debug+ to true to log all git calls and responses
@@ -176,7 +176,8 @@ module Grit
176
176
  str = "%s %s\0%s" % ['40000', k, sha]
177
177
  tree_contents[k + '/'] = str
178
178
  when false
179
- tree_contents.delete(k)
179
+ deleted_file = tree_contents.delete(k)
180
+ tree_contents.delete(k + '/') unless deleted_file
180
181
  end
181
182
  end
182
183
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhomobile-grit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 4
9
- - 1
10
- version: 2.4.1
9
+ - 2
10
+ version: 2.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tom Preston-Werner
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-01-13 00:00:00 Z
19
+ date: 2011-04-28 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: mime-types