whazzmaster / fitgem-client

Example client use of the fitgem oauth library to integrate with fitbit.com
MIT License
35 stars 9 forks source link

data_by_time_range(...) does not work #1

Closed jonathan-mui closed 13 years ago

jonathan-mui commented 13 years ago

I believe the problem is on line 10 of fitbit_client_wrapper.rb method_missing. "args" is passed instead of "*args".

_Original_ def method_missing(name, *args) @client.send(name, args) end

_Should be_ def method_missing(name, args) @client.send(name, args) end

I've tried it and it seems to fix the problem. Not sure if this introduces any new bugs though...

whazzmaster commented 13 years ago

Thanks for the heads-up; sorry I didn't see this right away (had wrong email address on my gh account). I'll get this fixed.