Socket
Book a DemoInstallSign in
Socket

sinatra-rake-routes

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinatra-rake-routes

0.0.4
bundlerRubygems
Version published
Maintainers
1
Created
Source

sinatra-rake-routes Circle CI

rake routes command for Sinatra applications for printing out all defined routes.

Usage

Install by adding the following to your Gemfile:

gem 'sinatra-rake-routes'

Add the below code to your Rakefile. Make sure to require sinatra-rake-routes/tasks after the :configure_routes task is defined, otherwise it won't be picked up correctly.

# Rakefile

task :configure_routes do
  require "sinatra-rake-routes"
  # Tell SinatraRakeRoutes what your Sinatra::Base application class is called:
  require './my_app'
  SinatraRakeRoutes.set_app_class(MyApp)
end

require "sinatra-rake-routes/tasks"

Example output

bundle exec rake routes

POST
/users
/users/:user_id/messages

GET
/users/:user_id
/users/:user_id/messages
/users/:user_id/messages/:message_id

HEAD
/users/:user_id
/users/:user_id/messages
/users/:user_id/messages/:message_id

PUT
/users/:user_id
/users/:user_id/messages/:message_id

DELETE
/users/:user_id

FAQs

Package last updated on 11 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.