rubygems-bundler 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -1
- data/bin/bundler_wrapper +5 -3
- data/rubygems-bundler.gemspec +1 -1
- metadata +25 -53
data/README.md
CHANGED
@@ -45,7 +45,12 @@ To force usage of bundler:
|
|
45
45
|
|
46
46
|
export USE_BUNDLER=force
|
47
47
|
|
48
|
-
|
48
|
+
Some gems should not be called with bundler support,
|
49
|
+
to blacklist them use the following line:
|
50
|
+
|
51
|
+
BUNDLER_BLACKLIST="cheat heroku"
|
52
|
+
|
53
|
+
To make your choices persistent put them into `~/.bashrc` or `~/.rvmrc`.
|
49
54
|
|
50
55
|
# How it works
|
51
56
|
|
data/bin/bundler_wrapper
CHANGED
@@ -2,11 +2,13 @@
|
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
4
|
|
5
|
+
original_file=ARGV[0]
|
5
6
|
use_bundler = (ENV['USE_BUNDLER']||'').downcase
|
6
7
|
try_bundler = %w{try check possibly}.include? use_bundler
|
7
8
|
force_bundler = %w{force require yes true on}.include? use_bundler
|
9
|
+
blacklisted = (ENV['BUNDLER_BLACKLIST']||'').split(/\s/).include? File.basename(original_file)
|
8
10
|
|
9
|
-
if try_bundler || force_bundler
|
11
|
+
if !blacklisted && (try_bundler || force_bundler)
|
10
12
|
begin
|
11
13
|
require 'bundler/setup'
|
12
14
|
rescue LoadError
|
@@ -14,5 +16,5 @@ if try_bundler || force_bundler
|
|
14
16
|
end
|
15
17
|
end
|
16
18
|
|
17
|
-
|
18
|
-
eval File.read(
|
19
|
+
ARGV.shift
|
20
|
+
eval File.read(original_file), binding, original_file
|
data/rubygems-bundler.gemspec
CHANGED
metadata
CHANGED
@@ -1,27 +1,23 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems-bundler
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.4
|
4
5
|
prerelease:
|
5
|
-
version: 0.2.3
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Michal Papis
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
date: 2011-06-13 00:00:00 Z
|
12
|
+
date: 2011-06-13 00:00:00.000000000Z
|
14
13
|
dependencies: []
|
15
|
-
|
16
14
|
description: Integrate Rubygems and Bundler
|
17
15
|
email: mpapis@gmail.com
|
18
16
|
executables: []
|
19
|
-
|
20
|
-
extensions:
|
17
|
+
extensions:
|
21
18
|
- ext/wrapper_installer/extconf.rb
|
22
19
|
extra_rdoc_files: []
|
23
|
-
|
24
|
-
files:
|
20
|
+
files:
|
25
21
|
- bin/bundler_wrapper
|
26
22
|
- ext/wrapper_installer/extconf.rb
|
27
23
|
- lib/rubygems_bundler/regenerate_binstubs_command.rb
|
@@ -33,56 +29,32 @@ files:
|
|
33
29
|
- rubygems-bundler.gemspec
|
34
30
|
homepage: https://github.com/mpapis/rubygems-bundler
|
35
31
|
licenses: []
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
custom_shebang: $env bundler_wrapper
|
45
|
-
|
46
|
-
To make all the executables bundler compatible run:
|
47
|
-
|
48
|
-
gem regenerate_binstubs # only once
|
49
|
-
|
50
|
-
To always use bundler add the following line to ~/.rvmrc or ~/.bashrc
|
51
|
-
|
52
|
-
export USE_BUNDLER=force
|
53
|
-
|
54
|
-
Relogin or call in every open shell:
|
55
|
-
|
56
|
-
export USE_BUNDLER=force
|
57
|
-
|
58
|
-
For more information read:
|
59
|
-
|
60
|
-
https://github.com/mpapis/rubygems-bundler
|
61
|
-
|
62
|
-
===============================================================================
|
63
|
-
|
32
|
+
post_install_message: ! "===============================================================================\n\nrubygems-bundler
|
33
|
+
allows running gem executables in Gemfile specified versions!\n\nFirst step is to
|
34
|
+
add following line to ~/.gemrc\n\n custom_shebang: $env bundler_wrapper\n\nTo
|
35
|
+
make all the executables bundler compatible run:\n\n gem regenerate_binstubs
|
36
|
+
# only once\n\nTo always use bundler add the following line to ~/.rvmrc or ~/.bashrc\n\n
|
37
|
+
\ export USE_BUNDLER=force\n\nRelogin or call in every open shell:\n\n export
|
38
|
+
USE_BUNDLER=force\n\nFor more information read:\n\n https://github.com/mpapis/rubygems-bundler\n\n===============================================================================\n"
|
64
39
|
rdoc_options: []
|
65
|
-
|
66
|
-
require_paths:
|
40
|
+
require_paths:
|
67
41
|
- lib
|
68
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
42
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
69
43
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version:
|
74
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
49
|
none: false
|
76
|
-
requirements:
|
77
|
-
- -
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version:
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
80
54
|
requirements: []
|
81
|
-
|
82
55
|
rubyforge_project:
|
83
56
|
rubygems_version: 1.8.5
|
84
57
|
signing_key:
|
85
58
|
specification_version: 3
|
86
59
|
summary: Make rubygems generate bundler aware executable wrappers
|
87
60
|
test_files: []
|
88
|
-
|