- Breaking: The wanikani gem was completely revamped to support Wanikani's V2 API.
- With the API change, Gravatar is not supported anymore and many data fields were moved or replaced. Please read the documentation for more information.
- The wanikani gem now requires Ruby 2.5 and above.
- Breaking: The wanikani gem was completely revamped to use a per-instance client. Please read the documentation for more information.
- The wanikani gem now requires Ruby 2.0 and above.
- Handle invalid API keys better by raising a
Wanikani::InvalidKey
exception. - Fix issue where
Wanikani.valid_api_key?
was not properly working on unsuccessful responses.
- Handle errors when the WaniKani API returns an unsuccessful API response with a blank body.
- All changes were to the underlying code - no functionality has been changed.
- Switched HTTP library from RestClient to Faraday.
- Updated any outdated gems used in the library (for runtime and development dependencies).
- Changed default API version to v1.4.
- Changed default API version to v1.3.
- Added
full_response
method to available classes that returns a hash with the full response from the WaniKani API call.
- Version 1.0!
- Added
Wanikani.api_version
to be able to select a specific API version to use. - Use HTTPS for all API requests.
- Added
Wanikani::SRS.items_by_type
to return all items for a specific SRS type. - Slight change in versioning, in preparation for that all-so-important 1.0 release!
- Added an optional parameter to
Wanikani.valid_api_key?
to allow checking an API key without having to setWanikani.api_key
beforehand. - Added a generic
Wanikani::Exception
class to define more specific exceptions when using this gem.
- Added
Wanikani::User.gravatar_url
to return the Gravatar image URL. - Fixed case when using
Wanikani::Level.vocabulary
and not specifying a level - the API call returns a Hash instead of an Array.
- Added
Wanikani.valid_api_key?
method
- Added
Wanikani::User#on_vacation?
method