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 +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/chat_gem/lifecycle_events.js +5 -5
- data/app/assets/javascripts/chat_gem/messages.js +1 -1
- data/app/assets/javascripts/chat_gem/realtime.js +1 -1
- data/app/assets/javascripts/chat_gem/shared.js +1 -1
- data/app/views/layouts/chat_gem/application.html.erb +1 -1
- data/lib/chat_gem/version.rb +1 -1
- data/lib/generators/chat_gem/install/install_generator.rb +1 -1
- data/lib/generators/chat_gem/install/templates/chat_gem.rb +3 -3
- data/turbo_chat.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b4afaa55487c854a5129c67b450d3161abe3fd8285f75a8e5eadfbbd6ad94c9a
|
|
4
|
+
data.tar.gz: b0eecb57fab564e7ea37f16d8d55eb94c4c3d403bced8eae7ef0fd3e14d5e97a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 635115e68222b865bc1ed091b2f098c15f840bc291eb3d042acddf4dbed8ac352aa54fb164dceb13d5e2c1d331f94cf37a73081c2fe5379ead588501ed600652
|
|
7
|
+
data.tar.gz: 21cda82e47ccd5b82f6216b00c902cf5445d1f52d83ef3f241c5327165759a7ed38e2ea2fa1eadd79054407af1c6e4f18c9d55f6331e1c3faddaba6eeec17612
|
data/README.md
CHANGED
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
function
|
|
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",
|
|
86
|
-
document.addEventListener("DOMContentLoaded",
|
|
87
|
-
document.addEventListener("turbo:render",
|
|
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.
|
|
93
|
+
})(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.
|
|
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.
|
|
488
|
+
})(window.TurboChatUI = window.TurboChatUI || {});
|
data/lib/chat_gem/version.rb
CHANGED
|
@@ -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
|
|
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
|
-
|
|
2
|
-
config.permission_adapter =
|
|
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 =
|
|
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/
|
|
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.
|
|
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/
|
|
127
|
+
homepage: https://github.com/Haumer/turbo_chat
|
|
128
128
|
licenses:
|
|
129
129
|
- MIT
|
|
130
130
|
metadata:
|
|
131
|
-
homepage_uri: https://github.com/Haumer/
|
|
132
|
-
source_code_uri: https://github.com/Haumer/
|
|
133
|
-
bug_tracker_uri: https://github.com/Haumer/
|
|
134
|
-
changelog_uri: https://github.com/Haumer/
|
|
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: []
|