
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
It's extension for Tire (client for the Elasticsearch search engine), which allow to update index of ActiveRecord/ActiveModel model using background job (based on Sidekiq or Resque).
Requirements: Ruby 1.9, 2.0, Rails => 3.0
Add this line to your application's Gemfile:
gem 'tire_async_index'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tire_async_index
You could configure TireAsyncIndex in initializer:
TireAsyncIndex.configure do |config|
config.background_engine :sidekiq # or :resque
config.use_queue :high # name of your queue
end
Just add AsyncCallbacks to your model:
class User < ActiveRecord::Base
include Tire::Model::Search
include Tire::Model::AsyncCallbacks
...
end
That's all.
If you need more complex solution to define identificators and/or finder. You could simply add methods to override default:
class User < ActiveRecord::Base
include Tire::Model::Search
include Tire::Model::AsyncCallbacks
def self.tire_async_finder(id)
User.where(...).first
end
def async_tire_object_id
"#{id}-#{name}"
end
end
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that tire_async_index 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.