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 error #37

Open
AlexeyKupershtokh opened this issue Oct 18, 2015 · 1 comment
Open

Undefined method error #37

AlexeyKupershtokh opened this issue Oct 18, 2015 · 1 comment

Comments

@AlexeyKupershtokh
Copy link

I'm trying to run the package under ubuntu 14.04 and ruby 1.9.3.
It fails with the following error:

Auditing redis://@redis-01.local:6386/ sampling 0 keys
Sampling 601 keys...
./redis-audit.rb:157:in `block (2 levels) in group_key': undefined method `[]' for #<Enumerator:0x0000000289a948> (NoMethodError)
    from ./redis-audit.rb:155:in `each_codepoint'
    from ./redis-audit.rb:155:in `with_index'
    from ./redis-audit.rb:155:in `block in group_key'
    from ./redis-audit.rb:151:in `each'
    from ./redis-audit.rb:151:in `group_key'
    from ./redis-audit.rb:129:in `audit_key'
    from ./redis-audit.rb:98:in `block in audit_keys'
    from ./redis-audit.rb:96:in `times'
    from ./redis-audit.rb:96:in `audit_keys'
    from ./redis-audit.rb:347:in `<main>'

@qhartman
Copy link

I was running into this problem as well. If you pull this revision: https://github.com/snmaynard/redis-audit/archive/aa9296861bafbf43f5db960343c47c13a66de39b.zip

And then comment out the bundle requirement at the top of the redis-audit.rb file it works on 14.04 w. ruby 1.9.3

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

2 participants