rack-spec 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/bin/specup +8 -1
- data/lib/rack/spec/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: c304274401ed571da57041c9ea518492b49b0df7
|
4
|
+
data.tar.gz: d7c185c802a0d7fd9dc68f4148e1c66211293d69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7ca89c0bcc0659bb6127c7b6aa2e5a410c4f5347d8dbdb5ecdff04ba99bfd4aa0a2edf7aef0e9dd466b6c026b6111611c68947066b18a778db1d4222a34d0c6
|
7
|
+
data.tar.gz: c145f2e49936fdf50942f94d70c386f166aebb671aa58759f2f794698b03eae4ad0ab7effa6edf724eb720d93e1a5d1bff06132ae139a65c3d354ff072893cd8
|
data/CHANGELOG.md
CHANGED
data/bin/specup
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
|
3
3
|
require "rack"
|
4
4
|
require "rack/spec"
|
5
|
+
require "yaml"
|
5
6
|
|
6
7
|
begin
|
7
8
|
path = ARGV.shift or raise
|
@@ -11,7 +12,13 @@ rescue
|
|
11
12
|
exit
|
12
13
|
end
|
13
14
|
|
14
|
-
|
15
|
+
case File.extname(path)
|
16
|
+
when ".yml", ".yaml"
|
17
|
+
schema = YAML.load(str)
|
18
|
+
else
|
19
|
+
schema = MultiJson.decode(str)
|
20
|
+
end
|
21
|
+
|
15
22
|
app = Rack::Builder.new do
|
16
23
|
use Rack::Spec::ErrorHandler
|
17
24
|
use Rack::Spec::Mock, schema: schema
|
data/lib/rack/spec/version.rb
CHANGED