turbo_chat 0.1.0 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1b109281610ec089ccc5b45642e6bbacabd59066fc71a99aaf17c6955527223
4
- data.tar.gz: afb92f9e5ca66b892645d88bc955e40cf5cdec14eeec4f0c95cdcc15a20dd6a0
3
+ metadata.gz: b4afaa55487c854a5129c67b450d3161abe3fd8285f75a8e5eadfbbd6ad94c9a
4
+ data.tar.gz: b0eecb57fab564e7ea37f16d8d55eb94c4c3d403bced8eae7ef0fd3e14d5e97a
5
5
  SHA512:
6
- metadata.gz: 141e3d3fe45b19e038cf902f6f8bbf07c8c317ed5b5f95acdd4f9c46d08791bc49a4c16f732c74abfd743599359092b6d1650551badb0c1b7f2f7cbb39cacd81
7
- data.tar.gz: 2032ce5b758174856c66f53dca07aff1182dc4cc443e83a02075a5dd349378e8d7732f8da266d6cb1d08e4a99c6552a4c7854a137a1840aae67935c30e515725
6
+ metadata.gz: 635115e68222b865bc1ed091b2f098c15f840bc291eb3d042acddf4dbed8ac352aa54fb164dceb13d5e2c1d331f94cf37a73081c2fe5379ead588501ed600652
7
+ data.tar.gz: 21cda82e47ccd5b82f6216b00c902cf5445d1f52d83ef3f241c5327165759a7ed38e2ea2fa1eadd79054407af1c6e4f18c9d55f6331e1c3faddaba6eeec17612
data/README.md CHANGED
@@ -52,7 +52,7 @@ bin/rails db:migrate
52
52
  mount TurboChat::Engine => "/"
53
53
  ```
54
54
 
55
- `turbo_chat` exposes `TurboChat` and keeps `ChatGem` as a backwards-compatible alias.
55
+ Use the `TurboChat` namespace in host app code.
56
56
 
57
57
  ## Host App Contract
58
58
 
@@ -64,7 +64,7 @@
64
64
  });
65
65
  }
66
66
 
67
- function setupChatGemUi() {
67
+ function setupTurboChatUi() {
68
68
  setupInvitationEvents();
69
69
  setupChatLifecycleEvents();
70
70
 
@@ -82,12 +82,12 @@
82
82
  }
83
83
  }
84
84
 
85
- document.addEventListener("turbo:load", setupChatGemUi);
86
- document.addEventListener("DOMContentLoaded", setupChatGemUi);
87
- document.addEventListener("turbo:render", setupChatGemUi);
85
+ document.addEventListener("turbo:load", setupTurboChatUi);
86
+ document.addEventListener("DOMContentLoaded", setupTurboChatUi);
87
+ document.addEventListener("turbo:render", setupTurboChatUi);
88
88
  setInterval(function () {
89
89
  if (typeof namespace.pruneSignals === "function") {
90
90
  namespace.pruneSignals();
91
91
  }
92
92
  }, 1000);
93
- })(window.ChatGemUI = window.ChatGemUI || {});
93
+ })(window.TurboChatUI = window.TurboChatUI || {});
@@ -439,4 +439,4 @@
439
439
  }
440
440
 
441
441
  namespace.setupAllMessageAutoScroll = setupAllMessageAutoScroll;
442
- })(window.ChatGemUI = window.ChatGemUI || {});
442
+ })(window.TurboChatUI = window.TurboChatUI || {});
@@ -395,4 +395,4 @@
395
395
  namespace.setupAllSignalContainers = setupAllSignalContainers;
396
396
  namespace.setupAllComposers = setupAllComposers;
397
397
  namespace.pruneSignals = pruneSignals;
398
- })(window.ChatGemUI = window.ChatGemUI || {});
398
+ })(window.TurboChatUI = window.TurboChatUI || {});
@@ -485,4 +485,4 @@
485
485
  namespace.signalOverlayOffset = signalOverlayOffset;
486
486
  namespace.prefersReducedMotion = prefersReducedMotion;
487
487
  namespace.scrollMessageIntoView = scrollMessageIntoView;
488
- })(window.ChatGemUI = window.ChatGemUI || {});
488
+ })(window.TurboChatUI = window.TurboChatUI || {});
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <title>ChatGem</title>
4
+ <title>TurboChat</title>
5
5
  <%= csrf_meta_tags %>
6
6
  <%= csp_meta_tag %>
7
7
  <%= action_cable_meta_tag %>
@@ -1,3 +1,3 @@
1
1
  module ChatGem
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -4,7 +4,7 @@ module ChatGem
4
4
  module Generators
5
5
  class InstallGenerator < Rails::Generators::Base
6
6
  source_root File.expand_path("templates", __dir__)
7
- desc "Installs ChatGem initializer and copies engine migrations"
7
+ desc "Installs TurboChat initializer and copies engine migrations"
8
8
 
9
9
  def copy_initializer
10
10
  template "chat_gem.rb", "config/initializers/chat_gem.rb"
@@ -1,5 +1,5 @@
1
- ChatGem.configure do |config|
2
- config.permission_adapter = ChatGem::Permission
1
+ TurboChat.configure do |config|
2
+ config.permission_adapter = TurboChat::Permission
3
3
  config.max_chat_participants = 10
4
4
  config.max_message_length = 1000
5
5
  config.message_history_limit = 200
@@ -7,7 +7,7 @@ ChatGem.configure do |config|
7
7
  config.mention_filter_exclude_self = true
8
8
  config.mention_filter_hide_roles = true
9
9
  config.enable_emoji_aliases = true
10
- config.emoji_aliases = ChatGem::Configuration::DEFAULT_EMOJI_ALIASES.dup
10
+ config.emoji_aliases = TurboChat::Configuration::DEFAULT_EMOJI_ALIASES.dup
11
11
  config.blocked_words = []
12
12
  config.blocked_words_action = :reject
13
13
  config.mention_mark_hex_color = nil
data/turbo_chat.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |spec|
4
4
  spec.name = "turbo_chat"
5
5
  spec.version = TurboChat::VERSION
6
6
  spec.authors = ["Alexander Haumer"]
7
- spec.homepage = "https://github.com/Haumer/ruby_llm_chat"
7
+ spec.homepage = "https://github.com/Haumer/turbo_chat"
8
8
  spec.summary = "Lightweight mountable chat engine for Rails"
9
9
  spec.description = "A mountable Rails engine with chats, messages, memberships, and Turbo Stream updates."
10
10
  spec.license = "MIT"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo_chat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Haumer
@@ -124,14 +124,14 @@ files:
124
124
  - lib/turbo_chat.rb
125
125
  - lib/turbo_chat/version.rb
126
126
  - turbo_chat.gemspec
127
- homepage: https://github.com/Haumer/ruby_llm_chat
127
+ homepage: https://github.com/Haumer/turbo_chat
128
128
  licenses:
129
129
  - MIT
130
130
  metadata:
131
- homepage_uri: https://github.com/Haumer/ruby_llm_chat
132
- source_code_uri: https://github.com/Haumer/ruby_llm_chat/tree/main
133
- bug_tracker_uri: https://github.com/Haumer/ruby_llm_chat/issues
134
- changelog_uri: https://github.com/Haumer/ruby_llm_chat/blob/main/README.md
131
+ homepage_uri: https://github.com/Haumer/turbo_chat
132
+ source_code_uri: https://github.com/Haumer/turbo_chat/tree/main
133
+ bug_tracker_uri: https://github.com/Haumer/turbo_chat/issues
134
+ changelog_uri: https://github.com/Haumer/turbo_chat/blob/main/README.md
135
135
  rubygems_mfa_required: 'true'
136
136
  post_install_message:
137
137
  rdoc_options: []