ddex 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ddex/version.rb +1 -1
- data/lib/rack/ddex.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ee6e4444850b57a563df58898f20194c3397304
|
4
|
+
data.tar.gz: 4d7a25eb0d5a1e59eb8c42bcfaf994f64a8f2d06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac8fe3c14a891dd6af4e7670f11af719f0294229cef495aeee92797c558d7c4015aa5bc16a34ebfd0f23b6b1ea3e18584c2c0936ee5d72af4f4b66f8a7d79ae3
|
7
|
+
data.tar.gz: 1076cb6fb21cb0628f915b379c1b2fb624ee7a3d76e2bfb5a775553405339781d4376dbb75b53cfe5b28d1de48710455d174978757cabd51bdb0de163bc195e5
|
data/lib/ddex/version.rb
CHANGED
data/lib/rack/ddex.rb
CHANGED
@@ -11,7 +11,7 @@ module Rack
|
|
11
11
|
obj = ::DDEX.read(env["rack.input"])
|
12
12
|
json = JSON.dump(obj.to_hash)
|
13
13
|
|
14
|
-
[200, HEADERS.merge("Content-Length" =>
|
14
|
+
[200, HEADERS.merge("Content-Length" => json.bytesize.to_s), [json]]
|
15
15
|
rescue => e
|
16
16
|
code = e.is_a?(::DDEX::DDEXError) ? 400 : 500
|
17
17
|
json = JSON.dump(:error => e.message)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Skye Shaw
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|