
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Ruby Wrapper for Tango Card RaaS API.
Tango Card provides a RaaS API for developers (https://www.tangocard.com/docs/raas-api/). This gem provides commonsense Ruby objects to wrap the JSON endpoints of the RaaS API.
Add the tangocard
gem to your Gemfile
:
gem 'tangocard'
Create an initializer, e.g. config/initializers/tangocard.rb
:
Tangocard.configure do |c|
c.name = "BonuslyXYZ"
c.key = "Dnv9ehvff29"
c.base_uri = "https://sandbox.tangocard.com"
end
There are three required configuration parameters:
name
- The API account name you receive from Tango Cardkey
- The API account key you receive from Tango Cardbase_uri
- This defaults to the Tango Card sandbox. For production, you must specify the base URI for the production RaaS API. Make sure not to include /raas/v1
or any trailing slashes.There are also optional configuration parameters:
default_brands
- An array of strings for the brands you want to retrieve with Tangocard::Brand.default
. The strings should match the unique brand description
fields exactly.local_images
- An array of local image names/URIs that you want to display instead of the default Tango Card-provided image_url
. image_url
is sometimes blank, so this can be handy in those cases.sku_blacklist
- Reward SKUs that are blacklisted, ie. should never be returned as a purchasable reward.use_cache
- Use cache for Tangocard::Brand queries, defaults to true
. The cache can be refreshed by calling Tangocard.warm_cache
cache
- Which cache to use, defaults to ActiveSupport::Cache::MemoryStore
. Using an out-of-process cache e.g. hosted memcache will improve performance and stability.logger
- i.e. Rails.logger
This gem provides two tools:
Tangocard::Raas
and Tangocard::Response
.Tangocard::Account
, Tangocard::Brand
, Tangocard::Reward
, Tangocard::Order
and Tangocard::ExchangeRate
. These provide a greater level of abstraction and ease of use.This project is developed and maintained by Smartly, Inc. - makers of http://bonus.ly.
This project uses the MIT-LICENSE.
FAQs
Unknown package
We found that tangocard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.