
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Lightweight Ruby wrapper for Totango.
Add this line to your application's Gemfile:
gem 'totangorb'
And then execute:
$ bundle
Or install it yourself as:
$ gem install totangorb
Type:
$ rails g totangorb:install
It will generate an initializer for you
unless defined?($totango)
$totango = if Rails.env.production?
Totangorb::Tracker.new('1234xxxx')
else
Totangorb::Tracker.new('1234xxxx', debug: true, logger: Rails.logger)
end
end
debug: true
- do not make real HTTP requests - useful in development environment
You can also set your custom logger
, such as Rails.logger
to log every request made to Totango.
These parameters are totally optional.
Replace 1234xxxx
with your Totango API service id. From now you can make requests to Totango within your application:
$totango.track do |t|
t.username "Username"
t.account_id "1234"
t.account_name "Account name"
t.activity "Sample event"
t.module "Event module within application"
t.attributes {}
end
Account attributes is optional - its a hash of custom attributes, you can really put whatever you want there, but remember to also set them in your Totango account.
For more informations, please visit Totango Quick Start: HTTP API (Server side integration)
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Michał Darda © 2013 michaldarda@gmail.com
FAQs
Unknown package
We found that totangorb 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.