conversejs 3.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0bf5ebc31795de840de147b6cb405706421e1ca899ada5348442bb7454b6997f
4
+ data.tar.gz: e1aec19373c4af2eac3fa31404e4be818b1ca24a57a62b88cdb1954180e1a3c3
5
+ SHA512:
6
+ metadata.gz: b48e0abbcf128b0e053e33da36dd10f76f976921a7625becba82f3d05a31a3c279a3c69fc8dd7fc392457262b8f951cdb476a31f2a7818b740c319eaf9d7c598
7
+ data.tar.gz: f607f42503f5dd1d099e6ee5ba2c5056da1f836fdb9e611ffd19cef8767b65d34df90993004526586b081deb2d452af15ee118d4c4e7cc1aae33fc0dff4ab059
@@ -0,0 +1,30 @@
1
+ # http://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ charset = utf-8
9
+ trim_trailing_whitespace = true
10
+ insert_final_newline = true
11
+
12
+ [*.md]
13
+ trim_trailing_whitespace = true
14
+
15
+ [*.json]
16
+ indent_style = space
17
+ indent_size = 2
18
+
19
+ [*.yml]
20
+ indent_style = space
21
+ indent_size = 2
22
+
23
+ [Makefile]
24
+ trim_trailing_whitespace = true
25
+ indent_style = tab
26
+ indent_size = 4
27
+
28
+ [*.sh]
29
+ indent_style = space
30
+ indent_size = 2
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /pkg/
6
+ /spec/reports/
7
+ /tmp/
8
+ /spec/dummy/tmp
9
+ /spec/dummy/log
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,3 @@
1
+ SimpleCov.start 'test_frameworks' do
2
+ add_filter '/vendor/bundle/'
3
+ end
@@ -0,0 +1,20 @@
1
+ sudo: false
2
+
3
+ env:
4
+ global:
5
+ - CC_TEST_REPORTER_ID=c93fdf93cad561900ccdda0f8b7e605692830187f0563cbdf84196227554660d
6
+
7
+ language: ruby
8
+ rvm:
9
+ - 2.5
10
+ - 2.4
11
+ - 2.3
12
+ - 2.2
13
+
14
+ before_install: gem install bundler
15
+ before_script:
16
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
17
+ - chmod +x ./cc-test-reporter
18
+ - ./cc-test-reporter before-build
19
+ after_script:
20
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in conversejs.gemspec
6
+ gemspec
@@ -0,0 +1,160 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ conversejs (3.3.4)
5
+ railties (>= 4.2.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (5.2.0)
11
+ actionpack (= 5.2.0)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (>= 0.6.1)
14
+ actionmailer (5.2.0)
15
+ actionpack (= 5.2.0)
16
+ actionview (= 5.2.0)
17
+ activejob (= 5.2.0)
18
+ mail (~> 2.5, >= 2.5.4)
19
+ rails-dom-testing (~> 2.0)
20
+ actionpack (5.2.0)
21
+ actionview (= 5.2.0)
22
+ activesupport (= 5.2.0)
23
+ rack (~> 2.0)
24
+ rack-test (>= 0.6.3)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
+ actionview (5.2.0)
28
+ activesupport (= 5.2.0)
29
+ builder (~> 3.1)
30
+ erubi (~> 1.4)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
+ activejob (5.2.0)
34
+ activesupport (= 5.2.0)
35
+ globalid (>= 0.3.6)
36
+ activemodel (5.2.0)
37
+ activesupport (= 5.2.0)
38
+ activerecord (5.2.0)
39
+ activemodel (= 5.2.0)
40
+ activesupport (= 5.2.0)
41
+ arel (>= 9.0)
42
+ activestorage (5.2.0)
43
+ actionpack (= 5.2.0)
44
+ activerecord (= 5.2.0)
45
+ marcel (~> 0.3.1)
46
+ activesupport (5.2.0)
47
+ concurrent-ruby (~> 1.0, >= 1.0.2)
48
+ i18n (>= 0.7, < 2)
49
+ minitest (~> 5.1)
50
+ tzinfo (~> 1.1)
51
+ arel (9.0.0)
52
+ builder (3.2.3)
53
+ concurrent-ruby (1.0.5)
54
+ crass (1.0.4)
55
+ diff-lcs (1.3)
56
+ docile (1.3.0)
57
+ erubi (1.7.1)
58
+ globalid (0.4.1)
59
+ activesupport (>= 4.2.0)
60
+ i18n (1.0.1)
61
+ concurrent-ruby (~> 1.0)
62
+ json (2.1.0)
63
+ loofah (2.2.2)
64
+ crass (~> 1.0.2)
65
+ nokogiri (>= 1.5.9)
66
+ mail (2.7.0)
67
+ mini_mime (>= 0.1.1)
68
+ marcel (0.3.2)
69
+ mimemagic (~> 0.3.2)
70
+ method_source (0.9.0)
71
+ mimemagic (0.3.2)
72
+ mini_mime (1.0.0)
73
+ mini_portile2 (2.3.0)
74
+ minitest (5.11.3)
75
+ nio4r (2.3.1)
76
+ nokogiri (1.8.2)
77
+ mini_portile2 (~> 2.3.0)
78
+ rack (2.0.4)
79
+ rack-test (1.0.0)
80
+ rack (>= 1.0, < 3)
81
+ rails (5.2.0)
82
+ actioncable (= 5.2.0)
83
+ actionmailer (= 5.2.0)
84
+ actionpack (= 5.2.0)
85
+ actionview (= 5.2.0)
86
+ activejob (= 5.2.0)
87
+ activemodel (= 5.2.0)
88
+ activerecord (= 5.2.0)
89
+ activestorage (= 5.2.0)
90
+ activesupport (= 5.2.0)
91
+ bundler (>= 1.3.0)
92
+ railties (= 5.2.0)
93
+ sprockets-rails (>= 2.0.0)
94
+ rails-dom-testing (2.0.3)
95
+ activesupport (>= 4.2.0)
96
+ nokogiri (>= 1.6)
97
+ rails-html-sanitizer (1.0.4)
98
+ loofah (~> 2.2, >= 2.2.2)
99
+ railties (5.2.0)
100
+ actionpack (= 5.2.0)
101
+ activesupport (= 5.2.0)
102
+ method_source
103
+ rake (>= 0.8.7)
104
+ thor (>= 0.18.1, < 2.0)
105
+ rake (10.5.0)
106
+ rspec (3.7.0)
107
+ rspec-core (~> 3.7.0)
108
+ rspec-expectations (~> 3.7.0)
109
+ rspec-mocks (~> 3.7.0)
110
+ rspec-core (3.7.1)
111
+ rspec-support (~> 3.7.0)
112
+ rspec-expectations (3.7.0)
113
+ diff-lcs (>= 1.2.0, < 2.0)
114
+ rspec-support (~> 3.7.0)
115
+ rspec-mocks (3.7.0)
116
+ diff-lcs (>= 1.2.0, < 2.0)
117
+ rspec-support (~> 3.7.0)
118
+ rspec-rails (3.7.2)
119
+ actionpack (>= 3.0)
120
+ activesupport (>= 3.0)
121
+ railties (>= 3.0)
122
+ rspec-core (~> 3.7.0)
123
+ rspec-expectations (~> 3.7.0)
124
+ rspec-mocks (~> 3.7.0)
125
+ rspec-support (~> 3.7.0)
126
+ rspec-support (3.7.1)
127
+ simplecov (0.16.1)
128
+ docile (~> 1.1)
129
+ json (>= 1.8, < 3)
130
+ simplecov-html (~> 0.10.0)
131
+ simplecov-html (0.10.2)
132
+ sprockets (3.7.1)
133
+ concurrent-ruby (~> 1.0)
134
+ rack (> 1, < 3)
135
+ sprockets-rails (3.2.1)
136
+ actionpack (>= 4.0)
137
+ activesupport (>= 4.0)
138
+ sprockets (>= 3.0.0)
139
+ thor (0.20.0)
140
+ thread_safe (0.3.6)
141
+ tzinfo (1.2.5)
142
+ thread_safe (~> 0.1)
143
+ websocket-driver (0.7.0)
144
+ websocket-extensions (>= 0.1.0)
145
+ websocket-extensions (0.1.3)
146
+
147
+ PLATFORMS
148
+ ruby
149
+
150
+ DEPENDENCIES
151
+ bundler (~> 1.16)
152
+ conversejs!
153
+ rails (>= 4.2.0, < 6)
154
+ rake (~> 10.0)
155
+ rspec (~> 3.0)
156
+ rspec-rails (~> 3.7)
157
+ simplecov (~> 0.15)
158
+
159
+ BUNDLED WITH
160
+ 1.16.1
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Henning Vogt
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.
@@ -0,0 +1,75 @@
1
+ ![Conversejs](doc/assets/project.png)
2
+
3
+ [![Build Status](https://travis-ci.org/hausgold/conversejs.svg?branch=master)](https://travis-ci.org/hausgold/alarmable)
4
+ [![Gem Version](https://badge.fury.io/rb/conversejs.svg)](https://badge.fury.io/rb/alarmable)
5
+ [![Maintainability](https://api.codeclimate.com/v1/badges/2565ad54f9ef9d68a7a2/maintainability)](https://codeclimate.com/github/hausgold/conversejs/maintainability)
6
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/2565ad54f9ef9d68a7a2/test_coverage)](https://codeclimate.com/github/hausgold/conversejs/test_coverage)
7
+ [![API docs](https://img.shields.io/badge/docs-API-blue.svg)](https://www.rubydoc.info/gems/conversejs)
8
+
9
+ This gem provides the [converse.js](https://conversejs.org/) JavaScript library
10
+ for your Rails 4+ application.
11
+
12
+ - [Installation](#installation)
13
+ - [Usage](#usage)
14
+ - [Development](#development)
15
+ - [Contributing](#contributing)
16
+ - [License](#license)
17
+
18
+ ## Installation
19
+
20
+ Add this line to your application's Gemfile:
21
+
22
+ ```ruby
23
+ gem 'conversejs'
24
+ ```
25
+
26
+ And then execute:
27
+
28
+ ```bash
29
+ $ bundle
30
+ ```
31
+
32
+ Or install it yourself as:
33
+
34
+ ```bash
35
+ $ gem install conversejs
36
+ ```
37
+
38
+ ## Usage
39
+
40
+ The converse.js files will be added to the asset pipeline and available for you
41
+ to use. If they're not already in `app/assets/javascripts/application.js` by
42
+ default, add this line:
43
+
44
+ ```js
45
+ //= require converse
46
+ ```
47
+
48
+ The converse.js library comes also with a stylesheet which must be included to
49
+ your `app/assets/stylesheets/application.scss`. Just add this line:
50
+
51
+ ```css
52
+ @import "converse";
53
+ ```
54
+
55
+ ## Development
56
+
57
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run
58
+ `rake spec` to run the tests. You can also run `bin/console` for an interactive
59
+ prompt that will allow you to experiment.
60
+
61
+ To install this gem onto your local machine, run `bundle exec rake install`. To
62
+ release a new version, update the version number in `version.rb`, and then run
63
+ `bundle exec rake release`, which will create a git tag for the version, push
64
+ git commits and tags, and push the `.gem` file to
65
+ [rubygems.org](https://rubygems.org).
66
+
67
+ ## Contributing
68
+
69
+ Bug reports and pull requests are welcome on GitHub at
70
+ https://github.com/hausgold/conversejs.
71
+
72
+ ## License
73
+
74
+ The gem is available as open source under the terms of the [MIT
75
+ License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "conversejs"
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(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,38 @@
1
+
2
+ lib = File.expand_path('lib', __dir__)
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'
8
+ spec.version = Conversejs::Rails::VERSION
9
+ spec.authors = ['Henning Vogt']
10
+ spec.email = ['henning.vogt@hausgold.de']
11
+
12
+ spec.summary = 'Converse.js for your Rails application'
13
+ spec.homepage = 'https://github.com/hausgold/conversejs'
14
+ spec.license = 'MIT'
15
+
16
+ if spec.respond_to?(:metadata)
17
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
18
+ else
19
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
20
+ 'public gem pushes.'
21
+ end
22
+
23
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
24
+ f.match(%r{^(test|spec|features)/})
25
+ end
26
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
+ spec.require_paths = ['lib']
28
+
29
+ spec.add_dependency 'railties', '>= 4.2.0'
30
+
31
+ spec.add_development_dependency 'bundler', '~> 1.16'
32
+ spec.add_development_dependency 'rake', '~> 10.0'
33
+ spec.add_development_dependency 'rspec', '~> 3.0'
34
+ spec.add_development_dependency 'simplecov', '~> 0.15'
35
+
36
+ spec.add_development_dependency 'rails', '>= 4.2.0', '< 6'
37
+ spec.add_development_dependency 'rspec-rails', '~> 3.7'
38
+ end
Binary file
Binary file
Binary file
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'conversejs/rails'
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'conversejs/rails/engine'
4
+ require 'conversejs/rails/version'
5
+
6
+ module Conversejs
7
+ module Rails; end
8
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Conversejs
4
+ module Rails
5
+ class Engine < ::Rails::Engine; end
6
+ end
7
+ end