Permalink
Browse files

Increased version no and generated documentation after aahoughton's fix

  • Loading branch information...
1 parent 485346f commit 89bd684c905ed3d4599b4b4c0701489507d8e4af @pascalopitz committed Sep 25, 2011
Showing with 9 additions and 2 deletions.
  1. +4 −0 README.md
  2. +4 −1 docs/beanstalk_client.html
  3. +1 −1 package.json
View
@@ -113,3 +113,7 @@ Depends on the yaml package by visionmedia.
https://github.com/visionmedia/js-yaml
+Thanks to people that took time to fix some things.
+
+aahoughton
+
@@ -3,7 +3,10 @@
<span class="nx">sys</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;sys&#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> <h2>yaml wrapper</h2>
<p>because yaml doesn't like beanstalk</p> </td> <td class="code"> <div class="highlight"><pre><span class="kd">var</span> <span class="nx">yaml</span> <span class="o">=</span> <span class="k">new</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
- <span class="k">this</span><span class="p">.</span><span class="nb">eval</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">str</span><span class="p">)</span> <span class="p">{</span></pre></div> </td> </tr> <tr id="section-3"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-3">&#182;</a> </div> <p>YAML sucks, reg exp to make it working(ish)</p> </td> <td class="code"> <div class="highlight"><pre> <span class="kd">var</span> <span class="nx">corrected</span> <span class="o">=</span> <span class="nx">str</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\n-\ ([\w\d_-]+)/mig</span><span class="p">,</span> <span class="s1">&#39;\n - \&#39;$1\&#39;&#39;</span><span class="p">)</span> <span class="c1">//indent list</span>
+ <span class="k">this</span><span class="p">.</span><span class="nb">eval</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">str</span><span class="p">)</span> <span class="p">{</span>
+ <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">str</span><span class="p">.</span><span class="nx">replace</span><span class="p">)</span> <span class="p">{</span>
+ <span class="k">return</span> <span class="nx">str</span><span class="p">;</span>
+ <span class="p">}</span></pre></div> </td> </tr> <tr id="section-3"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-3">&#182;</a> </div> <p>YAML sucks, reg exp to make it working(ish)</p> </td> <td class="code"> <div class="highlight"><pre> <span class="kd">var</span> <span class="nx">corrected</span> <span class="o">=</span> <span class="nx">str</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\n-\ ([\w\d_-]+)/mig</span><span class="p">,</span> <span class="s1">&#39;\n - \&#39;$1\&#39;&#39;</span><span class="p">)</span> <span class="c1">//indent list</span>
<span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/(\w)\-(\w)/mgi</span><span class="p">,</span> <span class="s1">&#39;$1_$2&#39;</span><span class="p">)</span> <span class="c1">// replace minuses in hash names</span>
<span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\n([\w\d_-]+)\:\ ([\.\,\w\d_-]+)/mig</span><span class="p">,</span> <span class="s1">&#39;\n $1: \&#39;$2\&#39;&#39;</span><span class="p">)</span> <span class="c1">// format hashes</span>
<span class="p">;</span>
View
@@ -2,7 +2,7 @@
"name": "nodestalker"
, "description": "A Beanstalk client for node.js"
, "keywords": ["beanstalkd", "queue"]
- , "version": "0.1.1"
+ , "version": "0.1.2"
, "author": "Pascal Opitz <pascal@ilikecode.co.uk> (http://www.ilikecode.co.uk)"
, "repository": {
"type": "git"

0 comments on commit 89bd684

Please sign in to comment.