Skip to content

Conversation

@mrchrisadams
Copy link
Contributor

This PR updates the AMEE Ruby gem to work with the v3 only AMEE-connect service, available at live.amee.com, so AMEE Discover can use it again.

It does this by:

  • removing the calls to the V2 authenticate methodused to fetch a new key when making API requests, in favour of just using HTTP Basic Auth
  • removing some of the caching code, which assumed write access to the file system
  • updating the underlying HTTP Typhoeus client, and updating the method calls to it to use Typhoeus's updated API.

Sorry, the tests are totally broken on this at present, so this shouldn't really be merged in yet.

Odaeus added 19 commits April 3, 2015 13:53
- Bundler is not a requirement of any gem.
- rcov doesn't work on Ruby 1.9.
- rdoc is not a dependency.
- The #headers method on Request was removed and is now accessed via
  #options.
- Clearly it was super important that the `follow_location` option
  needed to have its underscore removed.
No more 'platform-api-?' checked or automatically prefixed.
Seriously, it calls directly into the Ethon library and the request
method is never set anywhere that's accessible.
- Request#method has gone, it may or may not be in options.
- Request#body also appears to be in options.
There's a lot less data from the V3 API, just the amounts and notes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants