omniauth-splitwise 0.1.0 → 0.1.2

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
  SHA256:
3
- metadata.gz: 9bc6c1857d364dc5239bab481eef88c31912a70057e7840825bafdced35dba18
4
- data.tar.gz: cc0416a613b44a05c5dc000b7eaec93c04013ad531d01a3ecb941b973ec16d4a
3
+ metadata.gz: 3b20b714e1ea1d2d9a1dc69b36ca57a9bfb0edf1ec3bf473a5974c857df22d1b
4
+ data.tar.gz: 50d5599211d24712ba6bd3067090a2b8ccbd465fc11f5c954223619790ce88f5
5
5
  SHA512:
6
- metadata.gz: e175f3194e9ed25d411feebaab9d377cc08ba32df794b1d3ee5e4e6b32d4feca04fcebd205608e635b5b2807bcfd81b8751a0501f8ff22772352b1fc63826ec8
7
- data.tar.gz: 88ce09fe1d5c9a6854c4f03069c93da33a426b2087455a542490f09c58ad2344e630101926a87f63968b85c42449df6df88a14dc63aa146deb2d98a68a333f29
6
+ metadata.gz: 44ef53ecf8d29c4da4a12527fabb0203267543294702260eeedea8f26b72f90d3d232f2d919318bdf7f64c59f1c264fca482f0726701403f65e85da70b1cd984
7
+ data.tar.gz: 733ed2b6fd8e236fd5faa5995b545ce12f479683cd6300233b9a28b1e5cd64ce9b60f3aa7be124fad54e21a4bc85406901211af36ead1b2a135ad8a93e43ffd3
data/Rakefile CHANGED
@@ -7,5 +7,4 @@ require 'rspec/core'
7
7
  require 'rspec/core/rake_task'
8
8
  RSpec::Core::RakeTask.new(:spec)
9
9
 
10
- task(:default).clear
11
- task default: %i(rubocop spec)
10
+ task(:default).clear.enhance(%i(rubocop spec))
@@ -6,7 +6,7 @@ module OmniAuth
6
6
  BASE_SITE = 'https://secure.splitwise.com/'.freeze
7
7
 
8
8
  option :name, "splitwise"
9
- option :client_options, site: BASE_SITE
9
+ option :client_options, site: BASE_SITE, auth_scheme: :request_body
10
10
 
11
11
  uid do
12
12
  raw_info.fetch('id')
@@ -1,3 +1,3 @@
1
1
  module OmniAuthSplitwise
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,72 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-splitwise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Griffith
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-04 00:00:00.000000000 Z
11
+ date: 2023-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
15
15
  requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.0'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
16
  requirements:
38
17
  - - ">="
39
18
  - !ruby/object:Gem::Version
40
19
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '3.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '3.0'
55
- - !ruby/object:Gem::Dependency
56
- name: rubocop-betterment
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
20
+ type: :runtime
63
21
  prerelease: false
64
22
  version_requirements: !ruby/object:Gem::Requirement
65
23
  requirements:
66
24
  - - ">="
67
25
  - !ruby/object:Gem::Version
68
26
  version: '0'
69
- description:
27
+ description:
70
28
  email:
71
29
  - nathan@ngriffith.com
72
30
  executables: []
@@ -80,13 +38,12 @@ files:
80
38
  - lib/omniauth/strategies/splitwise.rb
81
39
  - lib/omniauth_splitwise.rb
82
40
  - lib/omniauth_splitwise/version.rb
83
- - spec/omniauth/strategies/splitwise_spec.rb
84
- - spec/spec_helper.rb
85
41
  homepage: https://github.com/smudge/omniauth-splitwise
86
42
  licenses:
87
43
  - MIT
88
- metadata: {}
89
- post_install_message:
44
+ metadata:
45
+ rubygems_mfa_required: 'true'
46
+ post_install_message:
90
47
  rdoc_options: []
91
48
  require_paths:
92
49
  - lib
@@ -94,17 +51,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
51
  requirements:
95
52
  - - ">="
96
53
  - !ruby/object:Gem::Version
97
- version: '0'
54
+ version: '2.6'
98
55
  required_rubygems_version: !ruby/object:Gem::Requirement
99
56
  requirements:
100
57
  - - ">="
101
58
  - !ruby/object:Gem::Version
102
59
  version: '0'
103
60
  requirements: []
104
- rubygems_version: 3.0.3
105
- signing_key:
61
+ rubygems_version: 3.4.19
62
+ signing_key:
106
63
  specification_version: 4
107
64
  summary: Splitwise strategy for OmniAuth
108
- test_files:
109
- - spec/spec_helper.rb
110
- - spec/omniauth/strategies/splitwise_spec.rb
65
+ test_files: []
@@ -1,51 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe "OmniAuth::Strategies::Splitwise" do
4
- subject do
5
- OmniAuth::Strategies::Splitwise.new(nil)
6
- end
7
-
8
- context 'client options' do
9
- it 'has correct provider name' do
10
- subject.options.name eq('splitwise')
11
- end
12
-
13
- it 'has correct Splitwise site' do
14
- subject.options.client_options.site.should eq('https://secure.splitwise.com/')
15
- end
16
-
17
- it 'has correct callback uri' do
18
- subject.callback_path.should eq('/auth/splitwise/callback')
19
- end
20
-
21
- it 'has correct token path' do
22
- subject.client.options[:token_url].should eq('/oauth/token')
23
- end
24
-
25
- it 'has correct authorize path' do
26
- subject.client.options[:authorize_url].should eq('/oauth/authorize')
27
- end
28
- end
29
-
30
- context '#uid' do
31
- before :each do
32
- subject.stub(
33
- raw_info: {
34
- 'id' => '123',
35
- 'first_name' => 'Marie',
36
- 'last_name' => 'Curie',
37
- 'email' => 'mc@example.org',
38
- 'other_data' => 0o12345,
39
- },
40
- )
41
- end
42
-
43
- it 'returns the id from user_data' do
44
- subject.uid.should eq('123')
45
- subject.info['first_name'].should eq('Marie')
46
- subject.info['last_name'].should eq('Curie')
47
- subject.info['email'].should eq('mc@example.org')
48
- subject.extra['other_data'].should eq(0o12345)
49
- end
50
- end
51
- end
data/spec/spec_helper.rb DELETED
@@ -1,4 +0,0 @@
1
- require 'omniauth-splitwise'
2
-
3
- RSpec.configure do |config|
4
- end