omniauth-drip 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c39f3dd88308f79f2bedf4377eef569318892528
4
- data.tar.gz: 65c4cdfb3c9ef9b7dca18a3d40dd0628789c31ab
3
+ metadata.gz: d96609d897074b701c531d635c72e5765b255479
4
+ data.tar.gz: 7f8a939c063f635e884e09bbfc5174c1e1949f08
5
5
  SHA512:
6
- metadata.gz: cdd54f2499d2fa37acfe2fbdb49b8349f3ebe7d6d34be12ea6cff0402a35bfdbcbecdd825fcf453d18ac7425a80fe06cef54275c75c0d5d92dd281a439b1c49a
7
- data.tar.gz: 0bb3ee996bfc4db7dcc3b655ac0d451c04c6319bb2bc55e70aa0666ea1188b073b1928aa18eebdf58294b53e81d1fc231956c386126c1eca907a67daab7b7300
6
+ metadata.gz: 386ec9afd398759dab4d4a48f9491551992021f262d63024db29587bf7142fc0caba8c36381ba1ab60fb505e4448977f1902eb34b604ed2a3444de8819cd9070
7
+ data.tar.gz: aa6a24d6d982a7abf0e137f620e5cd5d63f57d02f9f155a77b1a79482612b603badeaccaff8f957ecf1e09af74bb5dbf4ad29f989972ed3f3b7ef62259da8e38
@@ -1,4 +1,8 @@
1
- # News
1
+ # Changelog
2
+
3
+ ## 0.0.3
4
+
5
+ * Fixed compatibility with OmniAuth 1.4+ (#6)
2
6
 
3
7
  ## 0.0.2
4
8
 
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 :buffer, ENV['DRIP_KEY'], ENV['DRIP_SECRET']
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 :buffer, ENV['DRIP_KEY'], ENV['DRIP_SECRET']
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 "omniauth-drip/version"
2
- require "omniauth/strategies/drip"
1
+ require 'omniauth/drip'
@@ -0,0 +1,2 @@
1
+ require "omniauth/drip/version"
2
+ require "omniauth/strategies/drip"
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Drip
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -1,9 +1,8 @@
1
- require 'omniauth-oauth2'
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
@@ -1,8 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/omniauth-drip/version', __FILE__)
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 Inc."]
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 "rspec", "~> 2.7"
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
- - Drip Inc.
7
+ - The Drip Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-02 00:00:00.000000000 Z
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-drip/version.rb
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.4.5
138
+ rubygems_version: 2.5.1
124
139
  signing_key:
125
140
  specification_version: 4
126
141
  summary: An OmniAuth strategy for Drip