squash_whitespace 0.0.1

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 (80) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +21 -0
  4. data/Rakefile +34 -0
  5. data/lib/squash_whitespace/helpers.rb +18 -0
  6. data/lib/squash_whitespace/railtie.rb +11 -0
  7. data/lib/squash_whitespace/version.rb +3 -0
  8. data/lib/squash_whitespace.rb +11 -0
  9. data/lib/tasks/squash_whitespace_tasks.rake +4 -0
  10. data/test/dummy/README.rdoc +28 -0
  11. data/test/dummy/Rakefile +6 -0
  12. data/test/dummy/app/assets/javascripts/application.js +13 -0
  13. data/test/dummy/app/assets/javascripts/pages.js +2 -0
  14. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  15. data/test/dummy/app/assets/stylesheets/pages.css +4 -0
  16. data/test/dummy/app/controllers/application_controller.rb +5 -0
  17. data/test/dummy/app/controllers/pages_controller.rb +2 -0
  18. data/test/dummy/app/helpers/application_helper.rb +2 -0
  19. data/test/dummy/app/helpers/pages_helper.rb +2 -0
  20. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  21. data/test/dummy/app/views/pages/index.html.erb +61 -0
  22. data/test/dummy/bin/bundle +3 -0
  23. data/test/dummy/bin/rails +4 -0
  24. data/test/dummy/bin/rake +4 -0
  25. data/test/dummy/bin/setup +29 -0
  26. data/test/dummy/config/application.rb +26 -0
  27. data/test/dummy/config/boot.rb +5 -0
  28. data/test/dummy/config/database.yml +25 -0
  29. data/test/dummy/config/environment.rb +5 -0
  30. data/test/dummy/config/environments/development.rb +41 -0
  31. data/test/dummy/config/environments/production.rb +79 -0
  32. data/test/dummy/config/environments/test.rb +42 -0
  33. data/test/dummy/config/initializers/assets.rb +11 -0
  34. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  35. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  36. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  37. data/test/dummy/config/initializers/inflections.rb +16 -0
  38. data/test/dummy/config/initializers/mime_types.rb +4 -0
  39. data/test/dummy/config/initializers/session_store.rb +3 -0
  40. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  41. data/test/dummy/config/locales/en.yml +23 -0
  42. data/test/dummy/config/routes.rb +56 -0
  43. data/test/dummy/config/secrets.yml +22 -0
  44. data/test/dummy/config.ru +4 -0
  45. data/test/dummy/db/development.sqlite3 +0 -0
  46. data/test/dummy/db/test.sqlite3 +0 -0
  47. data/test/dummy/log/development.log +182 -0
  48. data/test/dummy/log/test.log +50 -0
  49. data/test/dummy/public/404.html +67 -0
  50. data/test/dummy/public/422.html +67 -0
  51. data/test/dummy/public/500.html +66 -0
  52. data/test/dummy/public/favicon.ico +0 -0
  53. data/test/dummy/test/controllers/pages_controller_test.rb +7 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/-lQAyVnsdBE_3EmPwFhNZvK9n9SODvT7J0esIeeL7wc.cache +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/1jEmpzz8VKTYZLuPeMlau0sKFavozdZKHjUmAiVe6VI.cache +1 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/2WxS9woKWZXbZ4noZotoub2C9eSivlEwCj61lnAqX9g.cache +1 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/435ZKKoOp4qIFz_AUzRiyC41N0wfZNsPCGC2lUEi03o.cache +1 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/6ZAh5UIVmgKzHe-NhXefbchJzRIpvOxHRLovPsWw35g.cache +2 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/7VoSpYSGYGcPT8B5Q-5o3IcQnNoeVG9wrfgq2AmJ9PM.cache +1 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/A8gpqWTYMjSkVk7eGL5742gN5XIl2hOcRZaO5gSVdCQ.cache +2 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/EfXtXu3pa1eki0HjtjUU090OfXoRRYvgSD35csnFjlg.cache +1 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/FZV5vAG6HeNMz59KYTddFNDi9KZ9JcKC7FTfoVxt1Kk.cache +2 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Ffbp6rom3IOjispTDwylo_q2YQgi1UFCtKm1joBs9w8.cache +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/LdjcfuUgDgieek6NqOl4Ocd9ud44Gu4O7cBy9IbjkkQ.cache +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/SGLD5Pr7HkyVEZATRU-z-kKGGwGYymuCNxDpPGEsZzg.cache +1 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/TTCKPro6cWZKIfoTRB63JRQRyQuZlKdOeijR56L8--Y.cache +2 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/dUAuehXZdmXDdJFx-OEekBa74ByXuE62B9nPhzvBuoA.cache +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/hNc1HPAtJO9Hvys9JZdpya0PEZ741ttIxa9dSbi3ISI.cache +1 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/hXN-qkGyVkojQWaWxJkIwyKyljSiovzmtAwLHGJw1fs.cache +2 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/jg7KKp_a7n0YM40tVCUv2YW9CICzN97QOzjJa3ju3IU.cache +1 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/jwIY9Qs7rpAhDyt_5jYxjuxqSybmaPSKLAx1xIdr7MA.cache +1 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/k57paXcM7abK4GgsVukas7HCF_NqDA9ezu3ZyJvM3QY.cache +2 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/kPtyVNCVBRBTWb8AhaX5tBQx1-jZu2mEPB_Yop2kq58.cache +2 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/pvrS_fYOx2FRPgUwkKN_htt82GyCB9yDfZjJXrbzq68.cache +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/tKZwuDlBkMxPXiARypWO4tp-lxGKFUOm8uCDFkO1A2s.cache +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/uNtfvu15qYrODi5Lu1yzNWP3eIu6nO9_6n0vZBMYKco.cache +1 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/vE8MCHW_Gsy4wzrRs20FqWWi0QGy2A1fG6X4jx-E8iM.cache +1 -0
  78. data/test/squash_whitespace_test.rb +35 -0
  79. data/test/test_helper.rb +19 -0
  80. metadata +220 -0
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ Rails.application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ root 'pages#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: c6b92f4e1dfecc40fb6114f6a8a543995a48dc1aa5aed9f6ce2726c1ad28b7acd133499ef1e79a4231e4c78b217f7761893d13e1f6548a3d68ccf68d63ae6a1a
15
+
16
+ test:
17
+ secret_key_base: 22fbc0a119f59a42b0a08b207ec6b10a872f1d68509811fb7ef743723bc6e6ccf7322bf00ab5354271be1a34d413f82a1f6344c741a9e6ac817bf942206a9e39
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
File without changes
File without changes
@@ -0,0 +1,182 @@
1
+
2
+
3
+ Started GET "/" for ::1 at 2015-06-18 18:26:57 +0900
4
+ Processing by PagesController#index as HTML
5
+ Rendered pages/index.html.erb within layouts/application (6.4ms)
6
+ Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.0ms)
7
+
8
+ ActionView::Template::Error (undefined local variable or method `html_text' for SquashWhitespace:Module):
9
+ 1: <%= squash_whitespace do %>
10
+ 2: <ul>
11
+ 3: <li>Item 1</li>
12
+ 4: <li>Item 2</li>
13
+ app/views/pages/index.html.erb:1:in `_app_views_pages_index_html_erb__2299324266623731940_70302322670040'
14
+
15
+
16
+ Rendered /Users/ta/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.4ms)
17
+ Rendered /Users/ta/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.4ms)
18
+ Rendered /Users/ta/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (11.5ms)
19
+ Rendered /Users/ta/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (75.6ms)
20
+
21
+
22
+ Started GET "/" for ::1 at 2015-06-18 18:27:23 +0900
23
+ Processing by PagesController#index as HTML
24
+ Rendered pages/index.html.erb within layouts/application (1.2ms)
25
+ Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)
26
+
27
+ ActionView::Template::Error (undefined local variable or method `html_text' for SquashWhitespace:Module):
28
+ 1: <%= squash_whitespace do %>
29
+ 2: <ul>
30
+ 3: <li>Item 1</li>
31
+ 4: <li>Item 2</li>
32
+ app/views/pages/index.html.erb:1:in `_app_views_pages_index_html_erb__2299324266623731940_70302322670040'
33
+
34
+
35
+ Rendered /Users/ta/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.8ms)
36
+ Rendered /Users/ta/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms)
37
+ Rendered /Users/ta/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
38
+ Rendered /Users/ta/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (63.4ms)
39
+
40
+
41
+ Started GET "/" for ::1 at 2015-06-18 18:27:37 +0900
42
+ Processing by PagesController#index as HTML
43
+ Rendered pages/index.html.erb within layouts/application (1.3ms)
44
+ Completed 200 OK in 236ms (Views: 235.9ms | ActiveRecord: 0.0ms)
45
+
46
+
47
+ Started GET "/assets/pages.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for ::1 at 2015-06-18 18:27:37 +0900
48
+
49
+
50
+ Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2015-06-18 18:27:37 +0900
51
+
52
+
53
+ Started GET "/assets/pages.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for ::1 at 2015-06-18 18:27:37 +0900
54
+
55
+
56
+ Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for ::1 at 2015-06-18 18:27:37 +0900
57
+
58
+
59
+ Started GET "/" for ::1 at 2015-06-18 18:29:30 +0900
60
+ Processing by PagesController#index as HTML
61
+ Rendered pages/index.html.erb within layouts/application (0.9ms)
62
+ Completed 200 OK in 14ms (Views: 14.0ms | ActiveRecord: 0.0ms)
63
+
64
+
65
+ Started GET "/" for ::1 at 2015-06-18 18:29:57 +0900
66
+ Processing by PagesController#index as HTML
67
+ Rendered pages/index.html.erb within layouts/application (0.8ms)
68
+ Completed 200 OK in 14ms (Views: 14.0ms | ActiveRecord: 0.0ms)
69
+
70
+
71
+ Started GET "/" for ::1 at 2015-06-18 18:31:25 +0900
72
+ Processing by PagesController#index as HTML
73
+ Rendered pages/index.html.erb within layouts/application (2.1ms)
74
+ Completed 200 OK in 207ms (Views: 206.1ms | ActiveRecord: 0.0ms)
75
+
76
+
77
+ Started GET "/" for ::1 at 2015-06-18 18:31:26 +0900
78
+ Processing by PagesController#index as HTML
79
+ Rendered pages/index.html.erb within layouts/application (0.3ms)
80
+ Completed 200 OK in 14ms (Views: 13.9ms | ActiveRecord: 0.0ms)
81
+
82
+
83
+ Started GET "/" for ::1 at 2015-06-18 18:31:48 +0900
84
+ Processing by PagesController#index as HTML
85
+ Rendered pages/index.html.erb within layouts/application (1.9ms)
86
+ Completed 200 OK in 195ms (Views: 194.2ms | ActiveRecord: 0.0ms)
87
+
88
+
89
+ Started GET "/" for ::1 at 2015-06-18 18:32:27 +0900
90
+ Processing by PagesController#index as HTML
91
+ Rendered pages/index.html.erb within layouts/application (0.3ms)
92
+ Completed 200 OK in 14ms (Views: 14.1ms | ActiveRecord: 0.0ms)
93
+
94
+
95
+ Started GET "/assets/pages.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for ::1 at 2015-06-18 18:32:27 +0900
96
+
97
+
98
+ Started GET "/assets/pages.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for ::1 at 2015-06-18 18:32:27 +0900
99
+
100
+
101
+ Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for ::1 at 2015-06-18 18:32:27 +0900
102
+
103
+
104
+ Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2015-06-18 18:32:27 +0900
105
+
106
+
107
+ Started GET "/" for ::1 at 2015-06-18 18:32:57 +0900
108
+ Processing by PagesController#index as HTML
109
+ Rendered pages/index.html.erb within layouts/application (0.8ms)
110
+ Completed 200 OK in 18ms (Views: 17.3ms | ActiveRecord: 0.0ms)
111
+
112
+
113
+ Started GET "/assets/pages.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for ::1 at 2015-06-18 18:32:57 +0900
114
+
115
+
116
+ Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for ::1 at 2015-06-18 18:32:57 +0900
117
+
118
+
119
+ Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2015-06-18 18:32:57 +0900
120
+
121
+
122
+ Started GET "/assets/pages.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for ::1 at 2015-06-18 18:32:57 +0900
123
+
124
+
125
+ Started GET "/" for ::1 at 2015-06-18 18:33:29 +0900
126
+ Processing by PagesController#index as HTML
127
+ Rendered pages/index.html.erb within layouts/application (0.8ms)
128
+ Completed 200 OK in 18ms (Views: 17.9ms | ActiveRecord: 0.0ms)
129
+
130
+
131
+ Started GET "/assets/pages.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for ::1 at 2015-06-18 18:33:29 +0900
132
+
133
+
134
+ Started GET "/assets/pages.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for ::1 at 2015-06-18 18:33:29 +0900
135
+
136
+
137
+ Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for ::1 at 2015-06-18 18:33:29 +0900
138
+
139
+
140
+ Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2015-06-18 18:33:29 +0900
141
+
142
+
143
+ Started GET "/" for ::1 at 2015-06-18 18:35:11 +0900
144
+ Processing by PagesController#index as HTML
145
+ Rendered pages/index.html.erb within layouts/application (0.9ms)
146
+ Completed 200 OK in 14ms (Views: 13.9ms | ActiveRecord: 0.0ms)
147
+
148
+
149
+ Started GET "/assets/pages.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for ::1 at 2015-06-18 18:35:11 +0900
150
+
151
+
152
+ Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for ::1 at 2015-06-18 18:35:11 +0900
153
+
154
+
155
+ Started GET "/assets/pages.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for ::1 at 2015-06-18 18:35:11 +0900
156
+
157
+
158
+ Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2015-06-18 18:35:11 +0900
159
+
160
+
161
+ Started GET "/" for ::1 at 2015-06-18 18:59:04 +0900
162
+ Processing by PagesController#index as HTML
163
+ Rendered pages/index.html.erb within layouts/application (3.0ms)
164
+ Completed 200 OK in 231ms (Views: 230.7ms | ActiveRecord: 0.0ms)
165
+
166
+
167
+ Started GET "/assets/pages.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for ::1 at 2015-06-18 18:59:05 +0900
168
+
169
+
170
+ Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2015-06-18 18:59:05 +0900
171
+
172
+
173
+ Started GET "/assets/pages.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for ::1 at 2015-06-18 18:59:05 +0900
174
+
175
+
176
+ Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for ::1 at 2015-06-18 18:59:05 +0900
177
+
178
+
179
+ Started GET "/" for ::1 at 2015-06-18 18:59:54 +0900
180
+ Processing by PagesController#index as HTML
181
+ Rendered pages/index.html.erb within layouts/application (2.3ms)
182
+ Completed 200 OK in 190ms (Views: 189.9ms | ActiveRecord: 0.0ms)
@@ -0,0 +1,50 @@
1
+  (0.1ms) begin transaction
2
+ ---------------------------------------------------------
3
+ SquashWhitespaceTest: test_remove_whitespace_between_tags
4
+ ---------------------------------------------------------
5
+  (0.1ms) rollback transaction
6
+  (0.1ms) begin transaction
7
+ ---------------------------------------------------------
8
+ SquashWhitespaceTest: test_remove_whitespace_between_tags
9
+ ---------------------------------------------------------
10
+  (0.2ms) rollback transaction
11
+  (0.1ms) begin transaction
12
+ ---------------------------------------------------------
13
+ SquashWhitespaceTest: test_remove_whitespace_between_tags
14
+ ---------------------------------------------------------
15
+  (0.1ms) rollback transaction
16
+  (0.1ms) begin transaction
17
+ ---------------------------------------------------
18
+ SquashWhitespaceTest: test_remove_whitespace_in_tag
19
+ ---------------------------------------------------
20
+  (0.1ms) rollback transaction
21
+  (0.1ms) begin transaction
22
+ ---------------------------------------------------
23
+ SquashWhitespaceTest: test_remove_whitespace_in_tag
24
+ ---------------------------------------------------
25
+  (0.1ms) rollback transaction
26
+  (0.1ms) begin transaction
27
+ ---------------------------------------------------------
28
+ SquashWhitespaceTest: test_remove_whitespace_between_tags
29
+ ---------------------------------------------------------
30
+  (0.0ms) rollback transaction
31
+  (0.1ms) begin transaction
32
+ --------------------------------------------------
33
+ SquashWhitespaceTest: test_strip_whitespace_in_tag
34
+ --------------------------------------------------
35
+  (0.1ms) rollback transaction
36
+  (0.1ms) begin transaction
37
+ ---------------------------------------------------------
38
+ SquashWhitespaceTest: test_remove_whitespace_between_tags
39
+ ---------------------------------------------------------
40
+  (0.0ms) rollback transaction
41
+  (0.1ms) begin transaction
42
+ --------------------------------------------------
43
+ SquashWhitespaceTest: test_strip_whitespace_in_tag
44
+ --------------------------------------------------
45
+  (0.1ms) rollback transaction
46
+  (0.0ms) begin transaction
47
+ ---------------------------------------------------------
48
+ SquashWhitespaceTest: test_remove_whitespace_between_tags
49
+ ---------------------------------------------------------
50
+  (0.0ms) rollback transaction
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class PagesControllerTest < ActionController::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1 @@
1
+ I"�file:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/stylesheets/application.css?type=text/css&id=87995d2b5ef77e797e9d7e09a79444e75e77425ae3386560f1be78d7e94c23e6:ET
@@ -0,0 +1 @@
1
+ I"�file:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/stylesheets/pages.css?type=text/css&pipeline=self&id=7b38f08ac90506edec47411d9abeaaed2dbf281af185f3d557142a5081517d3a:ET
@@ -0,0 +1 @@
1
+ I"�file:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/javascripts/pages.js?type=application/javascript&pipeline=self&id=611827888174fd6c7cf004765f00eef2fb00b616324971ccf124228fddf435b3:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"bfile-digest:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/javascripts/pages.js;TT
@@ -0,0 +1 @@
1
+ "%h�,"x!�ň�yf_C� _��V-� G�:P�
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"ifile-digest:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/stylesheets/application.css;TTI"Yfile-digest:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/stylesheets;TTI"cfile-digest:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/stylesheets/pages.css;TT
@@ -0,0 +1 @@
1
+ "%�W\�yho9S���ƫ˥��)|�~���(���
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"0processors:type=text/css&file_type=text/css;TTI"ifile-digest:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"cfile-digest:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/stylesheets/pages.css;TTI"Yfile-digest:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/stylesheets;TT
@@ -0,0 +1 @@
1
+ "%��P�h}�����/Qx.o":9t9��V�v�
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"cfile-digest:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/stylesheets/pages.css;TT
@@ -0,0 +1 @@
1
+ I"�file:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=11e93d739a6f50070f693d8c36691f4e8431d2b78a1ac4516f48dfa9e086a3bf:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"hfile-digest:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"bfile-digest:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/javascripts/pages.js;TTI"Yfile-digest:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/javascripts;TT
@@ -0,0 +1 @@
1
+ "%Ѱč@�����6H�uZoX�Z�gbh0W��V
@@ -0,0 +1 @@
1
+ I"�file:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=54fc898d619f1fc1e572094bed68b2ce36ea5e2cfb6c3248bc2d388722338b8c:ET
@@ -0,0 +1,2 @@
1
+ "%����͹mm�
2
+ a�l�|a56���v�6}��(&5
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"hfile-digest:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/javascripts/application.js;TTI"Yfile-digest:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/javascripts;TTI"bfile-digest:///Users/ta/web/ruby/squash_whitespace/test/dummy/app/assets/javascripts/pages.js;TT