conversejs 3.5.0 → 3.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3f66f123dd141b971701ec78ebd72e4175212f0bf426fc53662ea4d03668622
4
- data.tar.gz: 1b5a8e6130635f5555fc3dfcfe9524baa6408c87d8bda70cbf1ff4c71bc79b75
3
+ metadata.gz: d92763234c3e4f058aab595d50dd71c3fb55e16cbe732e4be17271f3c3d96ec1
4
+ data.tar.gz: b09ab2615605ad75f606cfd4477191b369f046f62bdef909aac6340b812f84ad
5
5
  SHA512:
6
- metadata.gz: 5cddc8fe1016473258596994f7f1d47d68b9bea0c7fb01cf9ae4d88e466430284c285cdcdf88957fae04fa209c9a68d72ea110db3736b47ef9c481f8c34325dc
7
- data.tar.gz: eadb7f0bc585a8a39d5e3ef570066221cc1d629943b8a7099e3d559b264dd7c67878fb87f194d6f5359ef54d367d10c96eba7ab2cd80d4e6039fe8b7995a6963
6
+ metadata.gz: 9acc3ddd41129d4863ef7b731a74441aa3fb5761126e7bff2dc2369c820b85f446fd4c2f07ee0413b13831ad6d94593a36cd453bfb2f6c18eccc4f9a7cafee38
7
+ data.tar.gz: 524eb9ad3db5139976ead0abbf330b20200a4021b1d26b817e561441ba1c057cc64ed76bbbdc932aead80ec9afa8d47ee5cb62387c1e9946c85bd0e4b275cc4a
@@ -18,19 +18,20 @@ jobs:
18
18
  runs-on: ubuntu-22.04
19
19
  timeout-minutes: 5
20
20
  steps:
21
- - uses: actions/checkout@v3
21
+ - uses: actions/checkout@v4
22
22
 
23
- - name: Install Ruby 2.5
23
+ - name: Install Ruby 2.7
24
24
  uses: ruby/setup-ruby@v1
25
25
  with:
26
- ruby-version: 2.5
26
+ ruby-version: 2.7
27
27
  bundler-cache: true
28
- rubygems: '3.3.26'
28
+ rubygems: '3.4.22'
29
29
 
30
30
  - name: Prepare the virtual environment
31
31
  uses: hausgold/actions/ci@master
32
32
  with:
33
33
  clone_token: '${{ secrets.CLONE_TOKEN }}'
34
+ settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
34
35
  settings: '${{ github.repository }}'
35
36
  target: ci/gem-test
36
37
 
@@ -45,3 +46,9 @@ jobs:
45
46
 
46
47
  - name: Push the release Git commit/tag and package to the registry
47
48
  run: make release
49
+
50
+ - name: Build and upload application documentation
51
+ run: api-docs && coverage --docs-only
52
+ env:
53
+ WORKFLOW_DISPATCH_TOKEN: '${{ secrets.WORKFLOW_DISPATCH_TOKEN }}'
54
+ GITHUB_TAG: 'v${{ github.event.inputs.VERSION }}'
@@ -18,24 +18,25 @@ jobs:
18
18
  strategy:
19
19
  fail-fast: false
20
20
  matrix:
21
- ruby: ['2.5', '2.7']
22
- rails: ['5.2']
21
+ ruby: ['2.7']
22
+ rails: ['5.2', '6.1']
23
23
  env:
24
24
  BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
25
25
  steps:
26
- - uses: actions/checkout@v3
26
+ - uses: actions/checkout@v4
27
27
 
28
28
  - name: Install the correct Ruby version
29
29
  uses: ruby/setup-ruby@v1
30
30
  with:
31
31
  ruby-version: ${{ matrix.ruby }}
32
32
  bundler-cache: true
33
- rubygems: '3.3.26'
33
+ rubygems: '3.4.22'
34
34
 
35
35
  - name: Prepare the virtual environment
36
36
  uses: hausgold/actions/ci@master
37
37
  with:
38
38
  clone_token: '${{ secrets.CLONE_TOKEN }}'
39
+ settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
39
40
  settings: '${{ github.repository }}'
40
41
  target: ci/gem-test
41
42
 
@@ -44,20 +45,3 @@ jobs:
44
45
 
45
46
  - name: Upload the code coverage report
46
47
  run: coverage
47
-
48
- trigger-docs:
49
- name: Trigger the documentation upload
50
- runs-on: ubuntu-22.04
51
- timeout-minutes: 2
52
- needs: test
53
- if: github.ref == 'refs/heads/master'
54
- steps:
55
- - name: Prepare the virtual environment
56
- uses: hausgold/actions/ci@master
57
- with:
58
- clone_token: '${{ secrets.CLONE_TOKEN }}'
59
- settings: '${{ github.repository }}'
60
- target: ci/noop
61
-
62
- - name: Trigger the documentation upload
63
- run: workflow documentation
data/.gitignore CHANGED
@@ -6,6 +6,7 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /log/
9
10
  /spec/dummy/tmp
10
11
  /spec/dummy/log
11
12
  /vendor/
data/.rubocop.yml CHANGED
@@ -12,7 +12,7 @@ AllCops:
12
12
  NewCops: enable
13
13
  SuggestExtensions: false
14
14
  DisplayCopNames: true
15
- TargetRubyVersion: 2.5
15
+ TargetRubyVersion: 2.7
16
16
  TargetRailsVersion: 5.2
17
17
  Exclude:
18
18
  - bin/**/*
data/Appraisals CHANGED
@@ -3,3 +3,7 @@
3
3
  appraise 'rails-5.2' do
4
4
  gem 'railties', '~> 5.2.0'
5
5
  end
6
+
7
+ appraise 'rails-6.1' do
8
+ gem 'railties', '~> 6.1.0'
9
+ end
data/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  * TODO: Replace this bullet point with an actual description of a change.
4
4
 
5
+ ### 3.6.1
6
+
7
+ * Added API docs building to continuous integration (#7)
8
+
9
+ ### 3.6.0
10
+
11
+ * Moved the development dependencies from the gemspec to the Gemfile (#5)
12
+ * Dropped support for Ruby <2.7 (#6)
13
+
5
14
  ### 3.5.0
6
15
 
7
16
  * Added support for Gem release automation
data/Dockerfile CHANGED
@@ -1,8 +1,8 @@
1
- FROM hausgold/ruby:2.5
1
+ FROM hausgold/ruby:2.7
2
2
  MAINTAINER Hermann Mayer <hermann.mayer@hausgold.de>
3
3
 
4
4
  # Update system gem
5
- RUN gem update --system '3.3.26'
5
+ RUN gem update --system '3.4.22'
6
6
 
7
7
  # Install system packages and the latest bundler
8
8
  RUN apt-get update -yqqq && \
@@ -11,7 +11,7 @@ RUN apt-get update -yqqq && \
11
11
  ca-certificates \
12
12
  bash-completion inotify-tools && \
13
13
  echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && /usr/sbin/locale-gen && \
14
- gem install bundler -v '~> 2.3.0' --no-document --no-prerelease
14
+ gem install bundler -v '~> 2.4.22' --no-document --no-prerelease
15
15
 
16
16
  # Add new web user
17
17
  RUN mkdir /app && \
data/Gemfile CHANGED
@@ -6,3 +6,19 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
6
 
7
7
  # Specify your gem's dependencies in conversejs.gemspec
8
8
  gemspec
9
+
10
+ # Development dependencies
11
+ gem 'appraisal', '~> 2.4'
12
+ gem 'bundler', '~> 2.3'
13
+ gem 'countless', '~> 1.1'
14
+ gem 'guard-rspec', '~> 4.7'
15
+ gem 'rails', '>= 5.2'
16
+ gem 'rake', '~> 13.0'
17
+ gem 'rspec', '~> 3.12'
18
+ gem 'rspec-rails', '~> 5.1'
19
+ gem 'rubocop', '~> 1.28'
20
+ gem 'rubocop-rails', '~> 2.14'
21
+ gem 'rubocop-rspec', '~> 2.10'
22
+ gem 'simplecov', '>= 0.22'
23
+ gem 'yard', '>= 0.9.28'
24
+ gem 'yard-activesupport-concern', '>= 0.0.1'
data/Makefile CHANGED
@@ -24,6 +24,7 @@ GREP ?= grep
24
24
  ID ?= id
25
25
  MKDIR ?= mkdir
26
26
  RM ?= rm
27
+ TEST ?= test
27
28
  XARGS ?= xargs
28
29
 
29
30
  # Container binaries
@@ -35,6 +36,7 @@ RAKE ?= rake
35
36
  RSPEC ?= rspec
36
37
  RUBOCOP ?= rubocop
37
38
  YARD ?= yard
39
+ RUBY_VERSION := ruby-version
38
40
 
39
41
  # Files
40
42
  GEMFILES ?= $(subst _,-,$(patsubst $(GEMFILES_DIR)/%.gemfile,%,\
@@ -113,7 +115,8 @@ test-style: \
113
115
 
114
116
  test-style-ruby:
115
117
  # Run the static code analyzer (rubocop)
116
- @$(call run-shell,$(BUNDLE) exec $(RUBOCOP) -a)
118
+ @$(call run-shell,$(BUNDLE) exec $(RUBOCOP) -a \
119
+ || ($(TEST) $$($(RUBY_VERSION)) != '2.7' && true))
117
120
 
118
121
  clean:
119
122
  # Clean the dependencies
@@ -16,7 +16,9 @@ sudo sed -i 's/autostart=.*/autostart=false/g' /etc/supervisor/conf.d/*
16
16
  sudo supervisord >/dev/null 2>&1 &
17
17
 
18
18
  # Wait for supervisord
19
- while ! supervisorctl status >/dev/null 2>&1; do sleep 1; done
19
+ while ! (sudo supervisorctl status | grep avahi) >/dev/null 2>&1; do
20
+ sleep 1
21
+ done
20
22
 
21
23
  # Boot the mDNS stack
22
24
  echo '# Start the mDNS stack'
data/conversejs.gemspec CHANGED
@@ -31,22 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ['lib']
33
33
 
34
- spec.required_ruby_version = '>= 2.5'
35
-
36
- spec.add_dependency 'railties', '>= 5.2'
37
-
38
- spec.add_development_dependency 'appraisal', '~> 2.4'
39
- spec.add_development_dependency 'bundler', '~> 2.3'
40
- spec.add_development_dependency 'countless', '~> 1.1'
41
- spec.add_development_dependency 'guard-rspec', '~> 4.7'
42
- spec.add_development_dependency 'rails', '>= 5.2'
43
- spec.add_development_dependency 'rake', '~> 13.0'
44
- spec.add_development_dependency 'rspec', '~> 3.12'
45
- spec.add_development_dependency 'rspec-rails', '~> 5.1'
46
- spec.add_development_dependency 'rubocop', '~> 1.28'
47
- spec.add_development_dependency 'rubocop-rails', '~> 2.14'
48
- spec.add_development_dependency 'rubocop-rspec', '~> 2.10'
49
- spec.add_development_dependency 'simplecov', '>= 0.22'
50
- spec.add_development_dependency 'yard', '>= 0.9.28'
51
- spec.add_development_dependency 'yard-activesupport-concern', '>= 0.0.1'
34
+ spec.required_ruby_version = '>= 2.7'
35
+
36
+ spec.add_runtime_dependency 'railties', '>= 5.2', '< 7.0'
52
37
  end
@@ -2,6 +2,20 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "appraisal", "~> 2.4"
6
+ gem "bundler", "~> 2.3"
7
+ gem "countless", "~> 1.1"
8
+ gem "guard-rspec", "~> 4.7"
9
+ gem "rails", ">= 5.2"
10
+ gem "rake", "~> 13.0"
11
+ gem "rspec", "~> 3.12"
12
+ gem "rspec-rails", "~> 5.1"
13
+ gem "rubocop", "~> 1.28"
14
+ gem "rubocop-rails", "~> 2.14"
15
+ gem "rubocop-rspec", "~> 2.10"
16
+ gem "simplecov", ">= 0.22"
17
+ gem "yard", ">= 0.9.28"
18
+ gem "yard-activesupport-concern", ">= 0.0.1"
5
19
  gem "railties", "~> 5.2.0"
6
20
 
7
21
  gemspec path: "../"
@@ -0,0 +1,21 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal", "~> 2.4"
6
+ gem "bundler", "~> 2.3"
7
+ gem "countless", "~> 1.1"
8
+ gem "guard-rspec", "~> 4.7"
9
+ gem "rails", ">= 5.2"
10
+ gem "rake", "~> 13.0"
11
+ gem "rspec", "~> 3.12"
12
+ gem "rspec-rails", "~> 5.1"
13
+ gem "rubocop", "~> 1.28"
14
+ gem "rubocop-rails", "~> 2.14"
15
+ gem "rubocop-rspec", "~> 2.10"
16
+ gem "simplecov", ">= 0.22"
17
+ gem "yard", ">= 0.9.28"
18
+ gem "yard-activesupport-concern", ">= 0.0.1"
19
+ gem "railties", "~> 6.1.0"
20
+
21
+ gemspec path: "../"
@@ -4,7 +4,7 @@ module Conversejs
4
4
  # The gem version details.
5
5
  module Rails
6
6
  # The version of the +conversejs+ gem
7
- VERSION = '3.5.0'
7
+ VERSION = '3.6.1'
8
8
 
9
9
  class << self
10
10
  # Returns the version of gem as a string.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conversejs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-02-24 00:00:00.000000000 Z
12
+ date: 2024-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -18,209 +18,19 @@ dependencies:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '5.2'
21
- type: :runtime
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- version: '5.2'
28
- - !ruby/object:Gem::Dependency
29
- name: appraisal
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - "~>"
33
- - !ruby/object:Gem::Version
34
- version: '2.4'
35
- type: :development
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - "~>"
21
+ - - "<"
40
22
  - !ruby/object:Gem::Version
41
- version: '2.4'
42
- - !ruby/object:Gem::Dependency
43
- name: bundler
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - "~>"
47
- - !ruby/object:Gem::Version
48
- version: '2.3'
49
- type: :development
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - "~>"
54
- - !ruby/object:Gem::Version
55
- version: '2.3'
56
- - !ruby/object:Gem::Dependency
57
- name: countless
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - "~>"
61
- - !ruby/object:Gem::Version
62
- version: '1.1'
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '1.1'
70
- - !ruby/object:Gem::Dependency
71
- name: guard-rspec
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - "~>"
75
- - !ruby/object:Gem::Version
76
- version: '4.7'
77
- type: :development
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - "~>"
82
- - !ruby/object:Gem::Version
83
- version: '4.7'
84
- - !ruby/object:Gem::Dependency
85
- name: rails
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: '5.2'
91
- type: :development
23
+ version: '7.0'
24
+ type: :runtime
92
25
  prerelease: false
93
26
  version_requirements: !ruby/object:Gem::Requirement
94
27
  requirements:
95
28
  - - ">="
96
29
  - !ruby/object:Gem::Version
97
30
  version: '5.2'
98
- - !ruby/object:Gem::Dependency
99
- name: rake
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - "~>"
103
- - !ruby/object:Gem::Version
104
- version: '13.0'
105
- type: :development
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - "~>"
110
- - !ruby/object:Gem::Version
111
- version: '13.0'
112
- - !ruby/object:Gem::Dependency
113
- name: rspec
114
- requirement: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - "~>"
117
- - !ruby/object:Gem::Version
118
- version: '3.12'
119
- type: :development
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - "~>"
124
- - !ruby/object:Gem::Version
125
- version: '3.12'
126
- - !ruby/object:Gem::Dependency
127
- name: rspec-rails
128
- requirement: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - "~>"
131
- - !ruby/object:Gem::Version
132
- version: '5.1'
133
- type: :development
134
- prerelease: false
135
- version_requirements: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: '5.1'
140
- - !ruby/object:Gem::Dependency
141
- name: rubocop
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - "~>"
145
- - !ruby/object:Gem::Version
146
- version: '1.28'
147
- type: :development
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - "~>"
152
- - !ruby/object:Gem::Version
153
- version: '1.28'
154
- - !ruby/object:Gem::Dependency
155
- name: rubocop-rails
156
- requirement: !ruby/object:Gem::Requirement
157
- requirements:
158
- - - "~>"
159
- - !ruby/object:Gem::Version
160
- version: '2.14'
161
- type: :development
162
- prerelease: false
163
- version_requirements: !ruby/object:Gem::Requirement
164
- requirements:
165
- - - "~>"
166
- - !ruby/object:Gem::Version
167
- version: '2.14'
168
- - !ruby/object:Gem::Dependency
169
- name: rubocop-rspec
170
- requirement: !ruby/object:Gem::Requirement
171
- requirements:
172
- - - "~>"
173
- - !ruby/object:Gem::Version
174
- version: '2.10'
175
- type: :development
176
- prerelease: false
177
- version_requirements: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - "~>"
180
- - !ruby/object:Gem::Version
181
- version: '2.10'
182
- - !ruby/object:Gem::Dependency
183
- name: simplecov
184
- requirement: !ruby/object:Gem::Requirement
185
- requirements:
186
- - - ">="
187
- - !ruby/object:Gem::Version
188
- version: '0.22'
189
- type: :development
190
- prerelease: false
191
- version_requirements: !ruby/object:Gem::Requirement
192
- requirements:
193
- - - ">="
194
- - !ruby/object:Gem::Version
195
- version: '0.22'
196
- - !ruby/object:Gem::Dependency
197
- name: yard
198
- requirement: !ruby/object:Gem::Requirement
199
- requirements:
200
- - - ">="
201
- - !ruby/object:Gem::Version
202
- version: 0.9.28
203
- type: :development
204
- prerelease: false
205
- version_requirements: !ruby/object:Gem::Requirement
206
- requirements:
207
- - - ">="
208
- - !ruby/object:Gem::Version
209
- version: 0.9.28
210
- - !ruby/object:Gem::Dependency
211
- name: yard-activesupport-concern
212
- requirement: !ruby/object:Gem::Requirement
213
- requirements:
214
- - - ">="
215
- - !ruby/object:Gem::Version
216
- version: 0.0.1
217
- type: :development
218
- prerelease: false
219
- version_requirements: !ruby/object:Gem::Requirement
220
- requirements:
221
- - - ">="
31
+ - - "<"
222
32
  - !ruby/object:Gem::Version
223
- version: 0.0.1
33
+ version: '7.0'
224
34
  description:
225
35
  email:
226
36
  - hermann.mayer92@gmail.com
@@ -230,7 +40,6 @@ extensions: []
230
40
  extra_rdoc_files: []
231
41
  files:
232
42
  - ".editorconfig"
233
- - ".github/workflows/documentation.yml"
234
43
  - ".github/workflows/release.yml"
235
44
  - ".github/workflows/test.yml"
236
45
  - ".gitignore"
@@ -258,6 +67,7 @@ files:
258
67
  - doc/assets/project.svg
259
68
  - docker-compose.yml
260
69
  - gemfiles/rails_5.2.gemfile
70
+ - gemfiles/rails_6.1.gemfile
261
71
  - lib/conversejs.rb
262
72
  - lib/conversejs/rails.rb
263
73
  - lib/conversejs/rails/engine.rb
@@ -281,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
281
91
  requirements:
282
92
  - - ">="
283
93
  - !ruby/object:Gem::Version
284
- version: '2.5'
94
+ version: '2.7'
285
95
  required_rubygems_version: !ruby/object:Gem::Requirement
286
96
  requirements:
287
97
  - - ">="
@@ -1,39 +0,0 @@
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-22.04
13
- timeout-minutes: 5
14
- steps:
15
- - uses: actions/checkout@v3
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
- rubygems: '3.3.26'
23
-
24
- - name: Prepare the virtual environment
25
- uses: hausgold/actions/ci@master
26
- with:
27
- clone_token: '${{ secrets.CLONE_TOKEN }}'
28
- settings: '${{ github.repository }}'
29
- target: ci/gem-test
30
-
31
- - name: Build gem documentation
32
- run: make docs
33
-
34
- - name: Upload the code coverage report
35
- run: coverage
36
-
37
- - name: Add this job to the commit status
38
- run: commit-status '${{ job.status }}'
39
- if: always()