
Security News
npm Introduces minimumReleaseAge and Bulk OIDC Configuration
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.
defra_ruby_storm
Advanced tools
Ruby client for Storm Web Services API
Add this line to your application's Gemfile:
gem 'defra-ruby-storm'
And then execute
bundle install
Or install it yourself as:
gem install defra-ruby-storm
You just need to let the gem know the STORM_API_USERNAME AND STORM_API_PASSWORD for the Api access.
# config/initializers/defra_ruby_storm.rb
require "defra_ruby/storm"
DefraRuby::Storm.configure do |config|
config.storm_api_username = "STORM_API_USERNAME"
config.storm_api_password = "STORM_API_PASSWORD"
end
The gem provides 3 separate services a host app can use:
DefraRuby::Storm::UserDetailsService.run(username: 'TestAgentUsername')
#<DefraRuby::Storm::GetUserDetailsResponse:0x00007f6b9a3c5160
@alternative_number=nil,
@code="0",
@first_name="First Name",
@home_tel=nil,
@last_name="Last Name",
@mobile=nil,
@personal_email=nil,
@user_id="123",
@user_name="TestAgentUsername",
@work_email=nil,
@work_tel=nil>
code "0" in api response suggests that the request has been handled successfully
DefraRuby::Storm::PauseCallRecordingService.run(username: 'TestAgentUsername')
#<DefraRuby::Storm::RecordingResponse:0x00007f6b99c0f9e8 @result="0">
result code "0" in api response suggests that the request has been handled successfully
Knowing the agent's user ID, we can pass that into the service, eliminating the need for an additional API call and making request much faster.
DefraRuby::Storm::PauseCallRecordingService.run(agent_user_id: 123)
DefraRuby::Storm::ResumeCallRecordingService.run(username: 'TestAgentUsername')
#<DefraRuby::Storm::RecordingResponse:0x00007f6b99c0f9e8 @result="0">
result code "0" in api response suggests that the request has been handled successfully
Knowing the agent's user ID, we can pass that into the service, eliminating the need for an additional API call and making request much faster.
DefraRuby::Storm::ResumeCallRecordingService.run(agent_user_id: 123)
Errors are handled through the DefraRuby::Storm::ApiError class. Here's an example of how you can handle errors:
begin
# some code that might raise an error
rescue DefraRuby::Storm::ApiError => e
puts "An error occurred: #{e.message}"
end
bundle exec rspec
FAQs
Unknown package
We found that defra_ruby_storm 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
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.

Security News
AI agents are writing more code than ever, and that's creating new supply chain risks. Feross joins the Risky Business Podcast to break down what that means for open source security.

Research
/Security News
Socket uncovered four malicious NuGet packages targeting ASP.NET apps, using a typosquatted dropper and localhost proxy to steal Identity data and backdoor apps.