
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
This gem is a personal exercise to get familiar with Ruby and Gem creating. gem Gem include only one top level namespace of TestOpenai which you can find all you need inside. Starting by creating an instance of BddOpenai::FileClient.
For this exercise, the client will provide wrapper to some of OpenAI File APIs. API doc can bbe found here:
Other reference links:
You can install the gem normally through RubyGems.org.
Install the gem and add to the application's Gemfile by executing:
$ bundle add bdd_openai
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install bdd_openai
Visit spec/bdd_openai/files/client_spec.rb
for full sample code. Or:
You can direct interact with gem by:
require "bdd_openai"
client = BddOpenai::FileClient.new(ENV["OPENAI_API_KEY"])
client.list_files
client.upload_file("assistants", "spec/fixtures/sample.pdf")
client.delete_file("file-id")
client.retrieve_file("file-id")
.env.sample
to .env
and fill in your personal OpenAI API's keybundle install
rspec
The repository is integrated with SimpleCov to generate test coverage report. You can find the report at coverage/index.html
after running the test.
Bug reports and pull requests are welcome on GitHub at https://github.com/brendondaoateh/bdd_openai.
FAQs
Unknown package
We found that bdd_openai 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.