Skip to content

Commit 6f4d894

Browse files
author
Erik Petersen
committed
Merge remote-tracking branch 'upstream/main'
2 parents 6f60f44 + 271ee63 commit 6f4d894

31 files changed

+3986
-1047
lines changed

.github/workflows/build.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Build
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
os: [ubuntu-latest]
9+
ruby: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2']
10+
runs-on: ${{ matrix.os }}
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: ruby/setup-ruby@v1
14+
with:
15+
ruby-version: ${{ matrix.ruby }}
16+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
17+
- run: bundle exec rake

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.bundle
22
.ruby-version
3+
.ruby-gemset
34
.yardoc
45
*.gem
56
coverage

.rubocop.yml

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
Style/ClassAndModuleChildren:
2+
Enabled: false
3+
Style/Documentation:
4+
Enabled: false
5+
Style/HashSyntax:
6+
Enabled: false # Disabled to support older ruby versions
7+
Style/MutableConstant:
8+
Enabled: false
9+
Style/FormatString:
10+
Enabled: false
11+
12+
Lint/RescueException:
13+
Enabled: false
14+
Lint/InheritException:
15+
Enabled: false
16+
17+
# Disabling these new cops to keep parity with older Rubocop used for Ruby <=
18+
# 3.0. Ideally, each of these should be checked, to choose whether to fix the
19+
# offenses and enable it, or keep it disabled.
20+
Lint/ScriptPermission:
21+
Enabled: false
22+
Style/FrozenStringLiteralComment:
23+
Enabled: false
24+
Lint/RedundantRequireStatement:
25+
Enabled: false
26+
Style/IfUnlessModifier:
27+
Enabled: false
28+
Style/RedundantFileExtensionInRequire:
29+
Enabled: false
30+
Style/ZeroLengthPredicate:
31+
Enabled: false
32+
Style/SoleNestedConditional:
33+
Enabled: false
34+
Style/OptionalBooleanParameter:
35+
Enabled: false
36+
Style/SafeNavigation:
37+
Enabled: false
38+
Style/AccessorGrouping:
39+
Enabled: false
40+
Layout/EmptyLineAfterGuardClause:
41+
Enabled: false
42+
Style/NumericPredicate:
43+
Enabled: false
44+
Style/RedundantReturn:
45+
Enabled: false
46+
Naming/RescuedExceptionsVariableName:
47+
Enabled: false
48+
Style/ClassEqualityComparison:
49+
Enabled: false
50+
Style/CaseLikeIf:
51+
Enabled: false
52+
Style/UnpackFirst:
53+
Enabled: false
54+
Layout/EmptyLineAfterGuardClause:
55+
Enabled: false
56+
Layout/LineLength:
57+
Enabled: false
58+
Lint/DuplicateMethods:
59+
Enabled: false
60+
Style/StringConcatenation:
61+
Enabled: false
62+
Lint/Void:
63+
Enabled: false
64+
Style/GlobalStdStream:
65+
Enabled: false
66+
Layout/EmptyLinesAroundAttributeAccessor:
67+
Enabled: false
68+
69+
# TODO: Enable this and fix offenses
70+
Metrics:
71+
Enabled: false
72+
73+
AllCops:
74+
Include:
75+
- 'lib/**/*'
76+
Exclude:
77+
- 'Gemfile'
78+
- 'Rakefile'
79+
- 'mqtt.gemspec'
80+
- 'examples/**'
81+
- 'spec/**/*'
82+
- 'vendor/**/*'

.travis.yml

-6
This file was deleted.

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
source "http://rubygems.org"
1+
source "https://rubygems.org"
22

33
# Gem's dependencies are specified in mqtt.gemspec
44
gemspec

NEWS.md

+28
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,34 @@
11
Ruby MQTT NEWS
22
==============
33

4+
Ruby MQTT Version 0.5.0 (2017-04-16)
5+
------------------------------------
6+
7+
* Switched default protocol version to 3.1.1
8+
* Added support for Server Name Identification (SNI)
9+
* Fix for unescaping user/password in URI
10+
* Fix for bug in MQTT::Proxy class
11+
* Add the ability to ignore retained packets when subscribed.
12+
* Fix problem of wrong Puback packet ID
13+
* Don't keepalive ping if disconnected
14+
* Immediately close socket after failed Connack
15+
* FakeServer improvements
16+
* Fix for working with mathn library.
17+
18+
19+
Ruby MQTT Version 0.4.0 (2016-06-27)
20+
------------------------------------
21+
22+
* Added puback handling for QoS level 1
23+
* Low-level MQTT-SN packet parsing support
24+
* Allow certs to be set directly instead of just by file
25+
* Allow keyphrase for certs to be passed through
26+
* Put 'disconnect' inside an 'ensure' block
27+
* Fix for error on publish with frozen payload
28+
* Fix for packets always getting id 1
29+
* Improvements to tests
30+
31+
432
Ruby MQTT Version 0.3.1 (2014-10-10)
533
------------------------------------
634

0 commit comments

Comments
 (0)