datastory 0.0.4 → 0.0.5

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: da4004a27bc7613857fa021f9073459b4fe85865
4
- data.tar.gz: 4bff10ba04506cb16567365364727cfc61fe90bc
3
+ metadata.gz: 597d62d36d556759ee55b78bd308719fb7e5d731
4
+ data.tar.gz: b46e5cd5fe5bbfa2a3bb80a70bace67b7bdaa0e8
5
5
  SHA512:
6
- metadata.gz: 2982c8fa14caf18a814408f466a5ee30835b5f52e8754204b92a394f53d9164931b370652d8c1da4cb63be88acdc77be57c7de8c015564d4c77776c1475b5c31
7
- data.tar.gz: 8685e4e95504e100c5742efc1a3ca06e6d8c429fcb9fc43266c692b4ca070746c38df80cedc849d3253f74027b9c6617912e82b47d287d177cc6eb953c09f6a9
6
+ metadata.gz: 9e084cbf03e852d6173b1b34a60209c70442b42e75121e11d365bb45f91416ade3d3376964c0a2acd64284a31b5d5b982a479a101033920880633dc1fac8027d
7
+ data.tar.gz: 217248d6782fdc4117f4ad2c599c9403601ce6b7c527124fbdc78fd6802cf33c6f5de5534e3768b27fdb28f0a696133957a1960265488d33b68f7abed507d2aa
@@ -86,7 +86,7 @@ module DataStory
86
86
  <footer>
87
87
  <p>
88
88
  <em>Generated by <a href="http://github.com/commondream/datastory">DataStory</a> on
89
- #{Time.now}</em>. <a href="#{DataURI.from_file(@path)}">Original Source</a>
89
+ #{Time.now}</em>. <a href="#{DataURI.from_data("text/plain", markdown_data)}">Original Source</a>
90
90
  </p>
91
91
  </footer>
92
92
  </div>
@@ -1,5 +1,6 @@
1
1
  require "redcarpet"
2
2
  require "cgi"
3
+ require "pry"
3
4
 
4
5
  module DataStory
5
6
  class MarkdownRenderer < Redcarpet::Render::HTML
@@ -25,7 +26,6 @@ module DataStory
25
26
  output
26
27
  end
27
28
 
28
-
29
29
  # Inserts an image. If the image is relative to the current path it'll load it as a data
30
30
  # URI to make the resulting report self contained.
31
31
  def image(link, title, alt_text)
@@ -1,3 +1,3 @@
1
1
  module DataStory
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datastory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Johnson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-17 00:00:00.000000000 Z
11
+ date: 2013-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet