infinum_azure 1.0.0 → 1.1.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
2
  SHA256:
3
- metadata.gz: c0c1bfe091abf9d5665b78751dd404b2c51dc418fcfce11d626567a442c145cb
4
- data.tar.gz: f67b8fdbd80fe99d2358e5e75d600602b00574f52cbae6c4aed679ae2a141a81
3
+ metadata.gz: bccb0f25aa72b0098db31e9ab4506056dba8612b377ff357fccad37c06d4fa61
4
+ data.tar.gz: 78712899ea5cf67f4873a57ab3131fdf63f631a0b28df303801833df590721df
5
5
  SHA512:
6
- metadata.gz: 82bb397f7041ba03c5eb90a31871f3368282a8e1890db752245560698e0590cdc1810b5b70ea6d1b35b8187c2477b9b837fe6da62e62c24215300bb44063b65a
7
- data.tar.gz: ff401a1e3ce9844084ad3c292c08d651ab787c6706b856630496f9f89a0ebe682ac7efa532c575ba283e2a4252d87d39c257a949da9ff830bdd6d1b22908f003
6
+ metadata.gz: f89d14ae10ecc4b56db75c44fcf39d7bf16676c3e545c5a6630bb0b7346117bbb7e04335cbc0f5caae02051848c5709fa3de5fedb805c2d3cc15a04ce6782c55
7
+ data.tar.gz: a5f247dd19493b8961f49499f971ceaebe6f3e2a79f42648a06158e4e2db3b39b40b0c2fc5c2844f09f23a4004f79c18fd76cda2baaf4ef6b7f205f1343da86c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.1.0] - 2023-07-10
4
+
5
+ - Fix bug: Use pluralized resource_name for generating the logout paths
6
+
3
7
  ## [1.0.0] - 2023-06-20
4
8
 
5
9
  #### Breaking change
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- infinum_azure (1.0.0)
4
+ infinum_azure (1.1.0)
5
5
  bundler
6
6
  devise
7
7
  omniauth-infinum_azure (>= 0.3.0, < 2.0)
data/README.md CHANGED
@@ -45,7 +45,7 @@ InfinumAzure.configure do |config|
45
45
  :deactivated_at, :provider_groups, :employee]
46
46
 
47
47
  config.user_migration_scope = -> { resource_class.where(provider: 'infinum_id') }
48
- config.user_migration_operation = > (record, resource) {
48
+ config.user_migration_operation = -> (record, resource) {
49
49
  record.update_attribute(:provider, 'infinum_azure')
50
50
  record.update_attribute(:uid, resource['uid'])
51
51
  }
data/config/routes.rb CHANGED
@@ -1,8 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Rails.application.routes.draw do
4
- get '/users/auth/infinum_azure/logout', to: 'infinum_azure/resources#passthru', as: :infinum_azure_logout
5
- get '/users/auth/logout', to: 'infinum_azure/resources#destroy', as: :logout
4
+ get "/#{InfinumAzure.resource_name.pluralize.underscore}/auth/infinum_azure/logout",
5
+ to: 'infinum_azure/resources#passthru',
6
+ as: :infinum_azure_logout
7
+ get "/#{InfinumAzure.resource_name.pluralize.underscore}/auth/logout",
8
+ to: 'infinum_azure/resources#destroy',
9
+ as: :logout
6
10
 
7
11
  devise_for InfinumAzure.resource_name.pluralize.underscore, controllers: {
8
12
  omniauth_callbacks: 'infinum_azure/resources/omniauth_callbacks'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InfinumAzure
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infinum_azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marko Ćilimković
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-20 00:00:00.000000000 Z
11
+ date: 2023-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler