omniauth-venmo 1.1.0 → 1.1.1
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/Rakefile +12 -4
- data/lib/omniauth/strategies/venmo.rb +3 -3
- data/lib/omniauth/venmo/version.rb +1 -1
- data/omniauth-venmo.gemspec +1 -1
- data/spec/omniauth/strategies/venmo_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 644423e1356e41f5482fba49cb66830265fdfa3e
|
4
|
+
data.tar.gz: 6627df008530e1c63b29f72314f0261633df172a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0231dce82eca868a864646c8bff5174bdd25a51b8d90b1d955e97a47f94780629f880e24f6fb9f0c0956938f8a211c58a2b8f9dc89ff1ac62e8845ccc27a724b
|
7
|
+
data.tar.gz: 15c955b43344cbd583ab3fc24870667e2ed4eb8e5bb5e366dff5d27aee4340e85f834cde1ff569d75590e03723b9c50c67d5862f8f8a0a2c664cdc5d8b5254b6
|
data/Rakefile
CHANGED
@@ -1,9 +1,17 @@
|
|
1
1
|
#!/usr/bin/env rake
|
2
2
|
require 'bundler/gem_tasks'
|
3
3
|
require 'rspec/core/rake_task'
|
4
|
+
RSpec::Core::RakeTask.new(:spec)
|
4
5
|
|
5
|
-
|
6
|
-
task :default => :spec
|
6
|
+
task :test => :spec
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
begin
|
9
|
+
require 'rubocop/rake_task'
|
10
|
+
RuboCop::RakeTask.new
|
11
|
+
rescue LoadError
|
12
|
+
task :rubocop do
|
13
|
+
$stderr.puts 'Rubocop is disabled'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
task :default => [:spec, :rubocop]
|
@@ -6,9 +6,9 @@ module OmniAuth
|
|
6
6
|
DEFAULT_SCOPE = 'access_profile'
|
7
7
|
|
8
8
|
option :provider_ignores_state, true
|
9
|
-
option :client_options, :site => 'https://api.venmo.com
|
10
|
-
:authorize_url => '/oauth/authorize',
|
11
|
-
:token_url => '/oauth/access_token'
|
9
|
+
option :client_options, :site => 'https://api.venmo.com',
|
10
|
+
:authorize_url => '/v1/oauth/authorize',
|
11
|
+
:token_url => '/v1/oauth/access_token'
|
12
12
|
|
13
13
|
uid { raw_info['id'] }
|
14
14
|
|
data/omniauth-venmo.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.executables = `git ls-files -- bin/*`.split("\n").collect { |f| File.basename(f) }
|
18
18
|
s.require_paths = ['lib']
|
19
19
|
|
20
|
-
s.add_runtime_dependency 'omniauth', '~> 1.2'
|
20
|
+
s.add_runtime_dependency 'omniauth', '~> 1.2'
|
21
21
|
s.add_runtime_dependency 'omniauth-oauth2', '~> 1.1'
|
22
22
|
|
23
23
|
s.add_development_dependency 'dotenv', '~> 0'
|
@@ -14,19 +14,19 @@ describe OmniAuth::Strategies::Venmo do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'should have correct site' do
|
17
|
-
expect(subject.options.client_options.site).to eq('https://api.venmo.com
|
17
|
+
expect(subject.options.client_options.site).to eq('https://api.venmo.com')
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'should have correct authorize url' do
|
21
|
-
expect(subject.options.client_options.authorize_url).to eq('/oauth/authorize')
|
21
|
+
expect(subject.options.client_options.authorize_url).to eq('/v1/oauth/authorize')
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'should have correct access token url' do
|
25
|
-
expect(subject.options.client_options.token_url).to eq('/oauth/access_token')
|
25
|
+
expect(subject.options.client_options.token_url).to eq('/v1/oauth/access_token')
|
26
26
|
end
|
27
27
|
|
28
28
|
it 'should indicate that the provider ignores the state parameted' do
|
29
|
-
expect(subject.options.provider_ignores_state).to
|
29
|
+
expect(subject.options.provider_ignores_state).to eq true
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-venmo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Milewski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|