octodown 1.8.5 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/bin/octodown +1 -0
- data/lib/octodown.rb +2 -0
- data/lib/octodown/renderer/github_markdown.rb +4 -1
- data/lib/octodown/renderer/html.rb +2 -0
- data/lib/octodown/renderer/raw.rb +2 -0
- data/lib/octodown/renderer/renderable.rb +2 -0
- data/lib/octodown/renderer/server.rb +2 -1
- data/lib/octodown/support/file_chooser.rb +2 -0
- data/lib/octodown/support/logger.rb +3 -1
- data/lib/octodown/support/persistent_tempfile.rb +2 -0
- data/lib/octodown/support/relative_root_filter.rb +4 -2
- data/lib/octodown/support/renderable.rb +2 -0
- data/lib/octodown/support/services/document_presenter.rb +2 -0
- data/lib/octodown/support/services/riposter.rb +2 -0
- data/lib/octodown/version.rb +3 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 19431e5d865502534b5f27617d8739dd14efd15d0ee450535ba125e5486f3853
|
4
|
+
data.tar.gz: 5caa5a91476edf9f9d79a9a479bfc585d8fe2636537f018a1d01707372cf1688
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efae94562ed2f760b078ba216b9469b1aeccfcf899a3dfbe22dacb41be46c07718542291c55d531b74af61bbc6289bf12e21bdd5fe559e17f207b311592840d8
|
7
|
+
data.tar.gz: ec9964402a01c659e084639b1f72d4ff7f0efa91fd30dd14d98db44a149bb0aa11976837c6c2647f9c9d46d8ceea0fa702fd9cce9400540fb0edb6c820a0b68d
|
data/bin/octodown
CHANGED
data/lib/octodown.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'rouge'
|
2
4
|
require 'html/pipeline'
|
3
5
|
require 'task_list/filter'
|
@@ -37,7 +39,8 @@ module Octodown
|
|
37
39
|
asset_root: 'https://assets-cdn.github.com/images/icons/',
|
38
40
|
server: options[:presenter] == :server,
|
39
41
|
original_document_root: document_root,
|
40
|
-
scope: 'highlight'
|
42
|
+
scope: 'highlight',
|
43
|
+
gfm: options[:gfm] || false
|
41
44
|
}
|
42
45
|
end
|
43
46
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'uri'
|
2
4
|
|
3
5
|
module Octodown
|
@@ -22,8 +24,8 @@ module Octodown
|
|
22
24
|
def http_uri?(src)
|
23
25
|
parsed_uri = begin
|
24
26
|
URI.parse src
|
25
|
-
|
26
|
-
|
27
|
+
rescue URI::InvalidURIError
|
28
|
+
src
|
27
29
|
end
|
28
30
|
|
29
31
|
parsed_uri.is_a? URI::HTTP
|
data/lib/octodown/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octodown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Ker-Seymer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commonmarker
|
@@ -176,14 +176,14 @@ dependencies:
|
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: '
|
179
|
+
version: '2.0'
|
180
180
|
type: :development
|
181
181
|
prerelease: false
|
182
182
|
version_requirements: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: '
|
186
|
+
version: '2.0'
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: octokit
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -315,8 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
315
315
|
- !ruby/object:Gem::Version
|
316
316
|
version: '0'
|
317
317
|
requirements: []
|
318
|
-
|
319
|
-
rubygems_version: 2.6.14
|
318
|
+
rubygems_version: 3.0.3
|
320
319
|
signing_key:
|
321
320
|
specification_version: 4
|
322
321
|
summary: GitHub Markdown straight from your shell.
|