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.
Binary file
Binary file
Binary file
@@ -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
- ENV_PATH = File.expand_path('config/environment', ROOT_PATH)
3
- BOOT_PATH = File.expand_path('config/boot', ROOT_PATH)
4
- APP_PATH = File.expand_path('config/application', ROOT_PATH)
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))
@@ -1,3 +1,3 @@
1
1
  module Zeus
2
- VERSION = "0.13.4.pre"
2
+ VERSION = "0.13.4.pre2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: zeus
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 7
5
- version: 0.13.4.pre
5
+ version: 0.13.4.pre2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Burke Libbey