secure_escrow 0.0.9 → 0.0.11

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.
data/Readme.md CHANGED
@@ -34,6 +34,8 @@ SecureEscrow has 5 integration points with a Rails application
34
34
  - JavaScript delivered via the asset pipeline
35
35
  - Forms generated by views
36
36
 
37
+ Note: Currently, SecureEscrow requires jQuery for capturing form submission events and creating elements in the DOM.
38
+
37
39
  ### Install as Middleware
38
40
  Add the SecureEscrow::Middleware around your Rails application. It must be configured with both a Rack endpoint to call, and a Rails app instance to retrieve routes and configuration information from.
39
41
  In this example, the <tt>Awesome::Application.config.redis</tt> value is available after the <tt>environment</tt> file has been run.
@@ -101,9 +101,15 @@ module SecureEscrow
101
101
  status, headers, body = value[RESPONSE]
102
102
 
103
103
  if headers[CONTENT_TYPE] && JSON_CONTENT.match(headers[CONTENT_TYPE])
104
+ original_body = ""
105
+
106
+ body.each do |chunk|
107
+ original_body += chunk
108
+ end
109
+
104
110
  body = [
105
111
  "<html><body><script id=\"response\" type=\"text/x-escrow-json\">%s</script></body></html>" %
106
- { status: status, body: body.join.to_s }.to_json
112
+ { status: status, body: original_body }.to_json
107
113
  ]
108
114
  headers[CONTENT_TYPE] = "text/html; charset=utf-8"
109
115
  status = 200
@@ -1,3 +1,3 @@
1
1
  module SecureEscrow
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secure_escrow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-24 00:00:00.000000000 Z
12
+ date: 2012-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70205880168160 !ruby/object:Gem::Requirement
16
+ requirement: &70227040178440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70205880168160
24
+ version_requirements: *70227040178440
25
25
  description: SecureEscrow provides a content proxy for Rails applications allowing
26
26
  POSTing to secure actions from insecure domains without full-page refreshes
27
27
  email:
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  version: '0'
71
71
  requirements: []
72
72
  rubyforge_project: secure_escrow
73
- rubygems_version: 1.8.10
73
+ rubygems_version: 1.8.17
74
74
  signing_key:
75
75
  specification_version: 3
76
76
  summary: Secure AJAX-style actions for Rails applications