2023-06-03 10:25:27 -06:00
|
|
|
GEM
|
|
|
|
remote: https://rubygems.org/
|
|
|
|
specs:
|
2023-06-03 10:35:25 -06:00
|
|
|
ast (2.4.2)
|
2023-09-19 22:59:57 -06:00
|
|
|
atk (4.2.0)
|
|
|
|
glib2 (= 4.2.0)
|
2023-06-03 12:35:00 -06:00
|
|
|
backport (1.2.0)
|
2023-06-09 19:39:54 -06:00
|
|
|
base64 (0.1.1)
|
2023-06-03 12:35:00 -06:00
|
|
|
benchmark (0.2.1)
|
2023-09-19 22:59:57 -06:00
|
|
|
bigdecimal (3.1.4)
|
Enhancements to Command Execution and Logging Mechanisms
This commit introduces several significant enhancements to the way commands are executed and logged in the application. The changes are primarily focused on improving the robustness, reliability, and transparency of the command execution process, as well as enhancing the quality and usefulness of the log output.
1. Command Execution Enhancements: The use_sudo method has been refactored to handle commands that do not return any output. Previously, the method was designed to capture and return the output of the command being executed. However, some commands (such as modprobe) do not return any output, which caused issues with the previous implementation. The method now checks the exit status of the command to determine whether it was successful or not, and returns a success or failure message accordingly. This change improves the robustness of the command execution process and ensures that it can handle a wider range of commands.
2. Error Handling Improvements: The use_sudo method now includes more comprehensive error handling. If a command fails to execute within a specified timeout period, an error message is logged and the method returns a failure message. Additionally, if a command fails to execute for any other reason, the method logs the error and returns a failure message with the command's exit status. These changes make it easier to identify and troubleshoot issues with command execution.
3. Logging Enhancements: The logging mechanism has been enhanced to provide more detailed and useful information. The use_sudo method now logs the command being executed and its outcome (success or failure). If a command fails, the method logs the command's exit status. These changes improve the transparency of the command execution process and make it easier to identify and troubleshoot issues.
4. Code Refactoring: Several methods have been refactored for improved readability and maintainability. The use_sudo method has been refactored to reduce its complexity and improve its readability. The first_run_setup method has been refactored to ensure that the main interface name and the dummy interface name are properly passed to the setup_traffic_mirroring method.
5. Bug Fixes: A bug in the create_dummy_interface method that caused it to return an array of Alert objects instead of the dummy interface name has been fixed. The method now correctly returns the dummy interface name.
These changes represent a significant improvement to the command execution and logging mechanisms in the application, and lay the groundwork for further enhancements in the future.
2023-07-07 11:25:08 -06:00
|
|
|
cairo (1.17.12)
|
2023-06-07 13:16:49 -06:00
|
|
|
native-package-installer (>= 1.0.3)
|
|
|
|
pkg-config (>= 1.2.2)
|
|
|
|
red-colors
|
2023-09-19 22:59:57 -06:00
|
|
|
cairo-gobject (4.2.0)
|
2023-06-07 13:16:49 -06:00
|
|
|
cairo (>= 1.16.2)
|
2023-09-19 22:59:57 -06:00
|
|
|
glib2 (= 4.2.0)
|
|
|
|
console (1.23.2)
|
2023-06-09 19:39:54 -06:00
|
|
|
fiber-annotation
|
2023-06-03 10:25:27 -06:00
|
|
|
fiber-local
|
|
|
|
curses (1.4.4)
|
2023-06-03 12:35:00 -06:00
|
|
|
diff-lcs (1.5.0)
|
2023-06-09 19:39:54 -06:00
|
|
|
dotenv (2.8.1)
|
2023-09-19 22:59:57 -06:00
|
|
|
dynamic_curses_input (1.2.1)
|
2023-06-09 19:39:54 -06:00
|
|
|
curses
|
2023-07-27 16:23:01 -06:00
|
|
|
reline
|
2023-06-03 12:35:00 -06:00
|
|
|
e2mmap (0.1.0)
|
2023-06-29 22:36:18 -06:00
|
|
|
erubi (1.12.0)
|
2023-06-09 19:39:54 -06:00
|
|
|
fiber-annotation (0.2.0)
|
2023-06-03 10:25:27 -06:00
|
|
|
fiber-local (1.0.0)
|
2023-06-07 13:16:49 -06:00
|
|
|
fiddle (1.1.1)
|
2023-07-27 16:23:01 -06:00
|
|
|
flay (2.13.1)
|
2023-06-29 22:36:18 -06:00
|
|
|
erubi (~> 1.10)
|
|
|
|
path_expander (~> 1.0)
|
|
|
|
ruby_parser (~> 3.0)
|
|
|
|
sexp_processor (~> 4.0)
|
2023-09-19 22:59:57 -06:00
|
|
|
gdk3 (4.2.0)
|
|
|
|
cairo-gobject (= 4.2.0)
|
|
|
|
gdk_pixbuf2 (= 4.2.0)
|
|
|
|
pango (= 4.2.0)
|
|
|
|
gdk_pixbuf2 (4.2.0)
|
|
|
|
gio2 (= 4.2.0)
|
|
|
|
gio2 (4.2.0)
|
2023-06-07 13:16:49 -06:00
|
|
|
fiddle
|
2023-09-19 22:59:57 -06:00
|
|
|
gobject-introspection (= 4.2.0)
|
|
|
|
glib2 (4.2.0)
|
2023-06-07 13:16:49 -06:00
|
|
|
native-package-installer (>= 1.0.3)
|
|
|
|
pkg-config (>= 1.3.5)
|
2023-09-19 22:59:57 -06:00
|
|
|
gobject-introspection (4.2.0)
|
|
|
|
glib2 (= 4.2.0)
|
|
|
|
gtk3 (4.2.0)
|
|
|
|
atk (= 4.2.0)
|
|
|
|
gdk3 (= 4.2.0)
|
2023-07-27 16:23:01 -06:00
|
|
|
io-console (0.6.0)
|
2023-06-03 12:35:00 -06:00
|
|
|
jaro_winkler (1.5.6)
|
2023-06-03 10:35:25 -06:00
|
|
|
json (2.6.3)
|
2023-06-03 12:35:00 -06:00
|
|
|
kramdown (2.4.0)
|
|
|
|
rexml
|
|
|
|
kramdown-parser-gfm (1.1.0)
|
|
|
|
kramdown (~> 2.0)
|
2023-06-07 13:16:49 -06:00
|
|
|
kwalify (0.7.2)
|
Enhancements to Command Execution and Logging Mechanisms
This commit introduces several significant enhancements to the way commands are executed and logged in the application. The changes are primarily focused on improving the robustness, reliability, and transparency of the command execution process, as well as enhancing the quality and usefulness of the log output.
1. Command Execution Enhancements: The use_sudo method has been refactored to handle commands that do not return any output. Previously, the method was designed to capture and return the output of the command being executed. However, some commands (such as modprobe) do not return any output, which caused issues with the previous implementation. The method now checks the exit status of the command to determine whether it was successful or not, and returns a success or failure message accordingly. This change improves the robustness of the command execution process and ensures that it can handle a wider range of commands.
2. Error Handling Improvements: The use_sudo method now includes more comprehensive error handling. If a command fails to execute within a specified timeout period, an error message is logged and the method returns a failure message. Additionally, if a command fails to execute for any other reason, the method logs the error and returns a failure message with the command's exit status. These changes make it easier to identify and troubleshoot issues with command execution.
3. Logging Enhancements: The logging mechanism has been enhanced to provide more detailed and useful information. The use_sudo method now logs the command being executed and its outcome (success or failure). If a command fails, the method logs the command's exit status. These changes improve the transparency of the command execution process and make it easier to identify and troubleshoot issues.
4. Code Refactoring: Several methods have been refactored for improved readability and maintainability. The use_sudo method has been refactored to reduce its complexity and improve its readability. The first_run_setup method has been refactored to ensure that the main interface name and the dummy interface name are properly passed to the setup_traffic_mirroring method.
5. Bug Fixes: A bug in the create_dummy_interface method that caused it to return an array of Alert objects instead of the dummy interface name has been fixed. The method now correctly returns the dummy interface name.
These changes represent a significant improvement to the command execution and logging mechanisms in the application, and lay the groundwork for further enhancements in the future.
2023-07-07 11:25:08 -06:00
|
|
|
language_server-protocol (3.17.0.3)
|
2023-06-07 13:16:49 -06:00
|
|
|
matrix (0.4.2)
|
2023-06-03 13:38:30 -06:00
|
|
|
mysql2 (0.5.5)
|
Enhancements to Command Execution and Logging Mechanisms
This commit introduces several significant enhancements to the way commands are executed and logged in the application. The changes are primarily focused on improving the robustness, reliability, and transparency of the command execution process, as well as enhancing the quality and usefulness of the log output.
1. Command Execution Enhancements: The use_sudo method has been refactored to handle commands that do not return any output. Previously, the method was designed to capture and return the output of the command being executed. However, some commands (such as modprobe) do not return any output, which caused issues with the previous implementation. The method now checks the exit status of the command to determine whether it was successful or not, and returns a success or failure message accordingly. This change improves the robustness of the command execution process and ensures that it can handle a wider range of commands.
2. Error Handling Improvements: The use_sudo method now includes more comprehensive error handling. If a command fails to execute within a specified timeout period, an error message is logged and the method returns a failure message. Additionally, if a command fails to execute for any other reason, the method logs the error and returns a failure message with the command's exit status. These changes make it easier to identify and troubleshoot issues with command execution.
3. Logging Enhancements: The logging mechanism has been enhanced to provide more detailed and useful information. The use_sudo method now logs the command being executed and its outcome (success or failure). If a command fails, the method logs the command's exit status. These changes improve the transparency of the command execution process and make it easier to identify and troubleshoot issues.
4. Code Refactoring: Several methods have been refactored for improved readability and maintainability. The use_sudo method has been refactored to reduce its complexity and improve its readability. The first_run_setup method has been refactored to ensure that the main interface name and the dummy interface name are properly passed to the setup_traffic_mirroring method.
5. Bug Fixes: A bug in the create_dummy_interface method that caused it to return an array of Alert objects instead of the dummy interface name has been fixed. The method now correctly returns the dummy interface name.
These changes represent a significant improvement to the command execution and logging mechanisms in the application, and lay the groundwork for further enhancements in the future.
2023-07-07 11:25:08 -06:00
|
|
|
native-package-installer (1.1.8)
|
2023-09-19 22:59:57 -06:00
|
|
|
nokogiri (1.15.4-x86_64-linux)
|
2023-06-03 12:35:00 -06:00
|
|
|
racc (~> 1.4)
|
2023-06-09 19:39:54 -06:00
|
|
|
openssl (3.1.0)
|
2023-06-29 22:36:18 -06:00
|
|
|
packetfu (2.0.0)
|
|
|
|
pcaprub (~> 0.13.1)
|
2023-09-19 22:59:57 -06:00
|
|
|
pango (4.2.0)
|
|
|
|
cairo-gobject (= 4.2.0)
|
|
|
|
gobject-introspection (= 4.2.0)
|
2023-06-03 10:35:25 -06:00
|
|
|
parallel (1.23.0)
|
2023-06-09 19:39:54 -06:00
|
|
|
parser (3.2.2.3)
|
2023-06-03 10:35:25 -06:00
|
|
|
ast (~> 2.4.1)
|
2023-06-09 19:39:54 -06:00
|
|
|
racc
|
2023-06-29 22:36:18 -06:00
|
|
|
path_expander (1.1.1)
|
|
|
|
pcaprub (0.13.1)
|
2023-09-19 22:59:57 -06:00
|
|
|
pkg-config (1.5.5)
|
Enhancements to Command Execution and Logging Mechanisms
This commit introduces several significant enhancements to the way commands are executed and logged in the application. The changes are primarily focused on improving the robustness, reliability, and transparency of the command execution process, as well as enhancing the quality and usefulness of the log output.
1. Command Execution Enhancements: The use_sudo method has been refactored to handle commands that do not return any output. Previously, the method was designed to capture and return the output of the command being executed. However, some commands (such as modprobe) do not return any output, which caused issues with the previous implementation. The method now checks the exit status of the command to determine whether it was successful or not, and returns a success or failure message accordingly. This change improves the robustness of the command execution process and ensures that it can handle a wider range of commands.
2. Error Handling Improvements: The use_sudo method now includes more comprehensive error handling. If a command fails to execute within a specified timeout period, an error message is logged and the method returns a failure message. Additionally, if a command fails to execute for any other reason, the method logs the error and returns a failure message with the command's exit status. These changes make it easier to identify and troubleshoot issues with command execution.
3. Logging Enhancements: The logging mechanism has been enhanced to provide more detailed and useful information. The use_sudo method now logs the command being executed and its outcome (success or failure). If a command fails, the method logs the command's exit status. These changes improve the transparency of the command execution process and make it easier to identify and troubleshoot issues.
4. Code Refactoring: Several methods have been refactored for improved readability and maintainability. The use_sudo method has been refactored to reduce its complexity and improve its readability. The first_run_setup method has been refactored to ensure that the main interface name and the dummy interface name are properly passed to the setup_traffic_mirroring method.
5. Bug Fixes: A bug in the create_dummy_interface method that caused it to return an array of Alert objects instead of the dummy interface name has been fixed. The method now correctly returns the dummy interface name.
These changes represent a significant improvement to the command execution and logging mechanisms in the application, and lay the groundwork for further enhancements in the future.
2023-07-07 11:25:08 -06:00
|
|
|
racc (1.7.1)
|
2023-06-03 10:35:25 -06:00
|
|
|
rainbow (3.1.1)
|
2023-06-03 12:35:00 -06:00
|
|
|
rbs (2.8.4)
|
2023-06-07 13:16:49 -06:00
|
|
|
red-colors (0.3.0)
|
|
|
|
matrix
|
|
|
|
reek (6.1.4)
|
|
|
|
kwalify (~> 0.7.0)
|
|
|
|
parser (~> 3.2.0)
|
|
|
|
rainbow (>= 2.0, < 4.0)
|
Enhancements to Command Execution and Logging Mechanisms
This commit introduces several significant enhancements to the way commands are executed and logged in the application. The changes are primarily focused on improving the robustness, reliability, and transparency of the command execution process, as well as enhancing the quality and usefulness of the log output.
1. Command Execution Enhancements: The use_sudo method has been refactored to handle commands that do not return any output. Previously, the method was designed to capture and return the output of the command being executed. However, some commands (such as modprobe) do not return any output, which caused issues with the previous implementation. The method now checks the exit status of the command to determine whether it was successful or not, and returns a success or failure message accordingly. This change improves the robustness of the command execution process and ensures that it can handle a wider range of commands.
2. Error Handling Improvements: The use_sudo method now includes more comprehensive error handling. If a command fails to execute within a specified timeout period, an error message is logged and the method returns a failure message. Additionally, if a command fails to execute for any other reason, the method logs the error and returns a failure message with the command's exit status. These changes make it easier to identify and troubleshoot issues with command execution.
3. Logging Enhancements: The logging mechanism has been enhanced to provide more detailed and useful information. The use_sudo method now logs the command being executed and its outcome (success or failure). If a command fails, the method logs the command's exit status. These changes improve the transparency of the command execution process and make it easier to identify and troubleshoot issues.
4. Code Refactoring: Several methods have been refactored for improved readability and maintainability. The use_sudo method has been refactored to reduce its complexity and improve its readability. The first_run_setup method has been refactored to ensure that the main interface name and the dummy interface name are properly passed to the setup_traffic_mirroring method.
5. Bug Fixes: A bug in the create_dummy_interface method that caused it to return an array of Alert objects instead of the dummy interface name has been fixed. The method now correctly returns the dummy interface name.
These changes represent a significant improvement to the command execution and logging mechanisms in the application, and lay the groundwork for further enhancements in the future.
2023-07-07 11:25:08 -06:00
|
|
|
regexp_parser (2.8.1)
|
2023-09-19 22:59:57 -06:00
|
|
|
reline (0.3.8)
|
2023-07-27 16:23:01 -06:00
|
|
|
io-console (~> 0.5)
|
2023-06-03 12:35:00 -06:00
|
|
|
reverse_markdown (2.1.1)
|
|
|
|
nokogiri
|
2023-07-27 16:23:01 -06:00
|
|
|
rexml (3.2.6)
|
2023-09-19 22:59:57 -06:00
|
|
|
rubocop (1.56.3)
|
|
|
|
base64 (~> 0.1.1)
|
2023-06-03 10:35:25 -06:00
|
|
|
json (~> 2.3)
|
Enhancements to Command Execution and Logging Mechanisms
This commit introduces several significant enhancements to the way commands are executed and logged in the application. The changes are primarily focused on improving the robustness, reliability, and transparency of the command execution process, as well as enhancing the quality and usefulness of the log output.
1. Command Execution Enhancements: The use_sudo method has been refactored to handle commands that do not return any output. Previously, the method was designed to capture and return the output of the command being executed. However, some commands (such as modprobe) do not return any output, which caused issues with the previous implementation. The method now checks the exit status of the command to determine whether it was successful or not, and returns a success or failure message accordingly. This change improves the robustness of the command execution process and ensures that it can handle a wider range of commands.
2. Error Handling Improvements: The use_sudo method now includes more comprehensive error handling. If a command fails to execute within a specified timeout period, an error message is logged and the method returns a failure message. Additionally, if a command fails to execute for any other reason, the method logs the error and returns a failure message with the command's exit status. These changes make it easier to identify and troubleshoot issues with command execution.
3. Logging Enhancements: The logging mechanism has been enhanced to provide more detailed and useful information. The use_sudo method now logs the command being executed and its outcome (success or failure). If a command fails, the method logs the command's exit status. These changes improve the transparency of the command execution process and make it easier to identify and troubleshoot issues.
4. Code Refactoring: Several methods have been refactored for improved readability and maintainability. The use_sudo method has been refactored to reduce its complexity and improve its readability. The first_run_setup method has been refactored to ensure that the main interface name and the dummy interface name are properly passed to the setup_traffic_mirroring method.
5. Bug Fixes: A bug in the create_dummy_interface method that caused it to return an array of Alert objects instead of the dummy interface name has been fixed. The method now correctly returns the dummy interface name.
These changes represent a significant improvement to the command execution and logging mechanisms in the application, and lay the groundwork for further enhancements in the future.
2023-07-07 11:25:08 -06:00
|
|
|
language_server-protocol (>= 3.17.0)
|
2023-06-03 10:35:25 -06:00
|
|
|
parallel (~> 1.10)
|
Enhancements to Command Execution and Logging Mechanisms
This commit introduces several significant enhancements to the way commands are executed and logged in the application. The changes are primarily focused on improving the robustness, reliability, and transparency of the command execution process, as well as enhancing the quality and usefulness of the log output.
1. Command Execution Enhancements: The use_sudo method has been refactored to handle commands that do not return any output. Previously, the method was designed to capture and return the output of the command being executed. However, some commands (such as modprobe) do not return any output, which caused issues with the previous implementation. The method now checks the exit status of the command to determine whether it was successful or not, and returns a success or failure message accordingly. This change improves the robustness of the command execution process and ensures that it can handle a wider range of commands.
2. Error Handling Improvements: The use_sudo method now includes more comprehensive error handling. If a command fails to execute within a specified timeout period, an error message is logged and the method returns a failure message. Additionally, if a command fails to execute for any other reason, the method logs the error and returns a failure message with the command's exit status. These changes make it easier to identify and troubleshoot issues with command execution.
3. Logging Enhancements: The logging mechanism has been enhanced to provide more detailed and useful information. The use_sudo method now logs the command being executed and its outcome (success or failure). If a command fails, the method logs the command's exit status. These changes improve the transparency of the command execution process and make it easier to identify and troubleshoot issues.
4. Code Refactoring: Several methods have been refactored for improved readability and maintainability. The use_sudo method has been refactored to reduce its complexity and improve its readability. The first_run_setup method has been refactored to ensure that the main interface name and the dummy interface name are properly passed to the setup_traffic_mirroring method.
5. Bug Fixes: A bug in the create_dummy_interface method that caused it to return an array of Alert objects instead of the dummy interface name has been fixed. The method now correctly returns the dummy interface name.
These changes represent a significant improvement to the command execution and logging mechanisms in the application, and lay the groundwork for further enhancements in the future.
2023-07-07 11:25:08 -06:00
|
|
|
parser (>= 3.2.2.3)
|
2023-06-03 10:35:25 -06:00
|
|
|
rainbow (>= 2.2.2, < 4.0)
|
|
|
|
regexp_parser (>= 1.8, < 3.0)
|
|
|
|
rexml (>= 3.2.5, < 4.0)
|
2023-07-27 16:23:01 -06:00
|
|
|
rubocop-ast (>= 1.28.1, < 2.0)
|
2023-06-03 10:35:25 -06:00
|
|
|
ruby-progressbar (~> 1.7)
|
|
|
|
unicode-display_width (>= 2.4.0, < 3.0)
|
|
|
|
rubocop-ast (1.29.0)
|
|
|
|
parser (>= 3.2.1.0)
|
|
|
|
ruby-progressbar (1.13.0)
|
2023-07-27 16:23:01 -06:00
|
|
|
ruby_parser (3.20.3)
|
2023-06-29 22:36:18 -06:00
|
|
|
sexp_processor (~> 4.16)
|
2023-06-09 19:39:54 -06:00
|
|
|
securerandom (0.2.2)
|
2023-09-19 22:59:57 -06:00
|
|
|
sequel (5.72.0)
|
|
|
|
bigdecimal
|
2023-06-29 22:36:18 -06:00
|
|
|
sexp_processor (4.17.0)
|
2023-06-03 12:35:00 -06:00
|
|
|
solargraph (0.49.0)
|
|
|
|
backport (~> 1.2)
|
|
|
|
benchmark
|
|
|
|
bundler (~> 2.0)
|
|
|
|
diff-lcs (~> 1.4)
|
|
|
|
e2mmap
|
|
|
|
jaro_winkler (~> 1.5)
|
|
|
|
kramdown (~> 2.3)
|
|
|
|
kramdown-parser-gfm (~> 1.1)
|
|
|
|
parser (~> 3.0)
|
|
|
|
rbs (~> 2.0)
|
|
|
|
reverse_markdown (~> 2.0)
|
|
|
|
rubocop (~> 1.38)
|
|
|
|
thor (~> 1.0)
|
|
|
|
tilt (~> 2.0)
|
|
|
|
yard (~> 0.9, >= 0.9.24)
|
|
|
|
thor (1.2.2)
|
2023-09-19 22:59:57 -06:00
|
|
|
tilt (2.3.0)
|
Major Refactoring and Feature Addition for Improved User Experience and Code Quality
This commit includes several significant changes aimed at improving the functionality, user experience, and code quality of our Ruby project.
1. Decryption Fix: We identified and resolved an issue where the database password was being decrypted multiple times, leading to connection problems. The code was refactored to ensure that decryption only occurs once, thereby enhancing the efficiency and reliability of our database connections.
2. Infinite Loop Resolution: We addressed a critical issue where the program would enter an infinite loop if the .env file was missing or contained incorrect information. The code was updated to handle these situations appropriately, providing meaningful feedback to the user and preventing unnecessary resource consumption.
3. .env File Handling Improvement: We improved the handling of the .env file, ensuring that the program can function correctly even in the absence of this file or if it contains incorrect data. This change enhances the robustness of our application.
4. Curses Alerts Integration: We integrated a new feature to display alerts in the terminal using the Curses library. These alerts can have different severity levels (info, warning, error), which are displayed in different colors (blue, yellow, red). This feature improves the user experience by providing clear and immediate feedback on the program's status.
5. Automatic Alert Dismissal: We implemented a feature where alerts automatically disappear after 5 seconds. This was achieved using Ruby threads, ensuring that the rest of the program is not blocked while the alert is displayed. This change enhances the user experience by preventing the screen from being cluttered with old alerts.
6. Debugging Libraries Exploration: We explored the possibility of using the Tracer and Debug libraries to trace the execution of the program and assist with debugging. While these libraries were not integrated in this commit, they remain a potential resource for future debugging efforts.
This commit represents a significant step forward in the development of our Ruby project, improving both the user experience and the quality of our codebase.
2023-06-12 15:31:34 -06:00
|
|
|
tracer (0.2.2)
|
2023-06-03 10:35:25 -06:00
|
|
|
unicode-display_width (2.4.2)
|
Refactoring for Modularity, Code Reuse, and Security Considerations
In this commit, we have undertaken a significant refactoring of the codebase to improve modularity, promote code reuse, and consider security aspects.
Modularity and Code Reuse: We introduced classes and modules to better organize the code and facilitate code reuse. Specifically, we created a new Utilities module to hold common methods that are used across different parts of the application. This module includes methods such as convert_speed_to_mbps, services_to_hash, and calculate_total_bandwidth. By placing these methods in a module, we can include this module in any class that needs these methods, thereby promoting code reuse and reducing duplication.
We also created two new classes, SystemInformationGather and DatabaseManager. The SystemInformationGather class is responsible for gathering system information, such as uplink and downlink speed, and services. The DatabaseManager class handles database operations, including testing the database connection, creating the system information table, and storing system information in the database. By encapsulating these responsibilities within their respective classes, we have made the code more organized and easier to maintain.
Database Connection Details: We made a decision to store the database connection details in a config file (config.yml) instead of the database itself. This decision was made for security reasons, as storing these details in the database could expose them to potential security risks. Storing these details in a config file allows us to better control access to these details.
Database Encryption: We discussed the possibility of encrypting the database for additional security. While we have not implemented this feature in this commit, we have laid the groundwork for it by discussing potential libraries/gems that could be used for this purpose. This is an area that we will revisit in the future.
System Information Gathering: We wrote methods to gather system information, such as uplink and downlink speed, and services, and store this information in the database. This information will be useful for monitoring system performance and for making decisions about resource allocation.
This refactoring effort has made the codebase more organized, easier to maintain, and more secure. It also aligns with our project goals and roadmap. However, it's important to note that with any refactoring effort, there may be potential issues or trade-offs. We will need to thoroughly test the refactored code to ensure that it works as expected and that there are no unintended side effects.
2023-06-04 14:41:12 -06:00
|
|
|
yaml (0.2.1)
|
2023-06-03 12:35:00 -06:00
|
|
|
yard (0.9.34)
|
2023-06-03 10:25:27 -06:00
|
|
|
|
|
|
|
PLATFORMS
|
|
|
|
x86_64-linux
|
|
|
|
|
|
|
|
DEPENDENCIES
|
2023-06-09 19:39:54 -06:00
|
|
|
base64 (~> 0.1.1)
|
2023-06-03 10:25:27 -06:00
|
|
|
console
|
|
|
|
curses (~> 1.4)
|
2023-06-09 19:39:54 -06:00
|
|
|
dotenv (~> 2.8)
|
|
|
|
dynamic_curses_input (~> 1.0)
|
2023-06-29 22:36:18 -06:00
|
|
|
flay (~> 2.13)
|
2023-06-07 13:16:49 -06:00
|
|
|
gtk3 (~> 4.1)
|
2023-06-03 13:38:30 -06:00
|
|
|
mysql2 (~> 0.5.5)
|
2023-06-09 19:39:54 -06:00
|
|
|
openssl (~> 3.1)
|
2023-06-29 22:36:18 -06:00
|
|
|
packetfu (~> 2.0)
|
|
|
|
pcaprub (~> 0.13.1)
|
2023-06-07 13:16:49 -06:00
|
|
|
reek (~> 6.1)
|
2023-06-03 10:35:25 -06:00
|
|
|
rubocop (~> 1.52)
|
2023-06-09 19:39:54 -06:00
|
|
|
securerandom (~> 0.2.2)
|
2023-06-03 13:38:30 -06:00
|
|
|
sequel (~> 5.69)
|
2023-06-03 12:35:00 -06:00
|
|
|
solargraph (~> 0.49.0)
|
Major Refactoring and Feature Addition for Improved User Experience and Code Quality
This commit includes several significant changes aimed at improving the functionality, user experience, and code quality of our Ruby project.
1. Decryption Fix: We identified and resolved an issue where the database password was being decrypted multiple times, leading to connection problems. The code was refactored to ensure that decryption only occurs once, thereby enhancing the efficiency and reliability of our database connections.
2. Infinite Loop Resolution: We addressed a critical issue where the program would enter an infinite loop if the .env file was missing or contained incorrect information. The code was updated to handle these situations appropriately, providing meaningful feedback to the user and preventing unnecessary resource consumption.
3. .env File Handling Improvement: We improved the handling of the .env file, ensuring that the program can function correctly even in the absence of this file or if it contains incorrect data. This change enhances the robustness of our application.
4. Curses Alerts Integration: We integrated a new feature to display alerts in the terminal using the Curses library. These alerts can have different severity levels (info, warning, error), which are displayed in different colors (blue, yellow, red). This feature improves the user experience by providing clear and immediate feedback on the program's status.
5. Automatic Alert Dismissal: We implemented a feature where alerts automatically disappear after 5 seconds. This was achieved using Ruby threads, ensuring that the rest of the program is not blocked while the alert is displayed. This change enhances the user experience by preventing the screen from being cluttered with old alerts.
6. Debugging Libraries Exploration: We explored the possibility of using the Tracer and Debug libraries to trace the execution of the program and assist with debugging. While these libraries were not integrated in this commit, they remain a potential resource for future debugging efforts.
This commit represents a significant step forward in the development of our Ruby project, improving both the user experience and the quality of our codebase.
2023-06-12 15:31:34 -06:00
|
|
|
tracer (~> 0.2.2)
|
Refactoring for Modularity, Code Reuse, and Security Considerations
In this commit, we have undertaken a significant refactoring of the codebase to improve modularity, promote code reuse, and consider security aspects.
Modularity and Code Reuse: We introduced classes and modules to better organize the code and facilitate code reuse. Specifically, we created a new Utilities module to hold common methods that are used across different parts of the application. This module includes methods such as convert_speed_to_mbps, services_to_hash, and calculate_total_bandwidth. By placing these methods in a module, we can include this module in any class that needs these methods, thereby promoting code reuse and reducing duplication.
We also created two new classes, SystemInformationGather and DatabaseManager. The SystemInformationGather class is responsible for gathering system information, such as uplink and downlink speed, and services. The DatabaseManager class handles database operations, including testing the database connection, creating the system information table, and storing system information in the database. By encapsulating these responsibilities within their respective classes, we have made the code more organized and easier to maintain.
Database Connection Details: We made a decision to store the database connection details in a config file (config.yml) instead of the database itself. This decision was made for security reasons, as storing these details in the database could expose them to potential security risks. Storing these details in a config file allows us to better control access to these details.
Database Encryption: We discussed the possibility of encrypting the database for additional security. While we have not implemented this feature in this commit, we have laid the groundwork for it by discussing potential libraries/gems that could be used for this purpose. This is an area that we will revisit in the future.
System Information Gathering: We wrote methods to gather system information, such as uplink and downlink speed, and services, and store this information in the database. This information will be useful for monitoring system performance and for making decisions about resource allocation.
This refactoring effort has made the codebase more organized, easier to maintain, and more secure. It also aligns with our project goals and roadmap. However, it's important to note that with any refactoring effort, there may be potential issues or trade-offs. We will need to thoroughly test the refactored code to ensure that it works as expected and that there are no unintended side effects.
2023-06-04 14:41:12 -06:00
|
|
|
yaml (~> 0.2.1)
|
2023-06-03 10:25:27 -06:00
|
|
|
|
|
|
|
BUNDLED WITH
|
2023-09-19 22:59:57 -06:00
|
|
|
2.4.10
|