mediacloth 0.5 → 0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/mediacloth/mediawikilinkhandler.rb +3 -1
- metadata +2 -2
|
@@ -19,7 +19,9 @@ class MediaWikiLinkHandler
|
|
|
19
19
|
#* <tt>[[My Page|Click ''here'' to view my page]]</tt>
|
|
20
20
|
#The return value should be an URL that references the page resource
|
|
21
21
|
def url_for(page)
|
|
22
|
-
|
|
22
|
+
page_name, page_title = page.split('|')
|
|
23
|
+
page_title ||= page_name
|
|
24
|
+
"/" + page_name.gsub(/\s+/, "_") + ".html"
|
|
23
25
|
end
|
|
24
26
|
|
|
25
27
|
#Provides a hash with the attributes for page links. The options provided
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mediacloth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.6'
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-03-
|
|
12
|
+
date: 2013-03-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: racc
|