gitdocs 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -2
- data/gitdocs.gemspec +1 -1
- data/lib/gitdocs/rendering.rb +21 -0
- data/lib/gitdocs/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -18,11 +18,11 @@
|
|
18
18
|
* Remove signal handling and just leverage EM start/stop
|
19
19
|
* Adds table sorting and file+folder icons in web front-end
|
20
20
|
|
21
|
-
0.4.5 (12/14/2012)
|
21
|
+
0.4.5, 0.4.6 (12/14/2012)
|
22
22
|
|
23
23
|
* Enables logs in ~/.gitdocs/log for easier debugging
|
24
24
|
* Fix issue with default sort order on web interface
|
25
25
|
* Fixes major mime type detection issues
|
26
26
|
* Fixes rendering issues
|
27
27
|
|
28
|
-
0.4.
|
28
|
+
0.4.7 (Not yet released)
|
data/gitdocs.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_dependency 'joshbuddy-guard', '~> 0.10.0'
|
22
22
|
s.add_dependency 'thin'
|
23
23
|
s.add_dependency 'renee', '~> 0.3.7'
|
24
|
-
s.add_dependency 'redcarpet'
|
24
|
+
s.add_dependency 'redcarpet', '~> 2.0.0'
|
25
25
|
s.add_dependency 'thor'
|
26
26
|
s.add_dependency 'coderay'
|
27
27
|
s.add_dependency 'dante', '~> 0.1.2'
|
data/lib/gitdocs/rendering.rb
CHANGED
@@ -1,7 +1,28 @@
|
|
1
1
|
# This shouldn't exist but I can't find any other way to prevent redcarpet from complaining
|
2
|
+
# WARN: tilt autoloading 'redcarpet' in a non thread-safe way; explicit require 'redcarpet' suggested.
|
3
|
+
# !! Unexpected error while processing request: Input must be UTF-8 or US-ASCII, ASCII-8BIT given
|
4
|
+
# Input must be UTF-8 or US-ASCII, ASCII-8BIT given
|
5
|
+
# gems/redcarpet-2.0.1/lib/redcarpet.rb:70:in `render'
|
6
|
+
# gems/redcarpet-2.0.1/lib/redcarpet.rb:70:in `to_html'
|
7
|
+
# gems/tilt-1.3.3/lib/tilt/markdown.rb:38:in `evaluate'
|
8
|
+
# gems/tilt-1.3.3/lib/tilt/markdown.rb:61:in `evaluate'
|
9
|
+
# gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render'
|
2
10
|
|
3
11
|
require 'redcarpet'
|
12
|
+
|
13
|
+
# Compatibility class;
|
14
|
+
# Creates a instance of Redcarpet with the RedCloth
|
15
|
+
# API. This instance has no extensions enabled whatsoever,
|
16
|
+
# and no accessors to change this. 100% pure, standard
|
17
|
+
# Markdown.
|
4
18
|
class RedcarpetCompat
|
19
|
+
attr_accessor :text
|
20
|
+
|
21
|
+
def initialize(text, *_dummy)
|
22
|
+
@text = text
|
23
|
+
@markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
|
24
|
+
end
|
25
|
+
|
5
26
|
def to_html(*_dummy)
|
6
27
|
@markdown.render(@text.force_encoding('utf-8'))
|
7
28
|
end
|
data/lib/gitdocs/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: gitdocs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
5
|
+
version: 0.4.6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Josh Hull
|
@@ -52,9 +52,9 @@ dependencies:
|
|
52
52
|
requirement: &id004 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
54
54
|
requirements:
|
55
|
-
- -
|
55
|
+
- - ~>
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
57
|
+
version: 2.0.0
|
58
58
|
type: :runtime
|
59
59
|
version_requirements: *id004
|
60
60
|
- !ruby/object:Gem::Dependency
|