From c2891ed72eaafae3cc508acb5b670f8a5c344b5c Mon Sep 17 00:00:00 2001 From: Alan Carrie Date: Tue, 3 Apr 2018 10:23:25 +0100 Subject: [PATCH] Update CHANGELOG, README and bump version --- CHANGELOG.md | 4 ++++ README.md | 6 ++++-- lib/onfido/version.rb | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ee2463..563e71d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.10.0, 3 April 2018 + +- Add support for download, find and retrieve all for live_photo resource (@kirsis) + ## v0.9.0, 8 March 2018 - Remove the ability to create Documents and Live Photos from a remote URL or local path, mitigating a potential security vulnerability (see #45 for details) (@timrogers) diff --git a/README.md b/README.md index fc104e6..4447e37 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This gem supports both `v1` and `v2` of the Onfido API. Refer to Onfido's [API d Add this line to your application's Gemfile: ```ruby -gem 'onfido', '~> 0.9.0' +gem 'onfido', '~> 0.10.0' ``` The gem is compatible with Ruby 2.2.0 and onwards. Earlier versions of Ruby have [reached end-of-life](https://www.ruby-lang.org/en/news/2017/04/01/support-of-ruby-2-1-has-ended/), are no longer supported and no longer receive security fixes. @@ -82,10 +82,12 @@ to `#create`. #### Live Photos Live Photos, like documents, can provide supporting evidence for Onfido checks. -They can only be created - the Onfido does not support finding or listing them. ```ruby api.live_photo.create('applicant_id', file: 'http://example.com') +api.live_photo.find(applicant_id, live_photo_id) # => Finds a live photo +api.live_photo.download(applicant_id, live_photo_id) # => Downloads a live photo as binary data +api.live_photo.all(applicant_id) # => Returns all applicant's live photos ``` **Note:** The file parameter must be a `File`-like object which responds to `#read` and `#path`. diff --git a/lib/onfido/version.rb b/lib/onfido/version.rb index 417ebec..562d094 100644 --- a/lib/onfido/version.rb +++ b/lib/onfido/version.rb @@ -1,3 +1,3 @@ module Onfido - VERSION = '0.9.0'.freeze + VERSION = '0.10.0'.freeze end