GithubHelp home page GithubHelp logo

raki's Issues

Manually execute website update

If someone makes a commit in the git repository (not from the website), the website itself doesn't update it instantly. A button or something ales to update the website is needed.

config/permissions.yml.example mentioned in readme is missing

The last step is to rename/copy the file config/permissions.yml.example to config/permissions.yml and change the permissions if you need to.

But there is no config/permissions.yml.example

YAML.load(File.read("#{Rails.root}/config/permissions.yml")) -> returns false

So following exception occurs: undefined method `[]' for false:FalseClass

/home/cthn/raki/vendor/plugins/file_authorizer/lib/file_authorizer.rb:25:in `authorized_to?'
/home/cthn/raki/lib/raki/authorizer.rb:43:in `authorized_to?'
/home/cthn/raki/app/models/page.rb:134:in `authorized?'
/home/cthn/raki/app/controllers/page_controller.rb:33:in `view'

OpenID 2

I receive "Nickname or email missing" with my OpenID 2 provider (using delegation). Though, it provides both values. Anyone else?

Unexpected error on "page_exists?" check on no wiki page

Go to login page and click at logo image.

Template calls page_exists? with name == nil
GitProvider#page_exists? calls GitProvider#exists? and here format_obj is called with nil parameter. At last format_obj try to replace spaces with underscores:

obj.gsub /\ /, '_'

This will raise "private method `gsub' called for nil:NilClass"

--- a/vendor/plugins/git_provider/lib/git_provider.rb
+++ b/vendor/plugins/git_provider/lib/git_provider.rb
@@ -97,6 +97,7 @@ class GitProvider < Raki::AbstractProvider

   def exists?(dir, name, revision=nil)
     check_repository
+    return false if name.nil?
     name = format_obj(name)
     revision = 'HEAD' if revision.nil?
     cmd = "#{GIT_BIN} --git-dir #{@git_path} ls-tree -l #{shell_quote(revision)}:#{dir}"

Or better catch the error somewhere before.

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.