arborist_chat_rails 0.3.3 → 0.3.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
2
  SHA256:
3
- metadata.gz: d7bbc04b2a69f4f50a645767adba3238b92128ca5c662163a90c89791244200f
4
- data.tar.gz: 12aad8903ff793d46bd913bacb1152a0cb01321e9b1f313871576dfbca4f3b10
3
+ metadata.gz: fba1f598d37bb9abe118497ab859f31ae4dfefb0bd5bd2af90ec17e60b888ae4
4
+ data.tar.gz: b11f310cad6dd824304433b476cf4314881dfca02ef65505e3b926d72bd98588
5
5
  SHA512:
6
- metadata.gz: 97b860181e6cee7a9adbfb80b6777461c92ff0cf6e0569b16e24ea7c0ed2913923eb22ef64ce02e634112baa874acce6f7de781bf161db5ed2c1d7e64eee3744
7
- data.tar.gz: e06237d02243ba3df0ab26cdb163d6153a9cee777fa9e3eb1fd0a79ecf3815e4e0841bd893e11a48b0451e2e962e4874b2a882817aa4352f64f7d3ece2c4e4f9
6
+ metadata.gz: 51d775c3b44375ee9774ebb1d30501e94b4fae63c1b97f8420735b177ae87f1b8a204c588cb127602b4ac58a155b67b055cca02f9fba0d07bdbc18765df86563
7
+ data.tar.gz: 6787bf48e0c11c829c86d7948aacf620ccb0b7bbf4c362d700c57f31a6d762d62862d28b2a81af007e93614e9728cc55d9e0d05e172b75c140499e72e19cc3f1
@@ -1,3 +1,8 @@
1
+ ## [0.3.4] - 2020-07-26
2
+
3
+ - updates default configuration to be less opinionated but
4
+ will only support anonomous users by default.
5
+
1
6
  ## [0.3.3] - 2020-07-25
2
7
 
3
8
  - fixes issue when jwt wasnt already required
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arborist_chat_rails (0.3.3)
4
+ arborist_chat_rails (0.3.4)
5
5
  actionview (> 3.0)
6
6
  activesupport (> 3.0)
7
7
  jwt (> 2.0)
@@ -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
- # used to resolve which fields to send to
26
- # arborist to identify a user
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
- current_user&.as_json(only: %i[email id]) || begin
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
@@ -1,3 +1,3 @@
1
1
  module ArboristChatRails
2
- VERSION = %q{0.3.3}.freeze
2
+ VERSION = %q{0.3.4}.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arborist_chat_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leon