Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

go_puff-prodcat_api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

go_puff-prodcat_api

  • 0.9.3.pre.beta.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

GoPuff::ProdcatApi

Coverage Status

This Rails library is designed to work with product-catalog/pds api

Installation

Add this line to your application's Gemfile:

source 'https://rubygems.pkg.github.com/gopuff' do
  gem 'go_puff-prodcat_api'
end

And then execute:

$ bundle install

Set up

# config/initializers/prodcat_api.rb

GoPuff::ProdcatApi.configure do |c|
  c.logger = GoPuff::Logger
  c.url = ENV.fetch('PDS_API_URL')
  c.authorization_client_id = ENV.fetch('PRODCAT_API_AUTHORIZATION_CLIENT_ID')
  c.user_agent_header = GoPuff::Http.config.user_agent_header

  # config.requests.max_retries = 3 # default
  # config.requests.retry_wait_time = 0.5 # default
  # config.requests.retryable_exceptions = [EOFError, Errno::ECONNRESET, Timeout::Error, GoPuff::ProdcatApi::ServerError, GoPuff::ProdcatApi::ClientError, GoPuff::ProdcatApi::TimeoutError] # default
end

Local development with docker

Authorize personal access token for Github by following the steps at https://docs.github.com/en/github/authenticating-to-github/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on

cp .bundle/config.example .bundle/config

Add Github username and personal access token in ./bundle/config and start project using:

docker-compose run --rm go_puff-prodcat_api bash

or with dip

dip bash

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Clone the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

FAQs

Package last updated on 20 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc