dock0 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dock0.gemspec +1 -1
- data/lib/dock0.rb +5 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d86c522c5bf668bd0cd71dca01380f1158577b1
|
4
|
+
data.tar.gz: 7e705f72379947f9616ecce7d6d53fda1f1f4c2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb5a744af7e73ed0387f285f0742cdb40f0e83020edced95f41aec40a7e5da70ccef6673eec2da4f2c090a2f7bedd58e0664758d56a60a5c5c743ee2dadc94f5
|
7
|
+
data.tar.gz: 318e8c5493a2987684eb1ad00e3b0db6fc8fc538955f58de0b05524ecba1c4d33607b165f44e34911da2c011d1b8055d60980b3599c9a8753bb0f5077ebb953c
|
data/dock0.gemspec
CHANGED
data/lib/dock0.rb
CHANGED
@@ -96,16 +96,14 @@ module Dock0
|
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
99
|
+
def run_script(script)
|
100
|
+
Dir.chdir('.') { instance_eval File.read(script), script, 0 }
|
101
|
+
end
|
102
|
+
|
99
103
|
def run_scripts
|
100
|
-
runner = proc do |s|
|
101
|
-
Dir.chdir('.') do
|
102
|
-
instance_eval "def #{s}\n#{File.read(s)}\nend", s, 0
|
103
|
-
send(s)
|
104
|
-
end
|
105
|
-
end
|
106
104
|
Dir.glob(@config['paths']['scripts'] + '/*.rb').sort.each do |script|
|
107
105
|
puts "Running #{script}"
|
108
|
-
|
106
|
+
run_script script
|
109
107
|
end
|
110
108
|
end
|
111
109
|
|