rubygems-bundler 0.2.8 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Michal Papis
1
+ Copyright (c) 2011-2012 Michal Papis
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
@@ -11,4 +11,3 @@ distributed under the License is distributed on an "AS IS" BASIS,
11
11
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  See the License for the specific language governing permissions and
13
13
  limitations under the License.
14
-
data/README.md CHANGED
@@ -52,6 +52,21 @@ to blacklist them use the following line:
52
52
 
53
53
  To make your choices persistent put them into `~/.bashrc` or `~/.rvmrc`.
54
54
 
55
+ # Alternate use with noexec
56
+
57
+ [Joshua Hull - @joshbuddy](https://github.com/joshbuddy) created
58
+ [noexec gem](https://github.com/joshbuddy/noexec),
59
+ It allows detecting Gemfile and loading Bundler only when it is required.
60
+
61
+ To automatically use noexec change a line in ~/.gemrc to:
62
+
63
+ custom_shebang: $env ruby_noexec_wrapper
64
+
65
+ And run (once):
66
+
67
+ gem regenerate_binstubs
68
+
69
+
55
70
  # How it works
56
71
 
57
72
  Installation of gem will make any new installed gem use new bundler
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ original_file=ARGV[0]
4
+ ARGV.shift
5
+ $PROGRAM_NAME=original_file
6
+
7
+ require 'rubygems'
8
+ begin
9
+ require 'noexec/auto'
10
+ rescue LoadError
11
+ end
12
+
13
+ eval File.read(original_file), binding, original_file
@@ -12,8 +12,11 @@ File.open('nmake.bat', 'w') { |f| }
12
12
  require 'fileutils'
13
13
  require 'rubygems'
14
14
  bindir = Gem.respond_to?(:bindir,true) ? Gem.send(:bindir) : File.join(Gem.dir, 'bin')
15
- wrapper=File.expand_path('../../bin/ruby_bundler_wrapper', Dir.getwd)
16
- destination=File.expand_path('ruby_bundler_wrapper', bindir)
17
15
  FileUtils.mkdir_p(bindir, :verbose => true)
18
- FileUtils.cp(wrapper, destination, :verbose => true)
19
- File.chmod(0775, destination)
16
+
17
+ %w( ruby_bundler_wrapper ruby_noexec_wrapper ).each do |f|
18
+ wrapper = File.expand_path("../../bin/#{f}", Dir.getwd)
19
+ destination = File.expand_path(f, bindir)
20
+ FileUtils.cp(wrapper, destination, :verbose => true)
21
+ File.chmod(0775, destination)
22
+ end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rubygems-bundler"
3
- s.version = "0.2.8"
4
- s.date = "2011-12-27"
3
+ s.version = "0.3.0"
4
+ s.date = "2012-04-02"
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"
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.authors = ["Michal Papis"]
11
11
  s.files = [
12
12
  "bin/ruby_bundler_wrapper",
13
+ "bin/ruby_noexec_wrapper",
13
14
  "ext/wrapper_installer/extconf.rb",
14
15
  "lib/rubygems_bundler/regenerate_binstubs_command.rb",
15
16
  "lib/rubygems_bundler/rubygems_bundler_installer.rb",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-bundler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 8
10
- version: 0.2.8
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michal Papis
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-27 00:00:00 Z
18
+ date: 2012-04-02 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Integrate Rubygems and Bundler
@@ -28,6 +28,7 @@ extra_rdoc_files: []
28
28
 
29
29
  files:
30
30
  - bin/ruby_bundler_wrapper
31
+ - bin/ruby_noexec_wrapper
31
32
  - ext/wrapper_installer/extconf.rb
32
33
  - lib/rubygems_bundler/regenerate_binstubs_command.rb
33
34
  - lib/rubygems_bundler/rubygems_bundler_installer.rb
@@ -93,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
94
  requirements: []
94
95
 
95
96
  rubyforge_project:
96
- rubygems_version: 1.8.10
97
+ rubygems_version: 1.8.21
97
98
  signing_key:
98
99
  specification_version: 3
99
100
  summary: Make rubygems generate bundler aware executable wrappers