
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.
Raes is Rails Async Event Store. Executes a class method call asynchronously. Others use Rails' Active Job and Active Storage services to store files.
Dispatch a class name that has a call method.
Same echo call method.
class SimpleEcho
include Raes::UseCaller
def initialize(params)
@params = params
end
def call
@params
end
end
When executed, { message:'Hi' }
is saved in state.
Raes.dispatch(SimpleEcho, { message: 'Hi' })
Raes.search(SimpleEcho).last.state # "{\"message\":\"Hi\"}"
Rewrite old file newly.
class FileMaker
include Raes::UseCaller
include Raes::UseStorage
def initialize(params)
@raes_storage_id = params[:raes_storage_id]
end
def call
old_file = raes_storage_content
new_file = old_file + 'bar'
raes_storage_attach({ io: StringIO.new(new_file), filename: 'new_file.txt', content_type: 'text/plain' })
end
end
Content will be changed to the new file.
Raes.dispatch(FileMaker, raes_storage: { io: StringIO.new('foo'), filename: 'old_file.txt', content_type: 'text/plain' })
Raes.search(FileMaker).last.storages.first.content.download # foobar
Add this line to your application's Gemfile:
gem 'raes'
And then execute:
$ bundle
$ rails raes:install:migrations
If use storage, then execute:
$ rails active_storage:install
Add the following to your config/raes.yml:
default: &default
concern:
context_logger: Rails
development:
<<: *default
test:
<<: *default
production:
<<: *default
$ rails app:spec
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that raes 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.