docmago_client 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 107b4a9f68cae669fb12b2fec395f6a48437b769
4
- data.tar.gz: 808d1b3cce35c59d32f2c3aace5413c79f85463d
3
+ metadata.gz: a2c93b7677a6bbfd3050f0548133765450db1a97
4
+ data.tar.gz: dc2b0ce5f48933b85f2e4c13a8c76a69ca316aef
5
5
  SHA512:
6
- metadata.gz: 6b7a0da6603d91d6934f0e31cce4ec2505155bccd00e3400072cf4f031af2e4674a0ccbdefe3f1478bdd1ba9f0f99996e44ccbd3df283b340866e51722c3946a
7
- data.tar.gz: 05b8aeb8ed74ce9e0d54babfc8b277c0dece57eab5827e7813b5d3e06620b36efe72aace46dd83db11019ca7e2feb835e0cf34dcf67a24526c7a6138d87bd1f5
6
+ metadata.gz: 024b28f41ba1f79e0089e5db426d55ca74f2d2ddfd0ce34031763ba3e40bf78bd0d5aae9d614a0f22388553b690d77636d821846586cf38eaa5bab6c34529b99
7
+ data.tar.gz: e1c1e96039b4a92f2c1c2a78cc5afb753f3d13a7758242c437b0d2db2dd29e2db9ff64db9a3effc5315da00d09efc14541999d8b0696cf2882f67ef65c4bbbc5
@@ -32,7 +32,7 @@ module DocmagoClient
32
32
  response = DocmagoClient.create(options)
33
33
 
34
34
  if response.code == 200
35
- send_data response, filename: "#{options[:name]}.pdf", type: "application/pdf", disposition: "inline"
35
+ send_data response, filename: "#{options[:name]}.pdf", type: "application/pdf", disposition: "attachment"
36
36
  else
37
37
  render inline: response.body, status: response.code
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module DocmagoClient
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -1566,3 +1566,32 @@ Completed 200 OK in 215ms (Views: 214.7ms | ActiveRecord: 0.0ms)
1566
1566
   (0.1ms) rollback transaction
1567
1567
   (0.0ms) begin transaction
1568
1568
   (0.0ms) rollback transaction
1569
+ Connecting to database specified by database.yml
1570
+  (0.2ms) begin transaction
1571
+  (0.0ms) rollback transaction
1572
+  (0.0ms) begin transaction
1573
+ Started GET "/home" for 127.0.0.1 at 2013-03-26 13:44:35 +0100
1574
+ Processing by HomeController#index as HTML
1575
+ Rendered home/index.html.erb within layouts/application (1.3ms)
1576
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
1577
+ Started GET "/home.pdf" for 127.0.0.1 at 2013-03-26 13:44:35 +0100
1578
+ Processing by HomeController#index as PDF
1579
+ Rendered home/index.pdf.erb (0.2ms)
1580
+ Rendered text template (0.0ms)
1581
+ Sent data contents.pdf (1.5ms)
1582
+ Completed 200 OK in 524ms (Views: 523.6ms | ActiveRecord: 0.0ms)
1583
+  (0.1ms) rollback transaction
1584
+  (0.0ms) begin transaction
1585
+ Started GET "/home" for 127.0.0.1 at 2013-03-26 13:44:36 +0100
1586
+ Processing by HomeController#index as HTML
1587
+ Rendered home/index.html.erb within layouts/application (0.4ms)
1588
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
1589
+ Started GET "/home/subdir_template.pdf" for 127.0.0.1 at 2013-03-26 13:44:36 +0100
1590
+ Processing by HomeController#subdir_template as PDF
1591
+ Rendered home/pdf/subdir_template.pdf.erb (0.2ms)
1592
+ Rendered text template (0.0ms)
1593
+ Sent data subdir_template.pdf (0.6ms)
1594
+ Completed 200 OK in 225ms (Views: 224.8ms | ActiveRecord: 0.0ms)
1595
+  (0.1ms) rollback transaction
1596
+  (0.0ms) begin transaction
1597
+  (0.0ms) rollback transaction
@@ -10,7 +10,7 @@ class NavigationTest < ActiveSupport::IntegrationCase
10
10
  click_link 'index'
11
11
 
12
12
  assert_equal 'binary', headers['Content-Transfer-Encoding']
13
- assert_equal 'inline; filename="contents.pdf"', headers['Content-Disposition']
13
+ assert_equal 'attachment; filename="contents.pdf"', headers['Content-Disposition']
14
14
  assert_equal 'application/pdf', headers['Content-Type']
15
15
  end
16
16
 
@@ -19,7 +19,7 @@ class NavigationTest < ActiveSupport::IntegrationCase
19
19
  click_link 'subdir_template'
20
20
 
21
21
  assert_equal 'binary', headers['Content-Transfer-Encoding']
22
- assert_equal 'inline; filename="subdir_template.pdf"', headers['Content-Disposition']
22
+ assert_equal 'attachment; filename="subdir_template.pdf"', headers['Content-Disposition']
23
23
  assert_equal 'application/pdf', headers['Content-Type']
24
24
  end
25
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docmago_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Habermann