omniauth-gorgias-oauth2 0.1.0 → 0.1.2

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: a17a3bab29190f9ea8f1a05e57fa14c5f3a07e794773437e2c33378b32851e1b
4
+ data.tar.gz: 506dbfb078af1aac8c0a97d74af9d1d2fd0f2f4fa97f84a353941f41b990400e
5
5
  SHA512:
6
- metadata.gz: 4a7b9f791182445720bae6b4f712480179cdf31b6ad4898b7b323d5c34e8b443ab22a5fcd467f84f347cbafeeccba233ce2c664f767dbebe413689e28cbb7c4f
7
- data.tar.gz: c0abf63ab2f231351d9270d68eece2a17ffaac8e3bec4748684e2cfe9c6001b2262c48147d40c699124f245ac1f985d8a8a7e4323d53b5726b80d9677ab4f279
6
+ metadata.gz: 712ef58ff89b170a26c004ba8b9a9c787ef76c09327b925e2c9f47d57862d860ca1c07e02b5894e5e86723a695ae9518aed4d361f4ff934a04ead8087e4d9cf2
7
+ data.tar.gz: f148600cc69524fadabf700df220b805e3c6bc535e73ad24258c4f6ff8d735f46bbb813a08c5a9fda7df7f9d6b24caf9709294af9689a8eb99f0dfdb6d7e7789
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.2)
5
5
  omniauth-oauth2 (~> 1.5)
6
6
 
7
7
  GEM
@@ -72,7 +72,6 @@ PLATFORMS
72
72
  ruby
73
73
 
74
74
  DEPENDENCIES
75
- bundler (~> 1.17)
76
75
  omniauth-gorgias-oauth2!
77
76
  rake (~> 10.0)
78
77
  rspec (~> 3.9, >= 3.9.0)
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.2'
4
4
  end
5
5
  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
20
  spec.add_development_dependency 'rake', '~> 10.0'
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Azemoh
@@ -25,20 +25,6 @@ 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