feedupdater 0.2.4 → 0.2.5
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/CHANGELOG +2 -0
- data/lib/feed_updater.rb +14 -12
- data/lib/feed_updater/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
data/lib/feed_updater.rb
CHANGED
@@ -27,20 +27,22 @@ require 'feed_updater/version'
|
|
27
27
|
# ROFLCOPTERS?
|
28
28
|
# This mainly exists because of the approximately 1 billion different
|
29
29
|
# ways to deploy this script.
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
30
|
+
if !defined?(FileStalker)
|
31
|
+
class FileStalker
|
32
|
+
def self.hunt(paths)
|
33
|
+
for path in paths
|
34
|
+
if File.exists?(File.expand_path(path))
|
35
|
+
return File.expand_path(path)
|
36
|
+
elsif File.exists?(File.expand_path(
|
37
|
+
File.dirname(__FILE__) + path))
|
38
|
+
return File.expand_path(File.dirname(__FILE__) + path)
|
39
|
+
elsif File.exists?(File.expand_path(
|
40
|
+
File.dirname(__FILE__) + "/" + path))
|
41
|
+
return File.expand_path(File.dirname(__FILE__) + "/" + path)
|
42
|
+
end
|
41
43
|
end
|
44
|
+
return nil
|
42
45
|
end
|
43
|
-
return nil
|
44
46
|
end
|
45
47
|
end
|
46
48
|
# :startdoc:
|
data/lib/feed_updater/version.rb
CHANGED