fastlib 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.markdown +3 -1
- data/lib/fastlib.rb +4 -4
- metadata +3 -3
data/README.markdown
CHANGED
@@ -7,7 +7,9 @@ This is similar to capabilities like zip/ziprequire, except that it provides wor
|
|
7
7
|
# Usage
|
8
8
|
|
9
9
|
$ apt-get install fastlib
|
10
|
-
|
10
|
+
|
11
|
+
$ \`gem env gemdir\`/gems/fastlib-*/lib/fastlib.rb dump lib/myarchive.fastlib lib/ lib/*
|
12
|
+
|
11
13
|
$ ruby -r rubygems -r fastlib -I lib/myarchive.fastlib application.rb
|
12
14
|
|
13
15
|
|
data/lib/fastlib.rb
CHANGED
@@ -229,10 +229,10 @@ class FastLib
|
|
229
229
|
( @@cache[lib] || {} ).keys.map{|x| x.to_s }.sort
|
230
230
|
end
|
231
231
|
|
232
|
-
#
|
233
|
-
|
234
|
-
|
235
|
-
#
|
232
|
+
#
|
233
|
+
# This method is called on the loaded is required to expand __FILE__
|
234
|
+
# and other inline dynamic constants to map to the correct location.
|
235
|
+
#
|
236
236
|
def self.post_process(lib, name, data)
|
237
237
|
data.gsub('__FILE__', "'#{ ::File.expand_path(::File.join(::File.dirname(lib), name)) }'")
|
238
238
|
end
|
metadata
CHANGED