[DRE-commits] [ruby-org] 247/303: Updates the examples in accordance with the last commit.

Jérémy Bobbio lunar at alioth.debian.org
Fri Aug 9 17:34:06 UTC 2013


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository ruby-org.

commit 3af28da4fa5f3db5493635afb73cdd1e489110e2
Author: vonavi <ivvl82 at gmail.com>
Date:   Wed Jan 30 00:43:15 2013 +0200

    Updates the examples in accordance with the last commit.
---
 .../advanced-code-coderay.html                     |   40 ++++++++++----------
 .../advanced-code-no-color.html                    |   28 +++++++-------
 .../advanced-code-pygments.html                    |   40 ++++++++++----------
 .../src-code-list-coderay.html                     |   14 +++----
 .../src-code-list-no-color.html                    |   14 +++----
 .../src-code-list-pygments.html                    |   14 +++----
 spec/html_examples/code-block-lists.html           |    4 +-
 spec/html_examples/code-lists.html                 |   12 +++---
 spec/html_examples/properties_drawer.html          |    8 ++--
 9 files changed, 87 insertions(+), 87 deletions(-)

diff --git a/spec/html_code_syntax_highlight_examples/advanced-code-coderay.html b/spec/html_code_syntax_highlight_examples/advanced-code-coderay.html
index c2fadd3..bbbffa7 100644
--- a/spec/html_code_syntax_highlight_examples/advanced-code-coderay.html
+++ b/spec/html_code_syntax_highlight_examples/advanced-code-coderay.html
@@ -17,23 +17,23 @@
 <h1><span class="heading-number heading-number-1">2 </span>BEGIN_SRC</h1>
 <p>And this:</p>
 <pre class="src src-ruby">
-    <span style="color:#777"># Finds all emphasis matches in a string.</span>
-    <span style="color:#777"># Supply a block that will get the marker and body as parameters.</span>
-    <span style="color:#080;font-weight:bold">def</span> <span style="color:#06B;font-weight:bold">match_all</span>(str)
-      str.scan(<span style="color:#33B">@org_emphasis_regexp</span>) <span style="color:#080;font-weight:bold">do</span> |match|
-        <span style="color:#080;font-weight:bold">yield</span> <span style="color:#d70">$2</span>, <span style="color:#d70">$3</span>
-      <span style="color:#080;font-weight:bold">end</span>
-    <span style="color:#080;font-weight:bold">end</span>
+<span style="color:#777"># Finds all emphasis matches in a string.</span>
+<span style="color:#777"># Supply a block that will get the marker and body as parameters.</span>
+<span style="color:#080;font-weight:bold">def</span> <span style="color:#06B;font-weight:bold">match_all</span>(str)
+  str.scan(<span style="color:#33B">@org_emphasis_regexp</span>) <span style="color:#080;font-weight:bold">do</span> |match|
+    <span style="color:#080;font-weight:bold">yield</span> <span style="color:#d70">$2</span>, <span style="color:#d70">$3</span>
+  <span style="color:#080;font-weight:bold">end</span>
+<span style="color:#080;font-weight:bold">end</span>
 </pre>
 <p>Now let’s test case-insensitive code blocks.</p>
 <pre class="src src-ruby">
-    <span style="color:#777"># Finds all emphasis matches in a string.</span>
-    <span style="color:#777"># Supply a block that will get the marker and body as parameters.</span>
-    <span style="color:#080;font-weight:bold">def</span> <span style="color:#06B;font-weight:bold">match_all</span>(str)
-      str.scan(<span style="color:#33B">@org_emphasis_regexp</span>) <span style="color:#080;font-weight:bold">do</span> |match|
-        <span style="color:#080;font-weight:bold">yield</span> <span style="color:#d70">$2</span>, <span style="color:#d70">$3</span>
-      <span style="color:#080;font-weight:bold">end</span>
-    <span style="color:#080;font-weight:bold">end</span>
+<span style="color:#777"># Finds all emphasis matches in a string.</span>
+<span style="color:#777"># Supply a block that will get the marker and body as parameters.</span>
+<span style="color:#080;font-weight:bold">def</span> <span style="color:#06B;font-weight:bold">match_all</span>(str)
+  str.scan(<span style="color:#33B">@org_emphasis_regexp</span>) <span style="color:#080;font-weight:bold">do</span> |match|
+    <span style="color:#080;font-weight:bold">yield</span> <span style="color:#d70">$2</span>, <span style="color:#d70">$3</span>
+  <span style="color:#080;font-weight:bold">end</span>
+<span style="color:#080;font-weight:bold">end</span>
 </pre>
 <pre class="src src-clojure">
 (<span style="color:#080;font-weight:bold">def</span> <span style="color:#06B;font-weight:bold">fib-seq</span>
@@ -76,12 +76,12 @@ Nothing to see here
 </pre>
 <h2><span class="heading-number heading-number-2">4.2 </span>CSS example</h2>
 <pre class="src src-css">
- <span style="color:#339;font-weight:bold">*</span> {
-  <span style="color:#777">/* apply a natural box layout model to all elements */</span>
-  <span style="color:#606">box-sizing</span>: <span style="color:#088">border-box</span>; 
-  <span style="color:#606">-moz-box-sizing</span>: <span style="color:#088">border-box</span>; 
-  <span style="color:#606">-webkit-box-sizing</span>: <span style="color:#088">border-box</span>; 
- }
+<span style="color:#339;font-weight:bold">*</span> {
+ <span style="color:#777">/* apply a natural box layout model to all elements */</span>
+ <span style="color:#606">box-sizing</span>: <span style="color:#088">border-box</span>; 
+ <span style="color:#606">-moz-box-sizing</span>: <span style="color:#088">border-box</span>; 
+ <span style="color:#606">-webkit-box-sizing</span>: <span style="color:#088">border-box</span>; 
+}
 </pre>
 <h2><span class="heading-number heading-number-2">4.3 </span>HTML example</h2>
 <pre class="src src-html">
diff --git a/spec/html_code_syntax_highlight_examples/advanced-code-no-color.html b/spec/html_code_syntax_highlight_examples/advanced-code-no-color.html
index 5c2daff..8baba85 100644
--- a/spec/html_code_syntax_highlight_examples/advanced-code-no-color.html
+++ b/spec/html_code_syntax_highlight_examples/advanced-code-no-color.html
@@ -17,23 +17,23 @@
 <h1><span class="heading-number heading-number-1">2 </span>BEGIN_SRC</h1>
 <p>And this:</p>
 <pre class="src src-ruby">
-    # Finds all emphasis matches in a string.
-    # Supply a block that will get the marker and body as parameters.
-    def match_all(str)
-      str.scan(@org_emphasis_regexp) do |match|
-        yield $2, $3
-      end
-    end
+# Finds all emphasis matches in a string.
+# Supply a block that will get the marker and body as parameters.
+def match_all(str)
+  str.scan(@org_emphasis_regexp) do |match|
+    yield $2, $3
+  end
+end
 </pre>
 <p>Now let’s test case-insensitive code blocks.</p>
 <pre class="src src-ruby">
-    # Finds all emphasis matches in a string.
-    # Supply a block that will get the marker and body as parameters.
-    def match_all(str)
-      str.scan(@org_emphasis_regexp) do |match|
-        yield $2, $3
-      end
-    end
+# Finds all emphasis matches in a string.
+# Supply a block that will get the marker and body as parameters.
+def match_all(str)
+  str.scan(@org_emphasis_regexp) do |match|
+    yield $2, $3
+  end
+end
 </pre>
 <pre class="src src-clojure">
 (def fib-seq
diff --git a/spec/html_code_syntax_highlight_examples/advanced-code-pygments.html b/spec/html_code_syntax_highlight_examples/advanced-code-pygments.html
index cf19cfe..c23dbe9 100644
--- a/spec/html_code_syntax_highlight_examples/advanced-code-pygments.html
+++ b/spec/html_code_syntax_highlight_examples/advanced-code-pygments.html
@@ -16,22 +16,22 @@
 <p>Two ASCII blobs.</p>
 <h1><span class="heading-number heading-number-1">2 </span>BEGIN_SRC</h1>
 <p>And this:</p>
-<div class="highlight"><pre>    <span class="c1"># Finds all emphasis matches in a string.</span>
-    <span class="c1"># Supply a block that will get the marker and body as parameters.</span>
-    <span class="k">def</span> <span class="nf">match_all</span><span class="p">(</span><span class="n">str</span><span class="p">)</span>
-      <span class="n">str</span><span class="o">.</span><span class="n">scan</span><span class="p">(</span><span class="vi">@org_emphasis_regexp</span><span class="p">)</span> <span class="k">do</span> <span class="o">|</span><span class="n">match</span><span class="o">|</span>
-        <span class="k">yield</span> <span class="vg">$2</span><span class="p">,</span> <span class="vg">$3</span>
-      <span class="k">end</span>
-    <span class="k">end</span>
+<div class="highlight"><pre><span class="c1"># Finds all emphasis matches in a string.</span>
+<span class="c1"># Supply a block that will get the marker and body as parameters.</span>
+<span class="k">def</span> <span class="nf">match_all</span><span class="p">(</span><span class="n">str</span><span class="p">)</span>
+  <span class="n">str</span><span class="o">.</span><span class="n">scan</span><span class="p">(</span><span class="vi">@org_emphasis_regexp</span><span class="p">)</span> <span class="k">do</span> <span class="o">|</span><span class="n">match</span><span class="o">|</span>
+    <span class="k">yield</span> <span class="vg">$2</span><span class="p">,</span> <span class="vg">$3</span>
+  <span class="k">end</span>
+<span class="k">end</span>
 </pre></div>
 <p>Now let’s test case-insensitive code blocks.</p>
-<div class="highlight"><pre>    <span class="c1"># Finds all emphasis matches in a string.</span>
-    <span class="c1"># Supply a block that will get the marker and body as parameters.</span>
-    <span class="k">def</span> <span class="nf">match_all</span><span class="p">(</span><span class="n">str</span><span class="p">)</span>
-      <span class="n">str</span><span class="o">.</span><span class="n">scan</span><span class="p">(</span><span class="vi">@org_emphasis_regexp</span><span class="p">)</span> <span class="k">do</span> <span class="o">|</span><span class="n">match</span><span class="o">|</span>
-        <span class="k">yield</span> <span class="vg">$2</span><span class="p">,</span> <span class="vg">$3</span>
-      <span class="k">end</span>
-    <span class="k">end</span>
+<div class="highlight"><pre><span class="c1"># Finds all emphasis matches in a string.</span>
+<span class="c1"># Supply a block that will get the marker and body as parameters.</span>
+<span class="k">def</span> <span class="nf">match_all</span><span class="p">(</span><span class="n">str</span><span class="p">)</span>
+  <span class="n">str</span><span class="o">.</span><span class="n">scan</span><span class="p">(</span><span class="vi">@org_emphasis_regexp</span><span class="p">)</span> <span class="k">do</span> <span class="o">|</span><span class="n">match</span><span class="o">|</span>
+    <span class="k">yield</span> <span class="vg">$2</span><span class="p">,</span> <span class="vg">$3</span>
+  <span class="k">end</span>
+<span class="k">end</span>
 </pre></div>
 <div class="highlight"><pre><span class="p">(</span><span class="k">def </span><span class="nv">fib-seq</span>
   <span class="p">(</span><span class="nf">concat</span>
@@ -68,12 +68,12 @@
 <div class="highlight"><pre><script>alert('hello world')</script>
 </pre></div>
 <h2><span class="heading-number heading-number-2">4.2 </span>CSS example</h2>
-<div class="highlight"><pre> <span class="o">*</span> <span class="p">{</span>
-  <span class="c">/* apply a natural box layout model to all elements */</span>
-  <span class="n">box</span><span class="o">-</span><span class="n">sizing</span><span class="o">:</span> <span class="k">border</span><span class="o">-</span><span class="n">box</span><span class="p">;</span> 
-  <span class="o">-</span><span class="n">moz</span><span class="o">-</span><span class="n">box</span><span class="o">-</span><span class="n">sizing</span><span class="o">:</span> <span class="k">border</span><span class="o">-</span><span class="n">box</span><span class="p">;</span> 
-  <span class="o">-</span><span class="n">webkit</span><span class="o">-</span><span class="n">box</span><span class="o">-</span><span class="n">sizing</span><span class="o">:</span> <span class="k">border</span><span class="o">-</span><span class="n">box</span><span class="p">;</span> 
- <span class="p">}</span>
+<div class="highlight"><pre><span class="o">*</span> <span class="p">{</span>
+ <span class="c">/* apply a natural box layout model to all elements */</span>
+ <span class="n">box</span><span class="o">-</span><span class="n">sizing</span><span class="o">:</span> <span class="k">border</span><span class="o">-</span><span class="n">box</span><span class="p">;</span> 
+ <span class="o">-</span><span class="n">moz</span><span class="o">-</span><span class="n">box</span><span class="o">-</span><span class="n">sizing</span><span class="o">:</span> <span class="k">border</span><span class="o">-</span><span class="n">box</span><span class="p">;</span> 
+ <span class="o">-</span><span class="n">webkit</span><span class="o">-</span><span class="n">box</span><span class="o">-</span><span class="n">sizing</span><span class="o">:</span> <span class="k">border</span><span class="o">-</span><span class="n">box</span><span class="p">;</span> 
+<span class="p">}</span>
 </pre></div>
 <h2><span class="heading-number heading-number-2">4.3 </span>HTML example</h2>
 <div class="highlight"><pre><span class="nt"><html></span>
diff --git a/spec/html_code_syntax_highlight_examples/src-code-list-coderay.html b/spec/html_code_syntax_highlight_examples/src-code-list-coderay.html
index 19df669..5d27242 100644
--- a/spec/html_code_syntax_highlight_examples/src-code-list-coderay.html
+++ b/spec/html_code_syntax_highlight_examples/src-code-list-coderay.html
@@ -2,22 +2,22 @@
 <ul>
   <li>Foo
     <pre class="src src-ruby">
-    <span style="color:#080;font-weight:bold">class</span> <span style="color:#B06;font-weight:bold">Hello</span>
-      <span style="color:#080;font-weight:bold">def</span> <span style="color:#06B;font-weight:bold">say</span>
-        puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">'</span><span style="color:#D20">cheers</span><span style="color:#710">'</span></span>
-      <span style="color:#080;font-weight:bold">end</span>
-    <span style="color:#080;font-weight:bold">end</span>
+<span style="color:#080;font-weight:bold">class</span> <span style="color:#B06;font-weight:bold">Hello</span>
+  <span style="color:#080;font-weight:bold">def</span> <span style="color:#06B;font-weight:bold">say</span>
+    puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">'</span><span style="color:#D20">cheers</span><span style="color:#710">'</span></span>
+  <span style="color:#080;font-weight:bold">end</span>
+<span style="color:#080;font-weight:bold">end</span>
     </pre>
   </li>
   <li>Bar
     <pre class="src src-ruby">
-    puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">This should not get lumped into the above line Example</span><span style="color:#710">"</span></span>
+puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">This should not get lumped into the above line Example</span><span style="color:#710">"</span></span>
     </pre>
     <p>A paragraph should go here.</p>
     <ul>
       <li>A sublist goes here with another example
         <pre class="src src-sh">
-      echo "Hello"
+echo "Hello"
         </pre>
         <p>And this is a paragraph</p>
       </li>
diff --git a/spec/html_code_syntax_highlight_examples/src-code-list-no-color.html b/spec/html_code_syntax_highlight_examples/src-code-list-no-color.html
index d54d472..c7eef0e 100644
--- a/spec/html_code_syntax_highlight_examples/src-code-list-no-color.html
+++ b/spec/html_code_syntax_highlight_examples/src-code-list-no-color.html
@@ -2,22 +2,22 @@
 <ul>
   <li>Foo
     <pre class="src src-ruby">
-    class Hello
-      def say
-        puts 'cheers'
-      end
-    end
+class Hello
+  def say
+    puts 'cheers'
+  end
+end
     </pre>
   </li>
   <li>Bar
     <pre class="src src-ruby">
-    puts "This should not get lumped into the above line Example"
+puts "This should not get lumped into the above line Example"
     </pre>
     <p>A paragraph should go here.</p>
     <ul>
       <li>A sublist goes here with another example
         <pre class="src src-sh">
-      echo "Hello"
+echo "Hello"
         </pre>
         <p>And this is a paragraph</p>
       </li>
diff --git a/spec/html_code_syntax_highlight_examples/src-code-list-pygments.html b/spec/html_code_syntax_highlight_examples/src-code-list-pygments.html
index 3a55684..cefc757 100644
--- a/spec/html_code_syntax_highlight_examples/src-code-list-pygments.html
+++ b/spec/html_code_syntax_highlight_examples/src-code-list-pygments.html
@@ -1,19 +1,19 @@
 <h1 class="title">begin src in lists should work</h1>
 <ul>
   <li>Foo
-<div class="highlight"><pre>    <span class="k">class</span> <span class="nc">Hello</span>
-      <span class="k">def</span> <span class="nf">say</span>
-        <span class="nb">puts</span> <span class="s1">'cheers'</span>
-      <span class="k">end</span>
-    <span class="k">end</span>
+<div class="highlight"><pre><span class="k">class</span> <span class="nc">Hello</span>
+  <span class="k">def</span> <span class="nf">say</span>
+    <span class="nb">puts</span> <span class="s1">'cheers'</span>
+  <span class="k">end</span>
+<span class="k">end</span>
 </pre></div></li>
   <li>Bar
-<div class="highlight"><pre>    <span class="nb">puts</span> <span class="s2">"This should not get lumped into the above line Example"</span>
+<div class="highlight"><pre><span class="nb">puts</span> <span class="s2">"This should not get lumped into the above line Example"</span>
 </pre></div>
     <p>A paragraph should go here.</p>
     <ul>
       <li>A sublist goes here with another example
-<div class="highlight"><pre>      <span class="nb">echo</span> <span class="s2">"Hello"</span>
+<div class="highlight"><pre><span class="nb">echo</span> <span class="s2">"Hello"</span>
 </pre></div>
         <p>And this is a paragraph</p>
       </li>
diff --git a/spec/html_examples/code-block-lists.html b/spec/html_examples/code-block-lists.html
index 92391e5..eaff4b2 100644
--- a/spec/html_examples/code-block-lists.html
+++ b/spec/html_examples/code-block-lists.html
@@ -40,7 +40,7 @@ puts "test"
     <ul>
       <li>Block without indentation
         <pre class="example">
-  puts "test"
+puts "test"
         </pre>
       </li>
     </ul>
@@ -62,7 +62,7 @@ puts "test"
 <ul>
   <li>Indentation of a begin_example code block
     <pre class="example">
-    (+ 3 5)
+(+ 3 5)
     </pre>
   </li>
 </ul>
diff --git a/spec/html_examples/code-lists.html b/spec/html_examples/code-lists.html
index 0313072..2ce94f1 100644
--- a/spec/html_examples/code-lists.html
+++ b/spec/html_examples/code-lists.html
@@ -46,16 +46,16 @@
 <ul>
   <li>Foo
     <pre class="example">
-    class Hello
-      def say
-        puts 'cheers'
-      end
-    end
+class Hello
+  def say
+    puts 'cheers'
+  end
+end
     </pre>
   </li>
   <li>Bar
     <pre class="example">
-    This gets lumped in to the above line "Example"
+This gets lumped in to the above line "Example"
     </pre>
   </li>
   <li>Hello</li>
diff --git a/spec/html_examples/properties_drawer.html b/spec/html_examples/properties_drawer.html
index c500381..f51abc5 100644
--- a/spec/html_examples/properties_drawer.html
+++ b/spec/html_examples/properties_drawer.html
@@ -1,19 +1,19 @@
 <h1 class="title">The mount point of the fullest disk</h1>
 <h2>query all mounted disks</h2>
 <pre class="example">
-  df \
+df \
 </pre>
 <h2>strip the header row</h2>
 <pre class="example">
-  |sed '1d' \
+|sed '1d' \
 </pre>
 <h2>sort by the percent full</h2>
 <pre class="example">
-  |awk '{print $5 " " $6}'|sort -n |tail -1 \
+|awk '{print $5 " " $6}'|sort -n |tail -1 \
 </pre>
 <h2>extract the mount point</h2>
 <pre class="example">
-  |awk '{print $2}'
+|awk '{print $2}'
 </pre>
 <h1>Properties drawer example</h1>
 <p>These properties are metadata so they should not be visible.</p>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-org.git



More information about the Pkg-ruby-extras-commits mailing list