docmago_client 0.1.3 → 0.1.4
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.
- checksums.yaml +4 -4
- data/lib/docmago_client/railtie.rb +1 -1
- data/lib/docmago_client/version.rb +1 -1
- data/test/dummy/log/test.log +29 -0
- data/test/integration/navigation_test.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2c93b7677a6bbfd3050f0548133765450db1a97
|
|
4
|
+
data.tar.gz: dc2b0ce5f48933b85f2e4c13a8c76a69ca316aef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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: "
|
|
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
|
data/test/dummy/log/test.log
CHANGED
|
@@ -1566,3 +1566,32 @@ Completed 200 OK in 215ms (Views: 214.7ms | ActiveRecord: 0.0ms)
|
|
|
1566
1566
|
[1m[35m (0.1ms)[0m rollback transaction
|
|
1567
1567
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1568
1568
|
[1m[35m (0.0ms)[0m rollback transaction
|
|
1569
|
+
Connecting to database specified by database.yml
|
|
1570
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
1571
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
1572
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
1584
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
1596
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1597
|
+
[1m[35m (0.0ms)[0m 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 '
|
|
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 '
|
|
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
|
|