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

Fix ActiveSupport inflector dependency #1063

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

andyw8
Copy link
Contributor

@andyw8 andyw8 commented Nov 15, 2022

Description

Attempting to call the API in a plain Ruby script fails since active_support/inflection is not available. It's listed as a development dependency, but it's used here:

require "active_support/inflector"

I expect this is rarely a problem in real-world usage since most people will be using this with Rails, which already provides active_support.

How has this been tested?

Tested locally with a plain Ruby script.

Checklist:

  • My commit message follow the pattern described in here
  • I have performed a self-review of my own code.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the project documentation.
  • I have added a changelog line.

@andyw8 andyw8 force-pushed the andyw8/fix-active-support-inflector-dependency branch from 6329aab to aca5cbe Compare November 15, 2022 17:09
@andyw8 andyw8 marked this pull request as ready for review November 15, 2022 17:10
@andyw8 andyw8 requested a review from a team as a code owner November 15, 2022 17:10
@andyw8 andyw8 force-pushed the andyw8/fix-active-support-inflector-dependency branch from aca5cbe to 7367d33 Compare November 23, 2022 21:53
@andyw8 andyw8 merged commit df9f599 into main Nov 23, 2022
@andyw8 andyw8 deleted the andyw8/fix-active-support-inflector-dependency branch November 23, 2022 21:57
kaarelss added a commit to kaarelss/shopify-api-ruby that referenced this pull request Nov 29, 2022
…y-api-ruby into response_in_error_object

* 'response_in_error_object' of github.com:kaarelss/shopify-api-ruby:
  Added assertion that response is present in MaxHttpRetriesExceededError
  Added sorbet assertion
  Removed extra empty line
  ShopifyAPI::Clients::HttpResponse as argument for ShopifyAPI::Errors::HttpResponseError because code can be obtained from response as well as headers for custom retry logic
  Remove mentions of private apps (Shopify#1062)
  Fix ActiveSupport inflector dependency (Shopify#1063)
  Move Session Storage to `shopify_app` (Shopify#1055)
  Remove session argument from REST examples (Shopify#1064)
  Constrain Zeitwerk to 2.6.5 (Shopify#1059)
  Clarify statement about packages (Shopify#1057)
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.

2 participants