Top Level Namespace
Defined Under Namespace
Modules: Kernel, YAML, Zeus
Constant Summary
collapse
- ROOT_PATH =
File.expand_path(Dir.pwd)
- ENV_PATH =
File.expand_path('config/environment', ROOT_PATH)
- BOOT_PATH =
File.expand_path('config/boot', ROOT_PATH)
- APP_PATH =
File.expand_path('config/application', ROOT_PATH)
Instance Method Summary
collapse
Instance Method Details
#gem_is_bundled?(gem) ⇒ Boolean
8
9
10
11
|
# File 'lib/zeus/rails.rb', line 8
def gem_is_bundled?(gem)
gemfile_lock_contents = File.read(ROOT_PATH + "/Gemfile.lock")
gemfile_lock_contents.scan(/\b#{gem} \(([^=~><]+?)\)/).flatten.first
end
|