bin/praxis in praxis-0.14.0 vs bin/praxis in praxis-0.15.0
- old
+ new
@@ -1,13 +1,16 @@
#! /usr/bin/env ruby
require 'bundler'
-Bundler.setup :default, :test
-Bundler.require :default, :test
+begin
+ Bundler.setup :default, :test
+ Bundler.require :default, :test
+rescue Bundler::GemfileNotFound
+ # no-op: we might be installed as a system gem
+end
-
if ["routes","docs","console"].include? ARGV[0]
require 'rake'
require 'praxis'
require 'praxis/tasks'
@@ -81,6 +84,6 @@
warn "This is a deprecated method.\nTo generate a hello world example, please use:\n praxis example #{app_name} "
end
end
-PraxisGenerator.start(ARGV)
\ No newline at end of file
+PraxisGenerator.start(ARGV)