bin/vendorer in vendorer-0.1.14 vs bin/vendorer in vendorer-0.1.15
- old
+ new
@@ -32,6 +32,8 @@
require 'vendorer'
v = Vendorer.new(:update => (ARGV[1] || true if ARGV[0] == 'update'),
:init => (true if ARGV[0] == 'init'))
v.init and exit if ARGV[0] == 'init'
-v.parse(File.read('Vendorfile'))
\ No newline at end of file
+config_locations = ['Vendorfile.rb', 'Vendorfile']
+config_location = config_locations.detect { |f| File.exist?(f) } || config_locations.last
+v.parse(File.read(config_location))