github-markup 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c8a09a747ae3f717bd9e710c3725217419f7bd1
4
- data.tar.gz: b741c9f19985f3bcc8384dbde99ee3c74bb0fbc6
3
+ metadata.gz: d50733f9f72d5467bde744ded041c4ad3d2f6950
4
+ data.tar.gz: 556de89a612afd8d059af5ac970591654823c010
5
5
  SHA512:
6
- metadata.gz: 924b42c03f352f31e81e5abdd3d2905f420b4010417ac59186553b2aa6354e779c3c1c6cd105b86a3a8119fb2853c74e8f24a69dfad7c7461c325b5079699264
7
- data.tar.gz: 94ec8a1a48a890b4fdd2472d433c1f3a7cf30d15bc2b158015e975776ef096dbacbd021555a6fa2bda8001bd2e3286a672ff391f40b302575bf28ee954f1e79f
6
+ metadata.gz: b6f5e35df49de5e64d1a0778010a31d4ad39551e6ba819d688b1e1ee503023a0e39007f1b1b267e5bbe17dcff56bbbcf207b8cd058e6c4f69fbeb25a9dc30aa5
7
+ data.tar.gz: f36aea63143307915e6eba38ff8346606ad967391a06aa68b844d12994ff8b3943a04ce2721bbef3c97e8d19436d3c2edefc6b34d23c055f982a56c81d792ee4
data/Gemfile CHANGED
@@ -1,10 +1,10 @@
1
1
  source "http://rubygems.org"
2
+ gemspec
2
3
  gem "redcarpet"
3
4
  gem "RedCloth"
4
5
  gem "rdoc", "~>3.6"
5
- gem "org-ruby", ">= 0.8.1"
6
+ gem "org-ruby", "= 0.9.1.gh"
6
7
  gem "creole", "~>0.3.6"
7
8
  gem "wikicloth", "=0.6.0"
8
9
  gem "asciidoctor", "= 0.1.4"
9
10
  gem "rake"
10
- gem "posix-spawn"
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.1.1 (2014-04-03)
2
+
3
+ * Upgrade to org-ruby 0.9.1
4
+ * Set default encoding to UTF-8 for Python 2
5
+
1
6
  ## 1.1.0 (2014-03-10)
2
7
 
3
8
  * Raise GitHub::Markup::CommandError if external command exits with a non-zero status.
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  ## the sub! line in the Rakefile
17
17
  s.name = 'github-markup'
18
18
  s.version = GitHub::Markup::VERSION
19
- s.date = '2014-03-10'
19
+ s.date = '2014-04-09'
20
20
  s.executables = ['github-markup']
21
21
 
22
22
  ## Make sure your summary is short. The description may be as long
@@ -107,5 +107,6 @@ desc
107
107
  ## Test files will be grabbed from the file list. Make sure the path glob
108
108
  ## matches what you actually use.
109
109
  s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
110
- end
111
110
 
111
+ s.add_dependency 'posix-spawn', '~> 0.3.8'
112
+ end
@@ -1,6 +1,6 @@
1
1
  module GitHub
2
2
  module Markup
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  Version = VERSION
5
5
  end
6
6
  end
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env python
1
+ #!/usr/bin/env python2 -S
2
2
  """
3
3
  rest2html - A small wrapper file for parsing ReST files at GitHub.
4
4
 
@@ -27,13 +27,19 @@ __author__ = "Jannis Leidel"
27
27
  __license__ = "CC0"
28
28
  __version__ = "0.1"
29
29
 
30
+ import sys
31
+
32
+ # This fixes docutils failing with unicode parameters to CSV-Table. The -S
33
+ # switch and the following 2 lines can be removed after upgrading to python 3.
34
+ sys.setdefaultencoding('utf-8')
35
+ import site
36
+
30
37
  try:
31
38
  import locale
32
39
  locale.setlocale(locale.LC_ALL, '')
33
40
  except:
34
41
  pass
35
42
 
36
- import sys
37
43
  import codecs
38
44
 
39
45
  from docutils.core import publish_parts
@@ -45,7 +51,7 @@ SETTINGS = {
45
51
  'raw_enabled': False,
46
52
  'strip_comments': True,
47
53
  'doctitle_xform': False,
48
- 'report_level': 5,
54
+ 'report_level': 3,
49
55
  'syntax_highlight' : 'none',
50
56
  'math_output' : 'latex'
51
57
  }
@@ -11,7 +11,10 @@ markup('github/markup/rdoc', /rdoc/) do |content|
11
11
  end
12
12
 
13
13
  markup('org-ruby', /org/) do |content|
14
- Orgmode::Parser.new(content).to_html
14
+ Orgmode::Parser.new(content, {
15
+ :allow_include_files => false,
16
+ :skip_syntax_highlight => true
17
+ }).to_html
15
18
  end
16
19
 
17
20
  markup(:creole, /creole/) do |content|
@@ -26,7 +29,7 @@ markup(:asciidoctor, /adoc|asc(iidoc)?/) do |content|
26
29
  Asciidoctor.render(content, :safe => :secure, :attributes => %w(showtitle idprefix idseparator=- env=github env-github source-highlighter=html-pipeline))
27
30
  end
28
31
 
29
- command('rest2html', /re?st(\.txt)?/)
32
+ command("python2 -S #{File.dirname(__FILE__)}/commands/rest2html", /re?st(\.txt)?/)
30
33
 
31
34
  # pod2html is nice enough to generate a full-on HTML document for us,
32
35
  # so we return the favor by ripping out the good parts.
@@ -11,8 +11,8 @@
11
11
  #+STARTUP: showall
12
12
 
13
13
  | Status: | Under Development |
14
- | Location: | [[http://github.com/bdewey/org-ruby]] |
15
- | Version: | 0.5.1 |
14
+ | Location: | [[http://github.com/wallyqs/org-ruby]] |
15
+ | Version: | 0.9.0 |
16
16
 
17
17
  * Description
18
18
 
@@ -22,9 +22,25 @@
22
22
  conversion. The supplied textile conversion is optimized for
23
23
  extracting "content" from the orgfile as opposed to "metadata."
24
24
 
25
-
26
25
  * History
27
26
 
27
+ ** 2014-02-08: Version 0.9.0
28
+
29
+ - Let's make sure =#+INCLUDE:= is not supported
30
+
31
+ #+INCLUDE: "./README.txt" src text
32
+
33
+ - And confirm that syntax highlight is supported
34
+
35
+ #+begin_src ruby
36
+ module GitHub
37
+ module Markup
38
+ VERSION = 'test'
39
+ Version = VERSION
40
+ end
41
+ end
42
+ #+end_src
43
+
28
44
  ** 2009-12-30: Version 0.5.1
29
45
 
30
46
  - Minor enhancement: Recognize lines starting with ":" as examples.
@@ -1,8 +1,8 @@
1
1
  <p class="title">org-ruby</p>
2
2
  <table>
3
3
  <tr><td>Status:</td><td>Under Development</td></tr>
4
- <tr><td>Location:</td><td><a href="http://github.com/bdewey/org-ruby">http://github.com/bdewey/org-ruby</a></td></tr>
5
- <tr><td>Version:</td><td>0.5.1</td></tr>
4
+ <tr><td>Location:</td><td><a href="http://github.com/wallyqs/org-ruby">http://github.com/wallyqs/org-ruby</a></td></tr>
5
+ <tr><td>Version:</td><td>0.9.0</td></tr>
6
6
  </table>
7
7
  <h1><span class="heading-number heading-number-1">1</span> Description</h1>
8
8
  <p>Helpful Ruby routines for parsing orgmode files. The most
@@ -11,13 +11,28 @@
11
11
  conversion. The supplied textile conversion is optimized for
12
12
  extracting &#8220;content&#8221; from the orgfile as opposed to &#8220;metadata.&#8221;</p>
13
13
  <h1><span class="heading-number heading-number-1">2</span> History</h1>
14
- <h2><span class="heading-number heading-number-2">2.1</span> 2009-12-30: Version 0.5.1</h2>
14
+ <h2><span class="heading-number heading-number-2">2.1</span> 2014-02-08: Version 0.9.0</h2>
15
+ <ul>
16
+ <li>Let&#8217;s make sure <code>#+INCLUDE:</code> is not supported</li>
17
+ </ul>
18
+ <ul>
19
+ <li>And confirm that syntax highlight is supported</li>
20
+ </ul>
21
+ <pre class="src" lang="ruby">
22
+ module GitHub
23
+ module Markup
24
+ VERSION = &#39;test&#39;
25
+ Version = VERSION
26
+ end
27
+ end
28
+ </pre>
29
+ <h2><span class="heading-number heading-number-2">2.2</span> 2009-12-30: Version 0.5.1</h2>
15
30
  <ul>
16
31
  <li>Minor enhancement: Recognize lines starting with &#8220;:&#8221; as examples.</li>
17
32
  <li>Minor enhancement: Recognize #+BEGIN_SRC as source blocks</li>
18
33
  <li>Minor enhancement: Add &#8220;src&#8221; and &#8220;example&#8221; classes to &lt;pre&gt; blocks.</li>
19
34
  </ul>
20
- <h2><span class="heading-number heading-number-2">2.2</span> 2009-12-30: Version 0.5.0</h2>
35
+ <h2><span class="heading-number heading-number-2">2.3</span> 2009-12-30: Version 0.5.0</h2>
21
36
  <ul>
22
37
  <li>Parse (but not necessarily <b>use</b>) in-buffer settings. The following
23
38
  in-buffer settings <b>are</b> used:
@@ -41,7 +56,7 @@
41
56
  </ul>
42
57
  </li>
43
58
  </ul>
44
- <h2><span class="heading-number heading-number-2">2.3</span> 2009-12-29: Version 0.4.2</h2>
59
+ <h2><span class="heading-number heading-number-2">2.4</span> 2009-12-29: Version 0.4.2</h2>
45
60
  <ul>
46
61
  <li>Got rid of the extraneous newline at the start of code blocks.</li>
47
62
  <li>Everything now shows up in code blocks, even org-mode metadata.</li>
@@ -52,12 +67,12 @@
52
67
  </ul>
53
68
  </li>
54
69
  </ul>
55
- <h2><span class="heading-number heading-number-2">2.4</span> 2009-12-29: Version 0.4.1</h2>
70
+ <h2><span class="heading-number heading-number-2">2.5</span> 2009-12-29: Version 0.4.1</h2>
56
71
  <ul>
57
72
  <li>HTML is now escaped by default</li>
58
73
  <li>org-mode comments will show up in a code block.</li>
59
74
  </ul>
60
- <h2><span class="heading-number heading-number-2">2.5</span> 2009-12-29: Version 0.4</h2>
75
+ <h2><span class="heading-number heading-number-2">2.6</span> 2009-12-29: Version 0.4</h2>
61
76
  <ul>
62
77
  <li>The first thing output in HTML gets the class &#8220;title&#8221;</li>
63
78
  <li>HTML output is now indented</li>
@@ -70,7 +85,7 @@
70
85
  </ul>
71
86
  </li>
72
87
  </ul>
73
- <h2><span class="heading-number heading-number-2">2.6</span> 2009-12-27: Version 0.3</h2>
88
+ <h2><span class="heading-number heading-number-2">2.7</span> 2009-12-27: Version 0.3</h2>
74
89
  <ul>
75
90
  <li>Uses rubypants to get better typography (smart quotes, elipses, etc&#8230;).</li>
76
91
  <li>Fixed bugs:
@@ -81,14 +96,14 @@
81
96
  </ul>
82
97
  </li>
83
98
  </ul>
84
- <h2><span class="heading-number heading-number-2">2.7</span> 2009-12-26: Version 0.2</h2>
99
+ <h2><span class="heading-number heading-number-2">2.8</span> 2009-12-26: Version 0.2</h2>
85
100
  <ul>
86
101
  <li>Added <code>to_html</code> output on the parser.</li>
87
102
  <li>Added support for the full range of inline markup: <b>bold</b>,
88
103
  <i>italic</i>, <code>code</code>, <code>verbatim</code>, <span style="text-decoration:underline;">underline</span>, <del>strikethrough</del>.</li>
89
104
  <li>Lots of refactoring to make the code more maintainable.</li>
90
105
  </ul>
91
- <h2><span class="heading-number heading-number-2">2.8</span> 2009-12-23: Version 0.1</h2>
106
+ <h2><span class="heading-number heading-number-2">2.9</span> 2009-12-23: Version 0.1</h2>
92
107
  <ul>
93
108
  <li>Added support for block code, like this:
94
109
  <pre class="example">
@@ -12,6 +12,20 @@ Header 2
12
12
 
13
13
  3. Somé UTF-8°
14
14
 
15
+ The UTF-8 quote character in this table used to cause python to go boom. Now docutils just displays an error inline so the user can fix it. Upgrading to Python 3 will fix this.
16
+
17
+ .. csv-table:: Things that are Awesome (on a scale of 1-11)
18
+ :quote: ”
19
+
20
+ Thing,Awesomeness
21
+ Icecream, 7
22
+ Honey Badgers, 10.5
23
+ Nickelback, -2
24
+ Iron Man, 10
25
+ Iron Man 2, 3
26
+ Tabular Data, 5
27
+ Made up ratings, 11
28
+
15
29
  ============== ==========================================================
16
30
  Travis http://travis-ci.org/tony/pullv
17
31
  Docs http://pullv.rtfd.org
@@ -6,6 +6,26 @@
6
6
  <li>More <tt class="docutils literal">code</tt>, hooray</li>
7
7
  <li>Somé UTF-8°</li>
8
8
  </ol>
9
+ <p>The UTF-8 quote character in this table used to cause python to go boom. Now docutils just displays an error inline so the user can fix it. Upgrading to Python 3 will fix this.</p>
10
+ <div class="system-message">
11
+ <p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">&lt;string&gt;</tt>, line 17)</p>
12
+ <p>Error with CSV data in &quot;csv-table&quot; directive:
13
+ &quot;quotechar&quot; must be an 1-character string</p>
14
+ <pre>
15
+ .. csv-table:: Things that are Awesome (on a scale of 1-11)
16
+ :quote: ”
17
+
18
+ Thing,Awesomeness
19
+ Icecream, 7
20
+ Honey Badgers, 10.5
21
+ Nickelback, -2
22
+ Iron Man, 10
23
+ Iron Man 2, 3
24
+ Tabular Data, 5
25
+ Made up ratings, 11
26
+
27
+ </pre>
28
+ </div>
9
29
  <table class="docutils">
10
30
  <colgroup>
11
31
  <col width="19%" />
@@ -28,4 +48,4 @@
28
48
  <td><a class="reference external" href="https://github.com/tony/pullv">https://github.com/tony/pullv</a></td>
29
49
  </tr>
30
50
  </tbody>
31
- </table>
51
+ </table>
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-markup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-10 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2014-04-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: posix-spawn
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 0.3.8
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.3.8
13
27
  description: |2
14
28
  This gem is used by GitHub to render any fancy markup such as
15
29
  Markdown, Textile, Org-Mode, etc. Fork it and add your own!