tumblr weird error

4 views
Skip to first unread message

Essam Hafez

unread,
May 20, 2012, 9:59:26 AM5/20/12
to smartsoft-c2-12
@Yahia after i updated today i found an error in tumblr saying
1.9.3p125 :003 > x = Tumblr::User.new('essamah...@gmail.com','12345678')
(irb):3: warning: toplevel constant User referenced by Tumblr::User
NoMethodError: undefined method `stringify_keys' for
"essamah...@gmail.com":String

after googling i found that ruby references our User class instead of
User inside the Gem class .. and many solutions didn't work for me.

in this link https://github.com/themactep/grumblr/blob/master/lib/ppds/tumblr.rb
source of the Gem , stringify_keys is a method inside it.

do u know any sol. to this ?
or can i edit in a gem file ?


check 3ndk kda fe command line these and tell me the output

> require 'Tumblr'
> x = Tumblr::User.new('essamah...@gmail.com','12345678')


--
Essam Hafez
essamah...@gmail.com
+2 (0100) 1152697

Yahia El Gamal

unread,
May 20, 2012, 11:39:45 AM5/20/12
to smartso...@googlegroups.com
Revert back to a working revision and see what went wrong

Sent from iPhone

Essam Hafez

unread,
May 20, 2012, 2:14:18 PM5/20/12
to smartso...@googlegroups.com
i've committed tumblr, remains Mina to add the part to view feed ...
or u can login , add ur tumblr account , and in console write,
user.tumblr_account.get_feed

i will tell Mina now.

Yahia El Gamal

unread,
May 20, 2012, 2:41:38 PM5/20/12
to smartso...@googlegroups.com
ok,  I will try it now

can you tell smartsoft about the Gem solution you told me? 

Essam Hafez

unread,
May 20, 2012, 2:50:04 PM5/20/12
to smartso...@googlegroups.com
let's wait till menesy finishes testing it. =)

On 5/20/12, Yahia El Gamal <yahiae...@gmail.com> wrote:
> ok, I will try it now
>
> can you tell smartsoft about the Gem solution you told me?
>


Mohamed El-Menisy

unread,
May 20, 2012, 3:02:02 PM5/20/12
to smartso...@googlegroups.com

As I told you it is still giving an error "no such file to load"!
It's really weird your it's only working for mac users
Please let me know if you reach a solution

Yahia El Gamal

unread,
May 20, 2012, 3:03:09 PM5/20/12
to smartso...@googlegroups.com
did you try removing all other tumblr gem and keeping the matenia-tumblr-api? 
--
Yahia

Mohamed El-Menisy

unread,
May 20, 2012, 3:07:22 PM5/20/12
to smartso...@googlegroups.com
It is the only tumblr gem in the gemfile anyways.

Yahia El Gamal

unread,
May 20, 2012, 3:08:01 PM5/20/12
to smartso...@googlegroups.com
Yes I know, but it might not be the only Gem in your gem set

try to type 
gem list 
--
Yahia

Yahia El Gamal

unread,
May 20, 2012, 3:08:18 PM5/20/12
to smartso...@googlegroups.com
to be more specific, try 

gem list | grep tumblr
--
Yahia

Essam Hafez

unread,
May 20, 2012, 3:10:03 PM5/20/12
to smartso...@googlegroups.com
Yahia hwa esht3'lt 3ndk ?

Yahia El Gamal

unread,
May 20, 2012, 3:30:30 PM5/20/12
to smartso...@googlegroups.com
hwa estha3'al bas msh bygib feed (7ata men l console) 
--
Yahia

Essam Hafez

unread,
May 20, 2012, 3:34:23 PM5/20/12
to smartso...@googlegroups.com
tb btktb a w bytl3lk a ?

Yahia El Gamal

unread,
May 20, 2012, 3:36:29 PM5/20/12
to smartso...@googlegroups.com
3amalt tumblr account 't', be credentials sa7, lama ba2ool t.get_feed byrga3ly list fadya
--
Yahia

Mohamed El-Menisy

unread,
May 20, 2012, 3:42:58 PM5/20/12
to smartso...@googlegroups.com
I did that and I uninstalled the 2 other tumblr gems "tumblr and tumblr-rb" and still getting the same result whenever trying to run any test!
I have to delete the Tumblr model and controller in order for any of the tests to work and hence I won't be able to test Essam's work!

Essam Hafez

unread,
May 20, 2012, 3:47:12 PM5/20/12
to smartso...@googlegroups.com
elcredentials de tyb lw msh my account enta 3aml feha posts wla l2 ?

and u mean u did this sequence

user = User.create!("essamah...@gmail.com","123456","123456")
t = TumblrAccount.new
t.email = "essamah...@gmail.com"
t.password = "12345678"
user.tumblr_account = t
t.get_feed

Essam Hafez

unread,
May 20, 2012, 4:22:09 PM5/20/12
to smartso...@googlegroups.com
what could i do ??
sha3'al w bygeeb feed w zy elfol.....
Screen Shot 2012-05-20 at 10.19.27 PM.png

Yahia El Gamal

unread,
May 20, 2012, 4:23:01 PM5/20/12
to smartso...@googlegroups.com
tab enta did you uninstall ba2y el gems??
--
Yahia

Essam Hafez

unread,
May 20, 2012, 4:25:53 PM5/20/12
to smartso...@googlegroups.com
didn't yet, bs msh fe elgem file ...
w grbt a7ot tany tumblr-rb fe elgemfile bytl3 error

73mlohom now uninstall w areply tany
Reply all
Reply to author
Forward
0 new messages