chat 0.0.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -0
- data/README.md +47 -22
- data/Rakefile +27 -1
- data/app/assets/config/chat_manifest.js +2 -0
- data/app/assets/javascripts/chat.js +16 -0
- data/app/assets/javascripts/chat/cable.js +13 -0
- data/app/assets/javascripts/chat/channels/message.coffee +75 -0
- data/app/assets/javascripts/chat/channels/notification.coffee +44 -0
- data/app/assets/javascripts/chat/channels/status.coffee +13 -0
- data/app/assets/javascripts/chat/emojionearea.min.js +1 -0
- data/app/assets/javascripts/chat/messages.coffee +44 -0
- data/app/assets/stylesheets/chat.css +15 -0
- data/app/assets/stylesheets/chat/chat.sass +25 -0
- data/app/assets/stylesheets/chat/checkbox.sass +80 -0
- data/app/assets/stylesheets/chat/emojionearea.min.css +1 -0
- data/app/assets/stylesheets/chat/header.sass +50 -0
- data/app/assets/stylesheets/chat/launch.sass +26 -0
- data/app/assets/stylesheets/chat/list.sass +45 -0
- data/app/assets/stylesheets/chat/message_form.sass +50 -0
- data/app/assets/stylesheets/chat/new.sass +53 -0
- data/app/assets/stylesheets/chat/transcript.sass +76 -0
- data/app/channels/chat/messages_channel.rb +11 -0
- data/app/channels/chat/notification_channel.rb +10 -0
- data/app/channels/chat/status_channel.rb +12 -0
- data/app/controllers/chat/application_controller.rb +5 -0
- data/app/controllers/chat/conversations_controller.rb +30 -0
- data/app/controllers/chat/messages_controller.rb +28 -0
- data/app/helpers/chat/application_helper.rb +62 -0
- data/app/jobs/chat/application_job.rb +5 -0
- data/app/jobs/chat/message_relay_job.rb +40 -0
- data/app/jobs/chat/notification_relay_job.rb +11 -0
- data/app/jobs/chat/status_relay_job.rb +9 -0
- data/app/mailers/chat/application_mailer.rb +6 -0
- data/app/models/chat/application_record.rb +3 -0
- data/app/models/chat/conversation.rb +9 -0
- data/app/models/chat/dot_command.rb +26 -0
- data/app/models/chat/dot_command/gif.rb +17 -0
- data/app/models/chat/dot_command/leave.rb +16 -0
- data/app/models/chat/dot_command/shrug.rb +27 -0
- data/app/models/chat/dot_command/validator.rb +23 -0
- data/app/models/chat/message.rb +29 -0
- data/app/models/chat/session.rb +10 -0
- data/app/views/chat/_chat.html.haml +14 -0
- data/app/views/chat/conversations/_index.html.haml +11 -0
- data/app/views/chat/conversations/_new.html.haml +10 -0
- data/app/views/chat/conversations/_show.html.haml +9 -0
- data/app/views/chat/conversations/create.js.erb +21 -0
- data/app/views/chat/conversations/show.js.erb +12 -0
- data/app/views/chat/messages/_message.haml +13 -0
- data/app/views/layouts/chat/application.html.erb +14 -0
- data/config/routes.rb +5 -0
- data/lib/chat.rb +29 -3
- data/lib/chat/engine.rb +5 -0
- data/lib/chat/user.rb +51 -0
- data/lib/chat/version.rb +1 -1
- data/lib/generators/chat/install/install_generator.rb +68 -0
- data/lib/generators/chat/install/templates/add_chat_to_users.rb +9 -0
- data/lib/generators/chat/install/templates/chat.rb +11 -0
- data/lib/generators/chat/install/templates/create_chat.rb +29 -0
- data/lib/tasks/chat_tasks.rake +4 -0
- metadata +296 -16
- data/.gitignore +0 -9
- data/Gemfile +0 -4
- data/LICENSE.txt +0 -21
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/chat.gemspec +0 -22
data/.gitignore
DELETED
data/Gemfile
DELETED
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2016 npezza93
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "chat"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|
data/bin/setup
DELETED
data/chat.gemspec
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'chat/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "chat"
|
8
|
-
spec.version = Chat::VERSION
|
9
|
-
spec.authors = ["npezza93"]
|
10
|
-
spec.email = ["npezza93@gmail.com"]
|
11
|
-
|
12
|
-
spec.summary = "A simple rails chat gem that leverages ActionCable"
|
13
|
-
spec.homepage = "https://github.com/npezza93/chat"
|
14
|
-
spec.license = "MIT"
|
15
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
|
-
spec.bindir = "exe"
|
17
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
|
-
spec.require_paths = ["lib"]
|
19
|
-
|
20
|
-
spec.add_development_dependency "bundler", "~> 1.12"
|
21
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
22
|
-
end
|