
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
An unofficial Ruby wrapper for Clarifai V2 API with the latest user_id
and app_id
scoping.
Add this line to your application's Gemfile:
gem 'clarification'
And then execute:
bundle install
Or install it yourself as:
gem install clarifai-rb
Clarifai.configure do |config|
config.user_id = '<your_user_id>'
config.app_id = '<your_app_id>'
config.pat = '<your_pat>' # Personal Access Tokens
end
If you're using Rails, create a new file named clarifai.rb
inside config/initializers
and copy the configuration above.
For single url:
predict_instance = Clarifai::Predict.new(model_id: '<your_model_id>')
predict_instance.call(
type: 'image',
urls: '<image_url>'
)
For multiple urls:
predict_instance = Clarifai::Predict.new(model_id: '<your_model_id>')
predict_instance.call(
type: 'image',
urls: ['<image_url_1>', '<image_url_2>']
)
FAQs
Unknown package
We found that clarifai-rb 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
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.