Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `key' for {}:Hash #14

Open
profmaad opened this issue Nov 13, 2012 · 0 comments
Open

undefined method `key' for {}:Hash #14

profmaad opened this issue Nov 13, 2012 · 0 comments

Comments

@profmaad
Copy link

On a formerly working gitauth installation, I just tried adding a new user:

git@foobar:~$ gitauth add-user bar-baz /tmp/bar-baz.pub 
/usr/lib/ruby/gems/1.8/gems/gitauth-1.0.3/lib/gitauth/user.rb:144:in `add_key': undefined method `key' for {}:Hash (NoMethodError)
    from /usr/lib/ruby/gems/1.8/gems/gitauth-1.0.3/lib/gitauth/user.rb:127:in `add_key_or_file'
    from /usr/lib/ruby/gems/1.8/gems/gitauth-1.0.3/lib/gitauth/user.rb:136:in `add_key_or_file!'
    from /usr/lib/ruby/gems/1.8/gems/gitauth-1.0.3/lib/gitauth/user.rb:42:in `create'
    from /usr/lib/ruby/gems/1.8/gems/gitauth-1.0.3/bin/gitauth:114:in `apply'
    from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/application.rb:15:in `execute'
    from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/application.rb:170:in `execute_command'
    from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/application.rb:115:in `execute'
    from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/application.rb:153:in `processing'
    from /usr/lib/ruby/gems/1.8/gems/gitauth-1.0.3/bin/gitauth:4
    from /usr/bin/gitauth:19:in `load'
    from /usr/bin/gitauth:19

Some information on my system:
ruby --version: ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]

git@foobar:~$ gem list

*** LOCAL GEMS ***

bundler (1.2.1)
daemons (1.1.9, 1.1.4)
eventmachine (1.0.0, 0.12.10)
fcgi (0.8.8)
gitauth (1.0.3)
haml (3.1.7, 3.1.2)
i18n (0.6.1, 0.4.2)
jammit (0.6.5)
open4 (1.3.0)
perennial (1.2.5)
Platform (0.4.0)
POpen4 (0.1.4)
rack (1.4.1, 1.3.2, 1.1.1, 1.0.1)
rack-protection (1.2.0)
rack-test (0.6.2)
rake (10.0.0, 0.8.7)
redgreen (1.2.2)
rr (1.0.4)
sinatra (1.3.3, 1.2.6)
thin (1.5.0, 1.2.11)
thoughtbot-shoulda (2.11.1)
tilt (1.3.3, 1.3.2)
yui-compressor (0.9.6)

This is a Debian 6 system using system ruby.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant