omniauth-venmo 1.1.0 → 1.1.1

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: e878f2af8226f539ff1e04aafc9f096995c0da30
4
- data.tar.gz: 78ef250218274c9a7ed34b53fc5d72c761435d88
3
+ metadata.gz: 644423e1356e41f5482fba49cb66830265fdfa3e
4
+ data.tar.gz: 6627df008530e1c63b29f72314f0261633df172a
5
5
  SHA512:
6
- metadata.gz: 22748e2880421099571ab560bbce758eb2e2932cb9d43ca361f321e70f1348b5f6ff73cc43d7ef28b029258b1b5eee8cad8c7c2c4c55de3ac963711a49940200
7
- data.tar.gz: 84a76513ddef0df5153ff65ac35588fb8673daed8585955d624bee2f77f0bbf89dceccae553bfba19ed8189470e4721d1c121ee50a74ed92b1e2aaba0f514541
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
- desc 'Default: run specs.'
6
- task :default => :spec
6
+ task :test => :spec
7
7
 
8
- desc 'Run specs'
9
- RSpec::Core::RakeTask.new
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/v1',
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
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Venmo
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  end
5
5
  end
@@ -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/v1')
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 be_true
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.0
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-05-21 00:00:00.000000000 Z
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth