docmago_client 0.3.2 → 0.4.0

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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/{README.rdoc → README.md} +0 -0
  3. data/lib/docmago_client/exception.rb +3 -3
  4. data/lib/docmago_client/html_resource_archiver.rb +50 -29
  5. data/lib/docmago_client/railtie.rb +15 -14
  6. data/lib/docmago_client/version.rb +1 -1
  7. data/lib/docmago_client.rb +34 -33
  8. metadata +29 -162
  9. data/MIT-LICENSE +0 -20
  10. data/Rakefile +0 -34
  11. data/lib/tasks/docmago_client_tasks.rake +0 -4
  12. data/test/docmago_client_test.rb +0 -7
  13. data/test/dummy/README.rdoc +0 -261
  14. data/test/dummy/Rakefile +0 -7
  15. data/test/dummy/app/assets/javascripts/application.js +0 -15
  16. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  17. data/test/dummy/app/controllers/application_controller.rb +0 -3
  18. data/test/dummy/app/controllers/home_controller.rb +0 -15
  19. data/test/dummy/app/helpers/application_helper.rb +0 -2
  20. data/test/dummy/app/views/home/index.html.erb +0 -3
  21. data/test/dummy/app/views/home/index.pdf.erb +0 -1
  22. data/test/dummy/app/views/home/pdf/subdir_template.pdf.erb +0 -1
  23. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  24. data/test/dummy/config/application.rb +0 -53
  25. data/test/dummy/config/boot.rb +0 -10
  26. data/test/dummy/config/database.yml +0 -25
  27. data/test/dummy/config/environment.rb +0 -5
  28. data/test/dummy/config/environments/development.rb +0 -31
  29. data/test/dummy/config/environments/production.rb +0 -75
  30. data/test/dummy/config/environments/test.rb +0 -36
  31. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  32. data/test/dummy/config/initializers/docmago.rb +0 -2
  33. data/test/dummy/config/initializers/inflections.rb +0 -15
  34. data/test/dummy/config/initializers/mime_types.rb +0 -5
  35. data/test/dummy/config/initializers/secret_token.rb +0 -7
  36. data/test/dummy/config/initializers/session_store.rb +0 -8
  37. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  38. data/test/dummy/config/locales/en.yml +0 -5
  39. data/test/dummy/config/routes.rb +0 -4
  40. data/test/dummy/config.ru +0 -4
  41. data/test/dummy/db/development.sqlite3 +0 -0
  42. data/test/dummy/db/test.sqlite3 +0 -0
  43. data/test/dummy/log/development.log +0 -266
  44. data/test/dummy/log/test.log +0 -2416
  45. data/test/dummy/public/404.html +0 -26
  46. data/test/dummy/public/422.html +0 -26
  47. data/test/dummy/public/500.html +0 -25
  48. data/test/dummy/public/favicon.ico +0 -0
  49. data/test/dummy/script/rails +0 -6
  50. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  51. data/test/dummy/tmp/cache/assets/CF0/DC0/sprockets%2Fc7df72c44e5cf6295507448c4726d47b +0 -0
  52. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  53. data/test/dummy/tmp/cache/assets/D3C/0C0/sprockets%2F984da4677de1065bf04bbd8a505d0e90 +0 -0
  54. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  55. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  56. data/test/dummy/tmp/cache/assets/D71/8C0/sprockets%2F07e1f1387073a8829a9b7edfdaa771aa +0 -0
  57. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  58. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  59. data/test/dummy/tmp/cache/assets/E5E/0C0/sprockets%2Fb7fae3fe0c7bca77de72b8e8800aad9a +0 -0
  60. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  61. data/test/dummy/tmp/cache/assets/test/sprockets/27db960e9aa643c0bb6a5c816ff0131e +0 -0
  62. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  63. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  64. data/test/dummy/tmp/cache/assets/test/sprockets/6f6310c1b5407da50f031143deb91c34 +0 -0
  65. data/test/dummy/tmp/cache/assets/test/sprockets/70bf67ab6d61f1c95b28741e6ab01ef2 +0 -0
  66. data/test/dummy/tmp/cache/assets/test/sprockets/79ad5cdd007a17eafa73d743b6755cb8 +0 -0
  67. data/test/dummy/tmp/cache/assets/test/sprockets/a939d785b831a27f85d9ac24def8836e +0 -0
  68. data/test/dummy/tmp/cache/assets/test/sprockets/b10fc2c45b5b421a2c9968a44b2b09af +0 -0
  69. data/test/dummy/tmp/cache/assets/test/sprockets/cc469c18b214c2fb0b7807c4e3c640f7 +0 -0
  70. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  71. data/test/dummy/tmp/cache/assets/test/sprockets/d5571dc03eff8cbafd90bc2c8e499122 +0 -0
  72. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  73. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  74. data/test/integration/navigation_test.rb +0 -31
  75. data/test/support/integration_case.rb +0 -5
  76. data/test/test_helper.rb +0 -20
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/404.html -->
21
- <div class="dialog">
22
- <h1>The page you were looking for doesn't exist.</h1>
23
- <p>You may have mistyped the address or the page may have moved.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/422.html -->
21
- <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,25 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/500.html -->
21
- <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
23
- </div>
24
- </body>
25
- </html>
File without changes
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
@@ -1,31 +0,0 @@
1
- require 'test_helper'
2
-
3
- class NavigationTest < ActiveSupport::IntegrationCase
4
- test "truth" do
5
- assert_kind_of Dummy::Application, Rails.application
6
- end
7
-
8
- test "pdf request sends a pdf as file" do
9
- visit home_path
10
- click_link 'index'
11
-
12
- assert_equal 'binary', headers['Content-Transfer-Encoding']
13
- assert_equal 'attachment; filename="contents.pdf"', headers['Content-Disposition']
14
- assert_equal 'application/pdf', headers['Content-Type']
15
- end
16
-
17
- test "pdf request to an action with view template inside pdf subdirectory" do
18
- visit home_path
19
- click_link 'subdir_template'
20
-
21
- assert_equal 'binary', headers['Content-Transfer-Encoding']
22
- assert_equal 'attachment; filename="subdir_template.pdf"', headers['Content-Disposition']
23
- assert_equal 'application/pdf', headers['Content-Type']
24
- end
25
-
26
- protected
27
-
28
- def headers
29
- page.response_headers
30
- end
31
- end
@@ -1,5 +0,0 @@
1
- # Define a bare test case to use with Capybara
2
- class ActiveSupport::IntegrationCase < ActiveSupport::TestCase
3
- include Capybara::DSL
4
- include Rails.application.routes.url_helpers
5
- end
data/test/test_helper.rb DELETED
@@ -1,20 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Configure capybara for integration testing
10
- require "capybara/rails"
11
- Capybara.default_driver = :rack_test
12
- Capybara.default_selector = :css
13
-
14
- # Load support files
15
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
16
-
17
- # Load fixtures from the engine
18
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
19
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
20
- end