gollum_rails 1.4.10 → 1.4.11
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/HISTORY.md +9 -0
- data/gollum_rails.gemspec +1 -1
- data/lib/gollum_rails.rb +1 -1
- data/lib/gollum_rails/setup.rb +5 -1
- data/lib/gollum_rails/store.rb +4 -4
- 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: 710c3a8e31482f04dc1b2d12a616df383d419bb7
|
4
|
+
data.tar.gz: c47cf491b09054a8645f252427d9c62cf4077280
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fd8a09f95f09ffb6d89aaf352b6a8808076b8a372a16266aef9cd21366f8beb1922b2002ac72618f1af1e9c8cbfd5958f7f177f1f1e3567b55c714f1b4b3d46
|
7
|
+
data.tar.gz: ca88a10a1c438016a729b598f89878167aa61265f7cfaf8e90e20c84b50c50ea17714c91d625fa6bcf466a0ca39f0b3dda6c5602adf16f1d5e2ad80354792013
|
data/Gemfile.lock
CHANGED
data/HISTORY.md
CHANGED
data/gollum_rails.gemspec
CHANGED
data/lib/gollum_rails.rb
CHANGED
data/lib/gollum_rails/setup.rb
CHANGED
@@ -18,7 +18,7 @@ module GollumRails
|
|
18
18
|
|
19
19
|
attr_accessor :wiki_path
|
20
20
|
|
21
|
-
|
21
|
+
attr_writer :wiki_options
|
22
22
|
|
23
23
|
attr_accessor :repository
|
24
24
|
|
@@ -28,6 +28,10 @@ module GollumRails
|
|
28
28
|
attr_accessor :options
|
29
29
|
|
30
30
|
|
31
|
+
def wiki_options
|
32
|
+
return {} unless @wiki_options.kind_of? Hash
|
33
|
+
@wiki_options ||= {}
|
34
|
+
end
|
31
35
|
# Wiki startup options
|
32
36
|
def options=(options)
|
33
37
|
@options = options
|
data/lib/gollum_rails/store.rb
CHANGED
@@ -21,16 +21,16 @@ module GollumRails
|
|
21
21
|
# Gets the wiki instance
|
22
22
|
def wiki
|
23
23
|
raise InitializationError, "Wiki path was not initialized!" if Setup.wiki_path.nil?
|
24
|
-
@wiki ||= Gollum::Wiki.new(Setup.wiki_path,
|
24
|
+
@wiki ||= Gollum::Wiki.new(Setup.wiki_path, Setup.wiki_options )
|
25
25
|
end
|
26
26
|
end
|
27
27
|
# Gets the pages format
|
28
28
|
def format
|
29
|
-
(@format || @gollum_page.format).to_sym
|
29
|
+
(@format || (@gollum_page.format||:markdown)).to_sym
|
30
30
|
end
|
31
31
|
|
32
32
|
def name
|
33
|
-
@name ||= @gollum_page.name
|
33
|
+
@name ||= (@gollum_page.name || "")
|
34
34
|
end
|
35
35
|
|
36
36
|
# == Outputs the pages filename on disc
|
@@ -41,7 +41,7 @@ module GollumRails
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def content
|
44
|
-
@content ||= @gollum_page.content
|
44
|
+
@content ||= (@gollum_page.content || "")
|
45
45
|
end
|
46
46
|
|
47
47
|
# Gets the page class
|
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.4.
|
4
|
+
version: 1.4.11
|
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-
|
11
|
+
date: 2014-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|