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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9c75dac8a27f93fc8756bb64868aba970a57a5e99267e749820acda6009745f
4
- data.tar.gz: 0ef832f1ca9e28be3226788205339ac92d228ee1ec013d2679d09096df63bfa7
3
+ metadata.gz: 4b088d9d3aeb35ebe2ccd4859de7b6ec9a662862ff4a3967f3b4024c6a1c19d7
4
+ data.tar.gz: f0715c7f69236b628be8ea7b80ffd82e91810dedca081cbb13f1cc49b0a92c47
5
5
  SHA512:
6
- metadata.gz: e00b819611be0ddc22ed5d93e378b1ed4f7546d5b531ab0a57b5cca49b83ecd5832055017d27c214865e1513ef3939960558b964915c182357299d2400656044
7
- data.tar.gz: 57d53b71b510c4455c0064fce28ac11386fe724f5c2f9435d0725d6a5f43fb186bb26e4912aeab7dd2d4b42638325892140f260c97446a3fb746c61c718b80e0
6
+ metadata.gz: db1bde54e70d4dd57593f0c66b0a51be1a31bebc86d2fb3771898dd97302428d7c3a7a356bafb0e0767c331990c90f61c475f9a61ded3993dc474ed79c4b8c55
7
+ data.tar.gz: fade692f1b10693adf0efd4e45a2e64c4684fae77496b089eeadefa6a5b00a4f1a75ef7d900823bc4b644d1b7163359e74befbb6f89eca5a5e3f5e50995297c0
data/.env.example ADDED
@@ -0,0 +1,4 @@
1
+ AWS_CERTIFICATE=
2
+ AWS_PRIVATE_KEY=
3
+ LOCAL_CERTIFICATE=
4
+ LOCAL_PRIVATE_KEY=
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 macklabsinc/mqtt_api_client
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 macklabsinc/mqtt_api_client
15
+ $ gem install mqtt_api_client
16
16
 
17
17
  ## Usage
18
18
 
19
- TODO: Write usage instructions here
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 GitHub at https://github.com/[USERNAME]/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).
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MqttApiClient
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -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.0
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-21 00:00:00.000000000 Z
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
@@ -1,4 +0,0 @@
1
- module MqttApiClient
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end