might 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/might/filter_parameters.rb +4 -0
- data/lib/might/filter_parameters_extractor.rb +2 -1
- data/lib/might/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad96c2f9fdfbd6c5dcd9d741d9ca5dc7de704ebb
|
4
|
+
data.tar.gz: a2f69450d6b65032942bc95236226aba5710f9a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 435e9bacc6502d9d718259716584c07f4685e0c07a6b972cbb7e6af1c6008d5f11bdda84fee7513efb10c43fa40aaf214a88175a6b92848a1097c96022d62cdd
|
7
|
+
data.tar.gz: b18938e5e5f207e76c2112048465d6e7552dc73e861572a7b1589b05ce273c5732910aa9e50a6f113614c6c058f78eec9eca1d0e87fbf6ef06b66e69e90769a0
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require_relative 'filter_predicates'
|
2
2
|
require_relative 'filter_undefined_parameter'
|
3
3
|
require_relative 'filter_parameter'
|
4
|
+
require_relative 'filter_parameters'
|
4
5
|
|
5
6
|
module Might
|
6
7
|
# User provided filters syntax:
|
@@ -29,7 +30,7 @@ module Might
|
|
29
30
|
def call(env)
|
30
31
|
params, errors = env
|
31
32
|
|
32
|
-
provided_parameters = Hash(params[:filter]).each_with_object(
|
33
|
+
provided_parameters = Hash(params[:filter]).each_with_object(FilterParameters.new) do |(name, value), parameters|
|
33
34
|
type_casted_value = type_cast_value(name, value)
|
34
35
|
parameters << extract_parameter(name, type_casted_value)
|
35
36
|
end
|
data/lib/might/version.rb
CHANGED