Updated support for sending files to the automations endpoint #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to improve the functionality and compatibility of the Zephyr Ruby client, as well as updates to documentation and configuration files. The most important changes include adding support for file uploads, updating dependencies, and enhancing the API client.
Enhancements to the Zephyr Ruby client:
lib/zephyr_ruby/client.rb
: Addedfaraday/multipart
to support multipart requests and updated theFaraday
client initialization to handle multipart and URL-encoded requests. [1] [2]lib/zephyr_ruby/connection.rb
: Modified thepost
method to support file uploads by detecting the MIME type and usingFaraday::UploadIO
for file handling.lib/zephyr_ruby/resource/test_executions.rb
: Added new methods to manage test steps and execution links, includingget_test_steps
,update_test_steps
,sync_test_execution
,get_test_execution_links
, andcreate_test_execution_issue_link
.Updates to dependencies and configuration:
.rubocop.yml
: Updated RuboCop configuration to set the maximum method length to 13 and target Ruby version to 3.0.zephyr_ruby.gemspec
: Updated the required Ruby version to 3.0 and changed the homepage URL. Removed unnecessary comments. [1] [2]Documentation improvements:
README.md
: Updated the usage section to provide clearer instructions on setting up the API access token and client instantiation, and added a link to the official REST API documentation.Version update:
lib/zephyr_ruby/version.rb
: Incremented the version number from0.4.0
to0.5.0
.