fitgem changelog

v0.10.0

2014-08-08 Zachery Moneypenny [email protected]

  • Updates default test framework to RSpec 3
  • Updates library to use SSL exclusively when hitting the Fitbit REST API. Fitbit is restricting access to its API via https only on November 3rd, 2014. See issue #30 for more information. This should be transparent to end users of fitgem, as the library simply ignores the :ssl option in the Client constructor and defaults to https everywhere.
  • The previously-deprecated weekly_leaderboard and monthly_leaderboard methods have now been updated to throw a DeprecatedApiError rather than warning about deprecation. These methods will be removed in v1.0.

v0.9.0

2014-02-11 Zachery Moneypenny [email protected]

The v0.9.0 release adds a number of new methods to match new functionality available through the Fitbit REST API. It also removes support for concepts (monthly leaderboards) that have been removed from the Fitbit REST API.

There's a big change to leaderboard support in this update; please read the notes below if you're currently using monthly_leaderboard or weekly_leaderboard -- you should update your code to use the new method before v1.0 is released.

  • Add ability to target SSL Fitbit REST endpoints
  • Add activity_on_date_range method
  • Condense existing weekly_leaderboard and (no longer available) monthly_leaderboard into a simple leaderboard method. There is now only one leaderboard (weekly) so no need to differentiate in the API. The previous leaderboard methods are now deprecated and will be removed in v1.0.
  • Add create_or_update_weekly_goal method and specs
  • Add create_or_update_daily_goal method and specs
  • Add daily_goals method and update documentation
  • Add delete_body_fat_log method
  • Add delete_body_weight_log method
  • Add create_or_update_body_fat_goal method
  • Add create_or_update_body_weight_goal method
  • Add log_body_fat method to push a body fat measurement to Fitbit
  • Add body_fat_goal method to fetch the current body fat goal
  • Add body_fat method to fetch body fat measurements
  • Add body_weight method to fetch body fat measurements
  • For the body_weight and body_fat methods, determine a URI based on the base URI and provided options

v0.8.0

2013-08-03 Zachery Moneypenny [email protected]

  • Add support for weekly goals
  • Add support for silent alarms (including updates)
  • Add support for intraday distance
  • Add time zone support for usage of times
  • Add support for badges

v0.7.0

2013-05-17 Zachery Moneypenny [email protected]

  • Add support for intraday time series retrieval of various resources
  • Removed rvmrc from project- use whatever ruby you want!
  • Updated Travis CI configuration

v0.6.1

2013-02-28 Zachery Moneypenny [email protected]

  • More unit tests
  • Fix an issue where we weren't applying the format_date helper when constructing a date range fragment

v0.6.0

  • Streamline the README; add contributors link
  • Removed FAQs from README
  • Added support for daily activity goals
  • Moved testing-focused gemspec dependencies to the Gemfile

2013-02-13 Zachery Moneypenny [email protected]

v0.5.2

2012-03-04 Zachery Moneypenny [email protected]

  • Added new symbolize_keys helper method for turning the string-key based return hashes into symbol-key based ones
  • Added new label_for_measurement helper method to get the correct unit measurement label given a measurement type and the current user's ApiUnitSystem setting
  • Added specs
  • Added new connected? method on Fitgem::Client that will report whether API calls may be made
  • Added InvalidUnitSystem error and InvalidMeasurementType error
  • Fixed a small issue where date values were not being formatted correctly in calls to log_body_measurements

v0.5.1

2012-01-24 Zachery Moneypenny [email protected]

  • Fix for creating and removing data subscriptions
  • Updated specs

v0.5.0

2012-01-22 Zachery Moneypenny [email protected]

  • Added view/log/delete access for blood pressure data
  • Added view/log/delete access for glucose data
  • Added view/log/delete access for heart rate data
  • Added updated time series documentation for new endpoints
  • Updated temporal information in the readme
  • Added unit tests for format_time method
  • Updated copyright date

v0.4.0

2011-11-29 Zachery Moneypenny [email protected]

  • Added YARD documentation to thoroughly document code
  • DEPRECATED: Fitgem::Client#log_weight method, use Fitgem::Client#log_body_measurements instead. The new method allows you to log more than weight (bicep size, body fat %, etc.)
  • Added Fitgem::FoodFormType to be used in calls to Fitgem::Client#create_food
  • Added Fitgem::Client#log_sleep to log sleep data to fitbit
  • Added Fitgem::Client#delete_sleep_log to delete previously logged sleep data
  • Added Fitgem::Client#activities method to get a list of all activities
  • Added Fitgem::Client#activity_statistics method to get statistics for all logged activities
  • Added to documentation of supported endpoints for Fitgem::Client#data_by_time_range
  • Added unit tests for parameter validation for many methods
  • Overhauled notifications methods, including extensive documentation, unit tests, refactoring, and a couple of bug fixes. These methods now return both the HTTP status code and the JSON response body. See https://wiki.fitbit.com/display/API/Subscriptions-API for information on how to interpret each of the error codes.
  • Added fitgem to travis-ci for continuous integration (http://travis-ci.org/#!/whazzmaster/fitgem)
  • Added fitgem to rubydoc.info (http://rubydoc.info/github/whazzmaster/fitgem/master/frames)
  • Updated README
  • Moved OAuth documentation from the README to the fitgem wiki

v0.3.6

2011-07-12 Zachery Moneypenny [email protected]

  • Added friends support (get friends, friend leaderboard, create invites, accept/reject invites)
  • Added water support (get water data per date)
  • Added sleep support (get sleep data per date)
  • Added ability to update user profile information

Previous Releases

2011-05-11 Zachery Moneypenny [email protected]

  • Changed name and all references of this project from 'fitbit' to 'fitgem'

2011-04-11 Zachery Moneypenny [email protected]

  • Fixed an issue where blank user id's are used and an error is thrown.
  • Added support for creating/removing subscriptions (this support is experimental for now, more tests coming)

2011-03-24 Zachery Moneypenny [email protected]

  • Added logging of activities and foods
  • Added ability to add favorite activities and foods
  • Added ability to delete logged activities and foods, and remove favorite activities and foods
  • Refactored data_by_time_range for more testability
  • Added ability to query devices

2011-03-19 Zachery Moneypenny [email protected]

  • Updated auth client to support first-time auth and reconnections (if you have previously been authorized and received token/secret).
  • Added 'named' retrieval of activities and foods (recent_, favorite_, frequent_)
  • Added ability to log weight back to the site using the API

2011-03-18 Zachery Moneypenny [email protected]

  • First revision. Supports the auth process via oauth, and retrieval of user info and activities.