duritong / trocla

A password store for password creation and retrieval
Other
75 stars 18 forks source link

undefined method `run' for #<Moneta::Builder #6

Closed varac closed 11 years ago

varac commented 11 years ago

Hi, we have a problem using trocla:

root@orca:/tmp# gem list

*** LOCAL GEMS ***

bcrypt-ruby (3.0.1)
highline (1.6.15)
moneta (0.7.5)
trocla (0.0.7)

root@orca:/tmp# ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux]

root@orca:/tmp# trocla  create user1 plain
Action failed with the following message: undefined method `run' for #<Moneta::Builder:0x7f9f6fbc2c88 @proxies=[]>

it's the same error both for ruby 1.8 and ruby 1.9.1

varac commented 11 years ago

using moneta-0.6.1, which i used before, didn't solve the problem

duritong commented 11 years ago

The moneta version is the problem. The upcoming release will support the new moneta API. The previous moneta-0.6.1 version should still work, otherwise it is not the one you used before.

duritong commented 11 years ago

You need this change https://github.com/duritong/trocla/commit/c8b07f1967abeee6c7c6fb6a5ba9a53f2d8074bf#L3L70

duritong commented 11 years ago

and this one https://github.com/duritong/trocla/commit/c8b07f1967abeee6c7c6fb6a5ba9a53f2d8074bf#L4L5

varac commented 11 years ago

just for the record: with moneta 0.6.1 i get "undefined method `key?' for false:FalseClass"

then i applied the diff from https://github.com/duritong/trocla/issues/6#issuecomment-12231580 and https://github.com/duritong/trocla/issues/6#issuecomment-12231600, now i get:

root@orca:/tmp# trocla create user1 plain Action failed with the following message: undefined method `downcase' for :YAML:Symbol

varac commented 11 years ago

ok, applyed https://github.com/duritong/trocla/commit/b61d819bf8204c21ab52af1b44a556fb48b4fdc4#L3L68 too, now i get

root@orca:/tmp# trocla create user1 plain Action failed with the following message: undefined method `new' for Moneta:Module

but i'll just wait for a new trocla gem coming soon ;)