infinum_id 1.5.0 → 1.5.1

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: 5e62591afc2dcf87b83746e0cfbfa6ce4e1490f252e4f120dcd46bc44bbacc2c
4
- data.tar.gz: 6bd93953e12d36d8c1bc068286b7a772ceb380d2a8d4f89f693ef7e85605a12e
3
+ metadata.gz: 0d9fdcc2c9dfa8896896f7f3f9f9bccb49d1df43288b9d182e539d1e1e1b43e8
4
+ data.tar.gz: 367748cbcf9c54c24e71bab2fcd0d052c889be8540a4666bac98dc29f799ada8
5
5
  SHA512:
6
- metadata.gz: a5084163467986c28e70a91922302dc7eb22e2e363a71cbda47ea3abf36d9e070a258e81505705c1c80c8f6317adeaef7205b8581cbdb9787c0d7d1287cc5db5
7
- data.tar.gz: 8d998e72deeb6b77dd268a168522aad5842975c3b9455f4f047cd021e6cab7076bd381ba6162ca3c7a775a2b48aa95ce1e0c771211090e0dd4b3dde0fd550ecd
6
+ metadata.gz: 783ac8ebf1218077b419e1853bd498846c8eef05ea8359ea096bf66f7f611c341331101a44b139776bba64d208c4c4e913c6e543cbb655a17235f98e81180365
7
+ data.tar.gz: 70e5ff6d55531db42ed33345ba00814a857a8fdfd38cd4adbba683ed428eba0566ac157c6e616ad4fbd491fa178d0a83fbace669a7a3d619549280ce5291ceba
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- infinum_id (1.5.0)
4
+ infinum_id (1.5.1)
5
5
  blueprinter
6
6
  bundler
7
7
  devise
data/README.md CHANGED
@@ -79,7 +79,7 @@ Devise is used like middleware for authentication that uses Omniauth with infinu
79
79
  InfinumId.configure do |config|
80
80
  config.service_name = 'Revisor'
81
81
  config.resource_name = 'User'
82
- config.infinum_id_send_email = false
82
+ config.infinum_id_send_email = !Rails.env.test? # to disable in tests
83
83
  config.resource_attributes = [:uid, :email, :first_name, :last_name, :deactivated_at, :time_zone, :avatar_url, :slack_username]
84
84
  end
85
85
  ```
@@ -11,6 +11,8 @@ module InfinumId
11
11
  end
12
12
 
13
13
  def call
14
+ return unless InfinumId.send_invite_request
15
+
14
16
  send_invite_request
15
17
  handle_response
16
18
  end
@@ -12,6 +12,7 @@ module InfinumId
12
12
  setting :service_name, reader: true
13
13
  setting :resource_name, 'User', reader: true
14
14
  setting :infinum_id_send_email, false, reader: true
15
+ setting :send_invite_request, true, reader: true
15
16
 
16
17
  setting :resource_attributes, [:uid, :email, :first_name, :last_name, :deactivated_at],
17
18
  reader: true
@@ -1,3 +1,3 @@
1
1
  module InfinumId
2
- VERSION = '1.5.0'
2
+ VERSION = '1.5.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infinum_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dajana Jeroncic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-13 00:00:00.000000000 Z
11
+ date: 2020-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler