D
David Turnbull
I'm a Ruby/programming noob and one piece of advice I keep seeing pop up
from Ruby "gurus" is that you should play with real code and build real
things. Seeing as I would one day like to build a Tumblr client with
MacRuby, I thought I'd get acquainted with the process via Ruby on its
lonesome.
Problem is, like I said, I'm a noob and I have no idea what I'm doing.
I found the "tumblr-rb" gem (http://github.com/mwunsch/tumblr) which
I've installed, and have successfully posted to Tumblr via the command
line, but I have no idea how to use/manipulate this sample code:
request = Tumblr.new(username, password).post(document)
request.perform do |response|
if response.success?
puts response.body # Returns the new post's id.
else
puts "Something went wrong: #{response.code}
#{response.message}"
end
end
Would appreciate any direction you could give me.
from Ruby "gurus" is that you should play with real code and build real
things. Seeing as I would one day like to build a Tumblr client with
MacRuby, I thought I'd get acquainted with the process via Ruby on its
lonesome.
Problem is, like I said, I'm a noob and I have no idea what I'm doing.
I found the "tumblr-rb" gem (http://github.com/mwunsch/tumblr) which
I've installed, and have successfully posted to Tumblr via the command
line, but I have no idea how to use/manipulate this sample code:
request = Tumblr.new(username, password).post(document)
request.perform do |response|
if response.success?
puts response.body # Returns the new post's id.
else
puts "Something went wrong: #{response.code}
#{response.message}"
end
end
Would appreciate any direction you could give me.