
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
= restful_query
http://github.com/quirkey/restful_query
== DESCRIPTION:
RestfulQuery provides a RESTful interface for easily and safely querying ActiveRecord data.
== USAGE:
=== Rails/ActiveRecord:
config.gem 'restful_query'
or install the plugin. In your model:
class Post < ActiveRecord::Base can_query end
In your controller:
class PostsController < ApplicationController # ... def index @posts = Post.restful_query(params[:query]) end # ... end
Now you can query your model via the URL:
/posts?query[name][like]=jon&query[_sort]=created_at-desc
=== Sequel
Theres also a Sequel extension that works very similar to ActiveRecord::Base.can_query:
require 'sequel/extensions/restful_query'
DB[:posts].restful_query({'name' => {'like' => 'jon'}, '_sort' => 'created_at-desc'})
<Sequel::SQLite::Dataset: "SELECT * FROM posts
WHERE (name LIKE %jon%) ORDER BY created_at
DESC">
=== More!
Please see the project homepage for detailed usage and info:
http://code.quirkey.com/restful_query
== INSTALL:
To install as a gem:
sudo gem install restful_query
To install as a rails plugin
./script/plugin install git://github.com/quirkey/restful_query.git
== LICENSE:
Free for use under the terms of the MIT License - see LICENSE for details
FAQs
Unknown package
We found that restful_query 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.