<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>Rakefile</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,13 +1,41 @@
-BgSecure
-========
+BgSecure Plugin
+===============
 
 Provides access methods for generating secure urls on BitGravity.
 
 
-Example
-=======
+Usage
+-----
 
-Example coming once I decide how it works.
+Create secure urls for Bit Gravity by passing the url, your Bit Gravity shared secret key, and an optional options hash.
+
+Valid options:
+
+* :expires - An object respending to :to_time, or and integer for seconds since UTC Epoch. If this option is not passed, evaluates to false, or if 0 is passed, the url will not expire.
+* :unlock - If set to true, will override any country based blocking. This option takes precedence over :allowed and :disallowed so please pass only one of these options.
+* :allowed - Either an array of countries ['US', 'CA'] or a string &quot;US,CA&quot; used to indicate allowed countries. This option will override :disallowed and be overridden by :unlock so please pass only one of these options.
+* :disallowed - Either an array of countries ['US', 'CA'] or a string &quot;US,CA&quot; used to indicate disallowed countries. This option will be overridden by :unlock or :allowed so please pass only one of these options.
+
+Examples
+--------
+
+Secure url that doesn't expire
+
+    BgSecure.url_for('http://example.com/path/file.ext', 'secret')
+
+&gt; &quot;http://example.com/path/file.ext?e=0&amp;h=74bea39e4aa13f08a6fc862fe29574fc&quot;
+
+Secure url that expires 2 days from now (time will be converted to UTC)
+
+    BgSecure.url_for('http://example.com/path/file.ext', 'secret', :expires =&gt; 2.days.from_now)
+
+&gt; &quot;http://example.com/path/file.ext?e=1234567890&amp;h=74bea39e4aa13f08a6fc862fe29574fc&quot;
+
+Secure url that doesn't expire but allows only US access
+
+    BgSecure.url_for('http://example.com/path/file.ext', 'secret', :allowed =&gt; 'US')
+
+&gt; &quot;http://example.com/path/file.ext?e=0&amp;a=US&amp;h=0880d05de9eb8a67146473cbceca40e3&quot;
 
 
 Copyright (c) 2008 Martin Emde / La Touraine, Inc.</diff>
      <filename>README.md</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>95a528f7a12dc647c53a4ac6adce224d293aea2b</id>
    </parent>
  </parents>
  <author>
    <name>Martin Emde</name>
    <email>martin.emde@gmail.com</email>
  </author>
  <url>http://github.com/jarinudom/bg-secure/commit/0a7405653ec3b0cc68bf05548cb2f256b6ba3c22</url>
  <id>0a7405653ec3b0cc68bf05548cb2f256b6ba3c22</id>
  <committed-date>2008-10-02T12:25:51-07:00</committed-date>
  <authored-date>2008-10-02T12:25:51-07:00</authored-date>
  <message>Add missing Rakefile and add a better README</message>
  <tree>2d731091b3c45b24bcec3a2ccf44df57d961bad6</tree>
  <committer>
    <name>Martin Emde</name>
    <email>martin.emde@gmail.com</email>
  </committer>
</commit>
