
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.
Ruby library that wraps Website Toolbox's Forum API.
Useful for folks looking to embed the forum into their site, while maintaining a user-facing appearance of a single user account.
Add this line to your application's Gemfile:
gem 'wtforum'
And then execute:
$ bundle
Or install it yourself as:
$ gem install wtforum
WTForum has the following features:
# Modeled after ActiveRecord API
# Create
user = WTForum::User.create username: "wtforum_test_user", email: "wtforum_test_user@example.com"
# Read
WTForum::User.count
user = WTForum::User.find(user.id)
user = WTForum::User.find_by_username(user.username)
# Update
user.update_attributes! username: "wtforum_test_user_2", email: "wtforum_test_user_2@example.com"
# Destroy
WTForum::User.destroy(user.id)
user.destroy
session = WTForum::Session.create(user.id)
session.token # => REiB6U5SkxB
Before using WTForum, you need to give it administrator credentials. It needs four pieces of information:
Example Rails config:
# config/initializers/wtforum_credentials.rb
WTForum.domain = "forum.example.com"
WTForum.api_key = "TEgPYR4Zapz"
WTForum.admin_username = "__admin_api_dont_delete__"
WTForum.admin_password = "s0m3p4ssw0rd"
Unfortunately, Website Toolbox's Forum API is missing some functionality. Specifically, you can only create a new forum user account. Need to read, update, or delete an existing user via the API? You're out of luck! As a workaround, this library uses an admin account and Mechanize to sign into the website and manually fill out forms and screenscrape the results. I hope that the API's breadth of functionality improves in the future.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that wtforum 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.