Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

Commit

Permalink
Check for Gemfile.lock before requiring 'bundler/setup' (closes #22).
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Apr 5, 2013
1 parent a3b919b commit 3e23b63
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/ronin-scan-dork
Expand Up @@ -3,7 +3,7 @@
require 'rubygems'

root = File.expand_path(File.join(File.dirname(__FILE__),'..'))
if File.directory?(File.join(root,'.git'))
if File.file?(File.join(root,'Gemfile.lock'))
Dir.chdir(root) do
begin
require 'bundler/setup'
Expand Down
2 changes: 1 addition & 1 deletion bin/ronin-scan-nmap
Expand Up @@ -3,7 +3,7 @@
require 'rubygems'

root = File.expand_path(File.join(File.dirname(__FILE__),'..'))
if File.directory?(File.join(root,'.git'))
if File.file?(File.join(root,'Gemfile.lock'))
Dir.chdir(root) do
begin
require 'bundler/setup'
Expand Down
2 changes: 1 addition & 1 deletion bin/ronin-scan-proxies
Expand Up @@ -3,7 +3,7 @@
require 'rubygems'

root = File.expand_path(File.join(File.dirname(__FILE__),'..'))
if File.directory?(File.join(root,'.git'))
if File.file?(File.join(root,'Gemfile.lock'))
Dir.chdir(root) do
begin
require 'bundler/setup'
Expand Down
2 changes: 1 addition & 1 deletion bin/ronin-scan-spider
Expand Up @@ -3,7 +3,7 @@
require 'rubygems'

root = File.expand_path(File.join(File.dirname(__FILE__),'..'))
if File.directory?(File.join(root,'.git'))
if File.file?(File.join(root,'Gemfile.lock'))
Dir.chdir(root) do
begin
require 'bundler/setup'
Expand Down
2 changes: 1 addition & 1 deletion bin/ronin-scanner
Expand Up @@ -3,7 +3,7 @@
require 'rubygems'

root = File.expand_path(File.join(File.dirname(__FILE__),'..'))
if File.directory?(File.join(root,'.git'))
if File.file?(File.join(root,'Gemfile.lock'))
Dir.chdir(root) do
begin
require 'bundler/setup'
Expand Down
2 changes: 1 addition & 1 deletion bin/ronin-scanners
Expand Up @@ -3,7 +3,7 @@
require 'rubygems'

root = File.expand_path(File.join(File.dirname(__FILE__),'..'))
if File.directory?(File.join(root,'.git'))
if File.file?(File.join(root,'Gemfile.lock'))
Dir.chdir(root) do
begin
require 'bundler/setup'
Expand Down

0 comments on commit 3e23b63

Please sign in to comment.