git 1.2.7 → 1.2.8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of git might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e73a59980e39d1594016c2f8964e0455ef7c25d3
4
- data.tar.gz: 2e33fbe0fb5bb3174b3e79bbc86ecf343576dfb5
3
+ metadata.gz: aaf7dd4bc18409515ebafd5cbb88ae6b09b0cedd
4
+ data.tar.gz: e1514ed938b01b97f2bd47a85fec625918753c9c
5
5
  SHA512:
6
- metadata.gz: 0a833f95f5c969ba1c9b71320037cb9b9ba885daaace2a9aa99bbcd545e8887f997904cf592e4c4ee384c01b537623220e5ad5c3d1265845d6a3ec04167128b1
7
- data.tar.gz: 463f0488b4ea9691599983646e18c6f96d593ed262b83b175307477e91f03b9b8fd79ab55c4088247391c2faba607b45e91a7e735f44c3ae7e40e9fbda75fa51
6
+ metadata.gz: 5f4b39bd857530e4d47d16489d6749e9ab358097c06713351c94fce99b5254b4ba8da40cb5e82c167019057160a2afe6833cdff64914adfc38ed6b3b4ab5cdbf
7
+ data.tar.gz: 7726b6ac3a385d4904969a52c0c3718945fb47badfea35a80a7bb62130bd58f3a1bf763de1c9e16e4e063fc15ab4f113006f82154ab00832fcf289253d3f585a
@@ -446,13 +446,13 @@ module Git
446
446
  end
447
447
 
448
448
  def apply(file)
449
- if File.exists?(file)
449
+ if File.exist?(file)
450
450
  self.lib.apply(file)
451
451
  end
452
452
  end
453
453
 
454
454
  def apply_mail(file)
455
- self.lib.apply_mail(file) if File.exists?(file)
455
+ self.lib.apply_mail(file) if File.exist?(file)
456
456
  end
457
457
 
458
458
  ## LOWER LEVEL INDEX OPERATIONS ##
@@ -98,7 +98,7 @@ module Git
98
98
  end
99
99
 
100
100
  def revparse(string)
101
- return string if string =~ /[A-Fa-f0-9]{40}/ # passing in a sha - just no-op it
101
+ return string if string =~ /^[A-Fa-f0-9]{40}$/ # passing in a sha - just no-op it
102
102
  rev = ['head', 'remotes', 'tags'].map do |d|
103
103
  File.join(@git_dir, 'refs', d, string)
104
104
  end.find do |path|
@@ -632,7 +632,7 @@ module Git
632
632
 
633
633
  def tag_sha(tag_name)
634
634
  head = File.join(@git_dir, 'refs', 'tags', tag_name)
635
- return File.read(head).chomp if File.exists?(head)
635
+ return File.read(head).chomp if File.exist?(head)
636
636
 
637
637
  command('show-ref', ['--tags', '-s', tag_name])
638
638
  end
@@ -829,7 +829,11 @@ module Git
829
829
  end
830
830
 
831
831
  def escape(s)
832
- "'#{s && s.to_s.gsub('\'','\'"\'"\'')}'"
832
+ return "'#{s && s.to_s.gsub('\'','\'"\'"\'')}'" if RUBY_PLATFORM !~ /mingw|mswin/
833
+
834
+ # Keeping the old escape format for windows users
835
+ escaped = s.to_s.gsub('\'', '\'\\\'\'')
836
+ return %Q{"#{escaped}"}
833
837
  end
834
838
 
835
839
  end
@@ -7,7 +7,7 @@ module Git
7
7
  def initialize(path, check_path=true)
8
8
  path = File.expand_path(path)
9
9
 
10
- if check_path && !File.exists?(path)
10
+ if check_path && !File.exist?(path)
11
11
  raise ArgumentError, 'path does not exist', [path]
12
12
  end
13
13
 
@@ -2,6 +2,6 @@ module Git
2
2
 
3
3
  # The current gem version
4
4
  # @return [String] the current gem version.
5
- VERSION='1.2.7'
5
+ VERSION='1.2.8'
6
6
 
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.7
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-09 00:00:00.000000000 Z
11
+ date: 2014-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - git 1.6.0.0, or greater
103
103
  rubyforge_project:
104
- rubygems_version: 2.2.2
104
+ rubygems_version: 2.4.1
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Ruby/Git is a Ruby library that can be used to create, read and manipulate