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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eafda74f78c96ad24495b806bbb508b17b079bf9
4
- data.tar.gz: 6f8d3e18f17d31d204d562b72b3f79e2dde9b9d3
3
+ metadata.gz: 43de530f54acdb12ffac21a4bb96db1844f59119
4
+ data.tar.gz: f4cf906bf8898dfb676f1130a2c3e2b270d15f41
5
5
  SHA512:
6
- metadata.gz: ee2d771bd18e399272e8a1b2f00cd13d50a2e64c49e198d980bc2851db17e6f8ea278fcd3fb731a7017110f6d7481f5e9818d0f0f55cc3490f99d46d3ddcd09a
7
- data.tar.gz: d4ba9285af6a115a10f4bd1438070c0d76dcf0cc7aaea0b76a7b5540a3b6753130f6875171c66f7d3ac9aa2b7d53e8e3f0edab66d84b4a21be9179fd935166d7
6
+ metadata.gz: d0e79ae8f96d9688bbd45cc9b38e5630fd38bcc4d52a437ed72e949f292c7c6a2f1c973250af0828a83cb09e6be138387ce49b7f064d8d58829ba3b852d8a3a3
7
+ data.tar.gz: fff6e1c352190df905559ad9d53fea8dd3feb9973696e5dfbb5ce2576d67f6c2529b737ce9600ec5d78ab7a1295121445cda73f9df9a4a5b13f2611f1b1f149e
data/gemspec.rb CHANGED
@@ -8,7 +8,7 @@ def specification(version, default_adapter, platform = nil)
8
8
  s.name = 'gollum-lib'
9
9
  s.version = version
10
10
  s.platform = platform if platform
11
- s.date = '2017-04-12'
11
+ s.date = '2017-04-13'
12
12
  s.rubyforge_project = 'gollum-lib'
13
13
  s.license = 'MIT'
14
14
 
@@ -125,21 +125,14 @@ module Gollum
125
125
  #
126
126
  # Returns the String url_path
127
127
  def url_path
128
- path = if self.path.include?('/')
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 || url_path
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
@@ -1,5 +1,5 @@
1
1
  module Gollum
2
2
  module Lib
3
- VERSION = '5.0.a.2'
3
+ VERSION = '5.0.a.3'
4
4
  end
5
5
  end
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.2
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 00:00:00.000000000 Z
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