omniauth-realgravity 0.1.1 → 0.1.2

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: f098e1d6d7d0678750b68edb88c41e5c0a6d0d07
4
- data.tar.gz: b9561a5fb46a7bdd9295e2402ac90d846bfe99b3
3
+ metadata.gz: 406f4eb5d27613fff7a6b6d341e02d5ddccd1505
4
+ data.tar.gz: 339f98a45b67d69837e072b3334b8c121161c6b5
5
5
  SHA512:
6
- metadata.gz: 3a9689d34fd1cc4a74f29da7127280f5ce4f5c1cc20de3e1713811a5840279f3a06ac40618ba32d279758a775f6ccd6812f615374af3697e9f1d8b8ff52a8086
7
- data.tar.gz: 57f91ba0a74b886c782b0215bc2fa3bf4e2d8437904b018d1f92ca88ea8256ff1f78f2296bd28dae7c83bbc3791a962b8778d012afdb196f020e46d11f77d99f
6
+ metadata.gz: aba2e382282b82b7bbdc21e37e499c159cfebc01ace027238263a839d4f5dd566befd04051705c5213ae08908f313b5f16bc635900885e88d19dae26012c436c
7
+ data.tar.gz: e360faa1807c1c1e3b8a14e4f428f2ecc12f58f7fbf523ea7f8087de352004a38f909ec22c32b717d6e9e442671565ac797523a981f0e45908c98ba2b4c3674a
data/README.md CHANGED
@@ -1 +1,75 @@
1
- # OmniAuth RealGravity
1
+ # OmniAuth RealGravity  [![Gem Version](https://badge.fury.io/rb/omniauth-realgravity.png)](http://badge.fury.io/rb/omniauth-realgravity)
2
+
3
+ This gem provides an OmniAuth strategy for authenticating with [RealGravity](http://www.realgravity.com/). ~~You will need to [register an app](#) to get your application key and secret.~~ Note: RealGravity OAuth support is currently being privately tested. It may be available publicly in the near future.
4
+
5
+ ## Usage
6
+
7
+ Add the RealGravity OmniAuth strategy to your `Gemfile`:
8
+
9
+ ```ruby
10
+ gem "omniauth-realgravity", "~> 0.1.2"
11
+ ```
12
+
13
+ In a Rails app, configure the middleware in `config/initializers/omniauth.rb`:
14
+
15
+ ```ruby
16
+ Rails.application.config.middleware.use OmniAuth::Builder do
17
+ provider :realgravity, ENV['REALGRAVITY_KEY'], ENV['REALGRAVITY_SECRET']
18
+ end
19
+ ```
20
+
21
+ Or in a rack-based app, like Sinatra:
22
+
23
+ ```ruby
24
+ require 'sinatra'
25
+ require 'omniauth'
26
+
27
+ use Rack::Session::Cookie
28
+ use OmniAuth::Builder do
29
+ provider :realgravity, ENV['REALGRAVITY_KEY'], ENV['REALGRAVITY_SECRET']
30
+ end
31
+ ```
32
+
33
+ Visiting `/auth/realgravity` will kick off the authentication flow, and will require your app to provide the `/auth/:provider/callback` endpoint to complete the handshake. Read more [here](https://github.com/intridea/omniauth/blob/master/README.md).
34
+
35
+ ## Example Auth Hash
36
+
37
+ After the OmniAuth callback is successfully reached, `env['omniauth.auth']` will provide the following data:
38
+
39
+ ```json
40
+ {
41
+ "provider":"realgravity",
42
+ "uid":830,
43
+ "info":{
44
+ "name":"Chris Caselas",
45
+ "email":"ccaselas@realgravity.com",
46
+ "network_id":121,
47
+ "company_id":22,
48
+ },
49
+ "credentials":{
50
+ "token":"RR6wG1021ttKNLe0WFpqR4ESYZcH",
51
+ "expires":false
52
+ }
53
+ }
54
+ ```
55
+
56
+ ## License ([MIT](http://opensource.org/licenses/MIT))
57
+ Copyright (c) 2013 Chris Caselas and RealGravity
58
+
59
+ Permission is hereby granted, free of charge, to any person obtaining a copy
60
+ of this software and associated documentation files (the "Software"), to deal
61
+ in the Software without restriction, including without limitation the rights
62
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
63
+ copies of the Software, and to permit persons to whom the Software is
64
+ furnished to do so, subject to the following conditions:
65
+
66
+ The above copyright notice and this permission notice shall be included in
67
+ all copies or substantial portions of the Software.
68
+
69
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
70
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
71
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
72
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
73
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
74
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
75
+ THE SOFTWARE.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module RealGravity
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
@@ -17,9 +17,9 @@ Gem::Specification.new do |s|
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
18
18
  s.require_paths = ['lib']
19
19
 
20
- s.add_dependency 'omniauth', '~> 1.1.4'
21
- s.add_dependency 'omniauth-oauth2', '~> 1.1.1'
20
+ s.add_runtime_dependency 'omniauth', '~> 1.1'
21
+ s.add_runtime_dependency 'omniauth-oauth2', '~> 1.1'
22
22
 
23
- s.add_development_dependency 'rspec', '~> 2.13.0'
24
- s.add_development_dependency 'rake', '~> 10.0.4'
23
+ s.add_development_dependency 'rspec', '~> 2.13'
24
+ s.add_development_dependency 'rake', '~> 10.0'
25
25
  end
metadata CHANGED
@@ -1,71 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-realgravity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Caselas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-25 00:00:00.000000000 Z
11
+ date: 2014-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.4
19
+ version: '1.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.1.4
26
+ version: '1.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: omniauth-oauth2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.1.1
33
+ version: '1.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.1.1
40
+ version: '1.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.13.0
47
+ version: '2.13'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.13.0
54
+ version: '2.13'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 10.0.4
61
+ version: '10.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 10.0.4
68
+ version: '10.0'
69
69
  description: RealGravity strategy for OmniAuth to provide OAuth2 access.
70
70
  email:
71
71
  - support@realgravity.com
@@ -73,7 +73,7 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .gitignore
76
+ - ".gitignore"
77
77
  - Gemfile
78
78
  - Gemfile.lock
79
79
  - README.md
@@ -95,17 +95,17 @@ require_paths:
95
95
  - lib
96
96
  required_ruby_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - '>='
98
+ - - ">="
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - '>='
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
107
  rubyforge_project:
108
- rubygems_version: 2.1.4
108
+ rubygems_version: 2.2.2
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: RealGravity strategy for OmniAuth