sinatra-param-validator 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/sinatra/param_validator/parser.rb +5 -1
- data/lib/sinatra/param_validator/validator.rb +1 -1
- data/lib/sinatra/param_validator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f17b821ad13e5656480453ed3067bc2cb724cfc51dc71b89673ebbd29bf06cff
|
4
|
+
data.tar.gz: b4a333cc414c4fdb0ba9ba9cbc5da317037bbc0a08879f8f120c70996ce41073
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd06efb152939cecc5ea1169426c4cded4177ad2a71b678a217899e246c4def5826457339b8a9f5a2afedc3044af53e4a41728f04ae6180cfdfc2efc5048e6f6
|
7
|
+
data.tar.gz: 90133f0e8bda179eafc1e193bcb4caa2466ece28efc20c17e3521e30a18a505d58d26f0ba6e0ff79fb88119bdcbeb9f2b4932ca7b6882e98c351eed0d1509a0d
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -12,12 +12,16 @@ module Sinatra
|
|
12
12
|
class Parser < SimpleDelegator
|
13
13
|
attr_reader :errors
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(context)
|
16
16
|
super(context)
|
17
17
|
@context = context
|
18
18
|
@errors = {}
|
19
|
+
end
|
19
20
|
|
21
|
+
def parse(definition, *args)
|
20
22
|
instance_exec(*args, &definition)
|
23
|
+
|
24
|
+
self
|
21
25
|
end
|
22
26
|
|
23
27
|
def add_error(key, error)
|