
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Refsheet - the Ruby gem for the Refsheet.net API
The Refsheet.net API allows another application to view and manipulate data on behalf of a user. To get started, generate an API Key from your account settings.
This SDK is automatically generated by the Swagger Codegen project:
To build the Ruby code into a gem:
gem build refsheet.gemspec
Then either install the gem locally:
gem install ./refsheet-0.1.0.gem
(for development, run gem install --dev ./refsheet-0.1.0.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'refsheet', '~> 0.1.0'
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
gem 'refsheet', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Please follow the installation procedure and then run the following code:
# Load the gem
require 'refsheet'
# Setup authorization
Refsheet.configure do |config|
# Configure API key authorization: apiKeySecret
config.api_key['X-ApiKeySecret'] = '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-ApiKeySecret'] = 'Bearer'
# Configure API key authorization: apiKeyId
config.api_key['X-ApiKeyId'] = '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-ApiKeyId'] = 'Bearer'
end
api_instance = Refsheet::UsersApi.new
id = "id_example" # String | User GUID
begin
#Retrieves a User
result = api_instance.find(id)
p result
rescue Refsheet::ApiError => e
puts "Exception when calling UsersApi->find: #{e}"
end
All URIs are relative to https://http://dev1.refsheet.net/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
Refsheet::UsersApi | find | GET /users/{id} | Retrieves a User |
FAQs
Unknown package
We found that refsheet 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
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.