arborist_chat_rails 0.3.3 → 0.3.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/arborist_chat_rails/install_generator.rb +6 -5
- data/lib/arborist_chat_rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fba1f598d37bb9abe118497ab859f31ae4dfefb0bd5bd2af90ec17e60b888ae4
|
|
4
|
+
data.tar.gz: b11f310cad6dd824304433b476cf4314881dfca02ef65505e3b926d72bd98588
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51d775c3b44375ee9774ebb1d30501e94b4fae63c1b97f8420735b177ae87f1b8a204c588cb127602b4ac58a155b67b055cca02f9fba0d07bdbc18765df86563
|
|
7
|
+
data.tar.gz: 6787bf48e0c11c829c86d7948aacf620ccb0b7bbf4c362d700c57f31a6d762d62862d28b2a81af007e93614e9728cc55d9e0d05e172b75c140499e72e19cc3f1
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -22,12 +22,13 @@ class ArboristChatRails::InstallGenerator < Rails::Generators::Base
|
|
|
22
22
|
config.arborist.app_id = '#{options.dig(APP_ID)}'
|
|
23
23
|
config.arborist.app_secret = '#{options.dig(APP_SECRET)}'
|
|
24
24
|
|
|
25
|
-
#
|
|
26
|
-
#
|
|
25
|
+
# identifies a user. by default this is limited to anomous
|
|
26
|
+
# identification (note: this uses cookies so notify users
|
|
27
|
+
# appropriately). the current_user lambda will be executed
|
|
28
|
+
# in the current controllers context so all methods in the
|
|
29
|
+
# controller will be available
|
|
27
30
|
config.arborist.current_user = lambda do
|
|
28
|
-
|
|
29
|
-
{ id: session[:arborist_id] ||= SecureRandom.uuid }
|
|
30
|
-
end
|
|
31
|
+
{ id: session[:arborist_id] ||= SecureRandom.uuid }
|
|
31
32
|
end
|
|
32
33
|
end
|
|
33
34
|
FILE
|