intercom-rails 1.1.0 → 1.1.1
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 +4 -4
- data/lib/intercom-rails/script_tag.rb +3 -1
- data/lib/intercom-rails/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff14436633adc07b04ea0fff8507abf54e6fd34e4c4ab943c3a26aa691d69801
|
|
4
|
+
data.tar.gz: 7fe20bd0ce9cff4efe03a935886b43ac8bed8f56366e75f1733a5948f7145299
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 744323aa7316eebe9923ef4a15897e6cf0ee24fda86e42f19ee865f1050e09840a4921be0b8f706a4fd610d66d584f4155a83a7483686949ec46e858ca2a9623
|
|
7
|
+
data.tar.gz: a93f75e039d873083243e3c847b8ccc4e2f35e812c4e05d5423fca83c36419aa908348003770133384044629584e63d4f55feafa6ff6b9f68e9d4b172274e2e0
|
|
@@ -54,7 +54,7 @@ module IntercomRails
|
|
|
54
54
|
return false if user_details[:excluded_user] == true
|
|
55
55
|
valid = user_details[:app_id].present?
|
|
56
56
|
unless @show_everywhere
|
|
57
|
-
valid = valid &&
|
|
57
|
+
valid = valid && @has_identity
|
|
58
58
|
end
|
|
59
59
|
if nonce
|
|
60
60
|
valid = valid && valid_nonce?
|
|
@@ -146,6 +146,8 @@ module IntercomRails
|
|
|
146
146
|
@user_details = @user_details.with_indifferent_access.tap do |u|
|
|
147
147
|
[:email, :name, :user_id].each { |k| u.delete(k) if u[k].nil? }
|
|
148
148
|
|
|
149
|
+
@has_identity = (u[:user_id] || u[:email]).present?
|
|
150
|
+
|
|
149
151
|
if secret.present?
|
|
150
152
|
if jwt_enabled && u[:user_id].present?
|
|
151
153
|
u[:intercom_user_jwt] ||= generate_jwt
|
metadata
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: intercom-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben McRedmond
|
|
8
8
|
- Ciaran Lee
|
|
9
9
|
- Darragh Curran
|
|
10
|
+
autorequire:
|
|
10
11
|
bindir: bin
|
|
11
12
|
cert_chain: []
|
|
12
|
-
date:
|
|
13
|
+
date: 2026-04-20 00:00:00.000000000 Z
|
|
13
14
|
dependencies:
|
|
14
15
|
- !ruby/object:Gem::Dependency
|
|
15
16
|
name: activesupport
|
|
@@ -186,6 +187,7 @@ homepage: http://www.intercom.io
|
|
|
186
187
|
licenses:
|
|
187
188
|
- MIT
|
|
188
189
|
metadata: {}
|
|
190
|
+
post_install_message:
|
|
189
191
|
rdoc_options: []
|
|
190
192
|
require_paths:
|
|
191
193
|
- lib
|
|
@@ -200,7 +202,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
200
202
|
- !ruby/object:Gem::Version
|
|
201
203
|
version: '0'
|
|
202
204
|
requirements: []
|
|
203
|
-
rubygems_version:
|
|
205
|
+
rubygems_version: 3.0.3.1
|
|
206
|
+
signing_key:
|
|
204
207
|
specification_version: 4
|
|
205
208
|
summary: Rails helper for emitting javascript script tags for Intercom
|
|
206
209
|
test_files: []
|