
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
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
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.