noexec 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/lib/noexec.rb +3 -2
- data/lib/noexec/auto.rb +1 -1
- data/lib/noexec/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -15,3 +15,5 @@ And you're done!
|
|
15
15
|
## How does this work?
|
16
16
|
|
17
17
|
It adds a script to every execution of ruby via the RUBYOPT environment variable. Then, when you run ruby, it takes a look at your working directory, and every directory above it until it can find a `Gemfile`. If the executable you're running is present in your Gemfile, it switches to using that `Gemfile` instead (via `Bundle.setup`).
|
18
|
+
|
19
|
+
Thank you Carl!!!!
|
data/lib/noexec.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
DEBUG = ENV.key?('NOEXEC_DEBUG')
|
2
|
+
|
1
3
|
begin
|
2
4
|
require "bundler"
|
3
5
|
|
@@ -11,7 +13,6 @@ begin
|
|
11
13
|
|
12
14
|
module Noexec
|
13
15
|
CURRENT = Dir.pwd
|
14
|
-
DEBUG = ENV.key?('NOEXEC_DEBUG')
|
15
16
|
|
16
17
|
extend self
|
17
18
|
|
@@ -50,5 +51,5 @@ begin
|
|
50
51
|
end
|
51
52
|
end
|
52
53
|
rescue LoadError
|
53
|
-
warn "bundler not being used, unable to load"
|
54
|
+
warn "bundler not being used, unable to load" if DEBUG
|
54
55
|
end
|
data/lib/noexec/auto.rb
CHANGED
data/lib/noexec/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noexec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -42,7 +42,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
42
42
|
version: '0'
|
43
43
|
segments:
|
44
44
|
- 0
|
45
|
-
hash:
|
45
|
+
hash: 960628725522579579
|
46
46
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
47
|
none: false
|
48
48
|
requirements:
|
@@ -51,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
51
|
version: '0'
|
52
52
|
segments:
|
53
53
|
- 0
|
54
|
-
hash:
|
54
|
+
hash: 960628725522579579
|
55
55
|
requirements: []
|
56
56
|
rubyforge_project: noexec
|
57
57
|
rubygems_version: 1.8.15
|