conversejs 3.3.5 → 3.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/documentation.yml +38 -0
- data/.github/workflows/test.yml +59 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +54 -0
- data/.yardopts +6 -0
- data/CHANGELOG.md +17 -0
- data/Dockerfile +29 -0
- data/Envfile +6 -0
- data/Gemfile +4 -2
- data/{LICENSE.txt → LICENSE} +0 -0
- data/Makefile +135 -0
- data/README.md +4 -4
- data/Rakefile +69 -3
- data/config/docker/.bash_profile +3 -0
- data/config/docker/.bashrc +48 -0
- data/config/docker/.inputrc +17 -0
- data/conversejs.gemspec +7 -3
- data/docker-compose.yml +9 -0
- data/lib/conversejs/rails/engine.rb +1 -0
- data/lib/conversejs/rails/version.rb +2 -1
- data/lib/conversejs/rails.rb +2 -0
- metadata +85 -18
- data/.travis.yml +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d37a5a5092048941baa17dec12a6a6bd22dbcc4df080bddfb1c8123760019c60
|
4
|
+
data.tar.gz: fc79978a62d858b50570f30fed58e06d51c7089a31b6d341718dffbf0d938487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e1a31f333ae52b78cadb8482a1c961a0d9c3963051083f14802a24d389c96d3861297661bdcc97e2e0e875e4bb160524fc2bf2f20e6678375c58346db665467
|
7
|
+
data.tar.gz: 48514a2b48e51c21e78297b1527fcb0374db316a57678526e549682dbf34e4cb13363939512b34a8290af33b16a0a7c26139f5047541511b38c9bdf6a606d162
|
@@ -0,0 +1,38 @@
|
|
1
|
+
name: Build Documentation
|
2
|
+
on:
|
3
|
+
repository_dispatch:
|
4
|
+
types: [documentation]
|
5
|
+
|
6
|
+
concurrency:
|
7
|
+
group: 'docs'
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
docs:
|
11
|
+
name: Build gem documentation
|
12
|
+
runs-on: ubuntu-20.04
|
13
|
+
timeout-minutes: 5
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v2
|
16
|
+
|
17
|
+
- name: Install the correct Ruby version
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: 2.5
|
21
|
+
bundler-cache: true
|
22
|
+
|
23
|
+
- name: Prepare the virtual environment
|
24
|
+
uses: hausgold/actions/ci@master
|
25
|
+
with:
|
26
|
+
clone_token: '${{ secrets.CLONE_TOKEN }}'
|
27
|
+
settings: '${{ github.repository }}'
|
28
|
+
target: ci/gem-test
|
29
|
+
|
30
|
+
- name: Build gem documentation
|
31
|
+
run: make docs
|
32
|
+
|
33
|
+
- name: Upload the code coverage report
|
34
|
+
run: coverage
|
35
|
+
|
36
|
+
- name: Add this job to the commit status
|
37
|
+
run: commit-status '${{ job.status }}'
|
38
|
+
if: always()
|
@@ -0,0 +1,59 @@
|
|
1
|
+
name: Test
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches:
|
5
|
+
- '**'
|
6
|
+
schedule:
|
7
|
+
- cron: '0 0 * * MON'
|
8
|
+
|
9
|
+
concurrency:
|
10
|
+
group: '${{ github.ref }}'
|
11
|
+
cancel-in-progress: true
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
test:
|
15
|
+
name: 'Test the gem (Ruby ${{ matrix.ruby }})'
|
16
|
+
runs-on: ubuntu-20.04
|
17
|
+
timeout-minutes: 5
|
18
|
+
strategy:
|
19
|
+
fail-fast: false
|
20
|
+
matrix:
|
21
|
+
ruby: [2.5, 2.6, 2.7]
|
22
|
+
steps:
|
23
|
+
- uses: actions/checkout@v2
|
24
|
+
|
25
|
+
- name: Install the correct Ruby version
|
26
|
+
uses: ruby/setup-ruby@v1
|
27
|
+
with:
|
28
|
+
ruby-version: ${{ matrix.ruby }}
|
29
|
+
bundler-cache: true
|
30
|
+
|
31
|
+
- name: Prepare the virtual environment
|
32
|
+
uses: hausgold/actions/ci@master
|
33
|
+
with:
|
34
|
+
clone_token: '${{ secrets.CLONE_TOKEN }}'
|
35
|
+
settings: '${{ github.repository }}'
|
36
|
+
target: ci/gem-test
|
37
|
+
|
38
|
+
- name: Run the gem tests
|
39
|
+
run: make test
|
40
|
+
|
41
|
+
- name: Upload the code coverage report
|
42
|
+
run: coverage
|
43
|
+
|
44
|
+
trigger-docs:
|
45
|
+
name: Trigger the documentation upload
|
46
|
+
runs-on: ubuntu-20.04
|
47
|
+
timeout-minutes: 2
|
48
|
+
needs: test
|
49
|
+
if: github.ref == 'refs/heads/master'
|
50
|
+
steps:
|
51
|
+
- name: Prepare the virtual environment
|
52
|
+
uses: hausgold/actions/ci@master
|
53
|
+
with:
|
54
|
+
clone_token: '${{ secrets.CLONE_TOKEN }}'
|
55
|
+
settings: '${{ github.repository }}'
|
56
|
+
target: ci/noop
|
57
|
+
|
58
|
+
- name: Trigger the documentation upload
|
59
|
+
run: workflow documentation
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
require: rubocop-rspec
|
2
|
+
|
3
|
+
Rails:
|
4
|
+
Enabled: true
|
5
|
+
|
6
|
+
Documentation:
|
7
|
+
Enabled: true
|
8
|
+
|
9
|
+
AllCops:
|
10
|
+
DisplayCopNames: true
|
11
|
+
TargetRubyVersion: 2.5
|
12
|
+
Exclude:
|
13
|
+
- bin/**/*
|
14
|
+
- vendor/**/*
|
15
|
+
- build/**/*
|
16
|
+
- gemfiles/**/*
|
17
|
+
- spec/dummy/**/*
|
18
|
+
|
19
|
+
Metrics/BlockLength:
|
20
|
+
Exclude:
|
21
|
+
- Rakefile
|
22
|
+
- '*.gemspec'
|
23
|
+
- spec/**/*.rb
|
24
|
+
- '**/*.rake'
|
25
|
+
- doc/**/*.rb
|
26
|
+
|
27
|
+
# Document all the things.
|
28
|
+
Style/DocumentationMethod:
|
29
|
+
Enabled: true
|
30
|
+
RequireForNonPublicMethods: true
|
31
|
+
|
32
|
+
# It's a deliberate idiom in RSpec.
|
33
|
+
# See: https://github.com/bbatsov/rubocop/issues/4222
|
34
|
+
Lint/AmbiguousBlockAssociation:
|
35
|
+
Exclude:
|
36
|
+
- "spec/**/*"
|
37
|
+
|
38
|
+
# Because +expect_any_instance_of().to have_received()+ is not
|
39
|
+
# supported with the +with(hash_including)+ matchers
|
40
|
+
RSpec/MessageSpies:
|
41
|
+
EnforcedStyle: receive
|
42
|
+
|
43
|
+
# Because nesting makes sense here to group the feature tests
|
44
|
+
# more effective. This increases maintainability.
|
45
|
+
RSpec/NestedGroups:
|
46
|
+
Max: 4
|
47
|
+
|
48
|
+
# Disable regular Rails spec paths.
|
49
|
+
RSpec/FilePath:
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
# Because we just implemented the ActiveRecord API.
|
53
|
+
Rails/SkipsModelValidations:
|
54
|
+
Enabled: false
|
data/.yardopts
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
### 3.3.6
|
2
|
+
|
3
|
+
* Migrated to Github Actions
|
4
|
+
* Migrated to our own coverage reporting
|
5
|
+
|
6
|
+
### 3.3.5
|
7
|
+
|
8
|
+
* Corrected the badge links
|
9
|
+
* Switched to SVG project teasers
|
10
|
+
* Updated Travis CI and Code Climate configs (#1)
|
11
|
+
* Changed travis-ci.org to travis-ci.com links
|
12
|
+
* Fix the broken tests for Sprockets 4+ (#2)
|
13
|
+
|
14
|
+
### 3.3.4
|
15
|
+
|
16
|
+
* Initial conversejs gem release
|
17
|
+
* converse.js version is 3.3.4
|
data/Dockerfile
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
FROM hausgold/ruby:2.5
|
2
|
+
MAINTAINER Hermann Mayer <hermann.mayer@hausgold.de>
|
3
|
+
|
4
|
+
# Update system gem
|
5
|
+
RUN gem update --system
|
6
|
+
|
7
|
+
# Install system packages and the latest bundler
|
8
|
+
RUN apt-get update -yqqq && \
|
9
|
+
apt-get install -y \
|
10
|
+
build-essential locales sudo vim \
|
11
|
+
ca-certificates \
|
12
|
+
bash-completion inotify-tools && \
|
13
|
+
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && /usr/sbin/locale-gen && \
|
14
|
+
gem install bundler -v '~> 2.0' --no-document --no-prerelease && \
|
15
|
+
gem install bundler -v '~> 1.0' --no-document --no-prerelease
|
16
|
+
|
17
|
+
# Add new web user
|
18
|
+
RUN mkdir /app && \
|
19
|
+
adduser web --home /home/web --shell /bin/bash \
|
20
|
+
--disabled-password --gecos ""
|
21
|
+
COPY config/docker/* /home/web/
|
22
|
+
RUN chown web:web -R /app /home/web /usr/local/bundle && \
|
23
|
+
mkdir -p /home/web/.ssh
|
24
|
+
|
25
|
+
# Set the root password and grant root access to web
|
26
|
+
RUN echo 'root:root' | chpasswd
|
27
|
+
RUN echo 'web ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
28
|
+
|
29
|
+
WORKDIR /app
|
data/Envfile
ADDED
data/Gemfile
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
6
|
|
5
7
|
# Specify your gem's dependencies in conversejs.gemspec
|
6
8
|
gemspec
|
data/{LICENSE.txt → LICENSE}
RENAMED
File without changes
|
data/Makefile
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
MAKEFLAGS += --warn-undefined-variables -j1
|
2
|
+
SHELL := bash
|
3
|
+
.SHELLFLAGS := -eu -o pipefail -c
|
4
|
+
.DEFAULT_GOAL := all
|
5
|
+
.DELETE_ON_ERROR:
|
6
|
+
.SUFFIXES:
|
7
|
+
.PHONY:
|
8
|
+
|
9
|
+
# Environment switches
|
10
|
+
MAKE_ENV ?= docker
|
11
|
+
COMPOSE_RUN_SHELL_FLAGS ?= --rm
|
12
|
+
|
13
|
+
# Directories
|
14
|
+
VENDOR_DIR ?= vendor/bundle
|
15
|
+
|
16
|
+
# Host binaries
|
17
|
+
AWK ?= awk
|
18
|
+
BASH ?= bash
|
19
|
+
COMPOSE ?= docker-compose
|
20
|
+
DOCKER ?= docker
|
21
|
+
GREP ?= grep
|
22
|
+
ID ?= id
|
23
|
+
MKDIR ?= mkdir
|
24
|
+
RM ?= rm
|
25
|
+
XARGS ?= xargs
|
26
|
+
|
27
|
+
# Container binaries
|
28
|
+
BUNDLE ?= bundle
|
29
|
+
GEM ?= gem
|
30
|
+
RAKE ?= rake
|
31
|
+
RUBOCOP ?= rubocop
|
32
|
+
YARD ?= yard
|
33
|
+
|
34
|
+
# Define a generic shell run wrapper
|
35
|
+
# $1 - The command to run
|
36
|
+
ifeq ($(MAKE_ENV),docker)
|
37
|
+
define run-shell
|
38
|
+
$(COMPOSE) run $(COMPOSE_RUN_SHELL_FLAGS) \
|
39
|
+
-e LANG=en_US.UTF-8 -e LANGUAGE=en_US.UTF-8 -e LC_ALL=en_US.UTF-8 \
|
40
|
+
-e HOME=/home/web -e BUNDLE_APP_CONFIG=/app/.bundle \
|
41
|
+
-u `$(ID) -u` test bash -c 'sleep 0.1; echo; $(1)'
|
42
|
+
endef
|
43
|
+
else ifeq ($(MAKE_ENV),baremetal)
|
44
|
+
define run-shell
|
45
|
+
$(1)
|
46
|
+
endef
|
47
|
+
endif
|
48
|
+
|
49
|
+
all:
|
50
|
+
# Converse.js
|
51
|
+
#
|
52
|
+
# install Install the dependencies
|
53
|
+
# update Update the local Gemset dependencies
|
54
|
+
# clean Clean the dependencies
|
55
|
+
#
|
56
|
+
# test Run the whole test suite
|
57
|
+
# test-style Test the code styles
|
58
|
+
#
|
59
|
+
# docs Generate the Ruby documentation of the library
|
60
|
+
# stats Print the code statistics (library and test suite)
|
61
|
+
# notes Print all the notes from the code
|
62
|
+
# release Release a new Gem version (maintainers only)
|
63
|
+
#
|
64
|
+
# shell Run an interactive shell on the container
|
65
|
+
# shell-irb Run an interactive IRB shell on the container
|
66
|
+
|
67
|
+
install:
|
68
|
+
# Install the dependencies
|
69
|
+
@$(MKDIR) -p $(VENDOR_DIR)
|
70
|
+
@$(call run-shell,$(BUNDLE) check || $(BUNDLE) install --path $(VENDOR_DIR))
|
71
|
+
@$(call run-shell,GEM_HOME=vendor/bundle/ruby/$${RUBY_MAJOR}.0 \
|
72
|
+
$(GEM) install bundler -v "~> 1.0")
|
73
|
+
|
74
|
+
test: \
|
75
|
+
test-specs \
|
76
|
+
test-style
|
77
|
+
|
78
|
+
test-specs:
|
79
|
+
# Run the whole test suite
|
80
|
+
@$(call run-shell,$(BUNDLE) exec $(RAKE) stats spec)
|
81
|
+
|
82
|
+
test-style: \
|
83
|
+
test-style-ruby
|
84
|
+
|
85
|
+
test-style-ruby:
|
86
|
+
# Run the static code analyzer (rubocop)
|
87
|
+
@$(call run-shell,$(BUNDLE) exec $(RUBOCOP) -a)
|
88
|
+
|
89
|
+
clean:
|
90
|
+
# Clean the dependencies
|
91
|
+
@$(RM) -rf $(VENDOR_DIR)
|
92
|
+
@$(RM) -rf $(VENDOR_DIR)/Gemfile.lock
|
93
|
+
@$(RM) -rf pkg
|
94
|
+
@$(RM) -rf coverage
|
95
|
+
|
96
|
+
clean-containers:
|
97
|
+
# Clean running containers
|
98
|
+
ifeq ($(MAKE_ENV),docker)
|
99
|
+
@$(COMPOSE) down
|
100
|
+
endif
|
101
|
+
|
102
|
+
clean-images:
|
103
|
+
# Clean build images
|
104
|
+
ifeq ($(MAKE_ENV),docker)
|
105
|
+
@-$(DOCKER) images | $(GREP) rimless \
|
106
|
+
| $(AWK) '{ print $$3 }' \
|
107
|
+
| $(XARGS) -rn1 $(DOCKER) rmi -f
|
108
|
+
endif
|
109
|
+
|
110
|
+
distclean: clean clean-containers clean-images
|
111
|
+
|
112
|
+
shell:
|
113
|
+
# Run an interactive shell on the container
|
114
|
+
@$(call run-shell,$(BASH) -i)
|
115
|
+
|
116
|
+
shell-irb:
|
117
|
+
# Run an interactive IRB shell on the container
|
118
|
+
@$(call run-shell,bin/console)
|
119
|
+
|
120
|
+
docs:
|
121
|
+
# Build the API documentation
|
122
|
+
@$(call run-shell,$(BUNDLE) exec $(YARD) -q && \
|
123
|
+
$(BUNDLE) exec $(YARD) stats --list-undoc --compact)
|
124
|
+
|
125
|
+
notes:
|
126
|
+
# Print the code statistics (library and test suite)
|
127
|
+
@$(call run-shell,$(BUNDLE) exec $(RAKE) notes)
|
128
|
+
|
129
|
+
stats:
|
130
|
+
# Print all the notes from the code
|
131
|
+
@$(call run-shell,$(BUNDLE) exec $(RAKE) stats)
|
132
|
+
|
133
|
+
release:
|
134
|
+
# Release a new gem version
|
135
|
+
@$(BUNDLE) exec $(RAKE) release
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
![Conversejs](doc/assets/project.svg)
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![Continuous Integration](https://github.com/hausgold/conversejs/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/hausgold/conversejs/actions/workflows/test.yml)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/conversejs.svg)](https://badge.fury.io/rb/conversejs)
|
5
|
-
[![
|
6
|
-
[![Test
|
7
|
-
[![API docs](https://
|
5
|
+
[![Test Coverage](https://automate-api.hausgold.de/v1/coverage_reports/conversejs/coverage.svg)](https://knowledge.hausgold.de/coverage)
|
6
|
+
[![Test Ratio](https://automate-api.hausgold.de/v1/coverage_reports/conversejs/ratio.svg)](https://knowledge.hausgold.de/coverage)
|
7
|
+
[![API docs](https://automate-api.hausgold.de/v1/coverage_reports/conversejs/documentation.svg)](https://www.rubydoc.info/gems/conversejs)
|
8
8
|
|
9
9
|
This gem provides the [converse.js](https://conversejs.org/) JavaScript library
|
10
10
|
for your Rails 4+ application.
|
data/Rakefile
CHANGED
@@ -1,6 +1,72 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/gem_tasks'
|
4
|
+
require 'rspec/core/rake_task'
|
5
|
+
require 'rails/code_statistics'
|
6
|
+
require 'pp'
|
3
7
|
|
4
8
|
RSpec::Core::RakeTask.new(:spec)
|
5
9
|
|
6
|
-
task :
|
10
|
+
task default: :spec
|
11
|
+
|
12
|
+
# Load some railties tasks
|
13
|
+
load 'rails/tasks/statistics.rake'
|
14
|
+
load 'rails/tasks/annotations.rake'
|
15
|
+
|
16
|
+
# Clear the default statistics directory constant
|
17
|
+
#
|
18
|
+
# rubocop:disable Style/MutableConstant because we define it
|
19
|
+
Object.send(:remove_const, :STATS_DIRECTORIES)
|
20
|
+
::STATS_DIRECTORIES = []
|
21
|
+
# rubocop:enable Style/MutableConstant
|
22
|
+
|
23
|
+
# Monkey patch the Rails +CodeStatistics+ class to support configurable
|
24
|
+
# patterns per path. This is reuqired to support top-level only file matches.
|
25
|
+
class CodeStatistics
|
26
|
+
DEFAULT_PATTERN = /^(?!\.).*?\.(rb|js|coffee|rake)$/.freeze
|
27
|
+
|
28
|
+
# Pass the possible +pattern+ argument down to the
|
29
|
+
# +calculate_directory_statistics+ method call.
|
30
|
+
def calculate_statistics
|
31
|
+
Hash[@pairs.map do |pair|
|
32
|
+
[pair.first, calculate_directory_statistics(*pair[1..-1])]
|
33
|
+
end]
|
34
|
+
end
|
35
|
+
|
36
|
+
# Match the pattern against the individual file name and the relative file
|
37
|
+
# path. This allows top-level only matches.
|
38
|
+
def calculate_directory_statistics(directory, pattern = DEFAULT_PATTERN)
|
39
|
+
stats = CodeStatisticsCalculator.new
|
40
|
+
|
41
|
+
Dir.foreach(directory) do |file_name|
|
42
|
+
path = "#{directory}/#{file_name}"
|
43
|
+
|
44
|
+
if File.directory?(path) && (/^\./ !~ file_name)
|
45
|
+
stats.add(calculate_directory_statistics(path, pattern))
|
46
|
+
elsif file_name =~ pattern || path =~ pattern
|
47
|
+
stats.add_by_file_path(path)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
stats
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# Configure all code statistics directories
|
56
|
+
vendors = [
|
57
|
+
[:unshift, 'Top-levels', 'lib'],
|
58
|
+
[:unshift, 'Top-levels specs', 'spec', %r{spec/.*_spec\.rb$}]
|
59
|
+
].reverse
|
60
|
+
|
61
|
+
vendors.each do |method, type, dir, pattern|
|
62
|
+
::STATS_DIRECTORIES.send(method, [type, dir, pattern].compact)
|
63
|
+
::CodeStatistics::TEST_TYPES << type if type.include? 'specs'
|
64
|
+
end
|
65
|
+
|
66
|
+
# Setup annotations
|
67
|
+
ENV['SOURCE_ANNOTATION_DIRECTORIES'] = 'spec,doc'
|
68
|
+
|
69
|
+
desc 'Enumerate all annotations'
|
70
|
+
task :notes do
|
71
|
+
SourceAnnotationExtractor.enumerate '@?OPTIMIZE|@?FIXME|@?TODO', tag: true
|
72
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# ~/.bashrc: executed by bash(1) for non-login shells.
|
2
|
+
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
3
|
+
# for examples
|
4
|
+
|
5
|
+
_GEM_PATHS=$(ls -d1 ${HOME}/.gem/ruby/*/bin 2>/dev/null | paste -sd ':')
|
6
|
+
_APP_PATHS=$(ls -d1 /app/vendor/bundle/ruby/*/bin 2>/dev/null | paste -sd ':')
|
7
|
+
|
8
|
+
export PATH="${_GEM_PATHS}:${_APP_PATHS}:${PATH}"
|
9
|
+
export PATH="/app/node_modules/.bin:${HOME}/.bin:/app/bin:${PATH}"
|
10
|
+
export MAKE_ENV=baremetal
|
11
|
+
|
12
|
+
# Disable the autostart of all supervisord units
|
13
|
+
sudo sed -i 's/autostart=.*/autostart=false/g' /etc/supervisor/conf.d/*
|
14
|
+
|
15
|
+
# Start the supervisord (empty, no units)
|
16
|
+
sudo supervisord >/dev/null 2>&1 &
|
17
|
+
|
18
|
+
# Wait for supervisord
|
19
|
+
while ! supervisorctl status >/dev/null 2>&1; do sleep 1; done
|
20
|
+
|
21
|
+
# Boot the mDNS stack
|
22
|
+
echo '# Start the mDNS stack'
|
23
|
+
sudo supervisorctl start dbus avahi
|
24
|
+
echo
|
25
|
+
|
26
|
+
function watch-make-test()
|
27
|
+
{
|
28
|
+
while [ 1 ]; do
|
29
|
+
inotifywait --quiet -r `pwd` -e close_write --format '%e -> %w%f'
|
30
|
+
make test
|
31
|
+
done
|
32
|
+
}
|
33
|
+
|
34
|
+
function watch-make()
|
35
|
+
{
|
36
|
+
while [ 1 ]; do
|
37
|
+
inotifywait --quiet -r `pwd` -e close_write --format '%e -> %w%f'
|
38
|
+
make $@
|
39
|
+
done
|
40
|
+
}
|
41
|
+
|
42
|
+
function watch-run()
|
43
|
+
{
|
44
|
+
while [ 1 ]; do
|
45
|
+
inotifywait --quiet -r `pwd` -e close_write --format '%e -> %w%f'
|
46
|
+
bash -c "$@"
|
47
|
+
done
|
48
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
|
2
|
+
"\e[1;5C": forward-word
|
3
|
+
"\e[1;5D": backward-word
|
4
|
+
"\e[5C": forward-word
|
5
|
+
"\e[5D": backward-word
|
6
|
+
"\e\e[C": forward-word
|
7
|
+
"\e\e[D": backward-word
|
8
|
+
|
9
|
+
# handle common Home/End escape codes
|
10
|
+
"\e[1~": beginning-of-line
|
11
|
+
"\e[4~": end-of-line
|
12
|
+
"\e[7~": beginning-of-line
|
13
|
+
"\e[8~": end-of-line
|
14
|
+
"\eOH": beginning-of-line
|
15
|
+
"\eOF": end-of-line
|
16
|
+
"\e[H": beginning-of-line
|
17
|
+
"\e[F": end-of-line
|
data/conversejs.gemspec
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
|
2
3
|
lib = File.expand_path('lib', __dir__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
@@ -29,10 +30,13 @@ Gem::Specification.new do |spec|
|
|
29
30
|
spec.add_dependency 'railties', '>= 4.2.0'
|
30
31
|
|
31
32
|
spec.add_development_dependency 'bundler', '>= 1.16', '< 3'
|
33
|
+
spec.add_development_dependency 'rails', '>= 4.2.0', '< 6'
|
32
34
|
spec.add_development_dependency 'rake', '~> 10.0'
|
33
35
|
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
36
|
spec.add_development_dependency 'rspec-rails', '~> 3.7'
|
37
|
+
spec.add_development_dependency 'rubocop', '~> 0.63.1'
|
38
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 1.31'
|
39
|
+
spec.add_development_dependency 'simplecov', '< 0.18'
|
40
|
+
spec.add_development_dependency 'yard', '~> 0.9.18'
|
41
|
+
spec.add_development_dependency 'yard-activesupport-concern', '~> 0.0.1'
|
38
42
|
end
|
data/docker-compose.yml
ADDED
data/lib/conversejs/rails.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conversejs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Vogt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -44,6 +44,26 @@ dependencies:
|
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '3'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rails
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 4.2.0
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '6'
|
57
|
+
type: :development
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 4.2.0
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '6'
|
47
67
|
- !ruby/object:Gem::Dependency
|
48
68
|
name: rake
|
49
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,53 +93,89 @@ dependencies:
|
|
73
93
|
- !ruby/object:Gem::Version
|
74
94
|
version: '3.0'
|
75
95
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
96
|
+
name: rspec-rails
|
77
97
|
requirement: !ruby/object:Gem::Requirement
|
78
98
|
requirements:
|
79
99
|
- - "~>"
|
80
100
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
101
|
+
version: '3.7'
|
82
102
|
type: :development
|
83
103
|
prerelease: false
|
84
104
|
version_requirements: !ruby/object:Gem::Requirement
|
85
105
|
requirements:
|
86
106
|
- - "~>"
|
87
107
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
108
|
+
version: '3.7'
|
89
109
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
110
|
+
name: rubocop
|
91
111
|
requirement: !ruby/object:Gem::Requirement
|
92
112
|
requirements:
|
93
|
-
- - "
|
113
|
+
- - "~>"
|
94
114
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
96
|
-
|
115
|
+
version: 0.63.1
|
116
|
+
type: :development
|
117
|
+
prerelease: false
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - "~>"
|
97
121
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
122
|
+
version: 0.63.1
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: rubocop-rspec
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '1.31'
|
99
130
|
type: :development
|
100
131
|
prerelease: false
|
101
132
|
version_requirements: !ruby/object:Gem::Requirement
|
102
133
|
requirements:
|
103
|
-
- - "
|
134
|
+
- - "~>"
|
104
135
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
136
|
+
version: '1.31'
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
name: simplecov
|
139
|
+
requirement: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
106
141
|
- - "<"
|
107
142
|
- !ruby/object:Gem::Version
|
108
|
-
version: '
|
143
|
+
version: '0.18'
|
144
|
+
type: :development
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - "<"
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0.18'
|
109
151
|
- !ruby/object:Gem::Dependency
|
110
|
-
name:
|
152
|
+
name: yard
|
111
153
|
requirement: !ruby/object:Gem::Requirement
|
112
154
|
requirements:
|
113
155
|
- - "~>"
|
114
156
|
- !ruby/object:Gem::Version
|
115
|
-
version:
|
157
|
+
version: 0.9.18
|
116
158
|
type: :development
|
117
159
|
prerelease: false
|
118
160
|
version_requirements: !ruby/object:Gem::Requirement
|
119
161
|
requirements:
|
120
162
|
- - "~>"
|
121
163
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
164
|
+
version: 0.9.18
|
165
|
+
- !ruby/object:Gem::Dependency
|
166
|
+
name: yard-activesupport-concern
|
167
|
+
requirement: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - "~>"
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: 0.0.1
|
172
|
+
type: :development
|
173
|
+
prerelease: false
|
174
|
+
version_requirements: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - "~>"
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: 0.0.1
|
123
179
|
description:
|
124
180
|
email:
|
125
181
|
- henning.vogt@hausgold.de
|
@@ -128,18 +184,29 @@ extensions: []
|
|
128
184
|
extra_rdoc_files: []
|
129
185
|
files:
|
130
186
|
- ".editorconfig"
|
187
|
+
- ".github/workflows/documentation.yml"
|
188
|
+
- ".github/workflows/test.yml"
|
131
189
|
- ".gitignore"
|
132
190
|
- ".rspec"
|
191
|
+
- ".rubocop.yml"
|
133
192
|
- ".simplecov"
|
134
|
-
- ".
|
193
|
+
- ".yardopts"
|
194
|
+
- CHANGELOG.md
|
195
|
+
- Dockerfile
|
196
|
+
- Envfile
|
135
197
|
- Gemfile
|
136
|
-
- LICENSE
|
198
|
+
- LICENSE
|
199
|
+
- Makefile
|
137
200
|
- README.md
|
138
201
|
- Rakefile
|
139
202
|
- bin/console
|
140
203
|
- bin/setup
|
204
|
+
- config/docker/.bash_profile
|
205
|
+
- config/docker/.bashrc
|
206
|
+
- config/docker/.inputrc
|
141
207
|
- conversejs.gemspec
|
142
208
|
- doc/assets/project.svg
|
209
|
+
- docker-compose.yml
|
143
210
|
- lib/conversejs.rb
|
144
211
|
- lib/conversejs/rails.rb
|
145
212
|
- lib/conversejs/rails/engine.rb
|
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
|
3
|
-
env:
|
4
|
-
global:
|
5
|
-
- CC_TEST_REPORTER_ID=129457facefbaf40be0ab9fc85dfb6676b4294e1031cfb18b4de490ddb4bd6bc
|
6
|
-
|
7
|
-
language: ruby
|
8
|
-
rvm:
|
9
|
-
- 2.6
|
10
|
-
- 2.5
|
11
|
-
- 2.4
|
12
|
-
- 2.3
|
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
|