-
Notifications
You must be signed in to change notification settings - Fork 12
Updated httparty, rspec, implemented Object#blank? #10
base: master
Are you sure you want to change the base?
Conversation
- Added gemspec dep httparty >= 0.8.1 - Added gemspec dev deps rspec >= 2.8.0, rdoc and pry - Updated Rakefile to satisfy deprecation warnings
Hi @ashmckenzie! Just tried out your changes and I get the following stack dump when searching movies:
I'm using Ruby 1.9.2. |
Forgot to mention, if I hack TMDb to cache in memory rather than to disk everything is fine. Here are the gem versions I'm using:
|
Hi Andrew, not sure exactly what's going on there but if you could provide a github link to your code I can take a look. I don't think the error you are seeing above is as a result of my change but am happy to take a look. |
#/usr/bin/env ruby
require "rubygems"
require "bundler/setup"
require "tmdb_party"
require "pp"
tmdb = TMDBParty::Base.new('6acf9a0fd5218efe8859413e8ace0aba')
#results = tmdb.search('transformers')
results = tmdb.search_person('tom cruise')
pp results Ash, I don't think there's anything wrong with your code! :-) I suspect something has changed with httparty recently, so this is mainly just a heads-up. Anyway, considering going my own way with a v3 wrapper based on faraday. |
I've had a bit of a look and it's a curly one :( I think you're right, maybe the gemspec should require an older version of httparty ? |
Success! Installing v 0.7.8 of httparty and removing the s.add_dependency "httparty", ">= 0.8.1" requirement in the gemspec works correctly :) |
Nice work @ashmckenzie! I've decided to scratch my own itch, though, and build something new on the v3 API, using faraday and vcr for testing: https://github.com/andrewdsmith/neo-tmdb. Still early days. |
Hi John,
I've updated your gem so the specs run, blank? doesn't complain anymore and updated httparty which solves the "couldn't parse YAML" error.
Thanks,
Ash.