Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

lccs.rb support for Ruby 1.9.3

Avatar

Avatar
Level 1
eyale-vc
Level 1

Likes

0 likes

Total Posts

19 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
eyale-vc
Level 1

Likes

0 likes

Total Posts

19 posts

Correct Reply

0 solutions
View profile
eyale-vc
Level 1

16-02-2012

Hi,

Looks like the interface for the http get and post methods had changed in Ruby 1.9.3 and now instead of returning a pair of response and body, only the response parameter is returned.

Therefore, both the http_get and http_post methods should get the body from the returned response parameter.

The block performing the http call should be in http_get

and in http_post

Eyal.

Replies

Avatar

Avatar
Boost 50
Employee
Raff_
Employee

Likes

80 likes

Total Posts

758 posts

Correct Reply

75 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Employee
Raff_
Employee

Likes

80 likes

Total Posts

758 posts

Correct Reply

75 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Raff_
Employee

16-02-2012

Thanks for pointing that out. I'll have to see if there is an easy way to get it to work both with 1.8.x and 1.9.x.

Avatar

Avatar
Level 1
eyale-vc
Level 1

Likes

0 likes

Total Posts

19 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
eyale-vc
Level 1

Likes

0 likes

Total Posts

19 posts

Correct Reply

0 solutions
View profile
eyale-vc
Level 1

17-02-2012

Hi Raff,

This should work for both 1.8 and 1.9 version.