gem-sane-binary 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +5 -4
  2. data/lib/rubygems_plugin.rb +1 -0
  3. metadata +3 -3
data/README.md CHANGED
@@ -6,10 +6,11 @@ MIT License © 2009 by Loren Segal
6
6
  SYNOPSIS
7
7
  --------
8
8
 
9
- Right now RubyGems rewrites the shebang for the binaries it generates in a gem
10
- using the current Ruby executable name, which inadvertently causes the binary
11
- to be tied to the specific Ruby version. This means you need to reinstall a gem
12
- everytime you switch Ruby interpreters to regenerate the binaries.
9
+ Right now RubyGems rewrites the shebang for the binaries (executables) it
10
+ generates in a gem using the current Ruby executable name, which inadvertently
11
+ causes the binary to be tied to the specific Ruby version. This means you need
12
+ to reinstall a gem everytime you switch Ruby interpreters to regenerate the
13
+ binaries.
13
14
 
14
15
  This gem adds a RubyGems plugin to change the shebang behaviour to use a `ruby`
15
16
  symlink if one is available in the same directory as the Ruby interpreter being
@@ -1,6 +1,7 @@
1
1
  require 'rubygems/installer'
2
2
 
3
3
  class Gem::Installer
4
+ undef shebang
4
5
  def shebang(bin_file_name)
5
6
  if @env_shebang then
6
7
  "#!/usr/bin/env " + Gem::ConfigMap[:ruby_install_name]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-sane-binary
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
  - Loren Segal
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-14 00:00:00 -04:00
12
+ date: 2009-08-07 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -52,6 +52,6 @@ rubyforge_project: gem-sane-binary
52
52
  rubygems_version: 1.3.4
53
53
  signing_key:
54
54
  specification_version: 3
55
- summary: RubyGems plugin to allow gem install to generate binaries that work for both Ruby 1.8 and 1.9
55
+ summary: RubyGems plugin to allow gem install to generate executables that work for both Ruby 1.8 and 1.9
56
56
  test_files: []
57
57