omniauth-bookingsync 1.0.0 → 2.0.0

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
- SHA1:
3
- metadata.gz: c0e03543914566e7dbff7893af7c951e533e46a6
4
- data.tar.gz: 7ba0b8d02dd8e3576c3bfc1bbd7a353d398e944e
2
+ SHA256:
3
+ metadata.gz: 4e9d7fbadbf50ec2e86dc515fa46474a197eb254409386ce17addf32c634fa0e
4
+ data.tar.gz: 2cac89a193466d9216608619f15fe4ac3aba208584058bd1fe3e16fb89abbe0b
5
5
  SHA512:
6
- metadata.gz: ce5a125745522cc812ffb671f6712ca99537d1ffa51ed00a8fc0614b02392523d58d63c0d8cd03672c4beaae71327b321d5c0b58a92c4bd17507702eca3a1ed0
7
- data.tar.gz: 93affc128cd69a3167b5a482dc37ce0119ff17312e684417181712d583fc7d93efcea8a35e1297970ff0f3b4d43b5de32f8434f0452bd71efc97af6a499cd8f8
6
+ metadata.gz: 2305e19b011695efb619c27852bf0e0ce76d575fced34ec09b466ba18047445366cf1bd2cdb08253a730e95c3632e1772eeb907287819ba4f9c1d086b9c90c3f
7
+ data.tar.gz: 48e475abc5c447715bb324a0bb21be0f4e6c8f75f52151810d5c3f2caa24aa610383fdb69bb572326ec73fd12a0199ab76fabac84fb0ec97fac4d606d8b6e345
@@ -0,0 +1,31 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches:
5
+ - master
6
+ pull_request:
7
+ jobs:
8
+ rspec:
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ include:
13
+ - { ruby: '2.7', oauth2: '1.6' }
14
+ - { ruby: '2.7', oauth2: '1.7' }
15
+ - { ruby: '2.7', oauth2: '1.8' }
16
+ - { ruby: '3.0', oauth2: '1.6' }
17
+ - { ruby: '3.0', oauth2: '1.7' }
18
+ - { ruby: '3.0', oauth2: '1.8' }
19
+ - { ruby: '3.1', oauth2: '1.6' }
20
+ - { ruby: '3.1', oauth2: '1.7' }
21
+ - { ruby: '3.1', oauth2: '1.8' }
22
+ runs-on: ubuntu-latest
23
+ env:
24
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/omniauth_oauth2_${{ matrix.oauth2 }}.gemfile
25
+ steps:
26
+ - uses: actions/checkout@v2
27
+ - uses: ruby/setup-ruby@v1
28
+ with:
29
+ ruby-version: ${{ matrix.ruby }}
30
+ bundler-cache: true
31
+ - run: bundle exec rake spec
data/.gitignore CHANGED
@@ -16,3 +16,4 @@ rerun.txt
16
16
  tags
17
17
  tmp
18
18
  example/.powenv
19
+ *.lock
data/Appraisals CHANGED
@@ -1,7 +1,11 @@
1
- appraise "omniauth-oauth2-1.4" do
2
- gem "omniauth-oauth2", "~> 1.4.0"
3
- end
4
-
5
1
  appraise "omniauth-oauth2-1.6" do
6
2
  gem "omniauth-oauth2", "~> 1.6.0"
7
3
  end
4
+
5
+ appraise "omniauth-oauth2-1.7" do
6
+ gem "omniauth-oauth2", "~> 1.7.0"
7
+ end
8
+
9
+ appraise "omniauth-oauth2-1.8" do
10
+ gem "omniauth-oauth2", "~> 1.8.0"
11
+ end
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # master
2
+
3
+ # 2.0.0
4
+
5
+ * Drop support for rubies prior to 2.7
6
+ * Support rubies 2.7+
7
+ * Add multi_json dependency (gem relied implicitly on it already)
8
+
1
9
  # 1.0.0
2
10
 
3
11
  * Breaking change: drop support for JRuby
data/README.md CHANGED
@@ -1,5 +1,4 @@
1
- [![CI Build
2
- Status](https://secure.travis-ci.org/BookingSync/omniauth-bookingsync.png)](http://travis-ci.org/BookingSync/omniauth-bookingsync)
1
+ [![CI Build Status](https://github.com/BookingSync/omniauth-bookingsync/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/BookingSync/omniauth-bookingsync/actions/workflows/ci.yml)
3
2
 
4
3
  # OmniAuth BookingSync
5
4
 
@@ -37,10 +36,9 @@ this will skip the account selection process and show the accept/deny page.
37
36
 
38
37
  ## Supported Rubies
39
38
 
40
- OmniAuth BookingSync is tested under 2.2, 2.3, 2.4, Ruby-head, JRuby.
39
+ OmniAuth BookingSync is tested under 2.7, 3.0, 3.1.
41
40
 
42
- [![CI Build
43
- Status](https://secure.travis-ci.org/BookingSync/omniauth-bookingsync.png)](http://travis-ci.org/BookingSync/omniauth-bookingsync)
41
+ [![CI Build Status](https://github.com/BookingSync/omniauth-bookingsync/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/BookingSync/omniauth-bookingsync/actions/workflows/ci.yml)
44
42
 
45
43
  ## License
46
44
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "omniauth-oauth2", "~> 1.4.0"
5
+ gem "omniauth-oauth2", "~> 1.7.0"
6
6
 
7
7
  gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "omniauth-oauth2", "~> 1.8.0"
6
+
7
+ gemspec path: "../"
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module BookingSync
3
- VERSION = "1.0.0"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
@@ -1,4 +1,5 @@
1
1
  require "omniauth-oauth2"
2
+ require "multi_json"
2
3
 
3
4
  module OmniAuth
4
5
  module Strategies
@@ -19,6 +19,7 @@ Gem::Specification.new do |gem|
19
19
  gem.add_dependency "omniauth"
20
20
  gem.add_dependency "omniauth-oauth2"
21
21
  gem.add_dependency "oauth2"
22
+ gem.add_dependency "multi_json"
22
23
 
23
24
  gem.add_development_dependency "rspec"
24
25
  gem.add_development_dependency "rake"
@@ -26,15 +26,19 @@ describe OmniAuth::Strategies::BookingSync do
26
26
  end
27
27
 
28
28
  it "returns the correct authorization url" do
29
- expect(strategy.client.options[:authorize_url]).to eq "/oauth/authorize"
29
+ expect(strategy.client.options[:authorize_url]).to eq "oauth/authorize"
30
30
  end
31
31
 
32
32
  it "returns the correct token url" do
33
- expect(strategy.client.options[:token_url]).to eq "/oauth/token"
33
+ expect(strategy.client.options[:token_url]).to eq "oauth/token"
34
34
  end
35
35
  end
36
36
 
37
37
  describe "#callback_path" do
38
+ before do
39
+ allow(strategy).to receive(:script_name).and_return("") # as not to depend on Rack env
40
+ end
41
+
38
42
  it "returns the correct callback path" do
39
43
  expect(strategy.callback_path).to eq("/auth/bookingsync/callback")
40
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-bookingsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastien Grosjean
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-01 00:00:00.000000000 Z
11
+ date: 2022-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: multi_json
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rspec
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -115,25 +129,24 @@ executables: []
115
129
  extensions: []
116
130
  extra_rdoc_files: []
117
131
  files:
132
+ - ".github/workflows/ci.yml"
118
133
  - ".gitignore"
119
134
  - ".rspec"
120
135
  - ".rubocop.yml"
121
136
  - ".rubocop_todo.yml"
122
- - ".travis.yml"
123
137
  - Appraisals
124
138
  - CHANGELOG.md
125
139
  - Gemfile
126
- - Gemfile.lock
127
140
  - README.md
128
141
  - Rakefile
129
142
  - example/.powenv.sample
130
143
  - example/Gemfile
131
- - example/Gemfile.lock
132
144
  - example/ReadMe.md
133
145
  - example/bookingsync_oauth_helper.rb
134
146
  - example/config.ru
135
- - gemfiles/omniauth_oauth2_1.4.gemfile
136
147
  - gemfiles/omniauth_oauth2_1.6.gemfile
148
+ - gemfiles/omniauth_oauth2_1.7.gemfile
149
+ - gemfiles/omniauth_oauth2_1.8.gemfile
137
150
  - lib/omniauth-bookingsync.rb
138
151
  - lib/omniauth/bookingsync/identifier.rb
139
152
  - lib/omniauth/bookingsync/version.rb
@@ -146,7 +159,7 @@ files:
146
159
  homepage: https://github.com/BookingSync/omniauth-bookingsync
147
160
  licenses: []
148
161
  metadata: {}
149
- post_install_message:
162
+ post_install_message:
150
163
  rdoc_options: []
151
164
  require_paths:
152
165
  - lib
@@ -161,9 +174,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
174
  - !ruby/object:Gem::Version
162
175
  version: '0'
163
176
  requirements: []
164
- rubyforge_project:
165
- rubygems_version: 2.5.1
166
- signing_key:
177
+ rubygems_version: 3.0.1
178
+ signing_key:
167
179
  specification_version: 4
168
180
  summary: An OmniAuth 1.0 strategy for BookingSync OAuth2 identification.
169
181
  test_files:
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- sudo: required
2
- dist: trusty
3
- before_install:
4
- - gem install bundler
5
- - bundle install --jobs=3 --retry=3
6
- - bundle binstub rake
7
- rvm:
8
- - 2.3.3
9
- - 2.4.0
10
- - ruby-head
11
- gemfile:
12
- - gemfiles/omniauth_oauth2_1.4.gemfile
13
- - gemfiles/omniauth_oauth2_1.6.gemfile
data/Gemfile.lock DELETED
@@ -1,81 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- omniauth-bookingsync (0.6.0)
5
- oauth2
6
- omniauth
7
- omniauth-oauth2
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- appraisal (2.2.0)
13
- bundler
14
- rake
15
- thor (>= 0.14.0)
16
- ast (2.4.0)
17
- diff-lcs (1.3)
18
- faraday (0.15.4)
19
- multipart-post (>= 1.2, < 3)
20
- hashie (3.6.0)
21
- jaro_winkler (1.5.2)
22
- jwt (2.1.0)
23
- multi_json (1.13.1)
24
- multi_xml (0.6.0)
25
- multipart-post (2.0.0)
26
- oauth2 (1.4.1)
27
- faraday (>= 0.8, < 0.16.0)
28
- jwt (>= 1.0, < 3.0)
29
- multi_json (~> 1.3)
30
- multi_xml (~> 0.5)
31
- rack (>= 1.2, < 3)
32
- omniauth (1.9.0)
33
- hashie (>= 3.4.6, < 3.7.0)
34
- rack (>= 1.6.2, < 3)
35
- omniauth-oauth2 (1.6.0)
36
- oauth2 (~> 1.1)
37
- omniauth (~> 1.9)
38
- parallel (1.13.0)
39
- parser (2.6.0.0)
40
- ast (~> 2.4.0)
41
- powerpack (0.1.2)
42
- rack (2.0.6)
43
- rainbow (3.0.0)
44
- rake (12.3.2)
45
- rspec (3.8.0)
46
- rspec-core (~> 3.8.0)
47
- rspec-expectations (~> 3.8.0)
48
- rspec-mocks (~> 3.8.0)
49
- rspec-core (3.8.0)
50
- rspec-support (~> 3.8.0)
51
- rspec-expectations (3.8.2)
52
- diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.8.0)
54
- rspec-mocks (3.8.0)
55
- diff-lcs (>= 1.2.0, < 2.0)
56
- rspec-support (~> 3.8.0)
57
- rspec-support (3.8.0)
58
- rubocop (0.63.0)
59
- jaro_winkler (~> 1.5.1)
60
- parallel (~> 1.10)
61
- parser (>= 2.5, != 2.5.1.1)
62
- powerpack (~> 0.1)
63
- rainbow (>= 2.2.2, < 4.0)
64
- ruby-progressbar (~> 1.7)
65
- unicode-display_width (~> 1.4.0)
66
- ruby-progressbar (1.10.0)
67
- thor (0.20.3)
68
- unicode-display_width (1.4.1)
69
-
70
- PLATFORMS
71
- ruby
72
-
73
- DEPENDENCIES
74
- appraisal
75
- omniauth-bookingsync!
76
- rake
77
- rspec
78
- rubocop
79
-
80
- BUNDLED WITH
81
- 1.16.3
data/example/Gemfile.lock DELETED
@@ -1,46 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- faraday (0.11.0)
5
- multipart-post (>= 1.2, < 3)
6
- hashie (3.5.5)
7
- json (2.1.0)
8
- jwt (1.5.6)
9
- multi_json (1.12.1)
10
- multi_xml (0.6.0)
11
- multipart-post (2.0.0)
12
- oauth2 (1.3.1)
13
- faraday (>= 0.8, < 0.12)
14
- jwt (~> 1.0)
15
- multi_json (~> 1.3)
16
- multi_xml (~> 0.5)
17
- rack (>= 1.2, < 3)
18
- omniauth (1.6.1)
19
- hashie (>= 3.4.6, < 3.6.0)
20
- rack (>= 1.6.2, < 3)
21
- omniauth-bookingsync (0.5.0)
22
- oauth2 (~> 1.3.0)
23
- omniauth (~> 1.6)
24
- omniauth-oauth2 (<= 1.4)
25
- omniauth-oauth2 (1.4.0)
26
- oauth2 (~> 1.0)
27
- omniauth (~> 1.2)
28
- rack (1.6.11)
29
- rack-protection (1.5.5)
30
- rack
31
- sinatra (1.4.8)
32
- rack (~> 1.5)
33
- rack-protection (~> 1.4)
34
- tilt (>= 1.3, < 3)
35
- tilt (2.0.7)
36
-
37
- PLATFORMS
38
- ruby
39
-
40
- DEPENDENCIES
41
- json
42
- omniauth-bookingsync
43
- sinatra
44
-
45
- BUNDLED WITH
46
- 1.16.3