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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2d848c266b4dfe5f26aecd0a2a643d4d8423047
4
- data.tar.gz: 824ac1a5232fa7a3f1d5ad2a547c5f9c78684599
3
+ metadata.gz: 8ee6e4444850b57a563df58898f20194c3397304
4
+ data.tar.gz: 4d7a25eb0d5a1e59eb8c42bcfaf994f64a8f2d06
5
5
  SHA512:
6
- metadata.gz: 410983f797a9f89193b81132bfdfbc75fdf46d298f37a88ccef2a007e4ccdc814f78f73e5b2f16a2e750247e677da16a61a959393ede8a2e68985b956d4ab203
7
- data.tar.gz: 567c21c900e8576dfd44a0c0b3564abbff887adcc4a6a69e7c3e750db84df4c4e371ce014b2f64f83723cbdea59e234bc1ffa8ad44dc2ea4132d753cf16db2ba
6
+ metadata.gz: ac8fe3c14a891dd6af4e7670f11af719f0294229cef495aeee92797c558d7c4015aa5bc16a34ebfd0f23b6b1ea3e18584c2c0936ee5d72af4f4b66f8a7d79ae3
7
+ data.tar.gz: 1076cb6fb21cb0628f915b379c1b2fb624ee7a3d76e2bfb5a775553405339781d4376dbb75b53cfe5b28d1de48710455d174978757cabd51bdb0de163bc195e5
@@ -1,3 +1,3 @@
1
1
  module DDEX
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -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" => Rack::Utils.bytesize(json)), [json]]
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.5
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: 2018-06-30 00:00:00.000000000 Z
11
+ date: 2019-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri