omniauth-monday 0.2.1 → 0.2.4

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: a27f799f1943f2c7b29ec64af84b847594850dcc
4
- data.tar.gz: f957b9043852ae325e117dafda886e9ae148e3cf
2
+ SHA256:
3
+ metadata.gz: cb9b2ef6d5dece8d0db56ae9e35f34876c07fdf62fc5803ece299c6a63b5fa18
4
+ data.tar.gz: fa8a8a85780a5bdfa81a73d7dc8440b583e769c1bba1809d0adc96ce3a8bd55b
5
5
  SHA512:
6
- metadata.gz: e987abf6a55c7cd2dc983743ec4ad0c7e48277c4267411a49b942c2bf8ed9fde0230b77731b5f989936682a4d98e8a2ddaf204173c6a07b587af603607c9c49c
7
- data.tar.gz: ca0f1510b4db13aeeb11bad87cabb74d0b8647948a702c26c878b1f89043dbee3522f3c2549ca01d4c0ad5d8bc47c04a65d9e664a88ef03d83a147126ba5131a
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).
@@ -16,9 +16,7 @@ module OmniAuth
16
16
  def authorize_params
17
17
  super.tap do |params|
18
18
  %w[client_options].each do |v|
19
- if request.params[v]
20
- params[v.to_sym] = request.params[v]
21
- end
19
+ params[v.to_sym] = request.params[v] if request.params[v]
22
20
  end
23
21
  end
24
22
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omniauth
4
4
  module Monday
5
- VERSION = "0.2.1"
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.1
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-31 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
@@ -85,12 +85,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubyforge_project:
89
- rubygems_version: 2.6.14
88
+ rubygems_version: 3.3.7
90
89
  signing_key:
91
90
  specification_version: 4
92
91
  summary: Official OmniAuth strategy for Monday.com.
93
92
  test_files:
94
93
  - spec/omniauth/monday_spec.rb
95
94
  - spec/spec_helper.rb
96
- has_rdoc: