gollum_rails 1.5.6 → 1.5.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5997873b85103d1d0ed0f94b46693a365d0529db
4
- data.tar.gz: 57fee5ae386f2c24af584d033d562b6dd9f7eddc
3
+ metadata.gz: 67b3c438988077db91126e6420ed6b545991a35a
4
+ data.tar.gz: c782264918b108551c5b93926108a5b8e4944944
5
5
  SHA512:
6
- metadata.gz: d7d17cd47c838ba9a212ab1f9bc8d8c551fc4a16c4ec35ab7706a4fe47f65ddce80ac9546f5ed60a830841c34a30c78a625870583c1e31d26e072b74fe12125c
7
- data.tar.gz: 21f43bad70858c468995c3b6b2e5189cb0a7d330b8ed4dcbddedfa84004c6b0cc1e6772ec670850912f68bb5ea3b2a56c4a8fede411ba8b87afa73af46bd44d9
6
+ metadata.gz: b29976c1d9eabc38a760a20a89767e6e01e89dc0b5deabcac45de975da698710c494592f877d334c3d56283c5b56986602651f0b9646bd5c98ca2341eccbe750
7
+ data.tar.gz: 7c8177eb33d8452c685c6262da5b59e087c62be3f61f21e337e246225087cd02ba9e231dbad61f9ef675364eb3a424c44a83c7d29c1b721d29bd4473de0d4330
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gollum_rails (1.5.6)
4
+ gollum_rails (1.5.7)
5
5
  activemodel (>= 3.2.11)
6
6
  activesupport (>= 3.2.11)
7
7
  gollum-lib (~> 2.0.0)
data/gollum_rails.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.name = 'gollum_rails'
5
5
  s.rubyforge_project = s.name
6
6
 
7
- s.version = '1.5.6'
7
+ s.version = '1.5.7'
8
8
 
9
9
  s.summary = 'Combines Gollum and Rails'
10
10
  s.description= 'include Gollum into Rails with ease'
data/lib/gollum_rails.rb CHANGED
@@ -45,7 +45,7 @@ module GollumRails
45
45
  autoload :Meta
46
46
 
47
47
  # GollumRails version string
48
- VERSION = '1.5.6'
48
+ VERSION = '1.5.7'
49
49
 
50
50
  end
51
51
 
@@ -63,8 +63,8 @@ module GollumRails
63
63
 
64
64
  # Gets the next subfolder for current pathname
65
65
  def next_folder(previous)
66
- path = path_name
67
- previous = File.split(previous).join
66
+ path = url
67
+ previous = File.split(previous).join('/').gsub(/^\/+/, '')
68
68
  path.gsub!(/#{previous}/i, '')
69
69
  ngxpath = File.split(path).first #use path only cuz we want the next folder not file
70
70
  new_path = ngxpath.split('/').reject { |c| c.empty? }
@@ -89,7 +89,7 @@ describe "Gollum Page" do
89
89
  it "can get the next subfolder" do
90
90
  @rr.name = '/home/page/test/page'
91
91
  @rr.save
92
- expect(@rr.next_folder('/home')).to match 'page'
92
+ expect(@rr.next_folder('/home/page')).to match 'test'
93
93
  @rr.destroy
94
94
  end
95
95
  it "can get the next subfolder again" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
4
+ version: 1.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Kasper