Project
Reverse Dependencies for rspec
The projects listed here declare rspec as a runtime or development dependency
0.0
== Synopsys
<code>Enumerable#filter</code> - extended <code>Enumerable#select</code>
== Examples
String filter (acts like <code>Enumerable#grep</code>):
[1, 2, 3, 'ab'].filter(/a/) # => ['ab']
[1, 2, 3, '3'].filter('3') # => ['3']
You can pass a <code>Proc</code> or <code>Symbol</code>. Methods and blocks are allowed too:
[1, 2, 3].filter(&:even?) # => [2]
[1, 2, 3].filter(:even?) # => [2]
[1, 2, 4].filter { |num| num.even? } # => [2, 4]
<code>Enumerable#filter</code> can match against enumerable items attributes. Like this:
[1, 2, 3, 4.2].filter :to_i => :even? # => [2, 4]
If the block is supplied, each matching element is passed to it, and the block's result is stored in the output array.
[1, 2, 4].filter(&:even?) { |n| n + 1 } # => [3, 5]
<code>Enumerable#filter</code> also accepts <code>true</code> or <code>false</code> as argument:
[0, false, 2, nil].filter(true) # => [0, 2]
[0, false, 2, nil].filter(false) # => [false, nil]
<code>Enumerable#filter</code> also supports <code>OR</code> operator!
Just pass many patterns, they will be joined together with <code>OR</code> operator.
[0, 2, 3, 4].filter(:zero?, :odd?) # => [0, 3]
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
An unofficial ruby wrapper for Filter8 (http://filter8.com). An API to filter lots of stuff from texts, e.g. bad words.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
Adds filter functionality to your ActiveRecord models
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
FilterableModel provides an organized and seamless way to filter your ActiveRecord objects using model attributes or custom attributes.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
Extensions and controller/view helpers for filtering glory
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
This Ruby on Rails plugin adds a filtered_by method to your models. It accepts a hash of filters that are applied using scopes. In addition the plugin adds some view helpers to easily build filter forms.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
Gem for filter AR relations
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
DSL for communicating filter intent via HTTP parameters in the URL
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
Simple treetop lexer that supports writing filters in an SQL-like manner.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
A very basic gem for generating JSON responses for collections.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
You can use filter_object to write classes whose instances encapsulate your filter logic, so you can have testable code and cleaner controllers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
Filteron acts as a bridge connecting filter form controls to your ActiveRecord scope, allowing for multi-layered combined scoping.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
Parses filter parameters compatible query parameters and returns an object which can be used to be mapped on top of a backend system. More information is available on Github ( https://github.com/cbrand/ruby-filterparams ).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
和谐检测用于检查输入是否包含中文或英文敏感词.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
Filtri is a tool that simplifies the work of applying multiple substitution rules to a string.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
Filtros personalizados.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
Client gem to connect to the fimmed_up API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
Provides basis for developing effective market data feed handlers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
The final library enables you to declare your classes as final. This
prevents your class from being subclassed or having its methods redefined.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
A client to interact with the Finale Inventory System.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity