Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
Update CHANGELOG, README and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Carrie committed Apr 3, 2018
1 parent 15b9451 commit c2891ed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion lib/onfido/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Onfido
VERSION = '0.9.0'.freeze
VERSION = '0.10.0'.freeze
end

0 comments on commit c2891ed

Please sign in to comment.