Skip to content
This repository
Browse code

Deletes trailing whitespaces (over text files only find * -type f -ex…

…ec sed 's/[ \t]*$//' -i {} \;)
  • Loading branch information...
commit b451de0d6de4df6bc66b274cec73b919f823d5ae 1 parent 1590377
Santiago Pastorino authored August 14, 2010

Showing 301 changed files with 1,920 additions and 1,922 deletions. Show diff stats Hide diff stats

  1. 4  README.rdoc
  2. 8  actionmailer/CHANGELOG
  3. 22  actionmailer/README.rdoc
  4. 22  actionmailer/lib/action_mailer/base.rb
  5. 4  actionmailer/lib/action_mailer/delivery_methods.rb
  6. 4  actionmailer/lib/action_mailer/mail_helper.rb
  7. 32  actionmailer/lib/action_mailer/old_api.rb
  8. 6  actionmailer/lib/action_mailer/tmail_compat.rb
  9. 16  actionmailer/test/base_test.rb
  10. 6  actionmailer/test/delivery_methods_test.rb
  11. 2  actionmailer/test/fixtures/raw_email10
  12. 2  actionmailer/test/fixtures/raw_email2
  13. 2  actionmailer/test/fixtures/raw_email3
  14. 2  actionmailer/test/fixtures/raw_email5
  15. 2  actionmailer/test/fixtures/raw_email6
  16. 2  actionmailer/test/fixtures/raw_email8
  17. 10  actionmailer/test/fixtures/raw_email9
  18. 2  actionmailer/test/fixtures/templates/signed_up.erb
  19. 4  actionmailer/test/fixtures/test_mailer/custom_templating_extension.html.haml
  20. 4  actionmailer/test/fixtures/test_mailer/custom_templating_extension.text.haml
  21. 2  actionmailer/test/fixtures/test_mailer/signed_up.html.erb
  22. 2  actionmailer/test/fixtures/url_test_mailer/signed_up_with_url.erb
  23. 6  actionmailer/test/mailers/proc_mailer.rb
  24. 30  actionmailer/test/old_base/mail_service_test.rb
  25. 2  actionmailer/test/old_base/tmail_compat_test.rb
  26. 2  actionmailer/test/old_base/url_test.rb
  27. 24  actionmailer/test/test_helper_test.rb
  28. 4  actionpack/CHANGELOG
  29. 4  actionpack/README.rdoc
  30. 4  actionpack/RUNNING_UNIT_TESTS
  31. 2  actionpack/lib/abstract_controller/base.rb
  32. 4  actionpack/lib/action_controller/metal/http_authentication.rb
  33. 2  actionpack/lib/action_controller/middleware.rb
  34. 2  actionpack/lib/action_controller/test_case.rb
  35. 4  actionpack/lib/action_controller/vendor/html-scanner/html/document.rb
  36. 58  actionpack/lib/action_controller/vendor/html-scanner/html/node.rb
  37. 50  actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb
  38. 2  actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb
  39. 16  actionpack/lib/action_controller/vendor/html-scanner/html/tokenizer.rb
  40. 20  actionpack/lib/action_dispatch/http/mime_type.rb
  41. 2  actionpack/lib/action_dispatch/middleware/stack.rb
  42. 8  actionpack/lib/action_dispatch/routing.rb
  43. 2  actionpack/lib/action_view/helpers/debug_helper.rb
  44. 16  actionpack/lib/action_view/helpers/form_options_helper.rb
  45. 16  actionpack/lib/action_view/helpers/form_tag_helper.rb
  46. 2  actionpack/lib/action_view/helpers/number_helper.rb
  47. 2  actionpack/lib/action_view/helpers/raw_output_helper.rb
  48. 4  actionpack/lib/action_view/helpers/sanitize_helper.rb
  49. 4  actionpack/lib/action_view/helpers/text_helper.rb
  50. 18  actionpack/lib/action_view/helpers/translation_helper.rb
  51. 2  actionpack/lib/action_view/log_subscriber.rb
  52. 2  actionpack/lib/action_view/template/handler.rb
  53. 2  actionpack/lib/action_view/template/handlers.rb
  54. 2  actionpack/lib/action_view/test_case.rb
  55. 2  actionpack/lib/action_view/testing/resolvers.rb
  56. 92  actionpack/test/abstract/callbacks_test.rb
  57. 8  actionpack/test/abstract/helper_test.rb
  58. 8  actionpack/test/abstract/translation_test.rb
  59. 2  actionpack/test/abstract_unit.rb
  60. 2  actionpack/test/controller/assert_select_test.rb
  61. 12  actionpack/test/controller/base_test.rb
  62. 2  actionpack/test/controller/dispatcher_test.rb
  63. 2  actionpack/test/controller/filters_test.rb
  64. 14  actionpack/test/controller/helper_test.rb
  65. 6  actionpack/test/controller/http_basic_authentication_test.rb
  66. 6  actionpack/test/controller/http_token_authentication_test.rb
  67. 4  actionpack/test/controller/layout_test.rb
  68. 10  actionpack/test/controller/mime_responds_test.rb
  69. 2  actionpack/test/controller/new_base/etag_test.rb
  70. 4  actionpack/test/controller/new_base/render_implicit_action_test.rb
  71. 2  actionpack/test/controller/new_base/render_layout_test.rb
  72. 14  actionpack/test/controller/new_base/render_partial_test.rb
  73. 2  actionpack/test/controller/new_base/render_test.rb
  74. 24  actionpack/test/controller/new_base/render_text_test.rb
  75. 2  actionpack/test/controller/new_base/render_xml_test.rb
  76. 4  actionpack/test/controller/render_test.rb
  77. 2  actionpack/test/controller/rescue_test.rb
  78. 8  actionpack/test/controller/selector_test.rb
  79. 2  actionpack/test/controller/test_test.rb
  80. 4  actionpack/test/controller/view_paths_test.rb
  81. 2  actionpack/test/dispatch/callbacks_test.rb
  82. 2  actionpack/test/dispatch/mount_test.rb
  83. 2  actionpack/test/dispatch/request_test.rb
  84. 8  actionpack/test/dispatch/session/cookie_store_test.rb
  85. 2  actionpack/test/dispatch/session/mem_cache_store_test.rb
  86. 2  actionpack/test/fixtures/companies.yml
  87. 2  actionpack/test/fixtures/company.rb
  88. 20  actionpack/test/fixtures/db_definitions/sqlite.sql
  89. 2  actionpack/test/fixtures/replies.yml
  90. 2  actionpack/test/fixtures/test/hello_xml_world.builder
  91. 2  actionpack/test/fixtures/topics.yml
  92. 2  actionpack/test/template/compiled_templates_test.rb
  93. 2  actionpack/test/template/date_helper_i18n_test.rb
  94. 28  actionpack/test/template/date_helper_test.rb
  95. 2  actionpack/test/template/erb_util_test.rb
  96. 12  actionpack/test/template/form_options_helper_test.rb
  97. 2  actionpack/test/template/html-scanner/document_test.rb
  98. 18  actionpack/test/template/html-scanner/node_test.rb
  99. 34  actionpack/test/template/html-scanner/sanitizer_test.rb
  100. 46  actionpack/test/template/html-scanner/tag_node_test.rb
  101. 10  actionpack/test/template/html-scanner/text_node_test.rb
  102. 20  actionpack/test/template/html-scanner/tokenizer_test.rb
  103. 2  actionpack/test/template/number_helper_test.rb
  104. 6  actionpack/test/template/tag_helper_test.rb
  105. 12  actionpack/test/template/text_helper_test.rb
  106. 8  actionpack/test/template/translation_helper_test.rb
  107. 4  actionpack/test/template/url_helper_test.rb
  108. 2  activemodel/CHANGELOG
  109. 54  activemodel/README.rdoc
  110. 84  activemodel/lib/active_model/attribute_methods.rb
  111. 58  activemodel/lib/active_model/callbacks.rb
  112. 12  activemodel/lib/active_model/conversion.rb
  113. 36  activemodel/lib/active_model/dirty.rb
  114. 60  activemodel/lib/active_model/errors.rb
  115. 2  activemodel/lib/active_model/lint.rb
  116. 10  activemodel/lib/active_model/naming.rb
  117. 14  activemodel/lib/active_model/observing.rb
  118. 44  activemodel/lib/active_model/serialization.rb
  119. 2  activemodel/lib/active_model/serializers/xml.rb
  120. 14  activemodel/lib/active_model/translation.rb
  121. 32  activemodel/lib/active_model/validations.rb
  122. 22  activemodel/lib/active_model/validations/acceptance.rb
  123. 20  activemodel/lib/active_model/validations/confirmation.rb
  124. 2  activemodel/lib/active_model/validations/length.rb
  125. 10  activemodel/lib/active_model/validations/validates.rb
  126. 22  activemodel/lib/active_model/validator.rb
  127. 4  activemodel/test/cases/attribute_methods_test.rb
  128. 10  activemodel/test/cases/serializeration/json_serialization_test.rb
  129. 4  activemodel/test/cases/translation_test.rb
  130. 8  activemodel/test/cases/validations/validates_test.rb
  131. 2  activemodel/test/cases/validations_test.rb
  132. 4  activemodel/test/models/custom_reader.rb
  133. 2  activemodel/test/models/person_with_validator.rb
  134. 1  activemodel/test/models/sheep.rb
  135. 18  activerecord/README.rdoc
  136. 16  activerecord/RUNNING_UNIT_TESTS
  137. 96  activerecord/lib/active_record/aggregations.rb
  138. 8  activerecord/lib/active_record/association_preload.rb
  139. 344  activerecord/lib/active_record/associations.rb
  140. 6  activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
  141. 8  activerecord/lib/active_record/associations/has_many_association.rb
  142. 6  activerecord/lib/active_record/associations/has_many_through_association.rb
  143. 2  activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb
  144. 2  activerecord/lib/active_record/attribute_methods/write.rb
  145. 10  activerecord/lib/active_record/autosave_association.rb
  146. 174  activerecord/lib/active_record/base.rb
  147. 48  activerecord/lib/active_record/callbacks.rb
  148. 2  activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
  149. 6  activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
  150. 4  activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
  151. 4  activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
  152. 2  activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
  153. 8  activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
  154. 2  activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
  155. 2  activerecord/lib/active_record/dynamic_finder_match.rb
  156. 2  activerecord/lib/active_record/dynamic_scope_match.rb
  157. 8  activerecord/lib/active_record/errors.rb
  158. 36  activerecord/lib/active_record/fixtures.rb
  159. 4  activerecord/lib/active_record/locale/en.yml
  160. 66  activerecord/lib/active_record/migration.rb
  161. 24  activerecord/lib/active_record/named_scope.rb
  162. 2  activerecord/lib/active_record/nested_attributes.rb
  163. 2  activerecord/lib/active_record/observer.rb
  164. 26  activerecord/lib/active_record/reflection.rb
  165. 8  activerecord/lib/active_record/relation.rb
  166. 52  activerecord/lib/active_record/relation/calculations.rb
  167. 14  activerecord/lib/active_record/relation/finder_methods.rb
  168. 2  activerecord/lib/active_record/relation/spawn_methods.rb
  169. 4  activerecord/lib/active_record/schema_dumper.rb
  170. 2  activerecord/lib/active_record/serialization.rb
  171. 2  activerecord/lib/active_record/serializers/xml_serializer.rb
  172. 2  activerecord/lib/active_record/session_store.rb
  173. 2  activerecord/lib/active_record/test_case.rb
  174. 4  activerecord/lib/active_record/validations/associated.rb
  175. 20  activerecord/lib/active_record/validations/uniqueness.rb
  176. 4  activerecord/test/cases/associations/has_many_through_associations_test.rb
  177. 14  activerecord/test/cases/associations/has_one_through_associations_test.rb
  178. 10  activerecord/test/cases/associations/join_model_test.rb
  179. 6  activerecord/test/cases/associations_test.rb
  180. 8  activerecord/test/cases/attribute_methods_test.rb
  181. 2  activerecord/test/cases/autosave_association_test.rb
  182. 2  activerecord/test/cases/counter_cache_test.rb
  183. 6  activerecord/test/cases/defaults_test.rb
  184. 14  activerecord/test/cases/dirty_test.rb
  185. 16  activerecord/test/cases/fixtures_test.rb
  186. 4  activerecord/test/cases/i18n_test.rb
  187. 2  activerecord/test/cases/json_serialization_test.rb
  188. 4  activerecord/test/cases/migration_test.rb
  189. 4  activerecord/test/cases/modules_test.rb
  190. 20  activerecord/test/cases/nested_attributes_test.rb
  191. 4  activerecord/test/cases/persistence_test.rb
  192. 2  activerecord/test/cases/reflection_test.rb
  193. 4  activerecord/test/cases/relation_scoping_test.rb
  194. 4  activerecord/test/cases/relations_test.rb
  195. 2  activerecord/test/cases/serialization_test.rb
  196. 28  activerecord/test/cases/timestamp_test.rb
  197. 4  activerecord/test/fixtures/comments.yml
  198. 10  activerecord/test/fixtures/companies.yml
  199. 1  activerecord/test/fixtures/items.yml
  200. 2  activerecord/test/fixtures/memberships.yml
  201. 2  activerecord/test/fixtures/mixins.yml
  202. 2  activerecord/test/fixtures/taggings.yml
  203. 2  activerecord/test/fixtures/tags.yml
  204. 2  activerecord/test/models/developer.rb
  205. 4  activerecord/test/models/minivan.rb
  206. 2  activerecord/test/models/post.rb
  207. 2  activerecord/test/models/shop.rb
  208. 2  activerecord/test/models/topic.rb
  209. 2  activerecord/test/schema/postgresql_specific_schema.rb
  210. 6  activerecord/test/schema/schema.rb
  211. 22  activeresource/CHANGELOG
  212. 8  activeresource/README.rdoc
  213. 8  activeresource/lib/active_resource/http_mock.rb
  214. 16  activeresource/lib/active_resource/validations.rb
  215. 10  activeresource/test/cases/base/custom_methods_test.rb
  216. 2  activeresource/test/cases/validations_test.rb
  217. 4  activeresource/test/connection_test.rb
  218. 68  activesupport/CHANGELOG
  219. 6  activesupport/lib/active_support/base64.rb
  220. 6  activesupport/lib/active_support/benchmarkable.rb
  221. 22  activesupport/lib/active_support/cache.rb
  222. 2  activesupport/lib/active_support/cache/strategy/local_cache.rb
  223. 2  activesupport/lib/active_support/callbacks.rb
  224. 8  activesupport/lib/active_support/core_ext/array/random_access.rb
  225. 2  activesupport/lib/active_support/core_ext/array/wrap.rb
  226. 4  activesupport/lib/active_support/core_ext/date/calculations.rb
  227. 12  activesupport/lib/active_support/core_ext/date_time/conversions.rb
  228. 2  activesupport/lib/active_support/core_ext/date_time/zones.rb
  229. 8  activesupport/lib/active_support/core_ext/enumerable.rb
  230. 22  activesupport/lib/active_support/core_ext/hash/conversions.rb
  231. 4  activesupport/lib/active_support/core_ext/integer/time.rb
  232. 2  activesupport/lib/active_support/core_ext/module/anonymous.rb
  233. 4  activesupport/lib/active_support/core_ext/module/attr_accessor_with_default.rb
  234. 2  activesupport/lib/active_support/core_ext/module/attribute_accessors.rb
  235. 2  activesupport/lib/active_support/core_ext/module/remove_method.rb
  236. 4  activesupport/lib/active_support/core_ext/module/synchronization.rb
  237. 18  activesupport/lib/active_support/core_ext/numeric/time.rb
  238. 2  activesupport/lib/active_support/core_ext/object/blank.rb
  239. 10  activesupport/lib/active_support/core_ext/object/instance_variables.rb
  240. 4  activesupport/lib/active_support/core_ext/object/returning.rb
  241. 2  activesupport/lib/active_support/core_ext/range/conversions.rb
  242. 14  activesupport/lib/active_support/core_ext/string/access.rb
  243. 12  activesupport/lib/active_support/core_ext/string/inflections.rb
  244. 4  activesupport/lib/active_support/core_ext/time/calculations.rb
  245. 2  activesupport/lib/active_support/core_ext/time/conversions.rb
  246. 6  activesupport/lib/active_support/core_ext/time/zones.rb
  247. 2  activesupport/lib/active_support/duration.rb
  248. 2  activesupport/lib/active_support/i18n_railtie.rb
  249. 4  activesupport/lib/active_support/lazy_load_hooks.rb
  250. 6  activesupport/lib/active_support/locale/en.yml
  251. 2  activesupport/lib/active_support/log_subscriber.rb
  252. 2  activesupport/lib/active_support/log_subscriber/test_helper.rb
  253. 34  activesupport/lib/active_support/message_encryptor.rb
  254. 14  activesupport/lib/active_support/message_verifier.rb
  255. 2  activesupport/lib/active_support/multibyte.rb
  256. 4  activesupport/lib/active_support/ordered_hash.rb
  257. 6  activesupport/lib/active_support/ordered_options.rb
  258. 4  activesupport/lib/active_support/testing/assertions.rb
  259. 8  activesupport/lib/active_support/testing/declarative.rb
  260. 6  activesupport/lib/active_support/testing/pending.rb
  261. 4  activesupport/lib/active_support/time_with_zone.rb
  262. 2  activesupport/lib/active_support/xml_mini/rexml.rb
  263. 2  activesupport/test/autoloading_fixtures/class_folder/nested_class.rb
  264. 14  activesupport/test/clean_backtrace_test.rb
  265. 4  activesupport/test/clean_logger_test.rb
  266. 12  activesupport/test/core_ext/array_ext_test.rb
  267. 10  activesupport/test/core_ext/class/attribute_accessor_test.rb
  268. 22  activesupport/test/core_ext/class/class_inheritable_attributes_test.rb
  269. 16  activesupport/test/core_ext/date_ext_test.rb
  270. 2  activesupport/test/core_ext/date_time_ext_test.rb
  271. 4  activesupport/test/core_ext/duration_test.rb
  272. 2  activesupport/test/core_ext/enumerable_test.rb
  273. 42  activesupport/test/core_ext/hash_ext_test.rb
  274. 2  activesupport/test/core_ext/kernel_test.rb
  275. 2  activesupport/test/core_ext/module/anonymous_test.rb
  276. 8  activesupport/test/core_ext/module/attr_accessor_with_default_test.rb
  277. 2  activesupport/test/core_ext/module/attribute_accessor_test.rb
  278. 6  activesupport/test/core_ext/module/attribute_aliasing_test.rb
  279. 16  activesupport/test/core_ext/module/reachable_test.rb
  280. 24  activesupport/test/core_ext/numeric_ext_test.rb
  281. 2  activesupport/test/core_ext/object_and_class_ext_test.rb
  282. 2  activesupport/test/core_ext/string_ext_test.rb
  283. 20  activesupport/test/core_ext/time_ext_test.rb
  284. 6  activesupport/test/core_ext/time_with_zone_test.rb
  285. 34  activesupport/test/i18n_test.rb
  286. 14  activesupport/test/message_encryptor_test.rb
  287. 30  activesupport/test/multibyte_conformance.rb
  288. 2  activesupport/test/option_merger_test.rb
  289. 8  activesupport/test/rescuable_test.rb
  290. 20  activesupport/test/test_test.rb
  291. 2  activesupport/test/time_zone_test.rb
  292. 6  ci/ci_setup_notes.txt
  293. 12  ci/site_config.rb
  294. 150  railties/CHANGELOG
  295. 2  railties/README.rdoc
  296. 28  railties/guides/assets/stylesheets/main.css
  297. 14  railties/guides/rails_guides/generator.rb
  298. 10  railties/guides/source/2_3_release_notes.textile
  299. 14  railties/guides/source/action_controller_overview.textile
  300. 88  railties/guides/source/action_view_overview.textile
4  README.rdoc
Source Rendered
@@ -34,7 +34,7 @@ link:files/vendor/rails/actionpack/README.html.
34 34
 
35 35
 2. At the command prompt, create a new Rails application:
36 36
 
37  
-    rails new myapp 
  37
+    rails new myapp
38 38
 
39 39
    where "myapp" is the application name.
40 40
 
@@ -48,7 +48,7 @@ link:files/vendor/rails/actionpack/README.html.
48 48
 
49 49
     "Welcome aboard: You're riding Ruby on Rails!"
50 50
 
51  
-5. Follow the guidelines to start developing your application. You can find 
  51
+5. Follow the guidelines to start developing your application. You can find
52 52
 the following resources handy:
53 53
 
54 54
 * The README file created within your application.
8  actionmailer/CHANGELOG
@@ -181,7 +181,7 @@
181 181
 
182 182
 * ActionMailer::Base documentation rewrite. Closes #4991 [Kevin Clark, Marcel Molina Jr.]
183 183
 
184  
-* Replace alias method chaining with Module#alias_method_chain. [Marcel Molina Jr.] 
  184
+* Replace alias method chaining with Module#alias_method_chain. [Marcel Molina Jr.]
185 185
 
186 186
 * Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.]
187 187
 
@@ -327,7 +327,7 @@
327 327
 
328 328
 * Added that deliver_* will now return the email that was sent
329 329
 
330  
-* Added that quoting to UTF-8 only happens if the characters used are in that range #955 [Jamis Buck] 
  330
+* Added that quoting to UTF-8 only happens if the characters used are in that range #955 [Jamis Buck]
331 331
 
332 332
 * Fixed quoting for all address headers, not just to #955 [Jamis Buck]
333 333
 
@@ -366,7 +366,7 @@
366 366
       @body       = "Nothing to see here."
367 367
       @charset    = "iso-8859-1"
368 368
     end
369  
-    
  369
+
370 370
     def unencoded_subject(recipient)
371 371
       @recipients = recipient
372 372
       @subject    = "testing unencoded subject"
@@ -375,7 +375,7 @@
375 375
       @encode_subject = false
376 376
       @charset    = "iso-8859-1"
377 377
     end
378  
-    
  378
+
379 379
 
380 380
 *0.6.1* (January 18th, 2005)
381 381
 
22  actionmailer/README.rdoc
Source Rendered
@@ -5,7 +5,7 @@ are used to consolidate code for sending out forgotten passwords, welcome
5 5
 wishes on signup, invoices for billing, and any other use case that requires
6 6
 a written notification to either a person or another system.
7 7
 
8  
-Action Mailer is in essence a wrapper around Action Controller and the 
  8
+Action Mailer is in essence a wrapper around Action Controller and the
9 9
 Mail gem.  It provides a way to make emails using templates in the same
10 10
 way that Action Controller renders views using templates.
11 11
 
@@ -23,7 +23,7 @@ This can be as simple as:
23 23
 
24 24
   class Notifier < ActionMailer::Base
25 25
     delivers_from 'system@loudthinking.com'
26  
-  
  26
+
27 27
     def welcome(recipient)
28 28
       @recipient = recipient
29 29
       mail(:to => recipient,
@@ -36,13 +36,13 @@ ERb) that has the instance variables that are declared in the mailer action.
36 36
 
37 37
 So the corresponding body template for the method above could look like this:
38 38
 
39  
-  Hello there, 
  39
+  Hello there,
40 40
 
41 41
   Mr. <%= @recipient %>
42 42
 
43 43
   Thank you for signing up!
44  
-  
45  
-And if the recipient was given as "david@loudthinking.com", the email 
  44
+
  45
+And if the recipient was given as "david@loudthinking.com", the email
46 46
 generated would look like this:
47 47
 
48 48
   Date: Mon, 25 Jan 2010 22:48:09 +1100
@@ -55,7 +55,7 @@ generated would look like this:
55 55
   	charset="US-ASCII";
56 56
   Content-Transfer-Encoding: 7bit
57 57
 
58  
-  Hello there, 
  58
+  Hello there,
59 59
 
60 60
   Mr. david@loudthinking.com
61 61
 
@@ -75,7 +75,7 @@ Or you can just chain the methods together like:
75 75
 == Receiving emails
76 76
 
77 77
 To receive emails, you need to implement a public instance method called <tt>receive</tt> that takes a
78  
-tmail object as its single parameter. The Action Mailer framework has a corresponding class method, 
  78
+tmail object as its single parameter. The Action Mailer framework has a corresponding class method,
79 79
 which is also called <tt>receive</tt>, that accepts a raw, unprocessed email as a string, which it then turns
80 80
 into the tmail object and calls the receive instance method.
81 81
 
@@ -90,7 +90,7 @@ Example:
90 90
 
91 91
       if email.has_attachments?
92 92
         for attachment in email.attachments
93  
-          page.attachments.create({ 
  93
+          page.attachments.create({
94 94
             :file => attachment, :description => email.subject
95 95
           })
96 96
         end
@@ -98,13 +98,13 @@ Example:
98 98
     end
99 99
   end
100 100
 
101  
-This Mailman can be the target for Postfix or other MTAs. In Rails, you would use the runner in the 
  101
+This Mailman can be the target for Postfix or other MTAs. In Rails, you would use the runner in the
102 102
 trivial case like this:
103 103
 
104 104
   rails runner 'Mailman.receive(STDIN.read)'
105 105
 
106  
-However, invoking Rails in the runner for each mail to be received is very resource intensive.  A single 
107  
-instance of Rails should be run within a daemon if it is going to be utilized to process more than just 
  106
+However, invoking Rails in the runner for each mail to be received is very resource intensive.  A single
  107
+instance of Rails should be run within a daemon if it is going to be utilized to process more than just
108 108
 a limited number of email.
109 109
 
110 110
 == Configuration
22  actionmailer/lib/action_mailer/base.rb
@@ -187,31 +187,31 @@ module ActionMailer #:nodoc:
187 187
   # with the filename +free_book.pdf+.
188 188
   #
189 189
   # = Inline Attachments
190  
-  # 
191  
-  # You can also specify that a file should be displayed inline with other HTML. This is useful 
  190
+  #
  191
+  # You can also specify that a file should be displayed inline with other HTML. This is useful
192 192
   # if you want to display a corporate logo or a photo.
193  
-  # 
  193
+  #
194 194
   #   class ApplicationMailer < ActionMailer::Base
195 195
   #     def welcome(recipient)
196 196
   #       attachments.inline['photo.png'] = File.read('path/to/photo.png')
197 197
   #       mail(:to => recipient, :subject => "Here is what we look like")
198 198
   #     end
199 199
   #   end
200  
-  # 
  200
+  #
201 201
   # And then to reference the image in the view, you create a <tt>welcome.html.erb</tt> file and
202  
-  # make a call to +image_tag+ passing in the attachment you want to display and then call 
  202
+  # make a call to +image_tag+ passing in the attachment you want to display and then call
203 203
   # +url+ on the attachment to get the relative content id path for the image source:
204  
-  # 
  204
+  #
205 205
   #   <h1>Please Don't Cringe</h1>
206  
-  # 
  206
+  #
207 207
   #   <%= image_tag attachments['photo.png'].url -%>
208  
-  # 
  208
+  #
209 209
   # As we are using Action View's +image_tag+ method, you can pass in any other options you want:
210  
-  # 
  210
+  #
211 211
   #   <h1>Please Don't Cringe</h1>
212  
-  # 
  212
+  #
213 213
   #   <%= image_tag attachments['photo.png'].url, :alt => 'Our Photo', :class => 'photo' -%>
214  
-  # 
  214
+  #
215 215
   # = Observing and Intercepting Mails
216 216
   #
217 217
   # Action Mailer provides hooks into the Mail observer and interceptor methods.  These allow you to
4  actionmailer/lib/action_mailer/delivery_methods.rb
@@ -46,11 +46,11 @@ module ClassMethods
46 46
       # as alias and the default options supplied:
47 47
       #
48 48
       # Example:
49  
-      # 
  49
+      #
50 50
       #   add_delivery_method :sendmail, Mail::Sendmail,
51 51
       #     :location   => '/usr/sbin/sendmail',
52 52
       #     :arguments  => '-i -t'
53  
-      # 
  53
+      #
54 54
       def add_delivery_method(symbol, klass, default_options={})
55 55
         class_attribute(:"#{symbol}_settings") unless respond_to?(:"#{symbol}_settings")
56 56
         send(:"#{symbol}_settings=", default_options)
4  actionmailer/lib/action_mailer/mail_helper.rb
@@ -15,11 +15,11 @@ def block_format(text)
15 15
           :columns => 72, :first_indent => 2, :body_indent => 2, :text => paragraph
16 16
         ).format
17 17
       }.join("\n")
18  
-    
  18
+
19 19
       # Make list points stand on their own line
20 20
       formatted.gsub!(/[ ]*([*]+) ([^*]*)/) { |s| "  #{$1} #{$2.strip}\n" }
21 21
       formatted.gsub!(/[ ]*([#]+) ([^#]*)/) { |s| "  #{$1} #{$2.strip}\n" }
22  
- 
  22
+
23 23
       formatted
24 24
     end
25 25
 
32  actionmailer/lib/action_mailer/old_api.rb
@@ -116,36 +116,36 @@ def attachment(params, &block)
116 116
 
117 117
     def normalize_nonfile_hash(params)
118 118
       content_disposition = "attachment;"
119  
-      
  119
+
120 120
       mime_type = params.delete(:mime_type)
121  
-      
  121
+
122 122
       if content_type = params.delete(:content_type)
123 123
         content_type = "#{mime_type || content_type};"
124 124
       end
125 125
 
126 126
       params[:body] = params.delete(:data) if params[:data]
127  
-      
  127
+
128 128
       { :content_type => content_type,
129 129
         :content_disposition => content_disposition }.merge(params)
130 130
     end
131  
-    
  131
+
132 132
     def normalize_file_hash(params)
133 133
       filename = File.basename(params.delete(:filename))
134 134
       content_disposition = "attachment; filename=\"#{File.basename(filename)}\""
135  
-      
  135
+
136 136
       mime_type = params.delete(:mime_type)
137  
-      
  137
+
138 138
       if (content_type = params.delete(:content_type)) && (content_type !~ /filename=/)
139 139
         content_type = "#{mime_type || content_type}; filename=\"#{filename}\""
140 140
       end
141  
-      
  141
+
142 142
       params[:body] = params.delete(:data) if params[:data]
143  
-      
  143
+
144 144
       { :content_type => content_type,
145 145
         :content_disposition => content_disposition }.merge(params)
146 146
     end
147 147
 
148  
-    def create_mail 
  148
+    def create_mail
149 149
       m = @_message
150 150
 
151 151
       set_fields!({:subject => subject, :to => recipients, :from => from,
@@ -178,14 +178,14 @@ def create_mail
178 178
 
179 179
       wrap_delivery_behavior!
180 180
       m.content_transfer_encoding = '8bit' unless m.body.only_us_ascii?
181  
-      
  181
+
182 182
       @_message
183 183
     end
184  
-    
  184
+
185 185
     # Set up the default values for the various instance variables of this
186 186
     # mailer. Subclasses may override this method to provide different
187 187
     # defaults.
188  
-    def initialize_defaults(method_name) 
  188
+    def initialize_defaults(method_name)
189 189
       @charset              ||= self.class.default[:charset].try(:dup)
190 190
       @content_type         ||= self.class.default[:content_type].try(:dup)
191 191
       @implicit_parts_order ||= self.class.default[:parts_order].try(:dup)
@@ -201,7 +201,7 @@ def initialize_defaults(method_name)
201 201
       @body ||= {}
202 202
     end
203 203
 
204  
-    def create_parts 
  204
+    def create_parts
205 205
       if String === @body
206 206
         @parts.unshift create_inline_part(@body)
207 207
       elsif @parts.empty? || @parts.all? { |p| p.content_disposition =~ /^attachment/ }
@@ -220,7 +220,7 @@ def create_parts
220 220
       end
221 221
     end
222 222
 
223  
-    def create_inline_part(body, mime_type=nil) 
  223
+    def create_inline_part(body, mime_type=nil)
224 224
       ct = mime_type || "text/plain"
225 225
       main_type, sub_type = split_content_type(ct.to_s)
226 226
 
@@ -242,11 +242,11 @@ def set_fields!(headers, charset) #:nodoc:
242 242
       m.reply_to ||= headers.delete(:reply_to) if headers[:reply_to]
243 243
     end
244 244
 
245  
-    def split_content_type(ct) 
  245
+    def split_content_type(ct)
246 246
       ct.to_s.split("/")
247 247
     end
248 248
 
249  
-    def parse_content_type(defaults=nil) 
  249
+    def parse_content_type(defaults=nil)
250 250
       if @content_type.blank?
251 251
         [ nil, {} ]
252 252
       else
6  actionmailer/lib/action_mailer/tmail_compat.rb
... ...
@@ -1,12 +1,12 @@
1 1
 module Mail
2 2
   class Message
3  
-    
  3
+
4 4
     def set_content_type(*args)
5 5
       ActiveSupport::Deprecation.warn('Message#set_content_type is deprecated, please just call ' <<
6 6
                                       'Message#content_type with the same arguments', caller[0,2])
7 7
       content_type(*args)
8 8
     end
9  
-    
  9
+
10 10
     alias :old_transfer_encoding :transfer_encoding
11 11
     def transfer_encoding(value = nil)
12 12
       if value
@@ -29,6 +29,6 @@ def original_filename
29 29
                                       'please call Message#filename', caller[0,2])
30 30
       filename
31 31
     end
32  
-    
  32
+
33 33
   end
34 34
 end
16  actionmailer/test/base_test.rb
@@ -148,7 +148,7 @@ def teardown
148 148
     assert_equal("application/pdf", email.parts[1].mime_type)
149 149
     assert_equal("VGhpcyBpcyB0ZXN0IEZpbGUgY29udGVudA==\r\n", email.parts[1].body.encoded)
150 150
   end
151  
-  
  151
+
152 152
   test "can embed an inline attachment" do
153 153
     email = BaseMailer.inline_attachment
154 154
     # Need to call #encoded to force the JIT sort on parts
@@ -413,7 +413,7 @@ def teardown
413 413
     BaseMailer.welcome.deliver
414 414
     assert_equal(1, BaseMailer.deliveries.length)
415 415
   end
416  
-  
  416
+
417 417
   test "calling deliver, ActionMailer should yield back to mail to let it call :do_delivery on itself" do
418 418
     mail = Mail::Message.new
419 419
     mail.expects(:do_delivery).once
@@ -447,7 +447,7 @@ def teardown
447 447
     mail = BaseMailer.welcome_from_another_path(['unknown/invalid', 'another.path/base_mailer']).deliver
448 448
     assert_equal("Welcome from another path", mail.body.encoded)
449 449
   end
450  
-  
  450
+
451 451
   test "assets tags should use ActionMailer's asset_host settings" do
452 452
     ActionMailer::Base.config.asset_host = "http://global.com"
453 453
     ActionMailer::Base.config.assets_dir = "global/"
@@ -456,7 +456,7 @@ def teardown
456 456
 
457 457
     assert_equal(%{<img alt="Dummy" src="http://global.com/images/dummy.png" />}, mail.body.to_s.strip)
458 458
   end
459  
-  
  459
+
460 460
   test "assets tags should use a Mailer's asset_host settings when available" do
461 461
     ActionMailer::Base.config.asset_host = "global.com"
462 462
     ActionMailer::Base.config.assets_dir = "global/"
@@ -469,12 +469,12 @@ def teardown
469 469
   end
470 470
 
471 471
   # Before and After hooks
472  
-  
  472
+
473 473
   class MyObserver
474 474
     def self.delivered_email(mail)
475 475
     end
476 476
   end
477  
-  
  477
+
478 478
   test "you can register an observer to the mail object that gets informed on email delivery" do
479 479
     ActionMailer::Base.register_observer(MyObserver)
480 480
     mail = BaseMailer.welcome
@@ -493,7 +493,7 @@ def self.delivering_email(mail)
493 493
     MyInterceptor.expects(:delivering_email).with(mail)
494 494
     mail.deliver
495 495
   end
496  
-  
  496
+
497 497
   test "being able to put proc's into the defaults hash and they get evaluated on mail sending" do
498 498
     mail1 = ProcMailer.welcome
499 499
     yesterday = 1.day.ago
@@ -501,7 +501,7 @@ def self.delivering_email(mail)
501 501
     mail2 = ProcMailer.welcome
502 502
     assert(mail1['X-Proc-Method'].to_s.to_i > mail2['X-Proc-Method'].to_s.to_i)
503 503
   end
504  
-  
  504
+
505 505
   test "we can call other defined methods on the class as needed" do
506 506
     mail = ProcMailer.welcome
507 507
     assert_equal("Thanks for signing up this afternoon", mail.subject)
6  actionmailer/test/delivery_methods_test.rb
@@ -128,7 +128,7 @@ def teardown
128 128
     Mail::Message.any_instance.expects(:deliver!).never
129 129
     DeliveryMailer.welcome.deliver
130 130
   end
131  
-  
  131
+
132 132
   test "does not append the deliveries collection if told not to perform the delivery" do
133 133
     DeliveryMailer.perform_deliveries = false
134 134
     DeliveryMailer.deliveries.clear
@@ -160,7 +160,7 @@ def teardown
160 160
       DeliveryMailer.welcome.deliver
161 161
     end
162 162
   end
163  
-  
  163
+
164 164
   test "does not increment the deliveries collection on bogus deliveries" do
165 165
     DeliveryMailer.delivery_method = BogusDelivery
166 166
     DeliveryMailer.raise_delivery_errors = false
@@ -168,5 +168,5 @@ def teardown
168 168
     DeliveryMailer.welcome.deliver
169 169
     assert_equal(0, DeliveryMailer.deliveries.length)
170 170
   end
171  
-  
  171
+
172 172
 end
2  actionmailer/test/fixtures/raw_email10
@@ -15,6 +15,6 @@ Content-Type: text/plain; charset=X-UNKNOWN
15 15
 Test test. Hi. Waving. m
16 16
 
17 17
 ----------------------------------------------------------------
18  
-Sent via Bell Mobility's Text Messaging service. 
  18
+Sent via Bell Mobility's Text Messaging service.
19 19
 Envoyé par le service de messagerie texte de Bell Mobilité.
20 20
 ----------------------------------------------------------------
2  actionmailer/test/fixtures/raw_email2
@@ -32,7 +32,7 @@ To: xxxxx xxxx <xxxxx@xxxxxxxxx.com>
32 32
 Subject: Fwd: Signed email causes file attachments
33 33
 In-Reply-To: <F6E2D0B4-CC35-4A91-BA4C-C7C712B10C13@mac.com>
34 34
 Mime-Version: 1.0
35  
-Content-Type: multipart/mixed; 
  35
+Content-Type: multipart/mixed;
36 36
 	boundary="----=_Part_5028_7368284.1115579351471"
37 37
 References: <F6E2D0B4-CC35-4A91-BA4C-C7C712B10C13@mac.com>
38 38
 
2  actionmailer/test/fixtures/raw_email3
@@ -31,7 +31,7 @@ Reply-To: Test Tester <xxxx@xxxx.com>
31 31
 To: xxxx@xxxx.com, xxxx@xxxx.com
32 32
 Subject: Another PDF
33 33
 Mime-Version: 1.0
34  
-Content-Type: multipart/mixed; 
  34
+Content-Type: multipart/mixed;
35 35
 	boundary="----=_Part_2192_32400445.1115745999735"
36 36
 X-Virus-Scanned: amavisd-new at textdrive.com
37 37
 
2  actionmailer/test/fixtures/raw_email5
@@ -14,6 +14,6 @@ Importance: normal
14 14
 Test test. Hi. Waving. m
15 15
 
16 16
 ----------------------------------------------------------------
17  
-Sent via Bell Mobility's Text Messaging service. 
  17
+Sent via Bell Mobility's Text Messaging service.
18 18
 Envoyé par le service de messagerie texte de Bell Mobilité.
19 19
 ----------------------------------------------------------------
2  actionmailer/test/fixtures/raw_email6
@@ -15,6 +15,6 @@ Content-Type: text/plain; charset=us-ascii
15 15
 Test test. Hi. Waving. m
16 16
 
17 17
 ----------------------------------------------------------------
18  
-Sent via Bell Mobility's Text Messaging service. 
  18
+Sent via Bell Mobility's Text Messaging service.
19 19
 Envoyé par le service de messagerie texte de Bell Mobilité.
20 20
 ----------------------------------------------------------------
2  actionmailer/test/fixtures/raw_email8
@@ -8,7 +8,7 @@ To: xxxxx xxxx <xxxxx@xxxxxxxxx.com>
8 8
 Subject: Fwd: Signed email causes file attachments
9 9
 In-Reply-To: <F6E2D0B4-CC35-4A91-BA4C-C7C712B10C13@mac.com>
10 10
 Mime-Version: 1.0
11  
-Content-Type: multipart/mixed; 
  11
+Content-Type: multipart/mixed;
12 12
 	boundary="----=_Part_5028_7368284.1115579351471"
13 13
 References: <F6E2D0B4-CC35-4A91-BA4C-C7C712B10C13@mac.com>
14 14
 
10  actionmailer/test/fixtures/raw_email9
@@ -10,19 +10,19 @@ Date: Wed, 23 Feb 2005 18:20:17 -0400
10 10
 From: "xxx xxx" <xxx@xxx.xxx>
11 11
 Message-ID: <4D6AA7EB.6490534@xxx.xxx>
12 12
 To: xxx@xxx.com
13  
-Subject: Stop adware/spyware once and for all. 
  13
+Subject: Stop adware/spyware once and for all.
14 14
 X-Scanned-By: MIMEDefang 2.11 (www dot roaringpenguin dot com slash mimedefang)
15 15
 
16  
-You are infected with: 
  16
+You are infected with:
17 17
 Ad Ware and Spy Ware
18 18
 
19  
-Get your free scan and removal download now, 
20  
-before it gets any worse. 
  19
+Get your free scan and removal download now,
  20
+before it gets any worse.
21 21
 
22 22
 http://xxx.xxx.info?aid=3D13&?stat=3D4327kdzt
23 23
 
24 24
 
25 25
 
26 26
 
27  
-no more? (you will still be infected) 
  27
+no more? (you will still be infected)
28 28
 http://xxx.xxx.info/discon/?xxx@xxx.com
2  actionmailer/test/fixtures/templates/signed_up.erb
... ...
@@ -1,3 +1,3 @@
1  
-Hello there, 
  1
+Hello there,
2 2
 
3 3
 Mr. <%= @recipient %>
4  actionmailer/test/fixtures/test_mailer/custom_templating_extension.html.haml
... ...
@@ -1,6 +1,6 @@
1  
-%p Hello there, 
  1
+%p Hello there,
2 2
 
3  
-%p 
  3
+%p
4 4
   Mr.
5 5
   = @recipient
6 6
   from haml
4  actionmailer/test/fixtures/test_mailer/custom_templating_extension.text.haml
... ...
@@ -1,6 +1,6 @@
1  
-%p Hello there, 
  1
+%p Hello there,
2 2
 
3  
-%p 
  3
+%p
4 4
   Mr.
5 5
   = @recipient
6 6
   from haml
2  actionmailer/test/fixtures/test_mailer/signed_up.html.erb
... ...
@@ -1,3 +1,3 @@
1  
-Hello there, 
  1
+Hello there,
2 2
 
3 3
 Mr. <%= @recipient %>
2  actionmailer/test/fixtures/url_test_mailer/signed_up_with_url.erb
... ...
@@ -1,4 +1,4 @@
1  
-Hello there, 
  1
+Hello there,
2 2
 
3 3
 Mr. <%= @recipient %>. Please see our greeting at <%= @welcome_url %> <%= welcome_url %>
4 4
 
6  actionmailer/test/mailers/proc_mailer.rb
@@ -6,11 +6,11 @@ class ProcMailer < ActionMailer::Base
6 6
   def welcome
7 7
     mail
8 8
   end
9  
-  
  9
+
10 10
   private
11  
-  
  11
+
12 12
   def give_a_greeting
13 13
     "Thanks for signing up this afternoon"
14 14
   end
15  
-  
  15
+
16 16
 end
30  actionmailer/test/old_base/mail_service_test.rb
@@ -106,7 +106,7 @@ def utf8_body(recipient)
106 106
     cc         "Foo áëô îü <extended@example.net>"
107 107
     bcc        "Foo áëô îü <extended@example.net>"
108 108
     charset    "UTF-8"
109  
-    
  109
+
110 110
     body       "åœö blah"
111 111
   end
112 112
 
@@ -359,7 +359,7 @@ def test_nested_parts
359 359
     assert_equal "text/plain", created.parts[0].parts[0].mime_type
360 360
     assert_equal "text/html", created.parts[0].parts[1].mime_type
361 361
     assert_equal "application/octet-stream", created.parts[1].mime_type
362  
-    
  362
+
363 363
   end
364 364
 
365 365
   def test_nested_parts_with_body
@@ -399,7 +399,7 @@ def test_signed_up
399 399
     created = nil
400 400
     assert_nothing_raised { created = TestMailer.signed_up(@recipient) }
401 401
     assert_not_nil created
402  
-    
  402
+
403 403
     expected.message_id = '<123@456>'
404 404
     created.message_id = '<123@456>'
405 405
 
@@ -503,7 +503,7 @@ def test_cc_bcc
503 503
     delivered = ActionMailer::Base.deliveries.first
504 504
     expected.message_id = '<123@456>'
505 505
     delivered.message_id = '<123@456>'
506  
-    
  506
+
507 507
     assert_equal expected.encoded, delivered.encoded
508 508
   end
509 509
 
@@ -546,10 +546,10 @@ def test_reply_to
546 546
       created = TestMailer.different_reply_to @recipient
547 547
     end
548 548
     assert_not_nil created
549  
-    
  549
+
550 550
     expected.message_id = '<123@456>'
551 551
     created.message_id = '<123@456>'
552  
-    
  552
+
553 553
     assert_equal expected.encoded, created.encoded
554 554
 
555 555
     assert_nothing_raised do
@@ -558,10 +558,10 @@ def test_reply_to
558 558
 
559 559
     delivered = ActionMailer::Base.deliveries.first
560 560
     assert_not_nil delivered
561  
-    
  561
+
562 562
     expected.message_id = '<123@456>'
563 563
     delivered.message_id = '<123@456>'
564  
-    
  564
+
565 565
     assert_equal expected.encoded, delivered.encoded
566 566
   end
567 567
 
@@ -581,7 +581,7 @@ def test_iso_charset
581 581
       created = TestMailer.iso_charset @recipient
582 582
     end
583 583
     assert_not_nil created
584  
-    
  584
+
585 585
     expected.message_id = '<123@456>'
586 586
     created.message_id = '<123@456>'
587 587
 
@@ -596,7 +596,7 @@ def test_iso_charset
596 596
 
597 597
     expected.message_id = '<123@456>'
598 598
     delivered.message_id = '<123@456>'
599  
-    
  599
+
600 600
     assert_equal expected.encoded, delivered.encoded
601 601
   end
602 602
 
@@ -631,7 +631,7 @@ def test_unencoded_subject
631 631
 
632 632
     expected.message_id = '<123@456>'
633 633
     delivered.message_id = '<123@456>'
634  
-    
  634
+
635 635
     assert_equal expected.encoded, delivered.encoded
636 636
   end
637 637
 
@@ -761,10 +761,10 @@ def test_extended_headers
761 761
 
762 762
     delivered = ActionMailer::Base.deliveries.first
763 763
     assert_not_nil delivered
764  
-    
  764
+
765 765
     expected.message_id = '<123@456>'
766 766
     delivered.message_id = '<123@456>'
767  
-    
  767
+
768 768
     assert_equal expected.encoded, delivered.encoded
769 769
   end
770 770
 
@@ -887,7 +887,7 @@ def test_explicitly_multipart_messages
887 887
     assert_equal "iso-8859-1", mail.parts[1].charset
888 888
 
889 889
     assert_equal "image/jpeg", mail.parts[2].mime_type
890  
-    
  890
+
891 891
     assert_equal "attachment", mail.parts[2][:content_disposition].disposition_type
892 892
     assert_equal "foo.jpg", mail.parts[2][:content_disposition].filename
893 893
     assert_equal "foo.jpg", mail.parts[2][:content_type].filename
@@ -1005,7 +1005,7 @@ def test_decode_encoded_attachment_filename
1005 1005
     attachment = mail.attachments.last
1006 1006
 
1007 1007
     expected = "01 Quien Te Dij\212at. Pitbull.mp3"
1008  
-    
  1008
+
1009 1009
     if expected.respond_to?(:force_encoding)
1010 1010
       result = attachment.filename.dup
1011 1011
       expected.force_encoding(Encoding::ASCII_8BIT)
2  actionmailer/test/old_base/tmail_compat_test.rb
@@ -31,5 +31,5 @@ def test_transfer_encoding_setter_raises_deprecation_warning
31 31
     end
32 32
     assert_equal mail.content_transfer_encoding, "base64"
33 33
   end
34  
-  
  34
+
35 35
 end
2  actionmailer/test/old_base/url_test.rb
@@ -83,7 +83,7 @@ def test_signed_up_with_url
83 83
     assert_nothing_raised { UrlTestMailer.signed_up_with_url(@recipient).deliver }
84 84
     assert_not_nil ActionMailer::Base.deliveries.first
85 85
     delivered = ActionMailer::Base.deliveries.first
86  
-    
  86
+
87 87
     delivered.message_id = '<123@456>'
88 88
     assert_equal expected.encoded, delivered.encoded
89 89
   end
24  actionmailer/test/test_helper_test.rb
@@ -32,7 +32,7 @@ def test_determine_default_mailer_raises_correct_error
32 32
       self.class.determine_default_mailer("NotAMailerTest")
33 33
     end
34 34
   end
35  
-  
  35
+
36 36
   def test_charset_is_utf_8
37 37
     assert_equal "UTF-8", charset
38 38
   end
@@ -44,14 +44,14 @@ def test_assert_emails
44 44
       end
45 45
     end
46 46
   end
47  
-  
  47
+
48 48
   def test_repeated_assert_emails_calls
49 49
     assert_nothing_raised do
50 50
       assert_emails 1 do
51 51
         TestHelperMailer.test.deliver
52 52
       end
53 53
     end
54  
-    
  54
+
55 55
     assert_nothing_raised do
56 56
       assert_emails 2 do
57 57
         TestHelperMailer.test.deliver
@@ -59,20 +59,20 @@ def test_repeated_assert_emails_calls
59 59
       end
60 60
     end
61 61
   end
62  
-  
  62
+
63 63
   def test_assert_emails_with_no_block
64 64
     assert_nothing_raised do
65 65
       TestHelperMailer.test.deliver
66 66
       assert_emails 1
67 67
     end
68  
-    
  68
+
69 69
     assert_nothing_raised do
70 70
       TestHelperMailer.test.deliver
71 71
       TestHelperMailer.test.deliver
72 72
       assert_emails 3
73 73
     end
74 74
   end
75  
-  
  75
+
76 76
   def test_assert_no_emails
77 77
     assert_nothing_raised do
78 78
       assert_no_emails do
@@ -80,17 +80,17 @@ def test_assert_no_emails
80 80
       end
81 81
     end
82 82
   end
83  
-  
  83
+
84 84
   def test_assert_emails_too_few_sent
85 85
     error = assert_raise ActiveSupport::TestCase::Assertion do
86 86
       assert_emails 2 do
87 87
         TestHelperMailer.test.deliver
88 88
       end
89 89
     end
90  
-    
  90
+
91 91
     assert_match(/2 .* but 1/, error.message)
92 92
   end
93  
-  
  93
+
94 94
   def test_assert_emails_too_many_sent
95 95
     error = assert_raise ActiveSupport::TestCase::Assertion do
96 96
       assert_emails 1 do
@@ -98,17 +98,17 @@ def test_assert_emails_too_many_sent
98 98
         TestHelperMailer.test.deliver
99 99
       end
100 100
     end
101  
-    
  101
+
102 102
     assert_match(/1 .* but 2/, error.message)
103 103
   end
104  
-  
  104
+
105 105
   def test_assert_no_emails_failure
106 106
     error = assert_raise ActiveSupport::TestCase::Assertion do
107 107
       assert_no_emails do
108 108
         TestHelperMailer.test.deliver
109 109
       end
110 110
     end
111  
-    
  111
+
112 112
     assert_match(/0 .* but 1/, error.message)
113 113
   end
114 114
 end
4  actionpack/CHANGELOG
@@ -26,7 +26,7 @@
26 26
         resources :comments
27 27
       end
28 28
     end
29  
-    
  29
+
30 30
     You can now use comment_path for /comments/1 instead of post_comment_path for /posts/1/comments/1.
31 31
 
32 32
 * Add support for multi-subdomain session by setting cookie host in session cookie so you can share session between www.example.com, example.com and user.example.com. #4818 [Guillermo Álvarez]
@@ -110,7 +110,7 @@
110 110
 * ActionDispatch::Request#content_type returns a String to be compatible with
111 111
   Rack::Request. Use #content_mime_type for the Mime::Type instance [YK]
112 112
 
113  
-* Updated Prototype to 1.6.1 and Scriptaculous to 1.8.3 [ML] 
  113
+* Updated Prototype to 1.6.1 and Scriptaculous to 1.8.3 [ML]
114 114
 
115 115
 * Change the preferred way that URL helpers are included into a class[YK & CL]
116 116
 
4  actionpack/README.rdoc
Source Rendered
@@ -102,10 +102,10 @@ A short rundown of some of the major features:
102 102
     class WeblogController < ActionController::Base
103 103
       # filters as methods
104 104
       before_filter :authenticate, :cache, :audit
105  
-      
  105
+
106 106
       # filter as a proc
107 107
       after_filter { |c| c.response.body = Gzip::compress(c.response.body) }
108  
-      
  108
+
109 109
       # class filter
110 110
       after_filter LocalizeFilter
111 111
 
4  actionpack/RUNNING_UNIT_TESTS
... ...
@@ -1,7 +1,7 @@
1 1
 == Running with Rake
2 2
 
3 3
 The easiest way to run the unit tests is through Rake. The default task runs
4  
-the entire test suite for all classes. For more information, checkout the 
  4
+the entire test suite for all classes. For more information, checkout the
5 5
 full array of rake tasks with "rake -T"
6 6
 
7 7
 Rake can be found at http://rake.rubyforge.org
@@ -16,7 +16,7 @@ you can do so with something like:
16 16
 == Dependency on ActiveRecord and database setup
17 17
 
18 18
 Test cases in the test/controller/active_record/ directory depend on having
19  
-activerecord and sqlite installed. If ActiveRecord is not in 
  19
+activerecord and sqlite installed. If ActiveRecord is not in
20 20
 actionpack/../activerecord directory, or the sqlite rubygem is not installed,
21 21
 these tests are skipped.
22 22
 
2  actionpack/lib/abstract_controller/base.rb
@@ -109,7 +109,7 @@ def process(action, *args)
109 109
       @_action_name = action_name = action.to_s
110 110
 
111 111
       unless action_name = method_for_action(action_name)
112  
-        raise ActionNotFound, "The action '#{action}' could not be found for #{self.class.name}" 
  112
+        raise ActionNotFound, "The action '#{action}' could not be found for #{self.class.name}"
113 113
       end
114 114
 
115 115
       @_response_body = nil
4  actionpack/lib/action_controller/metal/http_authentication.rb
@@ -392,11 +392,11 @@ def request_http_token_authentication(realm = "Application")
392 392
         end
393 393
       end
394 394
 
395  
-      # If token Authorization header is present, call the login procedure with 
  395
+      # If token Authorization header is present, call the login procedure with
396 396
       # the present token and options.
397 397
       #
398 398
       # controller      - ActionController::Base instance for the current request.
399  
-      # login_procedure - Proc to call if a token is present.  The Proc should 
  399
+      # login_procedure - Proc to call if a token is present.  The Proc should
400 400
       #                   take 2 arguments:
401 401
       #                     authenticate(controller) { |token, options| ... }
402 402
       #
2  actionpack/lib/action_controller/middleware.rb
@@ -31,7 +31,7 @@ def initialize(app)
31 31
       super()
32 32
       @_app = app
33 33
     end
34  
-    
  34
+
35 35
     def index
36 36
       call(env)
37 37
     end
2  actionpack/lib/action_controller/test_case.rb
@@ -311,7 +311,7 @@ module ClassMethods
311 311
         def tests(controller_class)
312 312
           self.controller_class = controller_class
313 313
         end
314  
-        
  314
+
315 315
         def controller_class=(new_class)
316 316
           prepare_controller_class(new_class) if new_class
317 317
           write_inheritable_attribute(:controller_class, new_class)
4  actionpack/lib/action_controller/vendor/html-scanner/html/document.rb
@@ -48,7 +48,7 @@ def initialize(text, strict=false, xml=false)
48 48
         end
49 49
       end
50 50
     end
51  
-  
  51
+
52 52
     # Search the tree for (and return) the first node that matches the given
53 53
     # conditions. The conditions are interpreted differently for different node
54 54
     # types, see HTML::Text#find and HTML::Tag#find.
@@ -62,7 +62,7 @@ def find(conditions)
62 62
     def find_all(conditions)
63 63
       @root.find_all(conditions)
64 64
     end
65  
-    
  65
+
66 66
   end
67 67
 
68 68
 end
58  actionpack/lib/action_controller/vendor/html-scanner/html/node.rb
... ...
@@ -1,7 +1,7 @@
1 1
 require 'strscan'
2 2
 
3 3
 module HTML #:nodoc:
4  
-  
  4
+
5 5
   class Conditions < Hash #:nodoc: