Skip to content

Instantly share code, notes, and snippets.

@fatmcgav
Last active October 29, 2017 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fatmcgav/0303547b48010b6f2cb74abf303a7b15 to your computer and use it in GitHub Desktop.
Save fatmcgav/0303547b48010b6f2cb74abf303a7b15 to your computer and use it in GitHub Desktop.
Padrino Grape routes example
$ be padrino s
DEVEL - LOADING (0.0054s) /Users/gavinw/Work/src/aurora/api/base.rb
DEVEL - Removed constant Aurora::API::Base from Aurora::API
DEVEL - Cyclic dependency reload for NameError: uninitialized constant Aurora::API::V1
DEVEL - LOADING (0.0090s) /Users/gavinw/Work/src/aurora/api/v1.rb
DEVEL - Removed constant Aurora::API::V1 from Aurora::API
DEVEL - Cyclic dependency reload for NameError: uninitialized constant Aurora::API::V1::Test
DEVEL - LOADING (0.0109s) /Users/gavinw/Work/src/aurora/api/v1/test.rb
DEVEL - Cyclic dependency reload for NameError: uninitialized constant Aurora::API::V1
INFO - (0.000271s) PRAGMA foreign_keys = 1
INFO - (0.000032s) PRAGMA case_sensitive_like = 1
DEVEL - LOADING (0.0063s) /Users/gavinw/Work/src/aurora/api/base.rb
DEVEL - Removed constant Aurora::API::Base from Aurora::API
DEVEL - Cyclic dependency reload for NameError: uninitialized constant Aurora::API::V1
ERROR - NameError - uninitialized constant Aurora::API::V1:
/Users/gavinw/Work/src/aurora/api/base.rb:7:in `<class:Base>'
/Users/gavinw/Work/src/aurora/api/base.rb:7:in `<class:Base>': uninitialized constant Aurora::API::V1 (NameError)
from /Users/gavinw/Work/src/aurora/api/base.rb:3:in `<module:API>'
from /Users/gavinw/Work/src/aurora/api/base.rb:2:in `<module:Aurora>'
from /Users/gavinw/Work/src/aurora/api/base.rb:1:in `<top (required)>'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/reloader.rb:96:in `require'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/reloader.rb:96:in `block in safe_load'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/reloader.rb:309:in`with_silence'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/reloader.rb:96:in `safe_load'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/loader.rb:154:in `block in require_dependencies'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/loader.rb:152:in `each'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/loader.rb:152:in `require_dependencies'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/mounter.rb:185:in `locate_app_object'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/mounter.rb:35:in `initialize'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/mounter.rb:267:in `new'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/mounter.rb:267:in `mount'
from /Users/gavinw/Work/src/aurora/config/apps.rb:37:in `<top (required)>'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/reloader.rb:91:in `require'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/reloader.rb:91:in `safe_load'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/loader.rb:154:in `block in require_dependencies'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/loader.rb:152:in `each'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/loader.rb:152:in `require_dependencies'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/loader.rb:57:in `load!'
from /Users/gavinw/Work/src/aurora/config/boot.rb:63:in `<top (required)>'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/cli/launcher.rb:25:in `require'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/cli/launcher.rb:25:in `start'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/bin/padrino:9:in `<top (required)>'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/bin/padrino:23:in `load'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/bin/padrino:23:in `<main>'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/bin/ruby_executable_hooks:15:in `eval'
from /Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/bin/ruby_executable_hooks:15:in `<main>'
$ br routes
DEVEL - LOADING (0.0053s) /Users/gavinw/Work/src/aurora/api/base.rb
DEVEL - Removed constant Aurora::API::Base from Aurora::API
DEVEL - Cyclic dependency reload for NameError: uninitialized constant Aurora::API::V1
DEVEL - LOADING (0.0070s) /Users/gavinw/Work/src/aurora/api/v1.rb
DEVEL - Removed constant Aurora::API::V1 from Aurora::API
DEVEL - Cyclic dependency reload for NameError: uninitialized constant Aurora::API::V1::Test
DEVEL - LOADING (0.0107s) /Users/gavinw/Work/src/aurora/api/v1/test.rb
DEVEL - Cyclic dependency reload for NameError: uninitialized constant Aurora::API::V1
INFO - (0.000246s) PRAGMA foreign_keys = 1
INFO - (0.000025s) PRAGMA case_sensitive_like = 1
DEVEL - LOADING (0.0080s) /Users/gavinw/Work/src/aurora/api/base.rb
DEVEL - Removed constant Aurora::API::Base from Aurora::API
DEVEL - Cyclic dependency reload for NameError: uninitialized constant Aurora::API::V1
ERROR - NameError - uninitialized constant Aurora::API::V1:
/Users/gavinw/Work/src/aurora/api/base.rb:7:in `<class:Base>'
rake aborted!
NameError: uninitialized constant Aurora::API::V1
/Users/gavinw/Work/src/aurora/api/base.rb:7:in `<class:Base>'
/Users/gavinw/Work/src/aurora/api/base.rb:3:in `<module:API>'
/Users/gavinw/Work/src/aurora/api/base.rb:2:in `<module:Aurora>'
/Users/gavinw/Work/src/aurora/api/base.rb:1:in `<top (required)>'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/reloader.rb:96:in `require'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/reloader.rb:96:in `block in safe_load'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/reloader.rb:309:in `with_silence'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/reloader.rb:96:in `safe_load'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/loader.rb:154:in `block in require_dependencies'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/loader.rb:152:in `each'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/loader.rb:152:in `require_dependencies'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/mounter.rb:185:in `locate_app_object'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/mounter.rb:35:in `initialize'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/mounter.rb:267:in `new'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/mounter.rb:267:in `mount'
/Users/gavinw/Work/src/aurora/config/apps.rb:37:in `<top (required)>'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/reloader.rb:91:in `require'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/reloader.rb:91:in `safe_load'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/loader.rb:154:in `block in require_dependencies'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/loader.rb:152:in `each'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/loader.rb:152:in `require_dependencies'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/loader.rb:57:in `load!'
/Users/gavinw/Work/src/aurora/config/boot.rb:63:in `<top (required)>'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/cli/rake_tasks.rb:4:in `require'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/padrino-core-0.14.1.1/lib/padrino-core/cli/rake_tasks.rb:4:in `block in <top (required)>'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/gems/rake-12.1.0/exe/rake:27:in `<top (required)>'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/bin/ruby_executable_hooks:15:in `eval'
/Users/gavinw/.rvm/gems/ruby-2.3.1@padrino/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => routes => environment
(See full trace by running task with --trace)
$ br routes
DEVEL - LOADING (0.0084s) /Users/gavinw/Work/src/aurora/api/base.rb
DEVEL - Removed constant Aurora::API::Base from Aurora::API
DEVEL - Cyclic dependency reload for NameError: uninitialized constant Aurora::API::V1
DEVEL - LOADING (0.0079s) /Users/gavinw/Work/src/aurora/api/v1.rb
DEVEL - LOADING (0.0237s) /Users/gavinw/Work/src/aurora/api/v1/test.rb
INFO - (0.000374s) PRAGMA foreign_keys = 1
INFO - (0.000043s) PRAGMA case_sensitive_like = 1
DEVEL - LOADING (0.0196s) /Users/gavinw/Work/src/aurora/api/base.rb
DEVEL - Loaded Padrino in 0.390799 seconds
DEVEL - Removed constant Aurora::API::V1::Test from Aurora::API::V1
DEVEL - RELOAD (0.0128s) /Users/gavinw/Work/src/aurora/api/v1/test.rb
DEVEL - Removed constant Aurora::API::V1 from Aurora::API
DEVEL - RELOAD (0.0518s) /Users/gavinw/Work/src/aurora/api/v1.rb
Application: Aurora::API::Base
URL REQUEST PATH
(:APIv1) GET /api/:version/hello(.:format)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment