gollum-lib 5.0.a.2 → 5.0.a.3

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: fe17d31af04eac933565ca3a8064c14e6958b1fe
4
- data.tar.gz: c66f0147ff6edd7e1b83259fff3f090bce156c96
3
+ metadata.gz: 3c107b8b3bc278c630d0b4e3eae7ef36333ad7ec
4
+ data.tar.gz: f4cf906bf8898dfb676f1130a2c3e2b270d15f41
5
5
  SHA512:
6
- metadata.gz: 8007eb7edd7b8e74aaedd7ebc5ab9968a34f58007d9bcdc6577789018b64bcc92c421c35892a5fa3348fc1e9132391b65ab4732b773cd25eb02ff13c0dd780da
7
- data.tar.gz: 6dc4517307645b99009596814ee06bca440085d1da04cec3d99c34bbde7eddad6c1ff1d0b25ec3599ec6d226d1cb0615d3ba9575ce8766028bae5e96dcd25442
6
+ metadata.gz: 2e3fae109029c96762da698e4338fe4f789c287b63b5a085c0403daf399d670bc0ce767d26aaf8eb15380b31543b9dae2a5086d8adeb27d54bab33cd045ce6ef
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: ruby
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-grit_adapter