mqtt_api_client 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.env.example +4 -0
- data/README.md +9 -4
- data/lib/mqtt_api_client/version.rb +1 -1
- data/lib/mqtt_api_client.rb +2 -1
- metadata +3 -4
- data/.rubocop.yml +0 -30
- data/sig/mqtt_api_client.rbs +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b088d9d3aeb35ebe2ccd4859de7b6ec9a662862ff4a3967f3b4024c6a1c19d7
|
4
|
+
data.tar.gz: f0715c7f69236b628be8ea7b80ffd82e91810dedca081cbb13f1cc49b0a92c47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db1bde54e70d4dd57593f0c66b0a51be1a31bebc86d2fb3771898dd97302428d7c3a7a356bafb0e0767c331990c90f61c475f9a61ded3993dc474ed79c4b8c55
|
7
|
+
data.tar.gz: fade692f1b10693adf0efd4e45a2e64c4684fae77496b089eeadefa6a5b00a4f1a75ef7d900823bc4b644d1b7163359e74befbb6f89eca5a5e3f5e50995297c0
|
data/.env.example
ADDED
data/README.md
CHANGED
@@ -8,15 +8,20 @@ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_O
|
|
8
8
|
|
9
9
|
Install the gem and add to the application's Gemfile by executing:
|
10
10
|
|
11
|
-
$ bundle add
|
11
|
+
$ bundle add mqtt_api_client
|
12
12
|
|
13
13
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
14
14
|
|
15
|
-
$ gem install
|
15
|
+
$ gem install mqtt_api_client
|
16
16
|
|
17
17
|
## Usage
|
18
18
|
|
19
|
-
|
19
|
+
```ruby
|
20
|
+
command = MqttApiClient::Command.new(certificate, private_key, "localhost")
|
21
|
+
|
22
|
+
command.health_status
|
23
|
+
command.file_list
|
24
|
+
```
|
20
25
|
|
21
26
|
## Development
|
22
27
|
|
@@ -26,7 +31,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
26
31
|
|
27
32
|
## Contributing
|
28
33
|
|
29
|
-
Bug reports and pull requests are welcome on
|
34
|
+
Bug reports and pull requests are welcome on Bitbucket at https://bitbucket.org/macklabsinc/mqtt_api_client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://bitbucket.com/macklabsinc/mqtt_api_client/blob/master/CODE_OF_CONDUCT.md).
|
30
35
|
|
31
36
|
## License
|
32
37
|
|
data/lib/mqtt_api_client.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "amazing_print"
|
4
|
+
require "dotenv/load"
|
4
5
|
require "mqtt"
|
5
|
-
require_relative "mqtt_api_client/version"
|
6
6
|
require_relative "mqtt_api_client/command"
|
7
|
+
require_relative "mqtt_api_client/version"
|
7
8
|
|
8
9
|
module MqttApiClient
|
9
10
|
class Error < StandardError; end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mqtt_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladyslav Sumskyi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mqtt
|
@@ -31,8 +31,8 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
+
- ".env.example"
|
34
35
|
- ".rspec"
|
35
|
-
- ".rubocop.yml"
|
36
36
|
- CHANGELOG.md
|
37
37
|
- CODE_OF_CONDUCT.md
|
38
38
|
- LICENSE.txt
|
@@ -42,7 +42,6 @@ files:
|
|
42
42
|
- lib/mqtt_api_client.rb
|
43
43
|
- lib/mqtt_api_client/command.rb
|
44
44
|
- lib/mqtt_api_client/version.rb
|
45
|
-
- sig/mqtt_api_client.rbs
|
46
45
|
homepage: https://bitbucket.org/macklabsinc/mqtt_api_client/src/master/
|
47
46
|
licenses:
|
48
47
|
- MIT
|
data/.rubocop.yml
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
require:
|
2
|
-
- rubocop-rake
|
3
|
-
- rubocop-rspec
|
4
|
-
|
5
|
-
AllCops:
|
6
|
-
TargetRubyVersion: 3.1
|
7
|
-
NewCops: enable
|
8
|
-
|
9
|
-
Layout/LineLength:
|
10
|
-
Enabled: false
|
11
|
-
|
12
|
-
Metrics/BlockLength:
|
13
|
-
Enabled: false
|
14
|
-
|
15
|
-
Metrics/MethodLength:
|
16
|
-
Enabled: false
|
17
|
-
|
18
|
-
RSpec/ExampleLength:
|
19
|
-
Enabled: false
|
20
|
-
|
21
|
-
RSpec/MultipleExpectations:
|
22
|
-
Enabled: false
|
23
|
-
|
24
|
-
Style/StringLiterals:
|
25
|
-
Enabled: true
|
26
|
-
EnforcedStyle: double_quotes
|
27
|
-
|
28
|
-
Style/StringLiteralsInInterpolation:
|
29
|
-
Enabled: true
|
30
|
-
EnforcedStyle: double_quotes
|
data/sig/mqtt_api_client.rbs
DELETED