zeus 0.13.4.pre → 0.13.4.pre2
Sign up to get free protection for your applications and to get access to all the features.
- data/build/zeus-darwin-amd64 +0 -0
- data/build/zeus-linux-386 +0 -0
- data/build/zeus-linux-amd64 +0 -0
- data/lib/zeus/rails.rb +10 -4
- data/lib/zeus/version.rb +1 -1
- metadata +1 -1
data/build/zeus-darwin-amd64
CHANGED
Binary file
|
data/build/zeus-linux-386
CHANGED
Binary file
|
data/build/zeus-linux-amd64
CHANGED
Binary file
|
data/lib/zeus/rails.rb
CHANGED
@@ -1,7 +1,13 @@
|
|
1
|
+
def find_rails_path(root_path)
|
2
|
+
paths = %w(spec/dummy test/dummy .)
|
3
|
+
paths.find { |path| File.exists?(File.expand_path(path, root_path)) }
|
4
|
+
end
|
5
|
+
|
1
6
|
ROOT_PATH = File.expand_path(Dir.pwd)
|
2
|
-
|
3
|
-
|
4
|
-
|
7
|
+
RAILS_PATH = find_rails_path(ROOT_PATH)
|
8
|
+
ENV_PATH = File.expand_path('config/environment', RAILS_PATH)
|
9
|
+
BOOT_PATH = File.expand_path('config/boot', RAILS_PATH)
|
10
|
+
APP_PATH = File.expand_path('config/application', RAILS_PATH)
|
5
11
|
|
6
12
|
require 'zeus'
|
7
13
|
|
@@ -213,7 +219,7 @@ module Zeus
|
|
213
219
|
|
214
220
|
SPEC_DIR_REGEXP = %r"(^|/)spec"
|
215
221
|
SPEC_FILE_REGEXP = /.+_spec\.rb$/
|
216
|
-
|
222
|
+
|
217
223
|
def spec_file? argv
|
218
224
|
argv.any? do |arg|
|
219
225
|
arg.match(Regexp.union(SPEC_DIR_REGEXP, SPEC_FILE_REGEXP))
|
data/lib/zeus/version.rb
CHANGED