Giter Club home page Giter Club logo

cabbage_doc's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

nowaker

cabbage_doc's Issues

Generate controllers.yml every request

I configured everything correctly but I still didn't get anything under /api/docs where I mounted CabbageDoc in my Rails application.

Only after rake cabbagedoc:documentation did anything start showing up there. Any chance to get everything rebuilt every request to the docs? This way we won't have to run rake task every second.

I noticed controllers.yml file that seems to be the source of what CabbageDoc web component renders but I can't find the location in the code that generates it or reads it.

How to expose this publicly?

If I delete config.authentication = proc do ... end part from the initializer, I'm getting NoMethodError from authentication.rb:7 (Configuration.instance.authentication.call(auth, request)). It seems like authentication is obligatory, while I want this to be exposed publicly. I just want to make sure whether it's a bug, or I'm doing something wrong. Thanks.

[rails] 2016-06-08 15:58:00 - NoMethodError - undefined method `call' for nil:NilClass:
[rails]         /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/lib/cabbage_doc/authentication.rb:7:in `block in new'
[rails]         /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/lib/cabbage_doc/authentication.rb:5:in `tap'
[rails]         /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/lib/cabbage_doc/authentication.rb:5:in `new'
[rails]         /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/lib/cabbage_doc/web_helper.rb:22:in `auth'
[rails]         /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/web/views/authentication.haml:1:in `block in singleton class'
[rails]         /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/web/views/authentication.haml:-9:in `instance_eval'
[rails]         /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/web/views/authentication.haml:-9:in `singleton class'
[rails]         /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/web/views/authentication.haml:-11:in `__tilt_34979100'

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.