omniauth-gorgias-oauth2 0.1.0 → 0.1.4

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: e78d3a7049ce83a305edfd0227d169598628645d6d998975cf990cdd5a933712
4
- data.tar.gz: 8acd4aa212fe634ed26a72e895e728c2517f4c90a51e5245c878d278b954261e
3
+ metadata.gz: 2e4c4991e4c542e842ce358223d6236a2a37348ee3d63a147ad00da496ada50e
4
+ data.tar.gz: aadbb7869d09600e9e9033a49ef33dde2c875606792044c79d17a1ec917c7ec8
5
5
  SHA512:
6
- metadata.gz: 4a7b9f791182445720bae6b4f712480179cdf31b6ad4898b7b323d5c34e8b443ab22a5fcd467f84f347cbafeeccba233ce2c664f767dbebe413689e28cbb7c4f
7
- data.tar.gz: c0abf63ab2f231351d9270d68eece2a17ffaac8e3bec4748684e2cfe9c6001b2262c48147d40c699124f245ac1f985d8a8a7e4323d53b5726b80d9677ab4f279
6
+ metadata.gz: '08f074f7fb2a63626c2f66ba2c2203119851648f6868123b4d439e2da2ae4568e2ef134f1a731bc11bada824671190b86ad345a4bb9748ff31ace6e66c17c0f1'
7
+ data.tar.gz: 6983831ac5cff75a76b2c171bb3161b8618a480ef43aa6e403966172af8567aeb7bedf64478f8b076cb767973e20b7f3cc1248a76ff8769287563689b75a4f73
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-gorgias-oauth2 (0.1.0)
4
+ omniauth-gorgias-oauth2 (0.1.4)
5
5
  omniauth-oauth2 (~> 1.5)
6
6
 
7
7
  GEM
@@ -24,35 +24,37 @@ GEM
24
24
  faraday-em_synchrony (1.0.0)
25
25
  faraday-excon (1.1.0)
26
26
  faraday-httpclient (1.0.1)
27
- faraday-multipart (1.0.3)
28
- multipart-post (>= 1.2, < 3)
27
+ faraday-multipart (1.0.4)
28
+ multipart-post (~> 2)
29
29
  faraday-net_http (1.0.1)
30
30
  faraday-net_http_persistent (1.2.0)
31
31
  faraday-patron (1.0.0)
32
32
  faraday-rack (1.0.0)
33
33
  faraday-retry (1.0.3)
34
34
  hashie (5.0.0)
35
- jwt (2.3.0)
36
- multi_json (1.15.0)
35
+ jwt (2.4.1)
37
36
  multi_xml (0.6.0)
38
- multipart-post (2.1.1)
39
- oauth2 (1.4.9)
37
+ multipart-post (2.2.3)
38
+ oauth2 (2.0.0)
40
39
  faraday (>= 0.17.3, < 3.0)
41
40
  jwt (>= 1.0, < 3.0)
42
- multi_json (~> 1.3)
43
41
  multi_xml (~> 0.5)
44
42
  rack (>= 1.2, < 3)
43
+ rash_alt (>= 0.4, < 1)
44
+ version_gem (~> 1.0)
45
45
  omniauth (2.1.0)
46
46
  hashie (>= 3.4.6)
47
47
  rack (>= 2.2.3)
48
48
  rack-protection
49
- omniauth-oauth2 (1.7.2)
50
- oauth2 (~> 1.4)
51
- omniauth (>= 1.9, < 3)
52
- rack (2.2.3)
49
+ omniauth-oauth2 (1.8.0)
50
+ oauth2 (>= 1.4, < 3)
51
+ omniauth (~> 2.0)
52
+ rack (2.2.3.1)
53
53
  rack-protection (2.2.0)
54
54
  rack
55
- rake (10.5.0)
55
+ rake (13.0.6)
56
+ rash_alt (0.4.12)
57
+ hashie (>= 3.4)
56
58
  rspec (3.9.0)
57
59
  rspec-core (~> 3.9.0)
58
60
  rspec-expectations (~> 3.9.0)
@@ -67,14 +69,14 @@ GEM
67
69
  rspec-support (~> 3.9.0)
68
70
  rspec-support (3.9.4)
69
71
  ruby2_keywords (0.0.5)
72
+ version_gem (1.0.0)
70
73
 
71
74
  PLATFORMS
72
75
  ruby
73
76
 
74
77
  DEPENDENCIES
75
- bundler (~> 1.17)
76
78
  omniauth-gorgias-oauth2!
77
- rake (~> 10.0)
79
+ rake (>= 12.3.3)
78
80
  rspec (~> 3.9, >= 3.9.0)
79
81
 
80
82
  BUNDLED WITH
data/README.md CHANGED
@@ -1,9 +1,6 @@
1
- # OmniAuth::Gorgias::Oauth2
2
- Gorgias OAuth2 Strategy for OmniAuth
1
+ # Gorgias OmniAuth
3
2
 
4
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/omniauth/gorgias/oauth2`. To experiment with that code, run `bin/console` for an interactive prompt.
5
-
6
- TODO: Delete this and the text above, and describe your gem
3
+ [Gorgias](https://gorgias.com) OAuth2 Strategy for [OmniAuth](https://github.com/omniauth/omniauth)
7
4
 
8
5
  ## Installation
9
6
 
@@ -23,17 +20,23 @@ Or install it yourself as:
23
20
 
24
21
  ## Usage
25
22
 
26
- TODO: Write usage instructions here
27
-
28
- ## Development
23
+ `OmniAuth::Strategies::Gorgias` is simply a Rack middleware. Read [the OmniAuth docs](https://github.com/omniauth/omniauth) for detailed instructions.
29
24
 
30
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
25
+ Here's a quick example, adding the middleware to a Rails app initializer :
31
26
 
32
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
27
+ ```ruby
28
+ Rails.application.config.middleware.use OmniAuth::Builder do
29
+ provider :gorgias,
30
+ ENV['GORGIAS_CLIENT_ID'],
31
+ ENV['GORGIAS_CLIENT_SECRET'],
32
+ callback_path: '/auth/gorgias/callback',
33
+ scope: 'openid email profile offline write:all'
34
+ end
35
+ ```
33
36
 
34
37
  ## Contributing
35
38
 
36
- Bug reports and pull requests are welcome on GitHub at https://github.com/azemoh/omniauth-gorgias-oauth2.
39
+ Bug reports and pull requests are welcome on GitHub at https://github.com/feracommerce/omniauth-gorgias-oauth2.
37
40
 
38
41
  ## License
39
42
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Gorgias
3
- VERSION = "0.1.0"
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
@@ -53,7 +53,7 @@ module OmniAuth
53
53
  end
54
54
 
55
55
  def account_present?
56
- !!(account =~ /\A[a-z0-9]+\z/i)
56
+ !!(account =~ /\A[a-z0-9][a-z0-9\-]*\z/i)
57
57
  end
58
58
  end
59
59
  end
@@ -17,8 +17,6 @@ Gem::Specification.new do |spec|
17
17
 
18
18
  spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.5'
19
19
 
20
- spec.add_development_dependency 'bundler', '~> 1.17'
21
- spec.add_development_dependency 'rake', '~> 10.0'
20
+ spec.add_development_dependency 'rake', '>= 12.3.3'
22
21
  spec.add_development_dependency 'rspec', '~> 3.9', '>= 3.9.0'
23
-
24
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-gorgias-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Azemoh
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-04-19 00:00:00.000000000 Z
12
+ date: 2022-06-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-oauth2
@@ -25,34 +25,20 @@ dependencies:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.5'
28
- - !ruby/object:Gem::Dependency
29
- name: bundler
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - "~>"
33
- - !ruby/object:Gem::Version
34
- version: '1.17'
35
- type: :development
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - "~>"
40
- - !ruby/object:Gem::Version
41
- version: '1.17'
42
28
  - !ruby/object:Gem::Dependency
43
29
  name: rake
44
30
  requirement: !ruby/object:Gem::Requirement
45
31
  requirements:
46
- - - "~>"
32
+ - - ">="
47
33
  - !ruby/object:Gem::Version
48
- version: '10.0'
34
+ version: 12.3.3
49
35
  type: :development
50
36
  prerelease: false
51
37
  version_requirements: !ruby/object:Gem::Requirement
52
38
  requirements:
53
- - - "~>"
39
+ - - ">="
54
40
  - !ruby/object:Gem::Version
55
- version: '10.0'
41
+ version: 12.3.3
56
42
  - !ruby/object:Gem::Dependency
57
43
  name: rspec
58
44
  requirement: !ruby/object:Gem::Requirement