gollum_rails 1.5.1 → 1.5.2

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: 6867c0e8089af4224263a975f5186675d5966721
4
- data.tar.gz: 78824ef63d8873305c0d4c84ed5048c48a25ea82
3
+ metadata.gz: 11fed99873df70a7a7d86d323bce04bc21bb71c6
4
+ data.tar.gz: 3fa18480d1a55a289c488e2c731b8f7e8fd20b5c
5
5
  SHA512:
6
- metadata.gz: 2ca79b2d48c22b9e0001b8a81fd7d1c40ca18b6da822d9955a04dc88c49dc643e4a46deada730132e5afbc4f1ff50106666a4e891511593d95527456e0503737
7
- data.tar.gz: 916fdd2d83c7e704fe94b4c9ce3921d7c70dd5140343afbbe0a222e638426c9c98c733f429ceed52f7ff55602e964394e2776c9b646f1e67d9bc8372a59069c4
6
+ metadata.gz: 090c0e3d6986db52a453b2fa1516af14f4f2c335d5a9cc5d6beb02a97af7213d0297d8269657ac6ae585bf255e63ee450d86b00cba49451c157c6e4cdc471bd1
7
+ data.tar.gz: 94a1f37f9965e2ed65db0663d815329272115cc44f6c51d506f5a15a5986dcf447b93c7648260d2862c6cdb771a346e4afe37ef0c3671fd62e8aff32e6c5234a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gollum_rails (1.5.1)
4
+ gollum_rails (1.5.2)
5
5
  activemodel (>= 3.2.11)
6
6
  activesupport (>= 3.2.11)
7
7
  gollum-lib (~> 1.0.9)
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.1'
7
+ s.version = '1.5.2'
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.1'
48
+ VERSION = '1.5.2'
49
49
 
50
50
  end
51
51
 
@@ -44,9 +44,12 @@ module GollumRails
44
44
 
45
45
 
46
46
  def path_name
47
- name.gsub(/(^\/|(\/){2}+|#{canonicalized_filename})/, "")
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.1
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-01-28 00:00:00.000000000 Z
11
+ date: 2014-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel