prawnto_2 0.2.5 → 0.2.6

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.
@@ -1,5 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.8.7
3
+ - 1.9.2
4
4
  - 1.9.3
5
5
  script: bundle exec rspec spec
@@ -1,6 +1,6 @@
1
1
  = Prawnto (prawnto_2)
2
2
 
3
- {<img src="https://secure.travis-ci.org/forrest/prawnto.png" />}[http://travis-ci.org/forrest/prawnto]
3
+ {<img src="https://secure.travis-ci.org/getjobber/prawnto.png" />}[http://travis-ci.org/getjobber/prawnto]
4
4
 
5
5
  A rails plugin providing templating abilities for generating pdf files leveraging the kick-ass prawn library (http://prawn.majesticseacreature.com/)
6
6
 
@@ -30,7 +30,7 @@ Now make a view:
30
30
 
31
31
  = Usage
32
32
 
33
- More Details will be coming to {wiki}[http://github.com/forrest/prawnto/wiki].
33
+ More Details will be coming to {wiki}[http://github.com/getjobber/prawnto/wiki].
34
34
 
35
35
  === As View in Controller
36
36
 
@@ -98,7 +98,7 @@ Then you can run the tests for a specifc version of prawn (only 0.12.0 and
98
98
 
99
99
  Obviously, all code contributions are greatly appreciated. We also need help with testing and the wiki.
100
100
 
101
- While I can't promise the most speedy response, I do plan to continue to maintain this gem. Please feel free to report any issues, provide feedback, or make suggestions on the {Issue Tracker}[http://github.com/forrest/prawnto/issues]
101
+ While I can't promise the most speedy response, I do plan to continue to maintain this gem. Please feel free to report any issues, provide feedback, or make suggestions on the {Issue Tracker}[http://github.com/getjobber/prawnto/issues]
102
102
 
103
103
  ---
104
104
 
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "prawnto_2"
3
- s.version = '0.2.5'
4
- s.author = ["Forrest"]
5
- s.email = ["development@forrestzeisler.com"]
3
+ s.version = '0.2.6'
4
+ s.author = ["Jobber", "Forrest Zeisler", "Nathan Youngman"]
5
+ s.email = ["forrest@getjobber.com"]
6
6
  s.date = Time.now.utc.strftime("%Y-%m-%d")
7
7
 
8
8
  s.description = 'Simple PDF generation using the prawn library.'
@@ -24,4 +24,9 @@ class TestController < ApplicationController
24
24
  render :action => "partial_render"
25
25
  end
26
26
 
27
+ def filename_test
28
+ prawnto :filename => "fancy_name.pdf", :inline => false
29
+ render :action => "default_render"
30
+ end
31
+
27
32
  end
@@ -4,6 +4,5 @@ Rails.application.routes.draw do
4
4
  get "/dsl_render" => "test#dsl_render"
5
5
  get "/instance_var_test" => "test#instance_var_test"
6
6
  get "/yield_block_in_helper_test" => "test#yield_block_in_helper_test"
7
-
8
- root :to => "test#default_render"
7
+ get "/filename_test" => "test#filename_test"
9
8
  end
@@ -0,0 +1,13 @@
1
+ <html>
2
+ <head></head>
3
+ <body>
4
+ <h1>Prawnto_2 test methods</h1>
5
+
6
+ <a href="/default_render.pdf">default_render</a><br/>
7
+ <a href="/partial_render.pdf">partial_render</a><br/>
8
+ <a href="/dsl_render.pdf">dsl_render</a><br/>
9
+ <a href="/instance_var_test.pdf">instance_var_test</a><br/>
10
+ <a href="/yield_block_in_helper_test.pdf">yield_block_in_helper_test</a><br/>
11
+ <a href="/filename_test.pdf">filename_test</a><br/>
12
+ </body>
13
+ </html>
@@ -48,4 +48,13 @@ describe TestController do
48
48
  end
49
49
  end
50
50
 
51
+ describe "complex headers" do
52
+ it "should return a file with a specified filename" do
53
+ get "/filename_test.pdf"
54
+ response.should be_success
55
+ response.header["Content-Disposition"].should == "attachment;filename=\"fancy_name.pdf\""
56
+ end
57
+
58
+ end
59
+
51
60
  end
metadata CHANGED
@@ -1,19 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawnto_2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Forrest
8
+ - Jobber
9
+ - Forrest Zeisler
10
+ - Nathan Youngman
9
11
  autorequire:
10
12
  bindir: bin
11
13
  cert_chain: []
12
- date: 2012-03-26 00:00:00.000000000 Z
14
+ date: 2013-04-16 00:00:00.000000000 Z
13
15
  dependencies:
14
16
  - !ruby/object:Gem::Dependency
15
17
  name: rails
16
- requirement: &70209470835380 !ruby/object:Gem::Requirement
18
+ requirement: !ruby/object:Gem::Requirement
17
19
  none: false
18
20
  requirements:
19
21
  - - ! '>='
@@ -21,10 +23,15 @@ dependencies:
21
23
  version: '3.1'
22
24
  type: :runtime
23
25
  prerelease: false
24
- version_requirements: *70209470835380
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ! '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '3.1'
25
32
  - !ruby/object:Gem::Dependency
26
33
  name: prawn
27
- requirement: &70209470834900 !ruby/object:Gem::Requirement
34
+ requirement: !ruby/object:Gem::Requirement
28
35
  none: false
29
36
  requirements:
30
37
  - - ! '>='
@@ -32,10 +39,15 @@ dependencies:
32
39
  version: 0.6.0
33
40
  type: :runtime
34
41
  prerelease: false
35
- version_requirements: *70209470834900
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: 0.6.0
36
48
  description: Simple PDF generation using the prawn library.
37
49
  email:
38
- - development@forrestzeisler.com
50
+ - forrest@getjobber.com
39
51
  executables: []
40
52
  extensions: []
41
53
  extra_rdoc_files:
@@ -124,6 +136,7 @@ files:
124
136
  - spec/dummy/public/422.html
125
137
  - spec/dummy/public/500.html
126
138
  - spec/dummy/public/favicon.ico
139
+ - spec/dummy/public/index.html
127
140
  - spec/dummy/script/delayed_job
128
141
  - spec/dummy/script/rails
129
142
  - spec/integrations/pdf_emailer_spec.rb
@@ -154,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
167
  version: 1.3.6
155
168
  requirements: []
156
169
  rubyforge_project:
157
- rubygems_version: 1.8.17
170
+ rubygems_version: 1.8.24
158
171
  signing_key:
159
172
  specification_version: 3
160
173
  summary: This gem allows you to use the PDF mime-type and the simple prawn syntax
@@ -223,6 +236,7 @@ test_files:
223
236
  - spec/dummy/public/422.html
224
237
  - spec/dummy/public/500.html
225
238
  - spec/dummy/public/favicon.ico
239
+ - spec/dummy/public/index.html
226
240
  - spec/dummy/script/delayed_job
227
241
  - spec/dummy/script/rails
228
242
  - spec/integrations/pdf_emailer_spec.rb
@@ -233,3 +247,4 @@ test_files:
233
247
  - spec/units/compile_support_spec.rb
234
248
  - spec/units/template_handlers/partials_spec.rb
235
249
  - spec/units/template_handlers/renderer_spec.rb
250
+ has_rdoc: true