omniauth-onvedeo 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eabe10e823b7dc703cb4f76cbf8bbd54905a5b8f
4
- data.tar.gz: 76079a33d55d5408f7d45507aca3df09752a07e0
3
+ metadata.gz: 0c2a5fe96a458469a2121a49eb1835e875f8f344
4
+ data.tar.gz: 285c8af3e804b380b1a5b8f19a6986bc47d5a12d
5
5
  SHA512:
6
- metadata.gz: 90cae147a4c107be24dd7aba172c2194f9ab8a8de0bc045ee9eae80cfb1291dd43bf2a09deac7652da35f67e63d098aed287b2a769e537b7ae6f22dbfc3137e5
7
- data.tar.gz: 852b03f859f5c6fb9d6ec6f077fa943bbadcd7046adb35405c64409655a4209aa10bb7fdce456ccd7403536b8692b7544583204ca623fefc221247b29f46a186
6
+ metadata.gz: 2435886b866899230c8734b2baf850d452dfdf31c7aa1eae4e316fc4e79a8f805b618f957446a4e232b4205472aa0713806178b14728502bcdcadf806d24c99b
7
+ data.tar.gz: ff603368e995fa6f02f68672df6ad2f17a58d83d0736a21624f93c7bd178832dca7e65c77f2043e86115d2eaf89779d5a2771b5e484deba9e561e042b45f494c
@@ -0,0 +1,5 @@
1
+ # v1.1.0
2
+ * Add additional user info to auth hash
3
+
4
+ # v1.0.0
5
+ * Create omniauth-onvedeo gem
data/README.md CHANGED
@@ -1,8 +1,11 @@
1
1
  # Omniauth::Onvedeo
2
+ [![Gem Version](https://badge.fury.io/rb/omniauth-onvedeo.svg)](http://badge.fury.io/rb/omniauth-onvedeo)
3
+ [![Build Status](https://travis-ci.org/onvedeo/omniauth-onvedeo.svg?branch=master)](https://travis-ci.org/onvedeo/omniauth-onvedeo)
4
+ [![Dependency Status](https://gemnasium.com/onvedeo/omniauth-onvedeo.svg)](https://gemnasium.com/onvedeo/omniauth-onvedeo)
5
+ [![Code Climate](https://codeclimate.com/github/onvedeo/omniauth-onvedeo/badges/gpa.svg)](https://codeclimate.com/github/onvedeo/omniauth-onvedeo)
6
+ [![Coverage Status](https://coveralls.io/repos/onvedeo/omniauth-onvedeo/badge.svg?branch=master&service=github)](https://coveralls.io/github/onvedeo/omniauth-onvedeo?branch=master)
2
7
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/omniauth/onvedeo`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
8
+ Provides the Onvedeo strategy for OmniAuth.
6
9
 
7
10
  ## Installation
8
11
 
@@ -20,9 +23,24 @@ Or install it yourself as:
20
23
 
21
24
  $ gem install omniauth-onvedeo
22
25
 
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
+ ## Authentication Hash
27
+
28
+ An example auth hash available in `request.env['omniauth.auth']`:
29
+ ```rb
30
+ {
31
+ provider: 'onvedeo',
32
+ uid: 123456,
33
+ info: {
34
+ email: 'email@onvedeo.com',
35
+ name: 'John Doe',
36
+ first_name: 'John',
37
+ last_name: 'Doe',
38
+ role: 'user',
39
+ image: 'http://www.onvedeo.com/image.url',
40
+ description: 'User description'
41
+ }
42
+ }
43
+ ```
26
44
 
27
45
  ## Development
28
46
 
@@ -32,7 +50,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
50
 
33
51
  ## Contributing
34
52
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/omniauth-onvedeo.
53
+ Bug reports and pull requests are welcome on GitHub at https://github.com/onvedeo/omniauth-onvedeo.
36
54
 
37
55
 
38
56
  ## License
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Onvedeo
3
- VERSION = '1.0.0'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
@@ -19,8 +19,13 @@ module OmniAuth
19
19
  first_name: raw_info['first_name'],
20
20
  last_name: raw_info['last_name'],
21
21
  role: raw_info['role'],
22
+ phone: raw_info['phone'],
22
23
  image: raw_info['image'],
23
- description: raw_info['description']
24
+ company_logo: raw_info['company_logo'],
25
+ company_name: raw_info['company_name'],
26
+ description: raw_info['description'],
27
+ bre_number: raw_info['bre_number'],
28
+ mls_agent_id: raw_info['mls_agent_id']
24
29
  }
25
30
  end
26
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-onvedeo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Lok
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-16 00:00:00.000000000 Z
11
+ date: 2015-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -104,6 +104,7 @@ files:
104
104
  - ".gitignore"
105
105
  - ".rspec"
106
106
  - ".travis.yml"
107
+ - CHANGELOG.md
107
108
  - Gemfile
108
109
  - LICENSE.txt
109
110
  - README.md