Skip to content
This repository
Browse code

Fixed spelling errors (closes #9706) [tarmo/rmm5t]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit e3b49c052b497827c9f058feaa066bbfe184f4da 1 parent 7cb1f93
David Heinemeier Hansson authored September 28, 2007

Showing 52 changed files with 72 additions and 72 deletions. Show diff stats Hide diff stats

  1. 2  actionmailer/install.rb
  2. 4  actionpack/lib/action_controller/base.rb
  3. 2  actionpack/lib/action_controller/caching.rb
  4. 2  actionpack/lib/action_controller/helpers.rb
  5. 2  actionpack/lib/action_controller/integration.rb
  6. 2  actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb
  7. 2  actionpack/lib/action_view/helpers/capture_helper.rb
  8. 2  actionpack/lib/action_view/helpers/javascript_helper.rb
  9. 2  actionpack/lib/action_view/helpers/prototype_helper.rb
  10. 2  actionpack/lib/action_view/helpers/scriptaculous_helper.rb
  11. 2  actionpack/lib/action_view/helpers/text_helper.rb
  12. 2  actionpack/test/activerecord/active_record_store_test.rb
  13. 2  actionpack/test/controller/caching_test.rb
  14. 2  actionpack/test/controller/components_test.rb
  15. 8  actionpack/test/controller/cookie_test.rb
  16. 2  actionpack/test/controller/routing_test.rb
  17. 2  actionpack/test/controller/selector_test.rb
  18. 4  actionpack/test/controller/test_test.rb
  19. 16  actionpack/test/template/prototype_helper_test.rb
  20. 2  actionwebservice/install.rb
  21. 2  actionwebservice/setup.rb
  22. 2  activerecord/install.rb
  23. 4  activerecord/lib/active_record/associations.rb
  24. 6  activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
  25. 2  activerecord/lib/active_record/base.rb
  26. 2  activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
  27. 6  activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
  28. 2  activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
  29. 2  activerecord/lib/active_record/connection_adapters/oracle_adapter.rb
  30. 4  activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
  31. 2  activerecord/lib/active_record/connection_adapters/sybase_adapter.rb
  32. 2  activerecord/lib/active_record/serializers/xml_serializer.rb
  33. 2  activerecord/test/associations_test.rb
  34. 2  activerecord/test/base_test.rb
  35. 4  activerecord/test/migration_test.rb
  36. 2  activerecord/test/pk_test.rb
  37. 2  activerecord/test/unconnected_test.rb
  38. 2  activerecord/test/validations_test.rb
  39. 2  activesupport/install.rb
  40. 2  activesupport/lib/active_support/core_ext/object/misc.rb
  41. 4  activesupport/lib/active_support/core_ext/string/unicode.rb
  42. 2  activesupport/lib/active_support/core_ext/time/calculations.rb
  43. 2  activesupport/lib/active_support/vendor/builder/xmlbase.rb
  44. 2  activesupport/lib/active_support/vendor/builder/xmlmarkup.rb
  45. 2  activesupport/lib/active_support/vendor/xml_simple.rb
  46. 2  activesupport/test/core_ext/date_ext_test.rb
  47. 2  activesupport/test/core_ext/date_time_ext_test.rb
  48. 2  activesupport/test/core_ext/time_ext_test.rb
  49. 2  activesupport/test/multibyte_handler_test.rb
  50. 2  railties/lib/commands/plugin.rb
  51. 2  railties/lib/rails_generator/base.rb
  52. 2  railties/lib/rails_generator/commands.rb
2  actionmailer/install.rb
@@ -18,7 +18,7 @@
18 18
   end
19 19
 end
20 20
 
21  
-# the acual gruntwork
  21
+# the actual gruntwork
22 22
 Dir.chdir("lib")
23 23
 
24 24
 Find.find("action_mailer", "action_mailer.rb") { |f|
4  actionpack/lib/action_controller/base.rb
@@ -577,7 +577,7 @@ def process(request, response, method = :perform_action, *arguments) #:nodoc:
577 577
       # value that appears in the slot for <tt>:first</tt> is not equal to default value for <tt>:first</tt> we stop using
578 578
       # defaults. On it's own, this rule can account for much of the typical Rails URL behavior.
579 579
       #  
580  
-      # Although a convienence, defaults can occasionaly get in your way. In some cases a default persists longer than desired.
  580
+      # Although a convenience, defaults can occasionally get in your way. In some cases a default persists longer than desired.
581 581
       # The default may be cleared by adding <tt>:name => nil</tt> to <tt>url_for</tt>'s options.
582 582
       # This is often required when writing form helpers, since the defaults in play may vary greatly depending upon where the
583 583
       # helper is used from. The following line will redirect to PostController's default action, regardless of the page it is
@@ -983,7 +983,7 @@ def default_url_options(options) #:doc:
983 983
       #
984 984
       # When using <tt>redirect_to :back</tt>, if there is no referrer,
985 985
       # RedirectBackError will be raised. You may specify some fallback
986  
-      # behavior for this case by rescueing RedirectBackError.
  986
+      # behavior for this case by rescuing RedirectBackError.
987 987
       def redirect_to(options = {}) #:doc:
988 988
         case options
989 989
           when %r{^\w+://.*}
2  actionpack/lib/action_controller/caching.rb
@@ -291,7 +291,7 @@ def add_extension!(path, extension)
291 291
           end
292 292
           
293 293
           def extract_extension(file_path)
294  
-            # Don't want just what comes after the last '.' to accomodate multi part extensions
  294
+            # Don't want just what comes after the last '.' to accommodate multi part extensions
295 295
             # such as tar.gz.
296 296
             file_path[/^[^.]+\.(.+)$/, 1]
297 297
           end
2  actionpack/lib/action_controller/helpers.rb
@@ -102,7 +102,7 @@ def add_template_helper(helper_module) #:nodoc:
102 102
       #     end
103 103
       #   end
104 104
       # 
105  
-      # Finally, all the above styles can be mixed together, and the +helper+ method can be invokved with a mix of
  105
+      # Finally, all the above styles can be mixed together, and the +helper+ method can be invoked with a mix of
106 106
       # +symbols+, +strings+, +modules+ and blocks.
107 107
       #   helper(:three, BlindHelper) { def mice() 'mice' end }
108 108
       #
2  actionpack/lib/action_controller/integration.rb
@@ -304,7 +304,7 @@ def encode_cookies
304 304
           end
305 305
         end
306 306
 
307  
-        # Get a temporarly URL writer object
  307
+        # Get a temporary URL writer object
308 308
         def generic_url_rewriter
309 309
           cgi = MockCGI.new('REQUEST_METHOD' => "GET",
310 310
                             'QUERY_STRING'   => "",
2  actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb
@@ -794,7 +794,7 @@ def only_child(of_type)
794 794
     # eventually, and array of substitution values.
795 795
     #
796 796
     # This method is called from four places, so it helps to put it here
797  
-    # for resue. The only logic deals with the need to detect comma
  797
+    # for reuse. The only logic deals with the need to detect comma
798 798
     # separators (alternate) and apply them to the selector group of the
799 799
     # top selector.
800 800
     def next_selector(statement, values)
2  actionpack/lib/action_view/helpers/capture_helper.rb
@@ -119,7 +119,7 @@ def capture(*args, &block)
119 119
       #
120 120
       # The deprecated way of accessing a content_for block is to use an instance variable
121 121
       # named <tt>@content_for_#{name_of_the_content_block}</tt>. So <tt><%= content_for :footer %></tt>
122  
-      # would be avaiable as <tt><%= @content_for_footer %></tt>. The preferred usage is now
  122
+      # would be available as <tt><%= @content_for_footer %></tt>. The preferred usage is now
123 123
       # <tt><%= yield :footer %></tt>.
124 124
       def content_for(name, content = nil, &block)
125 125
         existing_content_for = instance_variable_get("@content_for_#{name}").to_s
2  actionpack/lib/action_view/helpers/javascript_helper.rb
@@ -140,7 +140,7 @@ def define_javascript_functions
140 140
           javascript << "\n" << IO.read(filename)
141 141
         end
142 142
         
143  
-        # load other librairies
  143
+        # load other libraries
144 144
         (Dir.glob(File.join(JAVASCRIPT_PATH, '*')) - prototype_libs).each do |filename| 
145 145
           javascript << "\n" << IO.read(filename)
146 146
         end
2  actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -511,7 +511,7 @@ def select(pattern)
511 511
           #                    element's existing content.
512 512
           # <tt>:bottom</tt>:: HTML is inserted inside the element, after the
513 513
           #                    element's existing content.
514  
-          # <tt>:before</tt>:: HTML is inserted immediately preceeding the element.
  514
+          # <tt>:before</tt>:: HTML is inserted immediately preceding the element.
515 515
           # <tt>:after</tt>::  HTML is inserted immediately following the element.
516 516
           #
517 517
           # +options_for_render+ may be either a string of HTML to insert, or a hash
2  actionpack/lib/action_view/helpers/scriptaculous_helper.rb
@@ -30,7 +30,7 @@ module ScriptaculousHelper
30 30
       # variable in the generated JavaScript execution context. This can be 
31 31
       # used for example with drop_receiving_element:
32 32
       #
33  
-      #   <%= drop_receving_element (...), :loading => visual_effect(:fade) %>
  33
+      #   <%= drop_receiving_element (...), :loading => visual_effect(:fade) %>
34 34
       #
35 35
       # This would fade the element that was dropped on the drop receiving 
36 36
       # element.
2  actionpack/lib/action_view/helpers/text_helper.rb
@@ -82,7 +82,7 @@ def highlight(text, phrases, highlighter = '<strong class="highlight">\1</strong
82 82
       end
83 83
 
84 84
       # Extracts an excerpt from +text+ that matches the first instance of +phrase+. 
85  
-      # The +radius+ expands the excerpt on each side of the first occurance of +phrase+ by the number of characters
  85
+      # The +radius+ expands the excerpt on each side of the first occurrence of +phrase+ by the number of characters
86 86
       # defined in +radius+ (which defaults to 100). If the excerpt radius overflows the beginning or end of the +text+,
87 87
       # then the +excerpt_string+ will be prepended/appended accordingly. If the +phrase+ 
88 88
       # isn't found, nil is returned.
2  actionpack/test/activerecord/active_record_store_test.rb
@@ -53,7 +53,7 @@ def setup
53 53
     @new_session['foo'] = 'bar'
54 54
   end
55 55
 
56  
-# this test only applies for eager sesssion saving
  56
+# this test only applies for eager session saving
57 57
 #  def test_another_instance
58 58
 #    @another = CGI::Session.new(@cgi, 'session_id' => @new_session.session_id, 'database_manager' => CGI::Session::ActiveRecordStore)
59 59
 #    assert_equal @new_session.session_id, @another.session_id
2  actionpack/test/controller/caching_test.rb
@@ -2,7 +2,7 @@
2 2
 require File.dirname(__FILE__) + '/../abstract_unit'
3 3
 
4 4
 CACHE_DIR = 'test_cache'
5  
-# Don't change '/../temp/' cavalierly or you might hoze something you don't want hozed
  5
+# Don't change '/../temp/' cavalierly or you might hose something you don't want hosed
6 6
 FILE_STORE_PATH = File.join(File.dirname(__FILE__), '/../temp/', CACHE_DIR)
7 7
 ActionController::Base.page_cache_directory = FILE_STORE_PATH
8 8
 ActionController::Base.fragment_cache_store = :file_store, FILE_STORE_PATH
2  actionpack/test/controller/components_test.rb
@@ -127,7 +127,7 @@ def test_component_multiple_redirect_redirects
127 127
     test_internal_calling
128 128
   end
129 129
 
130  
-  def test_component_as_string_redirect_renders_redirecte_action
  130
+  def test_component_as_string_redirect_renders_redirected_action
131 131
     get :calling_redirected_as_string
132 132
 
133 133
     assert_equal "Lady of the House, speaking", @response.body
8  actionpack/test/controller/cookie_test.rb
@@ -6,11 +6,11 @@ def authenticate
@@ -55,12 +55,12 @@ def test_setting_cookie
2  actionpack/test/controller/routing_test.rb
@@ -766,7 +766,7 @@ def test_expiry_should_not_trigger_once_expired
766 766
     
767 767
     eval(segment.expiry_statement)
768 768
   rescue RuntimeError
769  
-    flunk "Expiry check should not have occured!"
  769
+    flunk "Expiry check should not have occurred!"
770 770
   end
771 771
   
772 772
   def test_expiry_should_occur_according_to_expire_on
2  actionpack/test/controller/selector_test.rb
@@ -177,7 +177,7 @@ def test_selector_group
177 177
     assert_equal 2, @matches.size
178 178
     assert_equal "foo", @matches[0].attributes["href"]
179 179
     assert_equal "baz", @matches[1].attributes["href"]
180  
-    # And now for the three selector challange.
  180
+    # And now for the three selector challenge.
181 181
     parse(%Q{<h1 id="1"><a href="foo"></a></h1><h2 id="2"><a href="bar"></a></h2><h3 id="2"><a href="baz"></a></h3>})
182 182
     select("h1 a, h2 a, h3 a")
183 183
     assert_equal 3, @matches.size
4  actionpack/test/controller/test_test.rb
@@ -225,9 +225,9 @@ def test_assert_tag_after
225 225
   def test_assert_tag_before
226 226
     process :test_html_output
227 227
 
228  
-    # there is a tag preceeding a tag with id 'bar'
  228
+    # there is a tag preceding a tag with id 'bar'
229 229
     assert_tag :before => { :attributes => { :id => "bar" } }
230  
-    # there is no tag preceeding a 'form' tag
  230
+    # there is no tag preceding a 'form' tag
231 231
     assert_no_tag :before => { :tag => "form" }
232 232
   end
233 233
 
16  actionpack/test/template/prototype_helper_test.rb
@@ -83,14 +83,14 @@ def setup
83 83
   def test_link_to_remote
84 84
     assert_dom_equal %(<a class=\"fine\" href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true}); return false;\">Remote outauthor</a>),
85 85
       link_to_remote("Remote outauthor", { :url => { :action => "whatnot"  }}, { :class => "fine"  })
86  
-    assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onComplete:function(request){alert(request.reponseText)}}); return false;\">Remote outauthor</a>),
87  
-      link_to_remote("Remote outauthor", :complete => "alert(request.reponseText)", :url => { :action => "whatnot"  })      
88  
-    assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onSuccess:function(request){alert(request.reponseText)}}); return false;\">Remote outauthor</a>),
89  
-      link_to_remote("Remote outauthor", :success => "alert(request.reponseText)", :url => { :action => "whatnot"  })
90  
-    assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onFailure:function(request){alert(request.reponseText)}}); return false;\">Remote outauthor</a>),
91  
-      link_to_remote("Remote outauthor", :failure => "alert(request.reponseText)", :url => { :action => "whatnot"  })
92  
-    assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot?a=10&amp;b=20', {asynchronous:true, evalScripts:true, onFailure:function(request){alert(request.reponseText)}}); return false;\">Remote outauthor</a>),
93  
-      link_to_remote("Remote outauthor", :failure => "alert(request.reponseText)", :url => { :action => "whatnot", :a => '10', :b => '20' })
  86
+    assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onComplete:function(request){alert(request.responseText)}}); return false;\">Remote outauthor</a>),
  87
+      link_to_remote("Remote outauthor", :complete => "alert(request.responseText)", :url => { :action => "whatnot"  })      
  88
+    assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onSuccess:function(request){alert(request.responseText)}}); return false;\">Remote outauthor</a>),
  89
+      link_to_remote("Remote outauthor", :success => "alert(request.responseText)", :url => { :action => "whatnot"  })
  90
+    assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onFailure:function(request){alert(request.responseText)}}); return false;\">Remote outauthor</a>),
  91
+      link_to_remote("Remote outauthor", :failure => "alert(request.responseText)", :url => { :action => "whatnot"  })
  92
+    assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot?a=10&amp;b=20', {asynchronous:true, evalScripts:true, onFailure:function(request){alert(request.responseText)}}); return false;\">Remote outauthor</a>),
  93
+      link_to_remote("Remote outauthor", :failure => "alert(request.responseText)", :url => { :action => "whatnot", :a => '10', :b => '20' })
94 94
   end
95 95
   
96 96
   def test_link_to_remote_html_options
2  actionwebservice/install.rb
@@ -18,7 +18,7 @@
18 18
   end
19 19
 end
20 20
 
21  
-# the acual gruntwork
  21
+# the actual gruntwork
22 22
 Dir.chdir("lib")
23 23
 
24 24
 Find.find("action_web_service", "action_web_service.rb") { |f|
2  actionwebservice/setup.rb
@@ -968,7 +968,7 @@ def extract_selection(list)
968 968
 
969 969
   def print_usage(f)
970 970
     super
971  
-    f.puts 'Inluded packages:'
  971
+    f.puts 'Included packages:'
972 972
     f.puts '  ' + @packages.sort.join(' ')
973 973
     f.puts
974 974
   end
2  activerecord/install.rb
@@ -18,7 +18,7 @@
18 18
   end
19 19
 end
20 20
 
21  
-# the acual gruntwork
  21
+# the actual gruntwork
22 22
 Dir.chdir("lib")
23 23
 
24 24
 Find.find("active_record", "active_record.rb") { |f|
4  activerecord/lib/active_record/associations.rb
@@ -716,7 +716,7 @@ def has_many(association_id, options = {}, &extension)
716 716
             #
717 717
       # Option examples:
718 718
       #   has_one :credit_card, :dependent => :destroy  # destroys the associated credit card
719  
-      #   has_one :credit_card, :dependent => :nullify  # updates the associated records foriegn key value to null rather than destroying it
  719
+      #   has_one :credit_card, :dependent => :nullify  # updates the associated records foreign key value to null rather than destroying it
720 720
       #   has_one :last_comment, :class_name => "Comment", :order => "posted_on"
721 721
       #   has_one :project_manager, :class_name => "Person", :conditions => "role = 'project_manager'"
722 722
       #   has_one :attachment, :as => :attachable
@@ -857,7 +857,7 @@ def belongs_to(association_id, options = {})
857 857
       #
858 858
       # Deprecated: Any additional fields added to the join table will be placed as attributes when pulling records out through
859 859
       # +has_and_belongs_to_many+ associations. Records returned from join tables with additional attributes will be marked as
860  
-      # +ReadOnly+ (because we can't save changes to the additional attrbutes). It's strongly recommended that you upgrade any
  860
+      # +ReadOnly+ (because we can't save changes to the additional attributes). It's strongly recommended that you upgrade any
861 861
       # associations with attributes to a real join model (see introduction).
862 862
       #
863 863
       # Adds the following methods for retrieval and query:
6  activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
@@ -65,7 +65,7 @@ def find(*args)
65 65
 
66 66
           options[:conditions] = conditions
67 67
           options[:joins]      = @join_sql
68  
-          options[:readonly]   = finding_with_ambigious_select?(options[:select])
  68
+          options[:readonly]   = finding_with_ambiguous_select?(options[:select])
69 69
 
70 70
           if options[:order] && @reflection.options[:order]
71 71
             options[:order] = "#{options[:order]}, #{@reflection.options[:order]}"
@@ -154,10 +154,10 @@ def construct_scope
154 154
           { :find => { :conditions => @finder_sql, :joins => @join_sql, :readonly => false } }
155 155
         end
156 156
 
157  
-        # Join tables with additional columns on top of the two foreign keys must be considered ambigious unless a select
  157
+        # Join tables with additional columns on top of the two foreign keys must be considered ambiguous unless a select
158 158
         # clause has been explicitly defined. Otherwise you can get broken records back, if, for example, the join column also has
159 159
         # an id column. This will then overwrite the id column of the records coming back.
160  
-        def finding_with_ambigious_select?(select_clause)
  160
+        def finding_with_ambiguous_select?(select_clause)
161 161
           !select_clause && @owner.connection.columns(@reflection.options[:join_table], "Join Table Columns").size != 2
162 162
         end
163 163
     end
2  activerecord/lib/active_record/base.rb
@@ -150,7 +150,7 @@ def initialize(errors)
150 150
   #     end
151 151
   #   end
152 152
   #
153  
-  # You can alternatively use self[:attribute]=(value) and self[:attribute] instead of write_attribute(:attribute, vaule) and
  153
+  # You can alternatively use self[:attribute]=(value) and self[:attribute] instead of write_attribute(:attribute, value) and
154 154
   # read_attribute(:attribute) as a shorter form.
155 155
   #
156 156
   # == Accessing attributes before they have been typecasted
2  activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
@@ -133,7 +133,7 @@ def reset_sequence!(table, column, sequence = nil)
133 133
         # Do nothing by default.  Implement for PostgreSQL, Oracle, ...
134 134
       end
135 135
 
136  
-      # Inserts the given fixture into the table. Overriden in adapters that require
  136
+      # Inserts the given fixture into the table. Overridden in adapters that require
137 137
       # something beyond a simple insert (eg. Oracle).
138 138
       def insert_fixture(fixture, table_name)
139 139
         execute "INSERT INTO #{table_name} (#{fixture.key_list}) VALUES (#{fixture.value_list})", 'Fixture Insert'
6  activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -142,7 +142,7 @@ def change_column(table_name, column_name, type, options = {})
142 142
 
143 143
       # Sets a new default value for a column.  If you want to set the default
144 144
       # value to +NULL+, you are out of luck.  You need to
145  
-      # DatabaseStatements#execute the apppropriate SQL statement yourself.
  145
+      # DatabaseStatements#execute the appropriate SQL statement yourself.
146 146
       # ===== Examples
147 147
       #  change_column_default(:suppliers, :qualification, 'new')
148 148
       #  change_column_default(:accounts, :authorized, 1)
@@ -237,7 +237,7 @@ def initialize_schema_information
237 237
           execute "CREATE TABLE #{ActiveRecord::Migrator.schema_info_table_name} (version #{type_to_sql(:integer)})"
238 238
           execute "INSERT INTO #{ActiveRecord::Migrator.schema_info_table_name} (version) VALUES(0)"
239 239
         rescue ActiveRecord::StatementInvalid
240  
-          # Schema has been intialized
  240
+          # Schema has been initialized
241 241
         end
242 242
       end
243 243
 
@@ -255,7 +255,7 @@ def dump_schema_information #:nodoc:
255 255
       def type_to_sql(type, limit = nil, precision = nil, scale = nil) #:nodoc:
256 256
         if native = native_database_types[type]
257 257
           column_type_sql = native.is_a?(Hash) ? native[:name] : native
258  
-          if type == :decimal # ignore limit, use precison and scale
  258
+          if type == :decimal # ignore limit, use precision and scale
259 259
             precision ||= native[:precision]
260 260
             scale ||= native[:scale]
261 261
             if precision
2  activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -129,7 +129,7 @@ def log(sql, name)
129 129
           end
130 130
         rescue Exception => e
131 131
           # Log message and raise exception.
132  
-          # Set last_verfication to 0, so that connection gets verified
  132
+          # Set last_verification to 0, so that connection gets verified
133 133
           # upon reentering the request loop
134 134
           @last_verification = 0
135 135
           message = "#{e.class.name}: #{e.message}: #{sql}"
2  activerecord/lib/active_record/connection_adapters/oracle_adapter.rb
@@ -260,7 +260,7 @@ def default_sequence_name(table, column) #:nodoc:
260 260
         end
261 261
 
262 262
 
263  
-        # Inserts the given fixture into the table. Overriden to properly handle lobs.
  263
+        # Inserts the given fixture into the table. Overridden to properly handle lobs.
264 264
         def insert_fixture(fixture, table_name)
265 265
           super
266 266
 
4  activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -70,7 +70,7 @@ def self.string_to_binary(value)
70 70
   
71 71
         # Unescapes bytea output from a database to the binary string it represents.
72 72
         def self.binary_to_string(value)
73  
-          # In each case, check if the value actually is escaped PostgresSQL bytea output
  73
+          # In each case, check if the value actually is escaped PostgreSQL bytea output
74 74
           # or an unescaped Active Record attribute that was just written.
75 75
           if PGconn.respond_to?(:unescape_bytea)
76 76
             self.class.module_eval do
@@ -784,7 +784,7 @@ def select_raw(sql, name = nil)
784 784
               row.each_index do |cell_index|
785 785
                 # If this is a money type column and there are any currency symbols,
786 786
                 # then strip them off. Indeed it would be prettier to do this in
787  
-                # PostgresSQLColumn.string_to_decimal but would break form input
  787
+                # PostgreSQLColumn.string_to_decimal but would break form input
788 788
                 # fields that call value_before_type_cast.
789 789
                 if res.type(cell_index) == MONEY_COLUMN_TYPE_OID
790 790
                   # Because money output is formatted according to the locale, there are two
2  activerecord/lib/active_record/connection_adapters/sybase_adapter.rb
... ...
@@ -1,4 +1,4 @@
1  
-# sybase_adaptor.rb
  1
+# sybase_adapter.rb
2 2
 # Author: John R. Sheets
3 3
 # 
4 4
 # 01 Mar 2006: Initial version.  Based on code from Will Sobel
2  activerecord/lib/active_record/serializers/xml_serializer.rb
... ...
@@ -1,7 +1,7 @@
1 1
 module ActiveRecord #:nodoc:
2 2
   module Serialization
3 3
     # Builds an XML document to represent the model.   Some configuration is
4  
-    # availble through +options+, however more complicated cases should use 
  4
+    # available through +options+, however more complicated cases should use 
5 5
     # override ActiveRecord's to_xml.
6 6
     #
7 7
     # By default the generated XML document will include the processing 
2  activerecord/test/associations_test.rb
@@ -1474,7 +1474,7 @@ def test_adding_uses_default_values_on_join_table
1474 1474
     assert_equal 1, project.access_level.to_i
1475 1475
   end
1476 1476
 
1477  
-  def test_hatbm_attribute_access_and_respond_to
  1477
+  def test_habtm_attribute_access_and_respond_to
1478 1478
     project = developers(:jamis).projects[0]
1479 1479
     assert project.has_attribute?("name")
1480 1480
     assert project.has_attribute?("joined_on")
2  activerecord/test/base_test.rb
@@ -800,7 +800,7 @@ def test_customized_primary_key_remains_protected
800 800
     assert_nil keyboard.id
801 801
   end
802 802
 
803  
-  def test_customized_primary_key_remains_protected_when_refered_to_as_id
  803
+  def test_customized_primary_key_remains_protected_when_referred_to_as_id
804 804
     subscriber = Subscriber.new(:id => 'webster123', :name => 'nice try')
805 805
     assert_nil subscriber.id
806 806
 
4  activerecord/test/migration_test.rb
@@ -340,7 +340,7 @@ def test_unabstracted_database_dependent_types
340 340
         assert_equal 127, jonnyg.intelligence_quotient
341 341
         jonnyg.destroy
342 342
       ensure
343  
-        ActiveRecord::Migration.remove_column :people, :intelligece_quotient rescue nil
  343
+        ActiveRecord::Migration.remove_column :people, :intelligence_quotient rescue nil
344 344
       end
345 345
     end
346 346
 
@@ -578,7 +578,7 @@ def test_add_table_with_decimals
578 578
       assert_equal BigDecimal("1000234000567.95"), b.big_bank_balance
579 579
 
580 580
       # This one is fun. The 'value_of_e' field is defined as 'DECIMAL' with
581  
-      # precision/scale explictly left out.  By the SQL standard, numbers
  581
+      # precision/scale explicitly left out.  By the SQL standard, numbers
582 582
       # assigned to this field should be truncated but that's seldom respected.
583 583
       if current_adapter?(:PostgreSQLAdapter, :SQLite2Adapter)
584 584
         # - PostgreSQL changes the SQL spec on columns declared simply as
2  activerecord/test/pk_test.rb
@@ -95,7 +95,7 @@ def test_find_with_multiple_ids_should_quote_pkey
95 95
   def test_instance_update_should_quote_pkey
96 96
     assert_nothing_raised { MixedCaseMonkey.find(1).save }
97 97
   end
98  
-  def test_instance_destry_should_quote_pkey
  98
+  def test_instance_destroy_should_quote_pkey
99 99
     assert_nothing_raised { MixedCaseMonkey.find(1).destroy }
100 100
   end
101 101
 end
2  activerecord/test/unconnected_test.rb
@@ -3,7 +3,7 @@
3 3
 class TestRecord < ActiveRecord::Base
4 4
 end
5 5
 
6  
-class TestUnconnectedAdaptor < Test::Unit::TestCase
  6
+class TestUnconnectedAdapter < Test::Unit::TestCase
7 7
   self.use_transactional_fixtures = false
8 8
 
9 9
   def setup
2  activerecord/test/validations_test.rb
@@ -661,7 +661,7 @@ def test_validates_length_of_using_bignum
661 661
     end
662 662
   end
663 663
 
664  
-  def test_validates_length_with_globaly_modified_error_message
  664
+  def test_validates_length_with_globally_modified_error_message
665 665
     ActiveRecord::Errors.default_error_messages[:too_short] = 'tu est trops petit hombre %d'
666 666
     Topic.validates_length_of :title, :minimum => 10
667 667
     t = Topic.create(:title => 'too short')
2  activesupport/install.rb
@@ -18,7 +18,7 @@
18 18
   end
19 19
 end
20 20
 
21  
-# the acual gruntwork
  21
+# the actual gruntwork
22 22
 Dir.chdir("lib")
23 23
 
24 24
 Find.find("active_support", "active_support.rb") { |f|
2  activesupport/lib/active_support/core_ext/object/misc.rb
@@ -37,7 +37,7 @@ def returning(value)
37 37
   #     post.has_many :all_comments
38 38
   #   end
39 39
   #
40  
-  # Can also be used with an explicit reciever:
  40
+  # Can also be used with an explicit receiver:
41 41
   #
42 42
   #   map.with_options :controller => "people" do |people|
43 43
   #     people.connect "/people",     :action => "index"
4  activesupport/lib/active_support/core_ext/string/unicode.rb
... ...
@@ -1,7 +1,7 @@
1 1
 module ActiveSupport #:nodoc:
2 2
   module CoreExtensions #:nodoc:
3 3
     module String #:nodoc:
4  
-      # Define methods for handeling unicode data.
  4
+      # Define methods for handling unicode data.
5 5
       module Unicode
6 6
         # +chars+ is a Unicode safe proxy for string methods. It creates and returns an instance of the
7 7
         # ActiveSupport::Multibyte::Chars class which encapsulates the original string. A Unicode safe version of all
@@ -39,4 +39,4 @@ def is_utf8?
39 39
       end
40 40
     end
41 41
   end
42  
-end
  42
+end
2  activesupport/lib/active_support/core_ext/time/calculations.rb
@@ -29,7 +29,7 @@ def days_in_month(month, year=nil)
29 29
             end
30 30
           end
31 31
 
32  
-          # Returns a new Time if requested year can be accomodated by Ruby's Time class
  32
+          # Returns a new Time if requested year can be accommodated by Ruby's Time class
33 33
           # (i.e., if year is within either 1970..2038 or 1902..2038, depending on system architecture);
34 34
           # otherwise returns a DateTime
35 35
           def time_with_datetime_fallback(utc_or_local, year, month=1, day=1, hour=0, min=0, sec=0, usec=0)
2  activesupport/lib/active_support/vendor/builder/xmlbase.rb
@@ -26,7 +26,7 @@ def initialize(indent=0, initial=0)
26 26
     end
27 27
     
28 28
     # Create a tag named +sym+.  Other than the first argument which
29  
-    # is the tag name, the arguements are the same as the tags
  29
+    # is the tag name, the arguments are the same as the tags
30 30
     # implemented via <tt>method_missing</tt>.
31 31
     def tag!(sym, *args, &block)
32 32
       self.__send__(sym, *args, &block)
2  activesupport/lib/active_support/vendor/builder/xmlmarkup.rb
@@ -153,7 +153,7 @@ module Builder
153 153
   #
154 154
   #     xml_builder = Builder::XmlMarkup.new
155 155
   #     xml_builder.div { |xml|
156  
-  #       xml.stong("text")
  156
+  #       xml.strong("text")
157 157
   #     }
158 158
   #
159 159
   class XmlMarkup < XmlBase
2  activesupport/lib/active_support/vendor/xml_simple.rb
@@ -121,7 +121,7 @@ def get_from_memory_cache(filename, cache)
121 121
   # Create a "global" cache.
122 122
   @@cache = Cache.new
123 123
 
124  
-  # Creates and intializes a new XmlSimple object.
  124
+  # Creates and initializes a new XmlSimple object.
125 125
   # 
126 126
   # defaults::
127 127
   #   Default values for options.
2  activesupport/test/core_ext/date_ext_test.rb
@@ -36,7 +36,7 @@ def test_change
36 36
     assert_equal Date.new(2005,6,22), Date.new(2005,2,22).change(:month => 6)
37 37
   end
38 38
 
39  
-  def test_begining_of_week
  39
+  def test_beginning_of_week
40 40
     assert_equal Date.new(2005,1,31),  Date.new(2005,2,4).beginning_of_week
41 41
     assert_equal Date.new(2005,11,28), Date.new(2005,11,28).beginning_of_week #monday
42 42
     assert_equal Date.new(2005,11,28), Date.new(2005,11,29).beginning_of_week #tuesday
2  activesupport/test/core_ext/date_time_ext_test.rb
@@ -46,7 +46,7 @@ def test_seconds_since_midnight
46 46
     assert_equal 86399,DateTime.civil(2005,1,1,23,59,59).seconds_since_midnight
47 47
   end
48 48
 
49  
-  def test_begining_of_week
  49
+  def test_beginning_of_week
50 50
     assert_equal DateTime.civil(2005,1,31), DateTime.civil(2005,2,4,10,10,10).beginning_of_week
51 51
     assert_equal DateTime.civil(2005,11,28), DateTime.civil(2005,11,28,0,0,0).beginning_of_week #monday
52 52
     assert_equal DateTime.civil(2005,11,28), DateTime.civil(2005,11,29,0,0,0).beginning_of_week #tuesday
2  activesupport/test/core_ext/time_ext_test.rb
@@ -49,7 +49,7 @@ def test_seconds_since_midnight_at_daylight_savings_time_end
49 49
     end
50 50
   end
51 51
 
52  
-  def test_begining_of_week
  52
+  def test_beginning_of_week
53 53
     assert_equal Time.local(2005,1,31), Time.local(2005,2,4,10,10,10).beginning_of_week
54 54
     assert_equal Time.local(2005,11,28), Time.local(2005,11,28,0,0,0).beginning_of_week #monday
55 55
     assert_equal Time.local(2005,11,28), Time.local(2005,11,29,0,0,0).beginning_of_week #tuesday
2  activesupport/test/multibyte_handler_test.rb
@@ -15,7 +15,7 @@ def common_setup
15 15
     # This is an ASCII string with some russian strings and a ligature. It's nicely calibrated, because
16 16
     # slicing it at some specific bytes will kill your characters if you use standard Ruby routines.
17 17
     # It has both capital and standard letters, so that we can test case conversions easily.
18  
-    # It has 26 charactes and 28 when the ligature gets split during normalization.
  18
+    # It has 26 characters and 28 when the ligature gets split during normalization.
19 19
     @string =     "Abcd Блå ffi бла бла бла бла"
20 20
     @string_kd =  "Abcd Блå ffi бла бла бла бла"
21 21
     @string_kc =  "Abcd Блå ffi бла бла бла бла"
2  railties/lib/commands/plugin.rb
@@ -515,7 +515,7 @@ def options
515 515
         o.on(         "--local", 
516 516
                       "List locally installed plugins.") {|@local| @remote = false}
517 517
         o.on(         "--remote",
518  
-                      "List remotely availabled plugins. This is the default behavior",
  518
+                      "List remotely available plugins. This is the default behavior",
519 519
                       "unless --local is provided.") {|@remote|}
520 520
       end
521 521
     end
2  railties/lib/rails_generator/base.rb
@@ -40,7 +40,7 @@ module Rails
40 40
   # directory.
41 41
   #
42 42
   # The filenames of the templates don't matter, but choose something that
43  
-  # will be self-explatatory since you will be referencing these in the 
  43
+  # will be self-explanatory since you will be referencing these in the 
44 44
   # +manifest+ method inside your generator subclass.
45 45
   #
46 46
   # 
2  railties/lib/rails_generator/commands.rb
@@ -260,7 +260,7 @@ def identical?(source, destination, &block)
260 260
         end
261 261
 
262 262
         # Generate a file for a Rails application using an ERuby template.
263  
-        # Looks up and evalutes a template by name and writes the result.
  263
+        # Looks up and evaluates a template by name and writes the result.
264 264
         #
265 265
         # The ERB template uses explicit trim mode to best control the
266 266
         # proliferation of whitespace in generated code.  <%- trims leading

0 notes on commit e3b49c0

Please sign in to comment.
Something went wrong with that request. Please try again.