ghpreview 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ecd6a28a4028bf030b8c9e94cb16ee9d6cb4764de12830f4e09340a001578508
4
+ data.tar.gz: 1f046c3bf96a82d23bbe5823ba9c8cbfa8d492fdab231cbb0a5306bd080a0f76
5
+ SHA512:
6
+ metadata.gz: 4c9f845b3d78a8c13aff8a2d292b4a66fde9c6dcaf806101bff274179b7af4760e802ecd1ea68da80ba5524a4e49cf09adb96633f66835fa280e9681d39a7a20
7
+ data.tar.gz: 5f799472562d73c65b3bb8b758064f4d60c1fcd6c00b62d78f2624705b22108abd8287d5397269cf8f1ca18dfaf33ab7f3e5b4f3a71fc9be156e86b7bfb13b7c
data/.gitignore CHANGED
@@ -1,6 +1,7 @@
1
1
  *.gem
2
2
  *.rbc
3
3
  .bundle
4
+ .byebug_history
4
5
  .config
5
6
  .yardoc
6
7
  Gemfile.lock
@@ -0,0 +1,65 @@
1
+ # Changelog
2
+
3
+ ## 0.2.0 - September 30th, 2019
4
+
5
+ - First update after 6 years: Udpate gem versions to get the gem working again with modern rubies.
6
+ - Currently tested in: 2.4, 2.5, 2.6 and ruby-head
7
+
8
+ ## 0.1.1 - December 23, 2013
9
+
10
+ - Specify html-pipeline dependencies. Also now using Bundler to sandbox the required gems. This should make it fail if the dependencies are not specified in the gemspec.
11
+ - Require rspec
12
+
13
+ ## 0.1.0 - December 22, 2013
14
+
15
+ - Update Listener and use new API
16
+ - Update versions of html-pipeline and github-linguist
17
+
18
+ ## 0.0.9 - August 9, 2013
19
+
20
+ - Include anchor links in headings
21
+
22
+ ## 0.0.8 - June 22, 2013
23
+
24
+ - Add convenience executables for testing
25
+ - Extract Viewer, Wrapper, Converter, Watcher.
26
+ - Allow an alternative browser to be used with the -a switch on GNU/Linux.
27
+
28
+ ## 0.0.7 - April 4, 2013
29
+
30
+ - Alow an alternate browser to be used with the -a switch on Mac.
31
+
32
+ ## 0.0.6 - January 4, 2013
33
+
34
+ - SIGINT trapping and error handling
35
+ - Updates dependency versions
36
+
37
+ ## 0.0.5 - December 20, 2012
38
+
39
+ - Lock version of github-linguist to known working version
40
+
41
+ ## 0.0.4 - December 18, 2012
42
+
43
+ - Remove CamoFilter, add asset_root for EmojiFilter
44
+ - Add note about icu.
45
+
46
+ ## 0.0.3 - November 30, 2012
47
+
48
+ - Cache the stylesheets for a week
49
+ - Avoids using the GitHub API and uses Github's html-pipeline.
50
+ - Refactor obfuscated code.
51
+ - Improvements on the README
52
+
53
+ ## 0.0.2 - November 26, 2012
54
+
55
+ - Avoid SSL verifications errors when using open-uri
56
+ - Adds Linux compatibility
57
+ - Cache the fingerprinted stylesheets links for a day
58
+ - Use ERB for HTML template
59
+ - Add live updating preview as a command line option
60
+ - Rename to ghpreview for better tab-completion
61
+
62
+ ## 0.0.1 - November 26, 2012
63
+
64
+ - Initial release with executable.
65
+
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in github-preview.gemspec
data/README.md CHANGED
@@ -39,7 +39,7 @@ To use an alternate browser, use the `-a` (or `--application`) option:
39
39
  # On Mac:
40
40
  $ ghpreview -a Safari.app README.md
41
41
 
42
- #On GNU/Linux:
42
+ # On GNU/Linux:
43
43
  $ ghpreview -a konqueror README.md
44
44
  ```
45
45
 
data/Rakefile CHANGED
@@ -1 +1,3 @@
1
- require "bundler/gem_tasks"
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
@@ -1,32 +1,33 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
- trap("INT") { exit }
4
+ trap('INT') { exit }
4
5
  require 'optparse'
5
6
  require 'ghpreview'
6
7
 
7
8
  options = {}
8
9
 
9
10
  optparse = OptionParser.new do |opts|
10
- opts.banner = "Usage: ghpreview [options] FILE"
11
- opts.separator ""
11
+ opts.banner = 'Usage: ghpreview [options] FILE'
12
+ opts.separator ''
12
13
 
13
- opts.on("-w", "--watch", "Watch for changes") do |w|
14
+ opts.on('-w', '--watch', 'Watch for changes') do |w|
14
15
  options[:watch] = w
15
16
  end
16
17
 
17
- opts.on("-a", "--application APP", "Alternate browser") do |a|
18
+ opts.on('-a', '--application APP', 'Alternate browser') do |a|
18
19
  options[:application] = a
19
20
  end
20
21
  end
21
22
 
22
- def valid_file? filename
23
- filename and File.exist?(filename) and File.file?(filename)
23
+ def valid_file?(filename)
24
+ filename && File.exist?(filename) && File.file?(filename)
24
25
  end
25
26
 
26
27
  begin
27
28
  optparse.parse!
28
29
  unless valid_file? ARGV[0]
29
- puts "Missing markdown file."
30
+ puts 'Missing markdown file.'
30
31
  puts optparse
31
32
  exit
32
33
  end
@@ -1,29 +1,43 @@
1
- # -*- encoding: utf-8 -*-
2
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'ghpreview/version'
5
6
 
6
7
  Gem::Specification.new do |gem|
7
- gem.name = "ghpreview"
8
+ gem.name = 'ghpreview'
8
9
  gem.version = GHPreview::VERSION
9
- gem.authors = ["Adam McCrea"]
10
- gem.email = ["adam@adamlogic.com"]
11
- gem.description = %q{Command line utility for previewing Markdown files with Github styling}
10
+ gem.authors = ['Adam McCrea', 'Fernando Briano']
11
+ gem.email = ['fernando@picandocodigo.net', 'adam@adamlogic.com']
12
+ gem.description = 'Command line utility for previewing Markdown files with Github styling'
12
13
  gem.summary = gem.description
13
- gem.homepage = "http://github.com/newcontext/ghpreview"
14
+ gem.homepage = 'http://github.com/edgecase/ghpreview'
14
15
 
15
- gem.files = `git ls-files`.split($/)
16
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
16
+ gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
17
+ gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
17
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
- gem.require_paths = ["lib"]
19
+ gem.require_paths = ['lib']
20
+ gem.metadata = {
21
+ "bug_tracker_uri" => "https://github.com/edgecase/ghpreview/issues",
22
+ "changelog_uri" => "https://github.com/edgecase/ghpreview/blob/master/CHANGELOG.md",
23
+ "documentation_uri" => "https://github.com/edgecase/ghpreview/blob/master/README.md#gamesdb",
24
+ "homepage_uri" => "https://github.com/edgecase/ghpreview",
25
+ "source_code_uri" => "https://github.com/edgecase/ghpreview",
26
+ }
19
27
 
20
- gem.add_dependency 'bundler', '~> 1.3'
21
- gem.add_dependency 'listen', '~> 2.4.0'
28
+ gem.add_dependency 'bundler'
29
+ gem.add_dependency 'commonmarker', '~> 0.16'
30
+ gem.add_dependency 'escape_utils', '~> 1.0'
31
+ gem.add_dependency 'gemoji', '~> 2.0'
32
+ gem.add_dependency 'github-linguist', '~> 7.6'
33
+ gem.add_dependency 'github-markdown', '~> 0.6'
34
+ gem.add_dependency 'html-pipeline', '~> 2.12'
35
+ gem.add_dependency 'httpclient', '~> 2.8'
36
+ gem.add_dependency 'listen', '~> 3.1.5'
22
37
  gem.add_dependency 'rb-fsevent'
23
- gem.add_dependency 'html-pipeline', '~> 1.1.0'
24
- gem.add_dependency 'httpclient'
25
- gem.add_dependency 'github-linguist', '~> 2.10.5'
26
- gem.add_dependency 'github-markdown', '~> 0.5'
27
- gem.add_dependency 'sanitize', '~> 2.0'
28
- gem.add_dependency 'gemoji', '~> 1.0'
38
+ gem.add_dependency 'rinku', '~> 1.7'
39
+ gem.add_dependency 'rouge', '~> 3.1'
40
+ gem.add_dependency 'sanitize', '~> 4.4.0'
41
+
42
+ gem.add_development_dependency 'byebug'
29
43
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rubygems'
2
4
  require 'bundler'
3
5
  require 'bundler/setup'
@@ -1,24 +1,29 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'html/pipeline'
2
4
 
3
5
  module GHPreview
4
6
  class Converter
5
7
  def self.to_html(markdown)
6
8
  context = {
7
- asset_root: "http://assets.github.com/images/icons/",
9
+ asset_root: 'https://github.githubassets.com/images/icons/',
10
+ base_url: 'https://github.githubassets.com/images/icons/',
8
11
  gfm: false
9
12
  }
10
13
 
11
14
  pipeline = HTML::Pipeline.new([
12
- HTML::Pipeline::MarkdownFilter,
13
- HTML::Pipeline::TableOfContentsFilter,
14
- HTML::Pipeline::SanitizationFilter,
15
- HTML::Pipeline::ImageMaxWidthFilter,
16
- HTML::Pipeline::HttpsFilter,
17
- HTML::Pipeline::MentionFilter,
18
- HTML::Pipeline::EmojiFilter,
19
- HTML::Pipeline::SyntaxHighlightFilter
20
- ], context)
21
- result = pipeline.call(markdown)[:output].to_s
15
+ HTML::Pipeline::MarkdownFilter,
16
+ HTML::Pipeline::SanitizationFilter,
17
+ HTML::Pipeline::ImageMaxWidthFilter,
18
+ HTML::Pipeline::TableOfContentsFilter,
19
+ HTML::Pipeline::HttpsFilter,
20
+ HTML::Pipeline::AutolinkFilter,
21
+ HTML::Pipeline::MentionFilter,
22
+ HTML::Pipeline::EmojiFilter,
23
+ HTML::Pipeline::SyntaxHighlightFilter
24
+ ], context)
25
+
26
+ pipeline.call(markdown)[:output].to_s
22
27
  end
23
28
  end
24
29
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'converter'
2
4
  require_relative 'wrapper'
3
5
  require_relative 'viewer'
@@ -5,7 +7,6 @@ require_relative 'watcher'
5
7
 
6
8
  module GHPreview
7
9
  class Previewer
8
-
9
10
  def initialize(md_filepath, options = {})
10
11
  Wrapper.generate_template_with_fingerprinted_stylesheet_links
11
12
 
@@ -27,6 +28,5 @@ module GHPreview
27
28
  html = Wrapper.wrap_html(html)
28
29
  Viewer.view_html html, @application
29
30
  end
30
-
31
31
  end
32
32
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module GHPreview
2
- VERSION = "0.1.1"
4
+ VERSION = '0.2.0'
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module GHPreview
2
4
  class Viewer
3
5
  HTML_FILEPATH = '/tmp/ghpreview.html'
@@ -8,7 +10,7 @@ module GHPreview
8
10
  if RUBY_PLATFORM =~ /linux/
9
11
  command = if application
10
12
  `#{application} #{HTML_FILEPATH} </dev/null &>/dev/null &`
11
- else
13
+ else
12
14
  `xdg-open #{HTML_FILEPATH}`
13
15
  end
14
16
  else
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'listen'
2
4
 
3
5
  module GHPreview
@@ -8,7 +10,7 @@ module GHPreview
8
10
  filename = File.basename(filepath)
9
11
  dirname = File.dirname(File.expand_path(filepath))
10
12
 
11
- listener = Listen.to(dirname, filter: /#{filename}$/) do |modified|
13
+ listener = Listen.to(dirname, filter: /#{filename}$/) do |_modified|
12
14
  yield
13
15
  end
14
16
  listener.start
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'erb'
2
4
  require 'httpclient'
3
5
 
4
6
  module GHPreview
5
7
  class Wrapper
6
8
  GITHUB_URL = 'https://github.com'
7
- STYLED_TEMPLATE_FILEPATH = "/tmp/ghpreview-template.erb"
9
+ STYLED_TEMPLATE_FILEPATH = '/tmp/ghpreview-template.erb'
8
10
  TEMPLATE_CACHE_DURATION = 60 * 60 * 24 * 7 # one week
9
11
  RAW_TEMPLATE_FILEPATH = "#{File.dirname(__FILE__)}/template.erb"
10
12
 
@@ -32,9 +34,9 @@ module GHPreview
32
34
  private
33
35
 
34
36
  def self.stale_template?(filepath)
35
- return true unless File.exists?(filepath)
37
+ return true unless File.exist?(filepath)
38
+
36
39
  File.mtime(filepath) < (Time.now - TEMPLATE_CACHE_DURATION)
37
40
  end
38
-
39
41
  end
40
42
  end
@@ -1,19 +1,19 @@
1
- # encoding: UTF-8
1
+ # frozen_string_literal: true
2
2
 
3
3
  require_relative '../lib/ghpreview/converter'
4
4
 
5
5
  describe GHPreview::Converter do
6
6
  let(:converter) { GHPreview::Converter }
7
7
 
8
- it "converts markdown to HTML" do
8
+ it 'converts markdown to HTML' do
9
9
  expect(converter.to_html('*Foo*')).to eql('<p><em>Foo</em></p>')
10
10
  end
11
11
 
12
- it "includes anchor links in headings" do
13
- expect(converter.to_html('# Foo')).to eql("<h1>\n<a name=\"foo\" href=\"#foo\"></a>Foo</h1>")
12
+ it 'includes anchor links in headings' do
13
+ expect(converter.to_html('# Foo')).to eql("<h1>\n<a id=\"foo\" class=\"anchor\" href=\"#foo\" aria-hidden=\"true\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"></span></a>Foo</h1>")
14
14
  end
15
15
 
16
- it "passes through non-ASCII characters" do
16
+ it 'passes through non-ASCII characters' do
17
17
  expect(converter.to_html('Baña')).to eql('<p>Baña</p>')
18
18
  end
19
19
  end
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require './lib/ghpreview'
4
5
 
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require './lib/ghpreview'
4
5
 
@@ -1,20 +1,20 @@
1
- # encoding: UTF-8
1
+ # frozen_string_literal: true
2
2
 
3
3
  require_relative '../lib/ghpreview/wrapper'
4
4
 
5
5
  describe GHPreview::Wrapper do
6
6
  let(:wrapper) { GHPreview::Wrapper }
7
7
 
8
- it "wraps an HTML fragment in a full document" do
8
+ it 'wraps an HTML fragment in a full document' do
9
9
  fragment = '<h1>foo</h1>'
10
10
  expect(wrapper.wrap_html(fragment)).to include('<html>')
11
11
  end
12
12
 
13
- it "passes through non-ASCII chars" do
13
+ it 'passes through non-ASCII chars' do
14
14
  expect(wrapper.wrap_html('<h1>Baña</h1>')).to include('Baña')
15
15
  end
16
16
 
17
- it "specifies the charset" do
17
+ it 'specifies the charset' do
18
18
  expect(wrapper.wrap_html('# foo')).to include("charset='utf-8'")
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,169 +1,223 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghpreview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Adam McCrea
8
+ - Fernando Briano
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-23 00:00:00.000000000 Z
12
+ date: 2019-09-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
17
  requirements:
19
- - - ~>
18
+ - - ">="
20
19
  - !ruby/object:Gem::Version
21
- version: '1.3'
20
+ version: '0'
22
21
  type: :runtime
23
22
  prerelease: false
24
23
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
24
  requirements:
27
- - - ~>
25
+ - - ">="
28
26
  - !ruby/object:Gem::Version
29
- version: '1.3'
27
+ version: '0'
30
28
  - !ruby/object:Gem::Dependency
31
- name: listen
29
+ name: commonmarker
32
30
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
31
  requirements:
35
- - - ~>
32
+ - - "~>"
36
33
  - !ruby/object:Gem::Version
37
- version: 2.4.0
34
+ version: '0.16'
38
35
  type: :runtime
39
36
  prerelease: false
40
37
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
38
  requirements:
43
- - - ~>
39
+ - - "~>"
44
40
  - !ruby/object:Gem::Version
45
- version: 2.4.0
41
+ version: '0.16'
46
42
  - !ruby/object:Gem::Dependency
47
- name: rb-fsevent
43
+ name: escape_utils
48
44
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
45
  requirements:
51
- - - ! '>='
46
+ - - "~>"
52
47
  - !ruby/object:Gem::Version
53
- version: '0'
48
+ version: '1.0'
54
49
  type: :runtime
55
50
  prerelease: false
56
51
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
52
  requirements:
59
- - - ! '>='
53
+ - - "~>"
60
54
  - !ruby/object:Gem::Version
61
- version: '0'
55
+ version: '1.0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: gemoji
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '2.0'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '2.0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: github-linguist
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '7.6'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '7.6'
84
+ - !ruby/object:Gem::Dependency
85
+ name: github-markdown
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '0.6'
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '0.6'
62
98
  - !ruby/object:Gem::Dependency
63
99
  name: html-pipeline
64
100
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
101
  requirements:
67
- - - ~>
102
+ - - "~>"
68
103
  - !ruby/object:Gem::Version
69
- version: 1.1.0
104
+ version: '2.12'
70
105
  type: :runtime
71
106
  prerelease: false
72
107
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
108
  requirements:
75
- - - ~>
109
+ - - "~>"
76
110
  - !ruby/object:Gem::Version
77
- version: 1.1.0
111
+ version: '2.12'
78
112
  - !ruby/object:Gem::Dependency
79
113
  name: httpclient
80
114
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
115
  requirements:
83
- - - ! '>='
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: '2.8'
119
+ type: :runtime
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '2.8'
126
+ - !ruby/object:Gem::Dependency
127
+ name: listen
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: 3.1.5
133
+ type: :runtime
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: 3.1.5
140
+ - !ruby/object:Gem::Dependency
141
+ name: rb-fsevent
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
84
145
  - !ruby/object:Gem::Version
85
146
  version: '0'
86
147
  type: :runtime
87
148
  prerelease: false
88
149
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
150
  requirements:
91
- - - ! '>='
151
+ - - ">="
92
152
  - !ruby/object:Gem::Version
93
153
  version: '0'
94
154
  - !ruby/object:Gem::Dependency
95
- name: github-linguist
155
+ name: rinku
96
156
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
157
  requirements:
99
- - - ~>
158
+ - - "~>"
100
159
  - !ruby/object:Gem::Version
101
- version: 2.10.5
160
+ version: '1.7'
102
161
  type: :runtime
103
162
  prerelease: false
104
163
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
164
  requirements:
107
- - - ~>
165
+ - - "~>"
108
166
  - !ruby/object:Gem::Version
109
- version: 2.10.5
167
+ version: '1.7'
110
168
  - !ruby/object:Gem::Dependency
111
- name: github-markdown
169
+ name: rouge
112
170
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
171
  requirements:
115
- - - ~>
172
+ - - "~>"
116
173
  - !ruby/object:Gem::Version
117
- version: '0.5'
174
+ version: '3.1'
118
175
  type: :runtime
119
176
  prerelease: false
120
177
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
178
  requirements:
123
- - - ~>
179
+ - - "~>"
124
180
  - !ruby/object:Gem::Version
125
- version: '0.5'
181
+ version: '3.1'
126
182
  - !ruby/object:Gem::Dependency
127
183
  name: sanitize
128
184
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
185
  requirements:
131
- - - ~>
186
+ - - "~>"
132
187
  - !ruby/object:Gem::Version
133
- version: '2.0'
188
+ version: 4.4.0
134
189
  type: :runtime
135
190
  prerelease: false
136
191
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
192
  requirements:
139
- - - ~>
193
+ - - "~>"
140
194
  - !ruby/object:Gem::Version
141
- version: '2.0'
195
+ version: 4.4.0
142
196
  - !ruby/object:Gem::Dependency
143
- name: gemoji
197
+ name: byebug
144
198
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
199
  requirements:
147
- - - ~>
200
+ - - ">="
148
201
  - !ruby/object:Gem::Version
149
- version: '1.0'
150
- type: :runtime
202
+ version: '0'
203
+ type: :development
151
204
  prerelease: false
152
205
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
206
  requirements:
155
- - - ~>
207
+ - - ">="
156
208
  - !ruby/object:Gem::Version
157
- version: '1.0'
209
+ version: '0'
158
210
  description: Command line utility for previewing Markdown files with Github styling
159
211
  email:
212
+ - fernando@picandocodigo.net
160
213
  - adam@adamlogic.com
161
214
  executables:
162
215
  - ghpreview
163
216
  extensions: []
164
217
  extra_rdoc_files: []
165
218
  files:
166
- - .gitignore
219
+ - ".gitignore"
220
+ - CHANGELOG.md
167
221
  - Gemfile
168
222
  - LICENSE.txt
169
223
  - README.md
@@ -182,33 +236,35 @@ files:
182
236
  - spec/preview_readme
183
237
  - spec/watch_readme
184
238
  - spec/wrapper_spec.rb
185
- homepage: http://github.com/newcontext/ghpreview
239
+ homepage: http://github.com/edgecase/ghpreview
186
240
  licenses: []
241
+ metadata:
242
+ bug_tracker_uri: https://github.com/edgecase/ghpreview/issues
243
+ changelog_uri: https://github.com/edgecase/ghpreview/blob/master/CHANGELOG.md
244
+ documentation_uri: https://github.com/edgecase/ghpreview/blob/master/README.md#gamesdb
245
+ homepage_uri: https://github.com/edgecase/ghpreview
246
+ source_code_uri: https://github.com/edgecase/ghpreview
187
247
  post_install_message:
188
248
  rdoc_options: []
189
249
  require_paths:
190
250
  - lib
191
251
  required_ruby_version: !ruby/object:Gem::Requirement
192
- none: false
193
252
  requirements:
194
- - - ! '>='
253
+ - - ">="
195
254
  - !ruby/object:Gem::Version
196
255
  version: '0'
197
256
  required_rubygems_version: !ruby/object:Gem::Requirement
198
- none: false
199
257
  requirements:
200
- - - ! '>='
258
+ - - ">="
201
259
  - !ruby/object:Gem::Version
202
260
  version: '0'
203
261
  requirements: []
204
- rubyforge_project:
205
- rubygems_version: 1.8.23
262
+ rubygems_version: 3.0.6
206
263
  signing_key:
207
- specification_version: 3
264
+ specification_version: 4
208
265
  summary: Command line utility for previewing Markdown files with Github styling
209
266
  test_files:
210
267
  - spec/converter_spec.rb
211
268
  - spec/preview_readme
212
269
  - spec/watch_readme
213
270
  - spec/wrapper_spec.rb
214
- has_rdoc: