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 issue which caused Faraday to resolve to latest version. #142

Merged
merged 1 commit into from
May 2, 2017
Merged

Fix issue which caused Faraday to resolve to latest version. #142

merged 1 commit into from
May 2, 2017

Conversation

pedelman
Copy link
Contributor

@pedelman pedelman commented May 1, 2017

  • Update gemspec to fix Faraday gem version to point to latest patch
    version
  • Update rubocop issues
  • Support setting ssl options for OAuth API mode

- Update gemspec to fix Faraday gem version to point to latest patch
  version
- Update rubocop issues
- Support setting ssl options for OAuth API mode
@pedelman
Copy link
Contributor Author

pedelman commented May 1, 2017

Fixes #141

@pedelman
Copy link
Contributor Author

pedelman commented May 1, 2017

Okay this code seems to be running fine for me. Can someone else play with this to make sure?

You can pull down my branch then:

gem uninstall bigcommerce
bundle install
rake build
gem install pkg/bigcommerce-1.0.0.gem

Then I create a .env-dev file which has the following structure.

# You can get these values from the `Advanced Setttings > API Accounts` section on the Control Panel
export BC_API_ENDPOINT=https://api.bigcommerce.com
export BC_STORE_HASH=STORE_HASH
export BC_ACCESS_TOKEN=ACCESS_TOKEN
export BC_CLIENT_ID=CLIENT_ID
export BC_CLIENT_SECRET=CLIENT_SECRET

Source the ENV and make sure they are set up properly.

source .env-dev

echo $BC_API_ENDPOINT
https://api.bigcommerce.com

Now I can run:

ruby examples/content/blog_post.rb

@mattolson
Copy link
Contributor

@pedelman Works for me!

@pedelman pedelman merged commit def011a into bigcommerce:master May 2, 2017
@pedelman pedelman deleted the fix_faraday_dep branch May 2, 2017 19:41
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