gollum_rails 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/gollum_rails.gemspec +1 -1
- data/lib/gollum_rails.rb +1 -1
- data/lib/gollum_rails/core.rb +5 -2
- data/spec/gollum_rails/page_spec.rb +6 -0
- 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: 11fed99873df70a7a7d86d323bce04bc21bb71c6
|
4
|
+
data.tar.gz: 3fa18480d1a55a289c488e2c731b8f7e8fd20b5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 090c0e3d6986db52a453b2fa1516af14f4f2c335d5a9cc5d6beb02a97af7213d0297d8269657ac6ae585bf255e63ee450d86b00cba49451c157c6e4cdc471bd1
|
7
|
+
data.tar.gz: 94a1f37f9965e2ed65db0663d815329272115cc44f6c51d506f5a15a5986dcf447b93c7648260d2862c6cdb771a346e4afe37ef0c3671fd62e8aff32e6c5234a
|
data/Gemfile.lock
CHANGED
data/gollum_rails.gemspec
CHANGED
data/lib/gollum_rails.rb
CHANGED
data/lib/gollum_rails/core.rb
CHANGED
@@ -44,9 +44,12 @@ module GollumRails
|
|
44
44
|
|
45
45
|
|
46
46
|
def path_name
|
47
|
-
|
47
|
+
f = File.split(name).first
|
48
|
+
return '/' if f == '.'
|
49
|
+
f
|
48
50
|
end
|
49
51
|
|
52
|
+
|
50
53
|
def canonicalized_filename
|
51
54
|
Gollum::Page.canonicalize_filename(name)
|
52
55
|
end
|
@@ -167,4 +170,4 @@ module GollumRails
|
|
167
170
|
end
|
168
171
|
|
169
172
|
end
|
170
|
-
end
|
173
|
+
end
|
@@ -61,6 +61,12 @@ describe "Gollum Page" do
|
|
61
61
|
@rr.save
|
62
62
|
@rr.html_data.should == 'content data'
|
63
63
|
end
|
64
|
+
it "can be saved using special characters in name" do
|
65
|
+
@rr.name = 'test-page'
|
66
|
+
@rr.save
|
67
|
+
expect(RailsModel.find('test-page')).not_to be_nil
|
68
|
+
@rr.destroy
|
69
|
+
end
|
64
70
|
it "was last changed by me" do
|
65
71
|
@rr.save
|
66
72
|
@rr.last_changed_by.should == 'flo <mosny@zyg.li>'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gollum_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Kasper
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|