diff --git a/.travis.yml b/.travis.yml index e863e12..da65b6e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,7 @@ - gem update --system - gem --version rvm: - - 2.3.0 - - 2.2 - - 2.1 - - 2.0 - - 1.9.3 - - jruby-19mode - - rbx-2 + - 2.6 + - 2.5 + - 2.4 + - 2.3 diff --git a/CHANGELOG.md b/CHANGELOG.md index cb0ad8a..12eff04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 5.0.0 (2018-03-29) + +Changes: + + - bumped version of FB Graph API to v2.10 (#297, @piotrjaworski) + - use only CRuby 2.0+ on CI (#298, @simi) + ## 4.0.0 (2016-07-26) Changes: @@ -6,7 +13,7 @@ - switch to versioned FB APIs, currently using v2.6 (#245, @printercu, @mkdynamic) - remove deprecated :nickname field from README example (#223, @abelorian) - add Ruby 2.2 + 2.3.0 to CI (#225, @tricknotes, @mkdynamic, @anoraak) - - update example app (@mkynamic) + - update example app (@mkdynamic) ## 3.0.0 (2015-10-26) diff --git a/Gemfile b/Gemfile index 2fc94e1..d1172e4 100644 --- a/Gemfile +++ b/Gemfile @@ -2,6 +2,8 @@ gemspec +gem 'rack', RUBY_VERSION < '2.2.2' ? '~> 1.6' : '>= 2.0' + platforms :rbx do gem 'rubysl', '~> 2.0' end diff --git a/README.md b/README.md index b0615ed..89e50ff 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # OmniAuth Facebook  [![Build Status](https://secure.travis-ci.org/mkdynamic/omniauth-facebook.svg?branch=master)](https://travis-ci.org/mkdynamic/omniauth-facebook) [![Gem Version](https://img.shields.io/gem/v/omniauth-facebook.svg)](https://rubygems.org/gems/omniauth-facebook) + +📣 **NOTICE** We’re looking for maintainers to help keep this project up-to-date. If you are interested in helping please open an Issue expressing your interest. Thanks! 📣 **These notes are based on master, please see tags for README pertaining to specific releases.** @@ -24,7 +26,7 @@ ```ruby Rails.application.config.middleware.use OmniAuth::Builder do - provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET'] + provider :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_APP_SECRET'] end ``` @@ -49,18 +51,18 @@ ```ruby Rails.application.config.middleware.use OmniAuth::Builder do - provider :facebook, ENV['APP_ID'], ENV['APP_SECRET'], + provider :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_APP_SECRET'], scope: 'email,user_birthday,read_stream', display: 'popup' end ``` ### API Version -OmniAuth Facebook uses versioned API endpoints by default (current v2.6). You can configure a different version via `client_options` hash passed to `provider`, specifically you should change the version in the `site` and `authorize_url` parameters. For example, to change to v3.0 (assuming that exists): +OmniAuth Facebook uses versioned API endpoints by default (current v2.10). You can configure a different version via `client_options` hash passed to `provider`, specifically you should change the version in the `site` and `authorize_url` parameters. For example, to change to v3.0 (assuming that exists): ```ruby use OmniAuth::Builder do - provider :facebook, ENV['APP_ID'], ENV['APP_SECRET'], + provider :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_APP_SECRET'], client_options: { site: 'https://graph.facebook.com/v3.0', authorize_url: "https://www.facebook.com/v3.0/dialog/oauth" @@ -86,8 +88,6 @@ first_name: 'Joe', last_name: 'Bloggs', image: 'http://graph.facebook.com/1234567/picture?type=square', - urls: { Facebook: 'http://www.facebook.com/jbloggs' }, - location: 'Palo Alto, California', verified: true }, credentials: { @@ -152,9 +152,7 @@ ## Supported Rubies -- Ruby MRI (1.9.3+) -- JRuby (1.9 mode) -- RBX (2.1.1+) +- Ruby MRI (2.3, 2.4, 2.5, 2.6) ## License diff --git a/example/app.rb b/example/app.rb index 47d6514..042271c 100644 --- a/example/app.rb +++ b/example/app.rb @@ -27,8 +27,8 @@