systemdy 0.4.0 → 0.4.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: 1544343d2a581add0354d499edbd139097f169be6dfc17e5ef4c310af3f27121
4
- data.tar.gz: b6e96d3e254f09b8f3f53b7e3ead30f6d4290eb7a28832743552cd0dbd98dbe7
3
+ metadata.gz: 10b3ca235c1abc9f2b8f2fc01fa639cca71bdb57fe3f26dc71f70fccd99fd7bb
4
+ data.tar.gz: 370c09980bd26febb416dc18a2dd45ec75854067a720f663be0575f849f25c79
5
5
  SHA512:
6
- metadata.gz: ada7db214a2832e363ae2b0c4b9a64049adfd1e2a1652e490676da479c8889758343f7501d0b5f4de1733ce7cc17b3772a3bb4362ddac20eb8e6b1c3e4b2845d
7
- data.tar.gz: 649e589fee12a0fdf97cf03c9a7ad5697e59191f08471bec85e2ad6e3e83fa41aafbc27e1b7590a37d5c89150c0ba489fc9b20c310570f4b9fbaf49697a2681f
6
+ metadata.gz: 79534ac6454b7bc62b660d52a7f6bc6be411ff6731d342e8c409daa3a00b36470908b706eee92ff2ce6d55b1102fc612b19c65e1687e6a146cec87b380e32ee3
7
+ data.tar.gz: b39f56ace450d44c2557519156d800182592d2c934112e7000c6eea8a687d3f761e6a68a498a65f83a24263684fdb4bf99f0313e63eda908b4f93bf3960af736
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [0.4.1] - 2022-11-22
2
+
3
+ ### Fixed
4
+
5
+ - Systemdy::Utility::Formatter return_an_array_from error for empty array and nil returned object
6
+
1
7
  ## [0.4.0] - 2022-11-22
2
8
 
3
9
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- systemdy (0.3.2)
4
+ systemdy (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -193,7 +193,7 @@ Once executed, this method return the provided service port:
193
193
  if the provided service has no available port, this method return a message like this:
194
194
 
195
195
  ```ruby
196
- "postgresql.service has no port available"
196
+ "[name_of_the_service].service has no port available"
197
197
  ```
198
198
 
199
199
  ### Get service protocol
@@ -203,7 +203,7 @@ For retrieve a service protocol
203
203
  ```ruby
204
204
  my_postgresql_service.protocol
205
205
  ```
206
- Once executed, this method return the provided service port:
206
+ Once executed, this method return the provided service protocol:
207
207
 
208
208
  ```ruby
209
209
  "tcp"
@@ -212,7 +212,7 @@ Once executed, this method return the provided service port:
212
212
  if the provided service has no available protocol, this method return a message like this:
213
213
 
214
214
  ```ruby
215
- "postgresql.service has no protocol available"
215
+ "[name_of_the_service].service has no protocol available"
216
216
  ```
217
217
 
218
218
  ### Start the service
@@ -79,7 +79,7 @@ module Systemdy
79
79
  define_method info do
80
80
  return default_error_message() unless exist?
81
81
  essential_info = return_an_array_from(`#{INFO_LOOKUP_COMMAND} #{name}`, argument_splitter: ' ')
82
- return info_lookup_error_message(info) if essential_info.nil?
82
+ return info_lookup_error_message(info) if essential_info.nil? || essential_info.empty?
83
83
  return_an_array_from(essential_info[1], argument_splitter: '/')[index]
84
84
  end
85
85
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Systemdy
4
4
  # the current version of the gem
5
- VERSION = "0.4.0"
5
+ VERSION = "0.4.1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: systemdy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - magic4dev