<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -28,6 +28,14 @@ Pretty straight-forward. I should note, though, if you're specifying a few libra
 
 I'm sure the code could be improved upon, as I wrote this farely quickly because I started using it in a few of my projects. Feel free to suggest changes and/or &quot;fork and improve&quot;.
 
+h2. Got Internet?
+
+In the rare event that your internet connection has gone missing (it happens, believe it or not), you can specify to load the file from your local javascripts folder by passing the @:local@ option.
+
+&lt;pre&gt;&lt;code&gt;&lt;%= google_jquery :local =&gt; true %&gt;&lt;/code&gt;&lt;/pre&gt;
+
+This would just look for 'jquery.js' in your public/javascripts folder. In the event that you don't have a local copy, well, I guess you won't be doing any javascript :-)
+
 h2. Keeping up-to-date
 
 Google is usually on top of things. I'm sure they'll be supporting more and more libraries as they come out (or become more popular). Fortunately, it's easy to add a new library to this plugin. Just modify the code located in lib/google_ajax_libraries_api/constants.rb, mimicking the existing library format. (Note: adding a new library in constants.rb will dynamically create a @google_newlib@ helper, so there's nothing else that needs to be done!)</diff>
      <filename>README.textile</filename>
    </modified>
    <modified>
      <diff>@@ -56,7 +56,6 @@ module RPH
           raise(MissingLibrary, MissingLibrary.message) if libraries.blank? || libraries.first.is_a?(Hash)
           options = libraries.last.is_a?(Hash) ? libraries.pop : {}
           
-          
           # if only a single library is passed in, avoid the overhead of
           # 'returning'; otherwise, if multiple libraries are passed in, 
           # delete the :version option from the options hash, as it plays
@@ -86,7 +85,8 @@ module RPH
         GOOGLE_LIBRARIES.keys.each do |lib|
           eval &lt;&lt;-METHOD
             def google_#{lib.to_s}(options={})
-              javascript_include_tag(Library.new(:#{lib.to_s}, options).path)
+              library = options.delete(:local) ? '#{lib.to_s}' : Library.new(:#{lib.to_s}, options).path
+              javascript_include_tag(library)
             end
           METHOD
         end</diff>
      <filename>lib/google_ajax_libraries_api.rb</filename>
    </modified>
    <modified>
      <diff>@@ -62,6 +62,16 @@ describe &quot;RPH::Google::AjaxLibraries&quot; do
     end
   end
   
+  describe &quot;local access&quot; do
+    it &quot;should load from the local directory if told to do so&quot; do
+      @helper.google_jquery(:local =&gt; true).
+        should eql(&quot;&lt;script src=\&quot;/javascripts/jquery.js\&quot; type=\&quot;text/javascript\&quot;&gt;&lt;/script&gt;&quot;)
+        
+      @helper.google_prototype(:local =&gt; true).
+        should eql(&quot;&lt;script src=\&quot;/javascripts/prototype.js\&quot; type=\&quot;text/javascript\&quot;&gt;&lt;/script&gt;&quot;)
+    end
+  end
+  
   describe &quot;all supported libraries with default version&quot; do
     it &quot;should map to the jquery google api url&quot; do
       @helper.google_jquery.</diff>
      <filename>spec/google_ajax_libraries_api_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bf4be0bfa7eec2c8dcf774cfd7cecc61030c3cf1</id>
    </parent>
  </parents>
  <author>
    <name>rpheath</name>
    <email>rpheath@gmail.com</email>
  </author>
  <url>http://github.com/rpheath/google_ajax_libraries_api/commit/369ce396c905117eb6a53c51626a7d2677666caf</url>
  <id>369ce396c905117eb6a53c51626a7d2677666caf</id>
  <committed-date>2009-02-20T08:28:46-08:00</committed-date>
  <authored-date>2009-02-20T08:28:46-08:00</authored-date>
  <message>added option to load locally (useful for developing with no internet connection)</message>
  <tree>9c7dff99dc5006c4d7d0899b21955175b31603c6</tree>
  <committer>
    <name>rpheath</name>
    <email>rpheath@gmail.com</email>
  </committer>
</commit>
