Code Monkey home page Code Monkey logo

rapidoc's People

Contributors

harchs avatar ljrzarate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rapidoc's Issues

Different kinds of routes cause generation failure

Given a route file like:

Doc::Application.routes.draw do
  match 'dispatch', :to => 'mobile/dispatch#redirect', :constraints => { :id => /[A-Z]\d{5}/ }
  match 'dispatch', :to => 'dispatch#redirect'
  match "testing/foo.aspx", :to => "redirect#index"
  match '*path', :controller => 'redirect', :action => 'index'
end

Running rake rapidoc:generate will result in:

  rake aborted!
  undefined method `split' for nil:NilClass

  rapidoc-0.0.5/lib/rapidoc/routes_doc.rb:72:in `add_resource_route'
  rapidoc-0.0.5/lib/rapidoc/routes_doc.rb:20:in `add_route'
  rapidoc-0.0.5/lib/rapidoc/resources_extractor.rb:23:in `block in get_routes_doc'
  rapidoc-0.0.5/lib/rapidoc/resources_extractor.rb:22:in `each'

As "controller_action" is nil when sent to add_resource_route.

As best as I can tell, it doesn't like routes with formats in the matcher (ie .aspx), it doesn't like duplicate matching routes when one has a constraint the other doesn't, and it just doesn't like wildcard routes at all.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.