omniauth-splitwise 0.1.2 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b20b714e1ea1d2d9a1dc69b36ca57a9bfb0edf1ec3bf473a5974c857df22d1b
4
- data.tar.gz: 50d5599211d24712ba6bd3067090a2b8ccbd465fc11f5c954223619790ce88f5
3
+ metadata.gz: 4f57a76324984f753628766a4e182e59b8389ef7316f1c9f7640583cfcb00fd8
4
+ data.tar.gz: d1cb47c381ae86be5a55e74d60a7234c27f71d90490d999705305342b9894f07
5
5
  SHA512:
6
- metadata.gz: 44ef53ecf8d29c4da4a12527fabb0203267543294702260eeedea8f26b72f90d3d232f2d919318bdf7f64c59f1c264fca482f0726701403f65e85da70b1cd984
7
- data.tar.gz: 733ed2b6fd8e236fd5faa5995b545ce12f479683cd6300233b9a28b1e5cd64ce9b60f3aa7be124fad54e21a4bc85406901211af36ead1b2a135ad8a93e43ffd3
6
+ metadata.gz: 3712ca486ae0d669993d7b14e665551b3044a2e09ac5345c84b570c5c4ace20274d5ee4beecc8aace2e9cee1999a05fc7f871a75508bd9a44df858f70fde06bc
7
+ data.tar.gz: bfba92145ab57edbf8c7012202f3df319fe2139ab6598f2ab83d9cd48952cc6fa3240ee4b00456270b4d48acd41a1191be73eab9d86fb9b84d322de08c514a6f
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # OmniAuth Splitwise
1
+ # OmniAuth Splitwise [![RubyGems downloads](https://img.shields.io/gem/dt/omniauth-splitwise.svg)](https://rubygems.org/gems/omniauth-splitwise)
2
2
 
3
3
  An OmniAuth strategy for authenticating to [Splitwise](http://www.splitwise.com).
4
4
  To use it, you'll need to [sign up for a Consumer Key and Secret](https://secure.splitwise.com/oauth_clients).
@@ -59,7 +59,7 @@ auth = request.env['omniauth.auth']
59
59
 
60
60
  token = auth['credentials']['token']
61
61
  client = OAuth2::Client.new(ENV["SPLITWISE_KEY"], ENV["SPLITWISE_SECRET"])
62
- access_token = OAuth2::AccessToken.new(client, splitwise_token)
62
+ access_token = OAuth2::AccessToken.new(client, token)
63
63
 
64
64
  # Start making API requests:
65
65
  access_token.get('/api/v3.0/get_current_user').parsed
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
 
3
5
  require 'rubocop/rake_task'
@@ -1,9 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'omniauth-oauth2'
2
4
 
3
5
  module OmniAuth
4
6
  module Strategies
5
7
  class Splitwise < OmniAuth::Strategies::OAuth2
6
- BASE_SITE = 'https://secure.splitwise.com/'.freeze
8
+ BASE_SITE = 'https://secure.splitwise.com/'
7
9
 
8
10
  option :name, "splitwise"
9
11
  option :client_options, site: BASE_SITE, auth_scheme: :request_body
@@ -1 +1,3 @@
1
- require 'omniauth_splitwise' # rubocop:disable Naming/FileName
1
+ # frozen_string_literal: true
2
+
3
+ require 'omniauth_splitwise'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module OmniAuthSplitwise
2
- VERSION = "0.1.2".freeze
4
+ VERSION = "0.1.3"
3
5
  end
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'omniauth_splitwise/version'
2
4
  require 'omniauth/strategies/splitwise'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-splitwise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Griffith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-01 00:00:00.000000000 Z
11
+ date: 1980-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  - !ruby/object:Gem::Version
59
59
  version: '0'
60
60
  requirements: []
61
- rubygems_version: 3.4.19
61
+ rubygems_version: 3.5.22
62
62
  signing_key:
63
63
  specification_version: 4
64
64
  summary: Splitwise strategy for OmniAuth