gollum-lib 5.0.a.2-java → 5.0.a.3-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gemspec.rb +1 -1
- data/lib/gollum-lib/page.rb +13 -9
- data/lib/gollum-lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43de530f54acdb12ffac21a4bb96db1844f59119
|
4
|
+
data.tar.gz: f4cf906bf8898dfb676f1130a2c3e2b270d15f41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0e79ae8f96d9688bbd45cc9b38e5630fd38bcc4d52a437ed72e949f292c7c6a2f1c973250af0828a83cb09e6be138387ce49b7f064d8d58829ba3b852d8a3a3
|
7
|
+
data.tar.gz: fff6e1c352190df905559ad9d53fea8dd3feb9973696e5dfbb5ce2576d67f6c2529b737ce9600ec5d78ab7a1295121445cda73f9df9a4a5b13f2611f1b1f149e
|
data/gemspec.rb
CHANGED
data/lib/gollum-lib/page.rb
CHANGED
@@ -125,21 +125,14 @@ module Gollum
|
|
125
125
|
#
|
126
126
|
# Returns the String url_path
|
127
127
|
def url_path
|
128
|
-
|
129
|
-
self.path.sub(/\/[^\/]+$/, '/')
|
130
|
-
else
|
131
|
-
''
|
132
|
-
end
|
133
|
-
|
134
|
-
path << self.filename
|
135
|
-
path
|
128
|
+
construct_path(filename)
|
136
129
|
end
|
137
130
|
|
138
131
|
# Public: Defines title for page.rb
|
139
132
|
#
|
140
133
|
# Returns the String title
|
141
134
|
def url_path_title
|
142
|
-
metadata_title ||
|
135
|
+
metadata_title || construct_path(name)
|
143
136
|
end
|
144
137
|
|
145
138
|
# Public: The url_path, but CGI escaped.
|
@@ -449,6 +442,17 @@ module Gollum
|
|
449
442
|
def inspect
|
450
443
|
%(#<#{self.class.name}:#{object_id} #{name} (#{format}) @wiki=#{@wiki.repo.path.inspect}>)
|
451
444
|
end
|
445
|
+
|
446
|
+
private
|
447
|
+
|
448
|
+
def construct_path(name)
|
449
|
+
path = if self.path.include?('/')
|
450
|
+
self.path.sub(/\/[^\/]+$/, '/')
|
451
|
+
else
|
452
|
+
''
|
453
|
+
end
|
454
|
+
path << name
|
455
|
+
end
|
452
456
|
|
453
457
|
end
|
454
458
|
end
|
data/lib/gollum-lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gollum-lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.a.
|
4
|
+
version: 5.0.a.3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-04-
|
12
|
+
date: 2017-04-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gollum-rjgit_adapter
|