gollum_rails 1.5.7 → 1.5.8

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: 67b3c438988077db91126e6420ed6b545991a35a
4
- data.tar.gz: c782264918b108551c5b93926108a5b8e4944944
3
+ metadata.gz: 2f50bda67c1494f2a78ba4b911358604be522e49
4
+ data.tar.gz: ed0b30bf49b6471b1c76f61d941e43dadb6ecefe
5
5
  SHA512:
6
- metadata.gz: b29976c1d9eabc38a760a20a89767e6e01e89dc0b5deabcac45de975da698710c494592f877d334c3d56283c5b56986602651f0b9646bd5c98ca2341eccbe750
7
- data.tar.gz: 7c8177eb33d8452c685c6262da5b59e087c62be3f61f21e337e246225087cd02ba9e231dbad61f9ef675364eb3a424c44a83c7d29c1b721d29bd4473de0d4330
6
+ metadata.gz: 4c73c57f7bbae447b6c8515535e99ecbc664dbbe9d7ac34b76deec4363762804f559f622e2dff5f7b80a0bf74266d6f1c412a9a4b1e2f9ee845215c97e19aa49
7
+ data.tar.gz: a10fa13ceed5c82695fce2815fda8d77c27eb16a4c87d259cac630bb3d77529ea82e9f91a8a1e95cfca216858850694e0fb0d2b73e13870db15fac5f8f44fd15
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gollum_rails (1.5.7)
4
+ gollum_rails (1.5.8)
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.7'
7
+ s.version = '1.5.8'
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.7'
48
+ VERSION = '1.5.8'
49
49
 
50
50
  end
51
51
 
@@ -61,21 +61,6 @@ module GollumRails
61
61
  full_path.last
62
62
  end
63
63
 
64
- # Gets the next subfolder for current pathname
65
- def next_folder(previous)
66
- path = url
67
- previous = File.split(previous).join('/').gsub(/^\/+/, '')
68
- path.gsub!(/#{previous}/i, '')
69
- ngxpath = File.split(path).first #use path only cuz we want the next folder not file
70
- new_path = ngxpath.split('/').reject { |c| c.empty? }
71
- px = new_path.join
72
- if px == '.' || px.empty?
73
- return nil
74
- end
75
- px
76
-
77
- end
78
-
79
64
  def cname
80
65
  Gollum::Page.cname(self.name)
81
66
  end
@@ -79,31 +79,6 @@ describe "Gollum Page" do
79
79
  expect(@rr.file_name).to match 'page'
80
80
  @rr.destroy
81
81
  end
82
- it "has a path name" do
83
- @rr.name = '/home/page/test/page'
84
- @rr.save
85
-
86
- expect(@rr.path_name).to match 'home/page/test'
87
- @rr.destroy
88
- end
89
- it "can get the next subfolder" do
90
- @rr.name = '/home/page/test/page'
91
- @rr.save
92
- expect(@rr.next_folder('/home/page')).to match 'test'
93
- @rr.destroy
94
- end
95
- it "can get the next subfolder again" do
96
- @rr.name = '/home/page'
97
- @rr.save
98
- expect(@rr.next_folder("/home")).to be_nil
99
- @rr.destroy
100
- end
101
- it "cannot get the next subfolder" do
102
- @rr.name = 'page'
103
- @rr.save
104
- expect(@rr.next_folder("/")).to be_nil
105
- @rr.destroy
106
- end
107
82
  it "was last changed by me" do
108
83
  @rr.save
109
84
  @rr.last_changed_by.should == 'flo <mosny@zyg.li>'
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.7
4
+ version: 1.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Kasper