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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ff1e7e9d43e431f7f3813471077eae8640d1d1f2
4
- data.tar.gz: 69c44221576a481c7d004ab8f532a0b345d5e172
2
+ SHA256:
3
+ metadata.gz: 19431e5d865502534b5f27617d8739dd14efd15d0ee450535ba125e5486f3853
4
+ data.tar.gz: 5caa5a91476edf9f9d79a9a479bfc585d8fe2636537f018a1d01707372cf1688
5
5
  SHA512:
6
- metadata.gz: b7765a5761a6de9468e4f5fed28112cc59a4350891f51d97f2324bf4cba7b350697d492a90584217938afe8bc6f44271ba6109e3cb962f840586653356f5c449
7
- data.tar.gz: a48bf8897478325d88fa4bbaac2c754a3210438e1060c572c6ae2e0e6a5289bb39bfca949c1c62b5182c9d604ae0b51a3cd5ba38b22685433e980c2480e8249a
6
+ metadata.gz: efae94562ed2f760b078ba216b9469b1aeccfcf899a3dfbe22dacb41be46c07718542291c55d531b74af61bbc6289bf12e21bdd5fe559e17f207b311592840d8
7
+ data.tar.gz: ec9964402a01c659e084639b1f72d4ff7f0efa91fd30dd14d98db44a149bb0aa11976837c6c2647f9c9d46d8ceea0fa702fd9cce9400540fb0edb6c820a0b68d
data/bin/octodown CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'octodown'
4
5
  require 'octodown/support/file_chooser'
data/lib/octodown.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'octodown/renderer/renderable'
2
4
  require 'octodown/support/persistent_tempfile'
3
5
  require 'octodown/renderer/github_markdown'
@@ -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 'erb'
2
4
  require 'octodown/renderer/renderable'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'octodown/renderer/renderable'
2
4
 
3
5
  module Octodown
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Octodown
2
4
  module Renderer
3
5
  module Renderable
@@ -1,8 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'faye/websocket'
2
4
  require 'puma'
3
5
  require 'rack'
4
6
  require 'rack/handler/puma'
5
- require 'thread'
6
7
  require 'launchy'
7
8
 
8
9
  module Octodown
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'English'
2
4
  require 'tty-prompt'
3
5
 
@@ -1,9 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'logger'
2
4
 
3
5
  module Octodown
4
6
  module Support
5
7
  class Logger
6
- FORMAT = "%-5s: %s\n".freeze
8
+ FORMAT = "%-5s: %s\n"
7
9
 
8
10
  def self.build(dev: STDOUT, level: ::Logger::INFO)
9
11
  dev.sync = true
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'tempfile'
2
4
  require 'fileutils'
3
5
 
@@ -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
- rescue URI::InvalidURIError
26
- src
27
+ rescue URI::InvalidURIError
28
+ src
27
29
  end
28
30
 
29
31
  parsed_uri.is_a? URI::HTTP
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Octodown
2
4
  module Renderer
3
5
  module Renderable
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Octodown
2
4
  module Support
3
5
  module Services
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Octodown
2
4
  module Support
3
5
  module Services
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Octodown
2
- VERSION = '1.8.5'.freeze
4
+ VERSION = '1.9.0'
3
5
  end
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.8.5
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: 2018-05-04 00:00:00.000000000 Z
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: '1.7'
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: '1.7'
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
- rubyforge_project:
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.