gh-preview 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/.travis.yml +6 -0
- data/AUTHORS +1 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +6 -0
- data/LICENSE +19 -0
- data/README.md +56 -0
- data/Rakefile +15 -0
- data/bin/gh-preview +5 -0
- data/gh-preview.gemspec +43 -0
- data/lib/gh_preview.rb +7 -0
- data/lib/gh_preview/config.rb +27 -0
- data/lib/gh_preview/converter.rb +31 -0
- data/lib/gh_preview/redcarpet_filter.rb +49 -0
- data/lib/gh_preview/runner.rb +18 -0
- data/lib/gh_preview/server.rb +64 -0
- data/lib/gh_preview/version.rb +3 -0
- data/lib/sinatra/flash/style_patch.rb +32 -0
- data/public/stylesheets/application.css +15 -0
- data/public/stylesheets/github-markdown.css +652 -0
- data/spec/fixtures/example.html +71 -0
- data/spec/fixtures/example.md +56 -0
- data/spec/lib/gh_preview/config_spec.rb +15 -0
- data/spec/lib/gh_preview/converter_spec.rb +21 -0
- data/spec/lib/gh_preview/server_spec.rb +28 -0
- data/spec/spec_helper.rb +32 -0
- data/spec/support/helper.rb +12 -0
- data/spec/zeus_plan.rb +25 -0
- data/views/_headers.haml +7 -0
- data/views/_nav_bar.haml +9 -0
- data/views/_page.haml +9 -0
- data/views/index.haml +13 -0
- data/zeus.json +9 -0
- metadata +466 -0
@@ -0,0 +1,71 @@
|
|
1
|
+
<h2>
|
2
|
+
<a id="githubpreview" class="anchor" href="#githubpreview" aria-hidden="true"><span class="octicon octicon-link"></span></a>GithubPreview</h2>
|
3
|
+
|
4
|
+
<h3>
|
5
|
+
<a id="a-small-sinatra-application-to-preview-github-readme-files-easy-" class="anchor" href="#a-small-sinatra-application-to-preview-github-readme-files-easy-" aria-hidden="true"><span class="octicon octicon-link"></span></a>A small Sinatra application to preview GitHub README files, easy ;)</h3>
|
6
|
+
|
7
|
+
<p>This gem provides a small Sinatra application to preview GitHub README files or any markdown file.</p>
|
8
|
+
|
9
|
+
<h2>
|
10
|
+
<a id="installation" class="anchor" href="#installation" aria-hidden="true"><span class="octicon octicon-link"></span></a>Installation</h2>
|
11
|
+
<div class="highlight"><pre><span class="n">gem</span> <span class="n">install</span> <span class="n">gh</span><span class="o">-</span><span class="n">preview</span>
|
12
|
+
</pre></div>
|
13
|
+
<p>No need to add it to your Gemfile, it will be globally available.</p>
|
14
|
+
|
15
|
+
<h2>
|
16
|
+
<a id="usage" class="anchor" href="#usage" aria-hidden="true"><span class="octicon octicon-link"></span></a>Usage</h2>
|
17
|
+
|
18
|
+
<p>From any directory containing a <code>README.md</code> file :</p>
|
19
|
+
<div class="highlight"><pre>nicolas@desktop:~/PROJECTS/GITHUB/gh-preview<span class="nv">$ </span>gh-preview server
|
20
|
+
</pre></div>
|
21
|
+
<h2>
|
22
|
+
<a id="options" class="anchor" href="#options" aria-hidden="true"><span class="octicon octicon-link"></span></a>Options</h2>
|
23
|
+
<div class="highlight"><pre>Usage:
|
24
|
+
gh-preview server <span class="o">[</span>options<span class="o">]</span>
|
25
|
+
|
26
|
+
Options:
|
27
|
+
-f, <span class="o">[</span>--file<span class="o">=</span>FILE<span class="o">]</span> <span class="c"># File to serve (default: README.md)</span>
|
28
|
+
-p, <span class="o">[</span>--port<span class="o">=</span>PORT<span class="o">]</span> <span class="c"># Port for server (default 4000)</span>
|
29
|
+
</pre></div>
|
30
|
+
<h2>
|
31
|
+
<a id="contribute" class="anchor" href="#contribute" aria-hidden="true"><span class="octicon octicon-link"></span></a>Contribute</h2>
|
32
|
+
|
33
|
+
<p>You can contribute to this plugin in many ways such as :</p>
|
34
|
+
|
35
|
+
<ul class="task-list">
|
36
|
+
<li>Helping with documentation</li>
|
37
|
+
<li>Contributing code (features or bugfixes)</li>
|
38
|
+
<li>Reporting a bug</li>
|
39
|
+
<li>Submitting translations</li>
|
40
|
+
</ul>
|
41
|
+
|
42
|
+
<p>this is <del>good</del> bad</p>
|
43
|
+
|
44
|
+
<table>
|
45
|
+
<thead>
|
46
|
+
<tr>
|
47
|
+
<th>Column1</th>
|
48
|
+
<th>Column2</th>
|
49
|
+
</tr>
|
50
|
+
</thead>
|
51
|
+
<tbody>
|
52
|
+
<tr>
|
53
|
+
<td>Line1</td>
|
54
|
+
<td>Hello</td>
|
55
|
+
</tr>
|
56
|
+
<tr>
|
57
|
+
<td>Line2</td>
|
58
|
+
<td>World</td>
|
59
|
+
</tr>
|
60
|
+
</tbody>
|
61
|
+
</table>
|
62
|
+
|
63
|
+
<p>This is <u>underlined</u> but this is still <em>italic</em></p>
|
64
|
+
|
65
|
+
<p>This is <mark>highlighted</mark></p>
|
66
|
+
|
67
|
+
<ol class="task-list">
|
68
|
+
<li>item1</li>
|
69
|
+
<li>item2</li>
|
70
|
+
<li>item3</li>
|
71
|
+
</ol>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
## GithubPreview
|
2
|
+
|
3
|
+
### A small Sinatra application to preview GitHub README files, easy ;)
|
4
|
+
|
5
|
+
This gem provides a small Sinatra application to preview GitHub README files or any markdown file.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem install gh-preview
|
11
|
+
```
|
12
|
+
|
13
|
+
No need to add it to your Gemfile, it will be globally available.
|
14
|
+
|
15
|
+
## Usage
|
16
|
+
|
17
|
+
From any directory containing a ```README.md``` file :
|
18
|
+
|
19
|
+
```sh
|
20
|
+
nicolas@desktop:~/PROJECTS/GITHUB/gh-preview$ gh-preview server
|
21
|
+
```
|
22
|
+
|
23
|
+
## Options
|
24
|
+
|
25
|
+
```sh
|
26
|
+
Usage:
|
27
|
+
gh-preview server [options]
|
28
|
+
|
29
|
+
Options:
|
30
|
+
-f, [--file=FILE] # File to serve (default: README.md)
|
31
|
+
-p, [--port=PORT] # Port for server (default 4000)
|
32
|
+
```
|
33
|
+
|
34
|
+
## Contribute
|
35
|
+
|
36
|
+
You can contribute to this plugin in many ways such as :
|
37
|
+
|
38
|
+
* Helping with documentation
|
39
|
+
* Contributing code (features or bugfixes)
|
40
|
+
* Reporting a bug
|
41
|
+
* Submitting translations
|
42
|
+
|
43
|
+
this is ~~good~~ bad
|
44
|
+
|
45
|
+
Column1 | Column2
|
46
|
+
---------|--------
|
47
|
+
Line1 | Hello
|
48
|
+
Line2 | World
|
49
|
+
|
50
|
+
This is _underlined_ but this is still *italic*
|
51
|
+
|
52
|
+
This is ==highlighted==
|
53
|
+
|
54
|
+
1. item1
|
55
|
+
2. item2
|
56
|
+
3. item3
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe GhPreview::Config do
|
4
|
+
|
5
|
+
include GhPreview::Config
|
6
|
+
|
7
|
+
it "should have a view folder" do
|
8
|
+
expect(views_folder).to eq File.join(Dir.pwd, 'views')
|
9
|
+
end
|
10
|
+
|
11
|
+
|
12
|
+
it "should have a public folder" do
|
13
|
+
expect(public_folder).to eq File.join(Dir.pwd, 'public')
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe GhPreview::Converter do
|
4
|
+
|
5
|
+
include GhPreview::Converter
|
6
|
+
|
7
|
+
def markdown_content
|
8
|
+
load_fixture('example.md')
|
9
|
+
end
|
10
|
+
|
11
|
+
|
12
|
+
def html_content
|
13
|
+
load_fixture('example.html')
|
14
|
+
end
|
15
|
+
|
16
|
+
|
17
|
+
it "should render markdown to html" do
|
18
|
+
expect{ to_html(markdown_content).to eq html_content }
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe GhPreview::Server do
|
4
|
+
|
5
|
+
def setup_app(file)
|
6
|
+
Capybara.app = GhPreview::Server.new(file)
|
7
|
+
end
|
8
|
+
|
9
|
+
|
10
|
+
describe 'the preview process', type: :feature do
|
11
|
+
context 'when file is not present' do
|
12
|
+
it 'should render an error' do
|
13
|
+
setup_app('toto.md')
|
14
|
+
visit '/'
|
15
|
+
expect(page).to have_content "toto.md doesn't exist !"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
context 'when README.md is present' do
|
20
|
+
it 'should render the file' do
|
21
|
+
setup_app(fixture_path('example.md'))
|
22
|
+
visit '/'
|
23
|
+
expect(page).to have_content 'A small Sinatra application to preview GitHub README files, easy ;)'
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'simplecov'
|
3
|
+
require 'rack/test'
|
4
|
+
require 'rspec'
|
5
|
+
require 'capybara/rspec'
|
6
|
+
require 'codeclimate-test-reporter'
|
7
|
+
require 'support/helper'
|
8
|
+
|
9
|
+
## Configure SimpleCov
|
10
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
11
|
+
SimpleCov::Formatter::HTMLFormatter,
|
12
|
+
CodeClimate::TestReporter::Formatter
|
13
|
+
]
|
14
|
+
|
15
|
+
## Start Simplecov
|
16
|
+
SimpleCov.start do
|
17
|
+
add_filter '/spec/'
|
18
|
+
end
|
19
|
+
|
20
|
+
## Configure RSpec
|
21
|
+
RSpec.configure do |config|
|
22
|
+
include Helper
|
23
|
+
|
24
|
+
config.color = true
|
25
|
+
config.fail_fast = false
|
26
|
+
config.expect_with :rspec do |c|
|
27
|
+
c.syntax = :expect
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
ENV['RACK_ENV'] = 'test'
|
32
|
+
require 'gh_preview'
|
data/spec/zeus_plan.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'zeus/rails'
|
2
|
+
|
3
|
+
class ZeusPlan < Zeus::Rails
|
4
|
+
|
5
|
+
def boot
|
6
|
+
end
|
7
|
+
|
8
|
+
|
9
|
+
def prerake
|
10
|
+
require 'rake'
|
11
|
+
end
|
12
|
+
|
13
|
+
|
14
|
+
def rake
|
15
|
+
Rake.application.run
|
16
|
+
end
|
17
|
+
|
18
|
+
|
19
|
+
def default_env
|
20
|
+
require 'gh_preview'
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
Zeus.plan = ZeusPlan.new
|
data/views/_headers.haml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
%title= "#{GhPreview::Config::NAME}"
|
2
|
+
%script{ type: 'text/javascript', src: 'https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js' }
|
3
|
+
%script{ type: 'text/javascript', src: 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js' }
|
4
|
+
%link{ type: 'text/css', rel: 'stylesheet', href: 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css' }
|
5
|
+
%link{ type: 'text/css', rel: 'stylesheet', href: '/stylesheets/github-markdown.css' }
|
6
|
+
%link{ type: 'text/css', rel: 'stylesheet', href: '/stylesheets/application.css' }
|
7
|
+
%style{ type: 'text/css' }= Pygments.css(style: 'trac')
|
data/views/_nav_bar.haml
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
%nav{ class: 'navbar navbar-default' }
|
2
|
+
%div{ class: 'container-fluid' }
|
3
|
+
%div{ class: 'navbar-header' }
|
4
|
+
%button{ type: 'button', class: 'navbar-toggle collapsed', data_toggle: 'collapse', data_target: '#navbar', aria_expanded: 'false', aria_controls: 'navbar' }
|
5
|
+
%span{ class: 'sr-only' } Toggle navigation
|
6
|
+
%span{ class: 'icon-bar' }
|
7
|
+
%span{ class: 'icon-bar' }
|
8
|
+
%span{ class: 'icon-bar' }
|
9
|
+
%a{ class: 'navbar-brand', href: '#' }= "#{GhPreview::Config::NAME}"
|
data/views/_page.haml
ADDED
data/views/index.haml
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
!!! 5
|
2
|
+
%html
|
3
|
+
|
4
|
+
%head= render partial: 'headers'
|
5
|
+
|
6
|
+
%body
|
7
|
+
|
8
|
+
%a{ href: "#{GhPreview::Config::GITHUB_URL}" }
|
9
|
+
%img{ alt: 'Fork me on GitHub', src: 'http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png', class: 'ribbons' }
|
10
|
+
|
11
|
+
.container
|
12
|
+
= render partial: 'nav_bar'
|
13
|
+
= render partial: 'page'
|
data/zeus.json
ADDED
metadata
ADDED
@@ -0,0 +1,466 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gh-preview
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nicolas Rodriguez
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-09-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '10.4'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 10.4.2
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '10.4'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 10.4.2
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rack
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.6'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 1.6.4
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '1.6'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 1.6.4
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: thor
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0.19'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.19.1
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.19'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 0.19.1
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: haml
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '4.0'
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 4.0.7
|
83
|
+
type: :runtime
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '4.0'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 4.0.7
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: json
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '1.8'
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 1.8.3
|
103
|
+
type: :runtime
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1.8'
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 1.8.3
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: mime-types
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '2.6'
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 2.6.2
|
123
|
+
type: :runtime
|
124
|
+
prerelease: false
|
125
|
+
version_requirements: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '2.6'
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 2.6.2
|
133
|
+
- !ruby/object:Gem::Dependency
|
134
|
+
name: sinatra
|
135
|
+
requirement: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '1.4'
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 1.4.6
|
143
|
+
type: :runtime
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - "~>"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '1.4'
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.4.6
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: sinatra-contrib
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '1.4'
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 1.4.6
|
163
|
+
type: :runtime
|
164
|
+
prerelease: false
|
165
|
+
version_requirements: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '1.4'
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 1.4.6
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: sinatra-flash
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0.3'
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: 0.3.0
|
183
|
+
type: :runtime
|
184
|
+
prerelease: false
|
185
|
+
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0.3'
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: 0.3.0
|
193
|
+
- !ruby/object:Gem::Dependency
|
194
|
+
name: html-pipeline
|
195
|
+
requirement: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - "~>"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '2.0'
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: 2.0.0
|
203
|
+
type: :runtime
|
204
|
+
prerelease: false
|
205
|
+
version_requirements: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - "~>"
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '2.0'
|
210
|
+
- - ">="
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: 2.0.0
|
213
|
+
- !ruby/object:Gem::Dependency
|
214
|
+
name: redcarpet
|
215
|
+
requirement: !ruby/object:Gem::Requirement
|
216
|
+
requirements:
|
217
|
+
- - "~>"
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: '3.3'
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 3.3.2
|
223
|
+
type: :runtime
|
224
|
+
prerelease: false
|
225
|
+
version_requirements: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '3.3'
|
230
|
+
- - ">="
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: 3.3.2
|
233
|
+
- !ruby/object:Gem::Dependency
|
234
|
+
name: pygments.rb
|
235
|
+
requirement: !ruby/object:Gem::Requirement
|
236
|
+
requirements:
|
237
|
+
- - "~>"
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
version: '0.6'
|
240
|
+
- - ">="
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: 0.6.3
|
243
|
+
type: :runtime
|
244
|
+
prerelease: false
|
245
|
+
version_requirements: !ruby/object:Gem::Requirement
|
246
|
+
requirements:
|
247
|
+
- - "~>"
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: '0.6'
|
250
|
+
- - ">="
|
251
|
+
- !ruby/object:Gem::Version
|
252
|
+
version: 0.6.3
|
253
|
+
- !ruby/object:Gem::Dependency
|
254
|
+
name: task_list
|
255
|
+
requirement: !ruby/object:Gem::Requirement
|
256
|
+
requirements:
|
257
|
+
- - "~>"
|
258
|
+
- !ruby/object:Gem::Version
|
259
|
+
version: '1.0'
|
260
|
+
- - ">="
|
261
|
+
- !ruby/object:Gem::Version
|
262
|
+
version: 1.0.2
|
263
|
+
type: :runtime
|
264
|
+
prerelease: false
|
265
|
+
version_requirements: !ruby/object:Gem::Requirement
|
266
|
+
requirements:
|
267
|
+
- - "~>"
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '1.0'
|
270
|
+
- - ">="
|
271
|
+
- !ruby/object:Gem::Version
|
272
|
+
version: 1.0.2
|
273
|
+
- !ruby/object:Gem::Dependency
|
274
|
+
name: rinku
|
275
|
+
requirement: !ruby/object:Gem::Requirement
|
276
|
+
requirements:
|
277
|
+
- - "~>"
|
278
|
+
- !ruby/object:Gem::Version
|
279
|
+
version: '1.7'
|
280
|
+
- - ">="
|
281
|
+
- !ruby/object:Gem::Version
|
282
|
+
version: 1.7.3
|
283
|
+
type: :runtime
|
284
|
+
prerelease: false
|
285
|
+
version_requirements: !ruby/object:Gem::Requirement
|
286
|
+
requirements:
|
287
|
+
- - "~>"
|
288
|
+
- !ruby/object:Gem::Version
|
289
|
+
version: '1.7'
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: 1.7.3
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: rspec
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - "~>"
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '3.3'
|
300
|
+
- - ">="
|
301
|
+
- !ruby/object:Gem::Version
|
302
|
+
version: 3.3.0
|
303
|
+
type: :development
|
304
|
+
prerelease: false
|
305
|
+
version_requirements: !ruby/object:Gem::Requirement
|
306
|
+
requirements:
|
307
|
+
- - "~>"
|
308
|
+
- !ruby/object:Gem::Version
|
309
|
+
version: '3.3'
|
310
|
+
- - ">="
|
311
|
+
- !ruby/object:Gem::Version
|
312
|
+
version: 3.3.0
|
313
|
+
- !ruby/object:Gem::Dependency
|
314
|
+
name: capybara
|
315
|
+
requirement: !ruby/object:Gem::Requirement
|
316
|
+
requirements:
|
317
|
+
- - "~>"
|
318
|
+
- !ruby/object:Gem::Version
|
319
|
+
version: '2.5'
|
320
|
+
- - ">="
|
321
|
+
- !ruby/object:Gem::Version
|
322
|
+
version: 2.5.0
|
323
|
+
type: :development
|
324
|
+
prerelease: false
|
325
|
+
version_requirements: !ruby/object:Gem::Requirement
|
326
|
+
requirements:
|
327
|
+
- - "~>"
|
328
|
+
- !ruby/object:Gem::Version
|
329
|
+
version: '2.5'
|
330
|
+
- - ">="
|
331
|
+
- !ruby/object:Gem::Version
|
332
|
+
version: 2.5.0
|
333
|
+
- !ruby/object:Gem::Dependency
|
334
|
+
name: simplecov
|
335
|
+
requirement: !ruby/object:Gem::Requirement
|
336
|
+
requirements:
|
337
|
+
- - "~>"
|
338
|
+
- !ruby/object:Gem::Version
|
339
|
+
version: '0.10'
|
340
|
+
- - ">="
|
341
|
+
- !ruby/object:Gem::Version
|
342
|
+
version: 0.10.0
|
343
|
+
type: :development
|
344
|
+
prerelease: false
|
345
|
+
version_requirements: !ruby/object:Gem::Requirement
|
346
|
+
requirements:
|
347
|
+
- - "~>"
|
348
|
+
- !ruby/object:Gem::Version
|
349
|
+
version: '0.10'
|
350
|
+
- - ">="
|
351
|
+
- !ruby/object:Gem::Version
|
352
|
+
version: 0.10.0
|
353
|
+
- !ruby/object:Gem::Dependency
|
354
|
+
name: zeus
|
355
|
+
requirement: !ruby/object:Gem::Requirement
|
356
|
+
requirements:
|
357
|
+
- - "~>"
|
358
|
+
- !ruby/object:Gem::Version
|
359
|
+
version: '0.15'
|
360
|
+
- - ">="
|
361
|
+
- !ruby/object:Gem::Version
|
362
|
+
version: 0.15.4
|
363
|
+
type: :development
|
364
|
+
prerelease: false
|
365
|
+
version_requirements: !ruby/object:Gem::Requirement
|
366
|
+
requirements:
|
367
|
+
- - "~>"
|
368
|
+
- !ruby/object:Gem::Version
|
369
|
+
version: '0.15'
|
370
|
+
- - ">="
|
371
|
+
- !ruby/object:Gem::Version
|
372
|
+
version: 0.15.4
|
373
|
+
- !ruby/object:Gem::Dependency
|
374
|
+
name: rack-test
|
375
|
+
requirement: !ruby/object:Gem::Requirement
|
376
|
+
requirements:
|
377
|
+
- - "~>"
|
378
|
+
- !ruby/object:Gem::Version
|
379
|
+
version: '0.6'
|
380
|
+
- - ">="
|
381
|
+
- !ruby/object:Gem::Version
|
382
|
+
version: 0.6.3
|
383
|
+
type: :development
|
384
|
+
prerelease: false
|
385
|
+
version_requirements: !ruby/object:Gem::Requirement
|
386
|
+
requirements:
|
387
|
+
- - "~>"
|
388
|
+
- !ruby/object:Gem::Version
|
389
|
+
version: '0.6'
|
390
|
+
- - ">="
|
391
|
+
- !ruby/object:Gem::Version
|
392
|
+
version: 0.6.3
|
393
|
+
description: A small gem to preview GitHub README files
|
394
|
+
email:
|
395
|
+
- nrodriguez@jbox-web.com
|
396
|
+
executables:
|
397
|
+
- gh-preview
|
398
|
+
extensions: []
|
399
|
+
extra_rdoc_files: []
|
400
|
+
files:
|
401
|
+
- ".gitignore"
|
402
|
+
- ".travis.yml"
|
403
|
+
- AUTHORS
|
404
|
+
- CHANGELOG.md
|
405
|
+
- Gemfile
|
406
|
+
- LICENSE
|
407
|
+
- README.md
|
408
|
+
- Rakefile
|
409
|
+
- bin/gh-preview
|
410
|
+
- gh-preview.gemspec
|
411
|
+
- lib/gh_preview.rb
|
412
|
+
- lib/gh_preview/config.rb
|
413
|
+
- lib/gh_preview/converter.rb
|
414
|
+
- lib/gh_preview/redcarpet_filter.rb
|
415
|
+
- lib/gh_preview/runner.rb
|
416
|
+
- lib/gh_preview/server.rb
|
417
|
+
- lib/gh_preview/version.rb
|
418
|
+
- lib/sinatra/flash/style_patch.rb
|
419
|
+
- public/stylesheets/application.css
|
420
|
+
- public/stylesheets/github-markdown.css
|
421
|
+
- spec/fixtures/example.html
|
422
|
+
- spec/fixtures/example.md
|
423
|
+
- spec/lib/gh_preview/config_spec.rb
|
424
|
+
- spec/lib/gh_preview/converter_spec.rb
|
425
|
+
- spec/lib/gh_preview/server_spec.rb
|
426
|
+
- spec/spec_helper.rb
|
427
|
+
- spec/support/helper.rb
|
428
|
+
- spec/zeus_plan.rb
|
429
|
+
- views/_headers.haml
|
430
|
+
- views/_nav_bar.haml
|
431
|
+
- views/_page.haml
|
432
|
+
- views/index.haml
|
433
|
+
- zeus.json
|
434
|
+
homepage: http://jbox-web.github.io/gh-preview/
|
435
|
+
licenses:
|
436
|
+
- MIT
|
437
|
+
metadata: {}
|
438
|
+
post_install_message:
|
439
|
+
rdoc_options: []
|
440
|
+
require_paths:
|
441
|
+
- lib
|
442
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
443
|
+
requirements:
|
444
|
+
- - ">="
|
445
|
+
- !ruby/object:Gem::Version
|
446
|
+
version: '0'
|
447
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
448
|
+
requirements:
|
449
|
+
- - ">="
|
450
|
+
- !ruby/object:Gem::Version
|
451
|
+
version: '0'
|
452
|
+
requirements: []
|
453
|
+
rubyforge_project:
|
454
|
+
rubygems_version: 2.4.8
|
455
|
+
signing_key:
|
456
|
+
specification_version: 4
|
457
|
+
summary: This gem provides a small Sinatra application to preview GitHub README files
|
458
|
+
test_files:
|
459
|
+
- spec/fixtures/example.html
|
460
|
+
- spec/fixtures/example.md
|
461
|
+
- spec/lib/gh_preview/config_spec.rb
|
462
|
+
- spec/lib/gh_preview/converter_spec.rb
|
463
|
+
- spec/lib/gh_preview/server_spec.rb
|
464
|
+
- spec/spec_helper.rb
|
465
|
+
- spec/support/helper.rb
|
466
|
+
- spec/zeus_plan.rb
|