wire-framework 0.1.2.2 → 0.1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d74e20e51c86acf45ceaa4cdafc2d4230c0c168
4
- data.tar.gz: 3a462d2b04e5cc1a8fd0adb4cc67915e8573b33e
3
+ metadata.gz: 31f864fa275828aacda680c1ab6a233e65b15b98
4
+ data.tar.gz: 55d1fccc6b510496ae3b9f6efe4e758783141c6e
5
5
  SHA512:
6
- metadata.gz: 7039f21651684e86caba77fc68407bc280eadeb140ff7e27c39037a1186087e3d56698ec13c8ab6fb0a9ea2a217a630a7b0f4ad1956126a9a0e51d9c67d79848
7
- data.tar.gz: ce5a301350eeef8c3de6c242dbd367b7f389be4bb094bc98a619328751845600a44d957f5d278d87de8c89fb99e821c9e8c36921aab0d93208eee2ce1058665a
6
+ metadata.gz: 3ca40f481cd452326a3a2952f18efcce6edff2b9a9aaded4f20ce2be40b7640859e897400acd5d462e026c2d5b5e3cdb28c4c126e374ae5633a5669d8ab0f286
7
+ data.tar.gz: d4bc0bd5f15fb1e536bcdb87f769accfd9ab5773400a9670b57753a427d3bdeb25b6c182a658db54f9ad917cbe9cbec02a113b0c10c592debe9ea083c4868d90
data/lib/app/db.rb CHANGED
@@ -63,6 +63,7 @@ module DB
63
63
  end
64
64
  end
65
65
  if errors.length > 0
66
+ ap errors
66
67
  [400, nil, errors]
67
68
  else
68
69
  200
@@ -59,14 +59,16 @@ module Render
59
59
  if resource
60
60
  begin
61
61
  result = forward(specific, context)
62
- if template
63
- message = render_template(actions, context, template, result)
64
- else
65
- headers['Content-Type'] = result.headers[:content_type]
66
- message = [200, headers, result.to_str]
67
- end
68
- rescue RestClient::ResourceNotFound
69
- message = 404
62
+ status = 200
63
+ rescue RestClient::ResourceNotFound => e
64
+ result = e.response
65
+ status = 404
66
+ end
67
+ if template
68
+ message = [status,{},render_template(actions, context, template, result)]
69
+ else
70
+ headers['Content-Type'] = result.headers[:content_type]
71
+ message = [status, headers, result]
70
72
  end
71
73
  end
72
74
  message
data/lib/wire.rb CHANGED
@@ -24,5 +24,5 @@ end
24
24
  # @author Bryan T. Meyers
25
25
  module Wire
26
26
  # Current version of the Wire Gem
27
- VERSION = '0.1.2.2'
27
+ VERSION = '0.1.2.3'
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wire-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.2
4
+ version: 0.1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan T. Meyers