Ruby 1.9.2 support

17 views
Skip to first unread message

Matt Brooke-Smith

unread,
Nov 10, 2011, 6:54:09 AM11/10/11
to pickle
Hi,

When I use Pickle with Ruby 1.9.2 I get errors around the use of
<Object>.id.

When using 1.8.7 I get messages about <Object>.id being deprecated in
favour of <Object>.object_id

(a) am I doing something wrong or (b) should I fork Pickle and update
this call?

Thanks for your help!
Matt

ian.w...@gmail.com

unread,
Nov 10, 2011, 7:05:45 AM11/10/11
to pickle-...@googlegroups.com
Hi,

Checking for object_id is almost certainly not what you want to do, so something is going wrong.

Could you post more details on a gist, esp. what ORM you are using and a stack trace

Cheers,
Ian

> --
> You received this message because you are subscribed to the Google Groups "pickle" group.
> To post to this group, send email to pickle-...@googlegroups.com.
> To unsubscribe from this group, send email to pickle-cucumb...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pickle-cucumber?hl=en.
>

Matt Brooke-Smith

unread,
Nov 24, 2011, 9:55:38 AM11/24/11
to pickle
Hi,

Sorry for the slow reply - I've been away for a while.

I'm trying to set up Pickle with a project called Frank, which aims to
extend Cucumber for iOS.

Essentially, I'm just trying to use Pickle's steps to manage variables
in Cucumber script for now, so am not using an ORM. I coded my own
simple memory ORM using a map, which you can find here:-

https://gist.github.com/1391504

When I run "frank" cucumber I get the warnings listed above.

I'm using

cucumber (1.1.0)
frank-cucumber (0.7.7)
pickle (0.4.10)

Any ideas?

Thanks for your help & time!

Matt

Ian White

unread,
Nov 24, 2011, 10:16:05 AM11/24/11
to pickle
Sounds interesting.

Given what you're doing, a FrankModel instance's id is actually the
object_id, so you should probably add the following instance method to
your FrankModel class

def id
object_id
end

Let me know if that helps.

Cheers,
Ian


On Nov 24, 2:55 pm, Matt Brooke-Smith <m...@futureworkshops.com>
wrote:

Matt Brooke-Smith

unread,
Nov 24, 2011, 6:34:25 PM11/24/11
to pickle
Thats great - sorted the problem and I'm now up and running with Ruby
1.9.2. Thanks Ian.
Reply all
Reply to author
Forward
0 new messages