lib/grape/app/tasks/core.rake in grape-app-0.5.3 vs lib/grape/app/tasks/core.rake in grape-app-0.6.0
- old
+ new
@@ -1,7 +1,7 @@
task :environment do
- require Bundler.root.join("config", "environment").to_s
+ require Bundler.root.join('config', 'environment').to_s
end
desc 'Launch console'
task console: :environment do
::ARGV.clear
@@ -14,9 +14,9 @@
desc 'List all routes'
task routes: :environment do
Grape::App.routes.each do |route|
method = route.request_method.ljust(7)
- path = route.path.sub(":version", route.version.to_s)
+ path = route.path.sub(':version', route.version.to_s)
puts " #{method} #{path}"
end
end