rails-extjs-direct 0.0.13 → 0.0.14

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.
@@ -54,11 +54,10 @@ module Rails::ExtJS::Direct::Controller
54
54
 
55
55
  def rescue_action(e)
56
56
  if (e.kind_of?(XException))
57
- render :json => XExceptionResponse.new(@xrequest, e)
58
- else
59
- #render :json => XExceptionResponse.new(@xrequest, e)
60
- render :text => "Rail::ExtJS::Direct::Controller#rescue_action -- Exception"
61
- end
57
+ render :json => XExceptionResponse.new(@xrequest, e)
58
+ else
59
+ render :json => XExceptionResponse.new(@xrequest, e)
60
+ end
62
61
  end
63
62
  end
64
63
 
@@ -44,6 +44,7 @@ class Rails::ExtJS::Direct::RemotingProvider
44
44
  # call the app!
45
45
  # TODO Implement begin/rescue to catch XExceptions
46
46
  status, headers, response = @app.call(request_env)
47
+
47
48
  output << response.body
48
49
  end
49
50
  # join all responses together
@@ -54,7 +55,7 @@ class Rails::ExtJS::Direct::RemotingProvider
54
55
  res = "[" + res + "]" if output.length > 1
55
56
 
56
57
  # return response
57
- [200, {"Content-Type" => "text/html"}, res]
58
+ [200, {"Content-Type" => "text/html"}, [res]]
58
59
  else
59
60
  @app.call(env)
60
61
  end
@@ -26,7 +26,7 @@ class XResponse
26
26
  {:tid => @tid, :status => @status, :type => @type, :message => @message, :result => @result, :errors => @errors}
27
27
  end
28
28
 
29
- def to_json
29
+ def to_json(*p)
30
30
  self.to_h.to_json
31
31
  end
32
32
  end
@@ -4,7 +4,7 @@
4
4
  module Rails
5
5
  module ExtJS
6
6
  module Direct
7
- VERSION = '0.0.13'
7
+ VERSION = '0.0.14'
8
8
  end
9
9
  end
10
10
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rails-extjs-direct}
5
- s.version = "0.0.13"
5
+ s.version = "0.0.14"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Chris Scott"]
9
- s.date = %q{2009-09-26}
9
+ s.date = %q{2009-09-27}
10
10
  s.description = %q{A series of components for implementing the Ext.Direct API specification in Rails 2.3 and higher.
11
11
  Ext.Direct in Rails is implementede with Rack Middleware.}
12
12
  s.email = ["christocracy@gmail.com"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-extjs-direct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Scott
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-26 00:00:00 -04:00
12
+ date: 2009-09-27 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency