
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Get your documents digitalized with https://www.esignatur.dk (esignatur is Denmark's safest digital signing solution for both private and public companies).
This gem is a Ruby wrapper for the esignatur API & provides all supported methods. Get the API details here: https://api.esignatur.dk/
If integrating with Rails 3.x, 4.x version:
Add this line to your application's Gemfile:
gem 'ruby-api-esignatur'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruby-api-esignatur
##Usage
####Headers:
Set the default headers with your signatur ID:
headers = {'Content-Type' => 'application/json',
'X-Esignatur-Id' => '1aaXXXX-XXXX-XXXX-XXXX-XXXXXXXXX044'}
pdf_encoded = Base64.encode64(open("sample_document.pdf").to_a.join)
signing_body = {CreatorId: "9208-XXXX-X-XXXXXXXXX650",
SenderEmail: "sender@example.com",
CommonNote: "This is a test order for signing.",
EndDate: Time.now,
Documents: [
{
title: "Signing Contract",
Filename: "contract.pdf",
DocumentFormat: "Pdf",
DocumentData: pdf_encoded
}
],
steps: [
{
Signers: [
{
name: 'Name1',
email: 'signer@example.com',
identification: '23434234234234'
}
]
}
]
}
client = Esignatur::APIClient.new(headers)
response = client.create_order(signing_body)
response = client.pending_orders("sender@example.com") #E-mail address of sender. Set to blank disable e-mail filtering.
response = client.order_status(("sender@example.com", "c00XXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX608")
# More details on: https://api.esignatur.dk/Documentation/Status
Note: The output from these methods tends to be quite large.
response = client.get_document(Id: "34XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX166", DocumentIndex: 0)
# More details on: https://api.esignatur.dk/Documentation/Pades
We use the GitHub issue tracker to track bugs and features.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)This library aims to support the following Ruby implementations:
If something doesn't work on one of these interpreters, it should be considered a bug.
This library may inadvertently work (or seem to work) on other Ruby implementations, however support will only be provided for the versions listed above.
If you would like this library to support another Ruby version, you may volunteer to be a maintainer. Being a maintainer entails making sure all tests run and pass on that implementation. When something breaks on your implementation, you will be personally responsible for providing patches in a timely fashion. If critical issues for a particular implementation exist at the time of a major release, support for that Ruby version may be dropped.
Copyright (c) 2015 moorem.com, released under the LICENSE.
FAQs
Unknown package
We found that ruby-api-esignatur 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
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.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.