gem_liux1 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/gem_liux1-cli +20 -2
- data/lib/gem_liux1/version.rb +1 -1
- metadata +3 -3
data/bin/gem_liux1-cli
CHANGED
@@ -1,4 +1,22 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: UTF-8
|
3
|
-
|
4
|
-
|
3
|
+
|
4
|
+
def fallback_load_path(path)
|
5
|
+
retried = false
|
6
|
+
begin
|
7
|
+
yield
|
8
|
+
rescue LoadError
|
9
|
+
unless retried
|
10
|
+
$: << path
|
11
|
+
retried = true
|
12
|
+
retry
|
13
|
+
end
|
14
|
+
raise
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
fallback_load_path(File.join(File.dirname(__FILE__), '..', 'lib')) do
|
19
|
+
|
20
|
+
require 'gem_liux1'
|
21
|
+
|
22
|
+
end
|
data/lib/gem_liux1/version.rb
CHANGED
metadata
CHANGED