No release in over 3 years
Low commit activity in last 3 years
A Ruby client for Trade.gov's Consolidated Screening List.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

ConsolidatedScreeningList

Gem Version Maintainability Coverage Status Test Coverage Inline docs Project Status: Active – The project has reached a stable, usable state and is being actively developed. StandardRB Tests Yardstick

A Ruby client for Trade.gov's Consolidated Screening List

Attribution

This gem was originally forked from benbalter/import_export.

Installation

Adding to a gem:

# my-cool-gem.gemspec
Gem::Specification.new do |spec|
  # ...
  spec.add_dependency "consolidated_screening_list", "~> 0.0.2"
  # ...
end

Or adding to your project:

# Gemfile
gem "consolidated_screening_list", "~> 0.0.2"

Supported Ruby versions

  • Ruby (MRI) >= 2.3.0

Usage

⚠️ These are incomplete

client = ImportExport::Client.new :api_key => "12345"
client.search :q => "smith"
=> [
  #<ImportExport::Result name="PRIDMORE-SMITH, BRAMWELL J.">,
  #<ImportExport::Result name="PRIDMORE-SMITH, JOHN B.">
]

client.search :name => "smith", :fuzzy_name => true
=> [
  #<ImportExport::Result name="PRIDMORE-SMITH, JOHN B.">,
  #<ImportExport::Result name="PRIDMORE-SMITH, BRAMWELL J.">,
  #<ImportExport::Result name="MID-SOUTH INVESTMENTS LIMITED">,
  #<ImportExport::Result name="SOUTH-EAST MOVEMENT">,
  ...
]

Available parameters

  • q
  • sources
  • countries (defaults to all countries)
  • address
  • name
  • fuzzy_name (true or false)
  • type
  • size (number of results per page, defaults to 100)
  • offset (defaults to 0)

For more information, see the Consolidated Screening List API docs.

Command line usage

consolidated_screening_list [NAME]

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/andrewmcodes/consolidated_screening_list.

Commit message

This project will be following Coventional Commits v1.0.0 moving forward.

The commit message should be structured as follows:

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Valid types:

  • build
  • ci
  • chore
  • docs
  • feat
  • fix
  • perf
  • refactor
  • revert
  • style
  • test

License

The gem is available as open source under the terms of the MIT License.