MeltwaterArchive / datasift-ruby

Ruby client for DataSift
http://datasift.com
MIT License
24 stars 22 forks source link

uninitialized constant DataSift::Client #63

Closed Verkalets closed 10 years ago

Verkalets commented 10 years ago

Hi When I just copy-paste code from example in my app, I see this error: uninitialized constant DataSift::Client in this row @datasift = DataSift::Client.new(@config) I use config data from my DataSift account(username and API key).

Thanks

dugjason commented 10 years ago

Hi, Could you confirm which version of the client you are using? Have you tried running any of the examples available at https://github.com/datasift/datasift-ruby/tree/master/examples ? If so, have you had any success running them?

Verkalets commented 10 years ago

Hi, I use datasift with version 2.1.1

Yeah, I tried, but have a same error.

dugjason commented 10 years ago

It seems like you may be trying to run 3.0 examples using the 2.0 client - versions 2 and 3 are not compatible. I would recommend reading the v.2.0 -> 3.0 migration guide, and ensuring you have updated to the latest version of the gem (v.3.1.1)

Verkalets commented 10 years ago

ok, i`ll try now

Verkalets commented 10 years ago

Thanks, it`s help for me. Just need to update datasift gem to 3.1.1 version