
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
You can store a collection within a specific key. The data must be an array of hashes with a keyword and an optional data argument. Keyword can be an array.
Briskly.store('cities').with([
{ keyword: ['London', 'Londres'], data: { id: 10, name: London } },
{ keyword: 'Berlin', data: { id: 15, name: Berlin } },
{ keyword: 'Barcelona', data: { id: 25, name: Barcelona } }
)]
Search on collections using #on
. The result is composed by an hash with the key(s) requested
and the values are instances of Briskly::Element
class. This object responds to #keyword
and #data
.
Briskly.store('cities').with([
{ keyword: ['London', 'Londres'], data: { id: 10, name: London } },
{ keyword: 'Berlin', data: { id: 15, name: Berlin } },
{ keyword: 'Barcelona', data: { id: 25, name: Barcelona } }
)]
result = Briskly.on('cities').search('lon')
result
=> { 'cities' => [ #Briskly::Element ... ]
result['cities'].first.keyword
=> 'London'
result = Briskly.on('cities').search('londres')
result['cities'].first.keyword
=> 'Londres'
Example with multiple collections
Briskly.store('cities').with([
{ keyword: 'Foo' },
...
)]
Briskly.store('countries').with([
{ keyword: 'Foobear' },
...
)]
result = Briskly.on('countries', 'cities').search('foo')
result
=> { 'cities' => [ #Briskly::Element ], 'countries' => [ #Briskly::Element ] }
Notes:
MIT licence. Copyright (c) 2013 HouseTrip Ltd.
FAQs
Unknown package
We found that briskly 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
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.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.