Browse files

update annotated source to latest version

  • Loading branch information...
1 parent 914b346 commit 4cdff112625d5ff33eade467bcd8593344729d08 @MSNexploder committed Dec 4, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 source/version.html
View
7 source/version.html
@@ -1,4 +1,9 @@
-<!DOCTYPE html> <html> <head> <title>version.coffee</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <div id="jump_to"> Jump To &hellip; <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="default_inflections.html"> default_inflections.coffee </a> <a class="source" href="index.html"> index.coffee </a> <a class="source" href="inflections.html"> inflections.coffee </a> <a class="source" href="methods.html"> methods.coffee </a> <a class="source" href="number_extensions.html"> number_extensions.coffee </a> <a class="source" href="string_extensions.html"> string_extensions.coffee </a> <a class="source" href="version.html"> version.coffee </a> </div> </div> </div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> version.coffee </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">&#182;</a> </div> <p>version information</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.package = </span><span class="nx">JSON</span><span class="p">.</span><span class="nx">parse</span><span class="p">(</span><span class="nx">require</span><span class="p">(</span><span class="s2">&quot;fs&quot;</span><span class="p">).</span><span class="nx">readFileSync</span><span class="p">(</span><span class="nx">__dirname</span> <span class="o">+</span> <span class="s2">&quot;/../../package.json&quot;</span><span class="p">))</span>
+<!DOCTYPE html> <html> <head> <title>version.coffee</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <div id="jump_to"> Jump To &hellip; <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="default_inflections.html"> default_inflections.coffee </a> <a class="source" href="index.html"> index.coffee </a> <a class="source" href="inflections.html"> inflections.coffee </a> <a class="source" href="methods.html"> methods.coffee </a> <a class="source" href="number_extensions.html"> number_extensions.coffee </a> <a class="source" href="string_extensions.html"> string_extensions.coffee </a> <a class="source" href="version.html"> version.coffee </a> </div> </div> </div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> version.coffee </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">&#182;</a> </div> </td> <td class="code"> <div class="highlight"><pre><span class="nv">path = </span><span class="nx">require</span> <span class="s1">&#39;path&#39;</span>
+
+<span class="k">if</span> <span class="nx">process</span><span class="p">.</span><span class="nx">title</span> <span class="o">==</span> <span class="s1">&#39;browser&#39;</span>
+ <span class="nv">data = </span><span class="nx">require</span><span class="p">(</span><span class="s1">&#39;files&#39;</span><span class="p">)[</span><span class="s1">&#39;package.json&#39;</span><span class="p">]</span>
+<span class="k">else</span>
+ <span class="nv">data = </span><span class="nx">require</span><span class="p">(</span><span class="s1">&#39;fs&#39;</span><span class="p">).</span><span class="nx">readFileSync</span><span class="p">(</span><span class="nx">path</span><span class="p">.</span><span class="nx">join</span><span class="p">(</span><span class="nx">__dirname</span><span class="p">,</span> <span class="s1">&#39;/../../package.json&#39;</span><span class="p">))</span></pre></div> </td> </tr> <tr id="section-2"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-2">&#182;</a> </div> <p>version information</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.package = </span><span class="nx">JSON</span><span class="p">.</span><span class="nx">parse</span><span class="p">(</span><span class="nx">data</span><span class="p">)</span>
<span class="nv">exports.version = </span><span class="nx">exports</span><span class="p">.</span><span class="nx">package</span><span class="p">.</span><span class="nx">version</span>
</pre></div> </td> </tr> </tbody> </table> </div> </body> </html>

0 comments on commit 4cdff11

Please sign in to comment.