omniauth-drip 0.0.2 → 0.0.3
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 +4 -4
- data/{NEWS.md → CHANGELOG.md} +5 -1
- data/README.md +10 -2
- data/lib/omniauth-drip.rb +1 -2
- data/lib/omniauth/drip.rb +2 -0
- data/lib/{omniauth-drip → omniauth/drip}/version.rb +1 -1
- data/lib/omniauth/strategies/drip.rb +5 -2
- data/omniauth-drip.gemspec +5 -3
- metadata +21 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d96609d897074b701c531d635c72e5765b255479
|
4
|
+
data.tar.gz: 7f8a939c063f635e884e09bbfc5174c1e1949f08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 386ec9afd398759dab4d4a48f9491551992021f262d63024db29587bf7142fc0caba8c36381ba1ab60fb505e4448977f1902eb34b604ed2a3444de8819cd9070
|
7
|
+
data.tar.gz: aa6a24d6d982a7abf0e137f620e5cd5d63f57d02f9f155a77b1a79482612b603badeaccaff8f957ecf1e09af74bb5dbf4ad29f989972ed3f3b7ef62259da8e38
|
data/{NEWS.md → CHANGELOG.md}
RENAMED
data/README.md
CHANGED
@@ -28,7 +28,7 @@ $ gem install omniauth-drip
|
|
28
28
|
|
29
29
|
```ruby
|
30
30
|
use OmniAuth::Builder do
|
31
|
-
provider :
|
31
|
+
provider :drip, ENV['DRIP_KEY'], ENV['DRIP_SECRET']
|
32
32
|
end
|
33
33
|
```
|
34
34
|
|
@@ -36,10 +36,18 @@ end
|
|
36
36
|
|
37
37
|
```ruby
|
38
38
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
39
|
-
provider :
|
39
|
+
provider :drip, ENV['DRIP_KEY'], ENV['DRIP_SECRET']
|
40
40
|
end
|
41
41
|
```
|
42
42
|
|
43
|
+
## Testing
|
44
|
+
|
45
|
+
Use the following command to run the test suite:
|
46
|
+
|
47
|
+
```bash
|
48
|
+
bundle exec rspec
|
49
|
+
```
|
50
|
+
|
43
51
|
## Contributing
|
44
52
|
|
45
53
|
1. Fork it
|
data/lib/omniauth-drip.rb
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
require
|
2
|
-
require "omniauth/strategies/drip"
|
1
|
+
require 'omniauth/drip'
|
@@ -1,9 +1,8 @@
|
|
1
|
-
require
|
1
|
+
require "omniauth/strategies/oauth2"
|
2
2
|
|
3
3
|
module OmniAuth
|
4
4
|
module Strategies
|
5
5
|
class Drip < OmniAuth::Strategies::OAuth2
|
6
|
-
|
7
6
|
option :name, 'drip'
|
8
7
|
|
9
8
|
option :access_token_options, {
|
@@ -38,6 +37,10 @@ module OmniAuth
|
|
38
37
|
def raw_info
|
39
38
|
@raw_info ||= JSON.parse(access_token.get("/v2/accounts").body)
|
40
39
|
end
|
40
|
+
|
41
|
+
def callback_url
|
42
|
+
full_host + script_name + callback_path
|
43
|
+
end
|
41
44
|
end
|
42
45
|
end
|
43
46
|
end
|
data/omniauth-drip.gemspec
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "omniauth/drip/version"
|
3
4
|
|
4
5
|
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = ["Drip
|
6
|
+
gem.authors = ["The Drip Team"]
|
6
7
|
gem.email = ["support@getdrip.com"]
|
7
8
|
gem.description = "Provides an OmniAuth strategy for Drip to make authentication with the Drip API simple"
|
8
9
|
gem.summary = "An OmniAuth strategy for Drip"
|
@@ -17,7 +18,8 @@ Gem::Specification.new do |gem|
|
|
17
18
|
gem.version = Omniauth::Drip::VERSION
|
18
19
|
|
19
20
|
gem.add_dependency 'omniauth-oauth2', '~> 1.2'
|
20
|
-
gem.add_development_dependency
|
21
|
+
gem.add_development_dependency 'rspec', '~> 2.7'
|
22
|
+
gem.add_development_dependency 'rake'
|
21
23
|
gem.add_development_dependency 'rack-test'
|
22
24
|
gem.add_development_dependency 'simplecov'
|
23
25
|
gem.add_development_dependency 'webmock'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-drip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Drip
|
7
|
+
- The Drip Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.7'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rack-test
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,13 +103,14 @@ extensions: []
|
|
89
103
|
extra_rdoc_files: []
|
90
104
|
files:
|
91
105
|
- ".gitignore"
|
106
|
+
- CHANGELOG.md
|
92
107
|
- Gemfile
|
93
108
|
- LICENSE
|
94
|
-
- NEWS.md
|
95
109
|
- README.md
|
96
110
|
- Rakefile
|
97
111
|
- lib/omniauth-drip.rb
|
98
|
-
- lib/omniauth
|
112
|
+
- lib/omniauth/drip.rb
|
113
|
+
- lib/omniauth/drip/version.rb
|
99
114
|
- lib/omniauth/strategies/drip.rb
|
100
115
|
- omniauth-drip.gemspec
|
101
116
|
- spec/omniauth/strategies/drip_spec.rb
|
@@ -120,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
135
|
version: '0'
|
121
136
|
requirements: []
|
122
137
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
138
|
+
rubygems_version: 2.5.1
|
124
139
|
signing_key:
|
125
140
|
specification_version: 4
|
126
141
|
summary: An OmniAuth strategy for Drip
|