mediacloth 0.5 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- "javascript:void(0)"
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.5'
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-20 00:00:00.000000000 Z
12
+ date: 2013-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: racc