omniauth-monday 0.2.0 → 0.2.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: fdd92c64dbd58a77d8facc50d88c6574e40a360183a934da7c73dcbd71a84279
4
- data.tar.gz: c95a73ff6ba5fec424083a26c76a66d11bf2e50f00c466f3e81c67cd157a1bbb
3
+ metadata.gz: cb9b2ef6d5dece8d0db56ae9e35f34876c07fdf62fc5803ece299c6a63b5fa18
4
+ data.tar.gz: fa8a8a85780a5bdfa81a73d7dc8440b583e769c1bba1809d0adc96ce3a8bd55b
5
5
  SHA512:
6
- metadata.gz: 4821b7f247723e55c5654b93deffc66958b40b4efe04493a93139754c6bf4c8aedfc9b5cad45bf2597146d3cac003554bd4a077c7ea238f8f46c46fdbdf8cb32
7
- data.tar.gz: 62b841a9a5844c2c9112a0e8605e6cc058e6d9d29ff403e40c4d3c3653c98089749e4190019b26428bb9ee555ea9832dc840f1af41c1eb254c731d83f87bbf6b
6
+ metadata.gz: c411094aca2f09220c2c5a5ce85ac9a66c919857d04b11358218c1f47bce8a736f1f502e4de82fb2c153026fd6b1ffc109aec2035f66e881e8faba5a88099a7a
7
+ data.tar.gz: 4cd2a98ebcdf526178a3ec754f9cf87b7a55ec74a98c0956b96d5048b588bb1f3e0aace82def3e3d003c9bcdf2ca5a9ad8d116beec3390f544a6a98cea23edda
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-monday (0.2.0)
4
+ omniauth-monday (0.2.4)
5
5
  omniauth (~> 2.0)
6
6
  omniauth-oauth2 (~> 1.7)
7
7
 
@@ -39,9 +39,9 @@ GEM
39
39
  ast (~> 2.4.1)
40
40
  racc
41
41
  racc (1.7.1)
42
- rack (3.0.8)
43
- rack-protection (3.0.6)
44
- rack
42
+ rack (2.2.8)
43
+ rack-protection (3.1.0)
44
+ rack (~> 2.2, >= 2.2.4)
45
45
  rainbow (3.1.1)
46
46
  rake (13.0.6)
47
47
  regexp_parser (2.8.1)
data/README.md CHANGED
@@ -1,39 +1,41 @@
1
- # Omniauth::Monday
1
+ # OmniAuth Monday
2
2
 
3
- 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/monday`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ This is the official OmniAuth strategy for authenticating to Monday. To
4
+ use it, you'll need to sign up for an OAuth2 Client ID and Secret at Monday.com.
6
5
 
7
6
  ## Installation
8
7
 
9
- Add this line to your application's Gemfile:
10
-
11
8
  ```ruby
12
9
  gem 'omniauth-monday'
13
10
  ```
14
11
 
15
- And then execute:
16
-
17
- $ bundle install
18
-
19
- Or install it yourself as:
12
+ ## Basic Usage
20
13
 
21
- $ gem install omniauth-monday
14
+ ```ruby
15
+ use OmniAuth::Builder do
16
+ provider :monday, ENV['MONDAY_CLIENT_ID'], ENV['MONDAY_CLIENT_SECRET'], { scope: 'me boards:read' }
17
+ end
18
+ ```
22
19
 
23
- ## Usage
20
+ ## Basic Usage Rails
24
21
 
25
- TODO: Write usage instructions here
22
+ In `config/initializers/monday.rb`
26
23
 
27
- ## Development
24
+ ```ruby
25
+ Rails.application.config.middleware.use OmniAuth::Builder do
26
+ provider :monday, ENV['MONDAY_CLIENT_ID'], ENV['MONDAY_CLIENT_SECRET'], { scope: 'me boards:read' }
27
+ end
28
+ ```
28
29
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+ ## Semver
30
31
 
31
- 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+ This project adheres to Semantic Versioning 2.0.0. Any violations of this scheme are considered to be bugs.
33
+ All changes will be tracked [here](https://github.com/rob-race/omniauth-monday/releases).
32
34
 
33
35
  ## Contributing
34
36
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/omniauth-monday.
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/rob-race/omniauth-monday.
36
38
 
37
39
  ## License
38
40
 
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
41
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,5 +1,4 @@
1
1
  require "omniauth-oauth2"
2
- require "graphql/client"
3
2
 
4
3
  module OmniAuth
5
4
  module Strategies
@@ -17,9 +16,7 @@ module OmniAuth
17
16
  def authorize_params
18
17
  super.tap do |params|
19
18
  %w[client_options].each do |v|
20
- if request.params[v]
21
- params[v.to_sym] = request.params[v]
22
- end
19
+ params[v.to_sym] = request.params[v] if request.params[v]
23
20
  end
24
21
  end
25
22
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omniauth
4
4
  module Monday
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-monday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Race
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-30 00:00:00.000000000 Z
11
+ date: 2023-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth