github-markup 1.1.1 → 1.1.2

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: d50733f9f72d5467bde744ded041c4ad3d2f6950
4
- data.tar.gz: 556de89a612afd8d059af5ac970591654823c010
3
+ metadata.gz: 800dd7a7fdfe9119235087cc9ce1bbf32a65dc11
4
+ data.tar.gz: a98cec95f2cf982f1b5ea284b1fd1d72895bae6d
5
5
  SHA512:
6
- metadata.gz: b6f5e35df49de5e64d1a0778010a31d4ad39551e6ba819d688b1e1ee503023a0e39007f1b1b267e5bbe17dcff56bbbcf207b8cd058e6c4f69fbeb25a9dc30aa5
7
- data.tar.gz: f36aea63143307915e6eba38ff8346606ad967391a06aa68b844d12994ff8b3943a04ce2721bbef3c97e8d19436d3c2edefc6b34d23c055f982a56c81d792ee4
6
+ metadata.gz: 8bbd7f30418100339046f5546d2bae5998ebd3f9ba3432936892a3aed00ca7945a84c4eebfd4e1a116aaa888a93e291a93de0ba6b3a01cb6b7c7b4479f73a779
7
+ data.tar.gz: e2d4c739442ed84a7ae34a92114612dbf589190b4ed2b896dddd5da0234f912877d72bb6c18f96c015bf7cca74383ae04df3659411d2219181765b978483581b
@@ -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-04-09'
19
+ s.date = '2014-04-15'
20
20
  s.executables = ['github-markup']
21
21
 
22
22
  ## Make sure your summary is short. The description may be as long
@@ -64,6 +64,7 @@ desc
64
64
  bin/github-markup
65
65
  github-markup.gemspec
66
66
  lib/github-markup.rb
67
+ lib/github/commands/foo.rst
67
68
  lib/github/commands/rest2html
68
69
  lib/github/markup.rb
69
70
  lib/github/markup/command_implementation.rb
data/lib/github-markup.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module GitHub
2
2
  module Markup
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  Version = VERSION
5
5
  end
6
6
  end
@@ -0,0 +1,7 @@
1
+
2
+ .. image:: https://scan.coverity.com/projects/621/badge.svg
3
+ :target: https://scan.coverity.com/projects/621
4
+ :alt: Coverity Scan Build Status
5
+
6
+ .. image:: https://scan.coverity.com/projects/621/badge.svg
7
+ :alt: Coverity Scan Build Status
@@ -28,6 +28,7 @@ __license__ = "CC0"
28
28
  __version__ = "0.1"
29
29
 
30
30
  import sys
31
+ import os
31
32
 
32
33
  # This fixes docutils failing with unicode parameters to CSV-Table. The -S
33
34
  # switch and the following 2 lines can be removed after upgrading to python 3.
@@ -89,6 +90,28 @@ class GitHubHTMLTranslator(HTMLTranslator):
89
90
  def depart_table(self, node):
90
91
  self.body.append('</table>\n')
91
92
 
93
+ def depart_image(self, node):
94
+ uri = node['uri']
95
+ ext = os.path.splitext(uri)[1].lower()
96
+ # we need to swap RST's use of `object` with `img` tags
97
+ # see http://git.io/5me3dA
98
+ if ext == ".svg":
99
+ # preserve essential attributes
100
+ atts = {}
101
+ for attribute, value in node.attributes.items():
102
+ # we have no time for empty values
103
+ if value:
104
+ if attribute == "uri":
105
+ atts['src'] = value
106
+ else:
107
+ atts[attribute] = value
108
+
109
+ # toss off `object` tag
110
+ self.body.pop()
111
+ # add on `img` with attributes
112
+ self.body.append(self.starttag(node, 'img', **atts))
113
+ self.body.append(self.context.pop())
114
+
92
115
  def main():
93
116
  """
94
117
  Parses the given ReST file or the redirected string input and returns the
@@ -33,3 +33,11 @@ API http://pullv.readthedocs.org/en/latest/api.html
33
33
  Issues https://github.com/tony/pullv/issues
34
34
  Source https://github.com/tony/pullv
35
35
  ============== ==========================================================
36
+
37
+
38
+ .. image:: https://scan.coverity.com/projects/621/badge.svg
39
+ :target: https://scan.coverity.com/projects/621
40
+ :alt: Coverity Scan Build Status
41
+
42
+ .. image:: https://scan.coverity.com/projects/621/badge.svg
43
+ :alt: Coverity Scan Build Status
@@ -49,3 +49,6 @@
49
49
  </tr>
50
50
  </tbody>
51
51
  </table>
52
+ <a class="reference external image-reference" href="https://scan.coverity.com/projects/621"><img alt="Coverity Scan Build Status" src="https://scan.coverity.com/projects/621/badge.svg">
53
+ </a>
54
+ <img alt="Coverity Scan Build Status" src="https://scan.coverity.com/projects/621/badge.svg">
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-markup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
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-04-09 00:00:00.000000000 Z
11
+ date: 2014-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: posix-spawn
@@ -43,6 +43,7 @@ files:
43
43
  - bin/github-markup
44
44
  - github-markup.gemspec
45
45
  - lib/github-markup.rb
46
+ - lib/github/commands/foo.rst
46
47
  - lib/github/commands/rest2html
47
48
  - lib/github/markup.rb
48
49
  - lib/github/markup/command_implementation.rb
@@ -105,4 +106,3 @@ signing_key:
105
106
  specification_version: 2
106
107
  summary: The code GitHub uses to render README.markup
107
108
  test_files: []
108
- has_rdoc: