Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CI & fix bug in test spec/didww/client_spec.rb #35

Merged
merged 5 commits into from
May 19, 2023

Conversation

Ivanov-Anton
Copy link
Collaborator

@Ivanov-Anton Ivanov-Anton commented May 19, 2023

This pull request addresses several issues and improvements in the codebase. Here's a summary of the changes made in each commit:

  1. Commit: Ensure the use of "sandbox" as the default api_mode in the test environment.
    Description: This commit fixes a failure that occurred when executing a chain of test suites due to a modification of the default api_mode from "sandbox" to "production" in the "spec/didww/client_spec.rb" specification file. To resolve this, I suggest reloading the DIDWW::Client constant after the specific test in "spec/didww/client_spec.rb".

  2. Commit: Use Integer instead of Fixnum.
    Description: In Ruby, the Fixnum class has been deprecated since Ruby 2.4 and removed in Ruby 3. Instead, the Integer class should be used, which encompasses both Fixnums and Bignums. This commit updates the codebase to use the Integer class.

  3. Commit: Use ruby/setup-ruby@v1 instead of deprecated actions/setup-ruby@v1.
    Description: The actions/setup-ruby@v1 action has been deprecated. This commit replaces it with the updated ruby/setup-ruby@v1 action to ensure compatibility and proper Ruby setup.

  4. Commit: remove support ruby version 2.5, 2.6 and activesupport with 5.0.
    Description: Remove support for Ruby versions 2.5 and 2.6, as well as ActiveSupport "~> 5.0", since they are no longer maintained.

closes #36

@Ivanov-Anton Ivanov-Anton force-pushed the new_branch branch 3 times, most recently from 1c4aa30 to e276836 Compare May 19, 2023 10:43
@Ivanov-Anton Ivanov-Anton requested a review from gigorok May 19, 2023 10:48
@Ivanov-Anton Ivanov-Anton self-assigned this May 19, 2023
@Ivanov-Anton Ivanov-Anton changed the title Fix master branch & improve CI & fix bug in test spec/didww/client_spec.rb Improve CI & fix bug in test spec/didww/client_spec.rb May 19, 2023
@Ivanov-Anton
Copy link
Collaborator Author

My suggestion is to create a separate PR after merging these commits, to add support for rails 7 and ruby 3 as additional CI configurations.

spec/didww/client_spec.rb Outdated Show resolved Hide resolved
Ivanov-Anton added 5 commits May 19, 2023 18:20
…onment

Previously, running the command "bundle exec rspec spec/didww/client_spec.rb"
locally resulted in all tests passing. However, when executing a chain of
test suites, a failure occurred due to a modification of the default api_mode
from "sandbox" to "production" in the "spec/didww/client_spec.rb"
specification file. I suggest to reload DIDWW::Client constant
after this spec/didww/client_spec.rb specific test.
In Ruby, the Fixnum class has been deprecated since
Ruby 2.4 and removed in Ruby 3. Instead, Ruby introduced
the Integer class to encompass both Fixnums and Bignums.
Remove support for Ruby versions 2.5 and 2.6, as well as ActiveSupport "~> 5.0", since they are no longer maintained.
@Ivanov-Anton Ivanov-Anton requested a review from gigorok May 19, 2023 15:22
@gigorok gigorok merged commit c6746ac into didww:master May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Master branch failing to pass tests
2 participants