birb 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/birb.gemspec +1 -1
- data/lib/birb.rb +8 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.3
|
data/birb.gemspec
CHANGED
data/lib/birb.rb
CHANGED
|
@@ -8,11 +8,17 @@ class << self
|
|
|
8
8
|
args.each do |file|
|
|
9
9
|
file = file.to_s
|
|
10
10
|
file += '.rb' unless file.end_with?('.rb')
|
|
11
|
-
|
|
12
|
-
(@loaded_files ||= []) << file
|
|
11
|
+
load_file(file)
|
|
13
12
|
end
|
|
14
13
|
end
|
|
15
14
|
|
|
15
|
+
def load_file(file)
|
|
16
|
+
load file
|
|
17
|
+
@loaded_files ||= []
|
|
18
|
+
@loaded_files.delete(file)
|
|
19
|
+
@loaded_files << file
|
|
20
|
+
end
|
|
21
|
+
|
|
16
22
|
def rl
|
|
17
23
|
l *@loaded_files if @loaded_files
|
|
18
24
|
end
|
metadata
CHANGED