rubygems-bundler 0.2.5 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -86,6 +86,16 @@ Now for running haml can be controlled if it will using bundler code or not:
86
86
  mpapis@niczsoft:~/test> USE_BUNDLER=try haml -v
87
87
  Haml 3.1.1 (Separated Sally)
88
88
 
89
+ # Uninstallation
90
+
91
+ Before uninstalling change a line in `~/.gemrc` to:
92
+
93
+ custom_shebang: $env ruby
94
+
95
+ and run `gem regenerate_binstubs`
96
+
97
+ this will set all gems to `/usr/bin/env ruby` which is one of the safest choices (especially when using rvm).
98
+
89
99
  # Author
90
100
 
91
101
  - Michal Papis <mpapis@gmail.com>
data/bin/bundler_wrapper CHANGED
@@ -4,11 +4,12 @@ require 'rubygems'
4
4
 
5
5
  original_file=ARGV[0]
6
6
  original_file_name=File.basename(original_file)
7
- ENV['USE_BUNDLER'] = 'no' if original_file_name =~ /^bundle/
8
7
  use_bundler = (ENV['USE_BUNDLER']||'').downcase
9
8
  try_bundler = %w{try check possibly}.include? use_bundler
10
9
  force_bundler = %w{force require yes true on}.include? use_bundler
11
- blacklisted = (ENV['BUNDLER_BLACKLIST']||'').split(/\s/).include? original_file_name
10
+ blacklist = (ENV['BUNDLER_BLACKLIST']||'').split(/\s/) + %w{ bundle }
11
+ blacklisted = blacklist.include? original_file_name
12
+ $PROGRAM_NAME=original_file
12
13
 
13
14
  if !blacklisted && (try_bundler || force_bundler)
14
15
  begin
@@ -15,4 +15,4 @@ wrapper=File.expand_path('../../bin/bundler_wrapper', Dir.getwd)
15
15
  destination=File.expand_path('bin/bundler_wrapper', Gem.dir)
16
16
  FileUtils.mkdir_p(File.join(Gem.dir, 'bin'), :verbose => true)
17
17
  FileUtils.cp(wrapper, destination, :verbose => true)
18
- File.chmod(0755, destination)
18
+ File.chmod(0775, destination)
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rubygems-bundler"
3
- s.version = "0.2.5"
4
- s.date = "2011-06-28"
3
+ s.version = "0.2.7"
4
+ s.date = "2011-09-21"
5
5
  s.summary = "Make rubygems generate bundler aware executable wrappers"
6
6
  s.email = "mpapis@gmail.com"
7
7
  s.homepage = "http://mpapis.github.com/rubygems-bundler"
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-bundler
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.2.5
4
+ hash: 25
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 2
9
+ - 7
10
+ version: 0.2.7
6
11
  platform: ruby
7
12
  authors:
8
13
  - Michal Papis
@@ -10,7 +15,8 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-06-28 00:00:00 Z
18
+ date: 2011-09-21 00:00:00 +02:00
19
+ default_executable:
14
20
  dependencies: []
15
21
 
16
22
  description: Integrate Rubygems and Bundler
@@ -31,6 +37,7 @@ files:
31
37
  - LICENSE
32
38
  - README.md
33
39
  - rubygems-bundler.gemspec
40
+ has_rdoc: true
34
41
  homepage: http://mpapis.github.com/rubygems-bundler
35
42
  licenses: []
36
43
 
@@ -70,17 +77,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
77
  requirements:
71
78
  - - ">="
72
79
  - !ruby/object:Gem::Version
80
+ hash: 3
81
+ segments:
82
+ - 0
73
83
  version: "0"
74
84
  required_rubygems_version: !ruby/object:Gem::Requirement
75
85
  none: false
76
86
  requirements:
77
87
  - - ">="
78
88
  - !ruby/object:Gem::Version
89
+ hash: 3
90
+ segments:
91
+ - 0
79
92
  version: "0"
80
93
  requirements: []
81
94
 
82
95
  rubyforge_project:
83
- rubygems_version: 1.8.5
96
+ rubygems_version: 1.3.7
84
97
  signing_key:
85
98
  specification_version: 3
86
99
  summary: Make rubygems generate bundler aware executable wrappers