Skip to content

Conversation

@Bibisha06
Copy link
Contributor

Description

This PR adds support for the new String Corrections API in the Crowdin Ruby client library. The following endpoints have been implemented and tested:

  • List Corrections (list_corrections)
  • Get Correction (get_correction)
  • Add Correction (add_correction)
  • Delete Corrections (delete_corrections)
  • Delete Correction (delete_correction)
  • Restore Correction (restore_correction)

All endpoints include corresponding RSpec tests in spec/api_resources/string_corrections_spec.rb to ensure proper functionality.

Changes Include

  • Updated lib/crowdin-api/api_resources/string_corrections.rb with methods for the new endpoints.
  • Added tests in spec/api_resources/string_corrections_spec.rb for:
    • Listing corrections
    • Adding a correction
    • Retrieving a correction
    • Deleting corrections
    • Deleting a correction
    • Restoring a correction

Related Issue

This PR closes #107

Testing

  • Verified each method with RSpec tests
  • All tests pass successfully

@codecov
Copy link

codecov bot commented Oct 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.37%. Comparing base (dbcdbd8) to head (a66252a).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #110      +/-   ##
==========================================
+ Coverage   98.30%   98.37%   +0.08%     
==========================================
  Files          61       63       +2     
  Lines        2984     3119     +135     
==========================================
+ Hits         2933     3068     +135     
  Misses         51       51              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@andrii-bodnar andrii-bodnar left a comment

Choose a reason for hiding this comment

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

@Bibisha06 thank you for the contribution!

@andrii-bodnar andrii-bodnar merged commit 17b1075 into crowdin:main Oct 21, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for new String Corrections API

2 participants