Skip to content

Commit 02acabd

Browse files
committed
first version
0 parents  commit 02acabd

File tree

10 files changed

+49903
-0
lines changed

10 files changed

+49903
-0
lines changed

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
*.gem
2+
*.rbc
3+
.bundle
4+
.config
5+
.yardoc
6+
Gemfile.lock
7+
InstalledFiles
8+
_yardoc
9+
coverage
10+
doc/
11+
lib/bundler/man
12+
pkg
13+
rdoc
14+
spec/reports
15+
test/tmp
16+
test/version_tmp
17+
tmp
18+
*.bundle
19+
*.so
20+
*.o
21+
*.a
22+
mkmf.log

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
3+
# Specify your gem's dependencies in conversejs-rails.gemspec
4+
gemspec

LICENSE.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2016 Mike Polischuk
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# conversejs-rails
2+
3+
conversejs-rails wraps the [Converse.js](https://conversejs.org) library in a rails
4+
engine for simple use with the asset pipeline provided by Rails 3.1 and higher.
5+
The gem includes the development (non-minified) source for ease of exploration.
6+
The asset pipeline will minify in production.
7+
8+
Converse.js is a web based XMPP/Jabber instant messaging client. It enables you to add chat functionality to your website, independent of any specific backend. You will however need an XMPP server to connect to, either your own, or a public one.
9+
10+
11+
## Usage
12+
13+
Add the following to your gemfile:
14+
15+
gem 'conversejs-rails'
16+
17+
Add the following directive to your Javascript manifest file (application.js):
18+
19+
//= require moment
20+
21+
## Versioning
22+
23+
conversejs-rails 1.0.3 == Converse.js 1.0.3
24+
25+
Every attempt is made to mirror the currently shipping Converse.js version number
26+
wherever possible. The major, minor, and patch version numbers will always
27+
represent the Converse.js version. Should a gem bug be discovered, a 4th version
28+
identifier will be added and incremented.

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require "bundler/gem_tasks"
2+

conversejs-rails.gemspec

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# coding: utf-8
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'conversejs/rails/version'
5+
6+
Gem::Specification.new do |spec|
7+
spec.name = "conversejs-rails"
8+
spec.version = Conversejs::Rails::VERSION
9+
spec.authors = ["Mike Polischuk"]
10+
spec.email = ["[email protected]"]
11+
spec.summary = %q{The Converse.js JavaScript library, ready to play with Rails.}
12+
spec.description = <<-EOF
13+
Converse.js is a web based XMPP/Jabber instant messaging client.
14+
This gem allows for its easy inclusion into the rails asset pipeline.
15+
EOF
16+
spec.homepage = "https://github.com/mikemarsian/conversejs-rails"
17+
spec.license = "MIT"
18+
19+
spec.files = Dir["{lib,vendor}/**/*"] + ["LICENSE.txt", "README.md"]
20+
spec.require_paths = ["lib"]
21+
22+
spec.add_dependency "railties", ">= 3.1"
23+
24+
spec.add_development_dependency "rails", "~> 3.2.12"
25+
spec.add_development_dependency "bundler", "~> 1.6"
26+
spec.add_development_dependency "rake"
27+
end

lib/conversejs/rails.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require "conversejs/rails/version"
2+
3+
module Conversejs
4+
module Rails
5+
class Engine < ::Rails::Engine
6+
end
7+
end
8+
end

lib/conversejs/rails/version.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module Conversejs
2+
module Rails
3+
VERSION = "1.0.3"
4+
end
5+
end

0 commit comments

Comments
 (0)