rghost_rails 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rghost_rails.rb +5 -6
  2. metadata +8 -6
data/lib/rghost_rails.rb CHANGED
@@ -14,7 +14,7 @@ class ActionController::Base
14
14
  when NilClass
15
15
  File.join(view_paths, controller_path, self.action_name)
16
16
  end
17
-
17
+
18
18
  ActionView::Helpers.included_modules.each{|m| extend m}
19
19
  r=File.readlines("#{v}.rghost.rb")
20
20
  @__rgdoc__=nil
@@ -22,14 +22,13 @@ class ActionController::Base
22
22
  #instance_eval("@__doc__=#{r}")
23
23
  options.delete(:report)
24
24
  filename=options.delete(:filename)
25
-
25
+ disposition=options.delete(:disposition)
26
+
26
27
  rg=@__rgdoc__.render(format,options)
27
28
  out=rg.output
28
29
  raise "RGhost::Error #{rg.errors} - #{out}" if rg.error?
29
30
  data=out.readlines.join
30
31
  rg.clear_output
31
- send_data(data, :filename => filename, :type => Mime::Type.lookup_by_extension(format.to_s))
32
-
33
- end
34
-
32
+ send_data(data, :filename => filename, :disposition => disposition, :type => Mime::Type.lookup_by_extension(format.to_s))
33
+ end
35
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rghost_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.3"
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shairon Toledo
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-18 00:00:00 -04:00
12
+ date: 2010-03-06 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -32,8 +32,10 @@ extra_rdoc_files: []
32
32
 
33
33
  files:
34
34
  - lib/rghost_rails.rb
35
- has_rdoc: false
35
+ has_rdoc: true
36
36
  homepage: http://github.com/shairontoledo/RGhost-Rails
37
+ licenses: []
38
+
37
39
  post_install_message:
38
40
  rdoc_options: []
39
41
 
@@ -54,9 +56,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
56
  requirements: []
55
57
 
56
58
  rubyforge_project: An Rails adapter to work with RGhost in the view layer
57
- rubygems_version: 1.3.1
59
+ rubygems_version: 1.3.5
58
60
  signing_key:
59
- specification_version: 2
60
- summary: An Rails adapter to work with RGhost in the view layer
61
+ specification_version: 3
62
+ summary: A Rails adapter to work with RGhost in the view layer
61
63
  test_files: []
62
64