Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
This is a simple wrapper for communicating with the fonts.com API. The fonts.com API requires signing calls with a hash that's not trivial to generate, which rules out e.g. playing around with curl.
Add this line to your application's Gemfile:
gem 'fonts_dot_com'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fonts_dot_com
Before you can use the fonts.com API, you need an API key. You can request a key here: https://www.fonts.com/web-fonts/developers/request-api-key
FontsDotCom
needs to be configured with your credentials before you can make API calls.
irb> require 'fonts_dot_com'
irb> FontsDotCom.configure do |config|
irb> config.api_key = 'whatever'
irb> config.public_key = 'whatever' # This, and the private key are generated
irb> config.private_key = 'whatever' # from the API key.
irb> end
In a Rails app, you'd want to put the above in an initializer.
Until I write up some better documentation, here's the gist:
response = FontsDotCom::Api.list_projects
=> #<FontsDotCom::Response:0x007fdfdc1db2d0 @original_response_object=#<Net::HTTPOK 200 OK readbody=true>, @body={ :lots => :here }, @code="200">
irb> response.class
=> FontsDotCom::Response
irb> response.body.class
=> Hash
irb> response.body.keys
=> ["Projects"]
See lib/fonts_dot_com/api.rb for other calls.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that fonts_dot_com 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.