
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
first-class-postcodes
Advanced tools
The First Class Postcodes Ruby library provides convenient access to our API for applications written in the Ruby language. It includes a pre-defined set of classes for API operations and models that initialize themselves dynamically from API responses.
The library also provides other features. For example:
You don't need this source code unless you want to modify the gem. If you just want to use the package, just run:
gem install first-class-postcodes
If you want to build the gem from source:
gem build first-class-postcodes.gemspec
If you are installing via bundler, you should be sure to use the https rubygems source in your Gemfile, as any gems fetched over http could potentially be compromised in transit and alter the code of gems fetched securely over https:
source 'https://rubygems.org'
gem 'rails'
gem 'first-class-postcodes'
You can install directly from git, add the following into your Gemfile:
gem 'first-class-postcodes', :git => 'https://github.com/firstclasspostcodes/firstclasspostcodes-ruby.git'
The library needs to be configured with your API Key, which is available on the dashboard.
# Load the gem
require 'first-class-postcodes'
# Setup authorization
FCP.configure do |config|
# Configure API key authorization: Authorizer
config.api_key['X-Api-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
end
api_instance = FCP::DataApi.new
search = 'search_example' # String | The typeahead search query to return matching results for.
begin
#Typeahead Search
result = api_instance.get_typeahead(search)
p result
rescue FCP::ApiError => e
puts "Exception when calling DataApi->get_typeahead: #{e}"
end
FAQs
Unknown package
We found that first-class-postcodes 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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.