
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
This gem provides common functionality for use with all IFD server applications, including:
User
management for access to the /admin areaEmergencyMessage
, NotifierUpdate
& SoftwareUpdate
resourcesCustomer
IfdTools::Tracking::Event
& framework for tracking API and reporting (customer trends, etc)/api/emergency_messages.xml
, /api/notifier_updates.xml
& /api/software_updates.xml
To install:
gem 'ifd_tools'
to your Gemfile
bundle
rails g ifd_tools:install
http://localhost:5000/admin
ifd_tools.rb
initializer.IfdTools::Tracking::Event
in your application, in app/models/ifd_tools/tracking
folder.assign_trackable_item_by_id
method per subclass (default implement is to raise an exception)/api/track.xml?type=product_event&id=14
. The type
parameter is the class name without the module prefixes, underscored -> "IfdTools::Tracking::ProductEvent" should be sent as "product_event".A special helper method is provided on the ApiController
class to facilitate easy Customer creation. There is plenty of inline documentation on usage there, but here's an example:
class ApiController < ApplicationController
before_filter :authenticate_customer!, :except => [:software_updates, :emergency_messages, :notifier_updates]
respond_to :json, :xml
include IfdTools::ApiControllerExtensions
create_customer do |customer|
# customer = Customer.new(params[:request][:customer]) already passed in to us, just handle special use cases for data transformations
customer.account_level = CustomerAccountLevel.find_by_abbreviation(params[:account_level])
customer
end
end
FAQs
Unknown package
We found that ifd_tools 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
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.