
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Campfire API interface powered by eventmachine, em-http-request and yajl-ruby.
require 'firering'
print "Enter subdomain: "; subdomain = gets.chomp
print "Enter user: " ; login = gets.chomp
print "Enter password: " ; password = gets.chomp
conn = Firering::Connection.new("http://#{subdomain}.campfirenow.com") do |c|
c.login = login
c.password = password
c.max_retries = 10 # default to -1, which means perform connection retries on drop forever.
end
EM.run do
conn.authenticate do |user|
conn.rooms do |rooms|
rooms.each do |room|
if room.name == "Room Name"
room.stream do |message|
message.user { |user| puts "#{user}: #{message}" }
end
end
end
end
end
trap("INT") { EM.stop }
end
An user agent can be specified. HTTP Options correspond to EM::HTTPRequest options:
conn = Firering::Connection.new("http://#{subdomain}.campfirenow.com") do |conn|
conn.user_agent = "My Cool App 1.0"
conn.http_options = {
proxy: {
host: url,
port: port,
authorization: [username, password]
}
}
end
The gem bundles an executable script for spawning libnotify powered notifications. To be able to use it, check your distro package repositories for the apropriate package containing the "notify-send" command line utility. In the case of archlinux, the package name is "libnotify".
The script needs the following environment variables in place:
CAMPFIRE_SUBDOMAIN CAMPFIRE_TOKEN
Once the variables are set, run the script as follows:
campf-notify room-name /path/to/an/icon.png
And watch the lovely notifications each time something is posted to a room.
When the specs are run a process is forked where a Rack application is run. This rack application serves all the fixtured responses that mimic the working of the real campfire app. The only caveat here is you may get a conflict if you are already running something on the port (8909). If this happens you'll need to open the specs/spec_helper.rb file and change the port used to run the fixtures server.
For more details take a look at spec/fixtures/load_server.rb file.
See https://github.com/EmmanuelOga/firering/graphs/contributors
Copyright (c) 2013 Emmanuel Oga. See LICENSE for details.
FAQs
Unknown package
We found that firering 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
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.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.