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

Patch 0.8.1 #241

Merged
merged 29 commits into from
Jan 23, 2024
Merged

Patch 0.8.1 #241

merged 29 commits into from
Jan 23, 2024

Conversation

ehannes
Copy link
Member

@ehannes ehannes commented Jan 22, 2024

Cherry picks commits to add support for Ruby 3 to v0.8

  • Update Ruby support
  • Updates dry-lib dependencies

lib/fortnox/api/models/customer.rb Outdated Show resolved Hide resolved
ehannes and others added 24 commits January 22, 2024 15:50
Instead of using the advanced using_test_classes, we can just stub
the constants. You could use let statements for some of these as well,
but when you want to do slightly more, like wrapping the class in a
module, stubbing constants is much easier. I think it's best to keep
things consistent here, so I decided to make all test classes into
stubbed constants. It's very easy to read as well.

https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LeakyConstantDeclaration
1.39 was the newest codeclimate rubocop channel available, so I
downgrades Rubocop to 1.39. No need to run a newer version than that
right now...
"Users may let RuboCop know the oldest version of Ruby which your project
supports with".
This test was not needed anymore since Fortnox has changed the
behavior of the API.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we removing South Korea?

Copy link
Member Author

@ehannes ehannes Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The country code was changed and we didn't really need this test when the country gem was upgraded. We already have multiple tests with different country codes. This was the same change I did in the development branch.

@@ -19,16 +19,16 @@
# When recording new VCR cassettes, code needs to be changed to a unique value
include_examples '.save',
:description,
additional_attrs: { code: 'blarg5' }
additional_attrs: { code: 'blarg7' }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... Could we in future use reasonable strings for test data? Run a lorem word if you can't think of something appropriate 🙂

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, ye sure 😄

@ehannes ehannes merged commit ec4810b into version-0.8.1 Jan 23, 2024
1 check passed
@ehannes ehannes deleted the patch-0.8.1 branch January 23, 2024 15:02
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.

3 participants