gem-patch 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/rubygems/patcher.rb +4 -4
  2. data/rakefile.rb +2 -2
  3. metadata +3 -3
@@ -137,10 +137,10 @@ class Gem::Patcher
137
137
  end
138
138
 
139
139
  def check_patch_command_is_installed
140
- result = IO.popen('patch --version')
141
-
142
- unless /^patch\s\d\.\d\./.match result.readlines[0]
140
+ begin
141
+ IO.popen('patch --version')
142
+ rescue Exception
143
143
  raise PatchCommandMissing, 'Calling `patch` command failed. Do you have it installed?'
144
144
  end
145
145
  end
146
- end
146
+ end
@@ -4,7 +4,7 @@ require 'rdoc/task'
4
4
 
5
5
  gemspec = Gem::Specification.new do |s|
6
6
  s.name = "gem-patch"
7
- s.version = "0.1.2"
7
+ s.version = "0.1.3"
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.summary = "RubyGems plugin for patching gems."
10
10
  s.description = <<-EOF
@@ -36,4 +36,4 @@ Rake::TestTask.new('test') do |t|
36
36
  t.verbose = true
37
37
  end
38
38
 
39
- task :default => [:test]
39
+ task :default => [:test]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-patch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
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: 2012-10-09 00:00:00.000000000 Z
12
+ date: 2012-10-22 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! " `gem-patch` is a RubyGems plugin that helps to
15
15
  patch gems without manually opening and rebuilding them.\n It
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  version: 1.8.0
53
53
  requirements: []
54
54
  rubyforge_project:
55
- rubygems_version: 1.8.24
55
+ rubygems_version: 1.8.0
56
56
  signing_key:
57
57
  specification_version: 3
58
58
  summary: RubyGems plugin for patching gems.