gitdoc 3.5.0 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/gitdoc.rb +9 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.6.0
|
data/gitdoc.rb
CHANGED
@@ -102,8 +102,15 @@ helpers do
|
|
102
102
|
|
103
103
|
### HTML Extensions
|
104
104
|
|
105
|
-
def html
|
106
|
-
compile_sass_tags
|
105
|
+
def html extended_html
|
106
|
+
html = compile_sass_tags extended_html
|
107
|
+
compile_scss_tags html
|
108
|
+
end
|
109
|
+
|
110
|
+
def compile_scss_tags source
|
111
|
+
source.gsub(/^<style type=['"]?text\/scss['"]?>\r?\n(.+?)<\/style>?$/m) do |match|
|
112
|
+
"<style type='text/css'>\n#{scss $1}</style>"
|
113
|
+
end
|
107
114
|
end
|
108
115
|
|
109
116
|
def compile_sass_tags source
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
|
-
-
|
8
|
+
- 6
|
9
9
|
- 0
|
10
|
-
version: 3.
|
10
|
+
version: 3.6.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Myles Byrne
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-25 00:00:00 +11:00
|
19
19
|
default_executable: gitdoc
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|