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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d8144ea423bdcbb2ee042aa7e54e1455dc15989
4
- data.tar.gz: 760dfdefa08826d86a54a4d42bfd65f223f1090f
3
+ metadata.gz: 710c3a8e31482f04dc1b2d12a616df383d419bb7
4
+ data.tar.gz: c47cf491b09054a8645f252427d9c62cf4077280
5
5
  SHA512:
6
- metadata.gz: 7f296ca8306f67678fdf5262c40f4aa2a2b2d80088645043b0681feb9606350181cce2213dbff3842ea0e591379c8df42d1c1b0785d4cfc41f1a8b3166a723a5
7
- data.tar.gz: 053774074c12d940f0001b83adabc46a888499d4a24ad721e29dfefe23a611adcce1ab43207a1069cf3ffc1908b97ac8f159f4c2dfde06242be7742fcd4f078a
6
+ metadata.gz: 5fd8a09f95f09ffb6d89aaf352b6a8808076b8a372a16266aef9cd21366f8beb1922b2002ac72618f1af1e9c8cbfd5958f7f177f1f1e3567b55c714f1b4b3d46
7
+ data.tar.gz: ca88a10a1c438016a729b598f89878167aa61265f7cfaf8e90e20c84b50c50ea17714c91d625fa6bcf466a0ca39f0b3dda6c5602adf16f1d5e2ad80354792013
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gollum_rails (1.4.10)
4
+ gollum_rails (1.4.11)
5
5
  activemodel (>= 3.2.11)
6
6
  activesupport (>= 3.2.11)
7
7
  gollum-lib (~> 1.0.9)
data/HISTORY.md CHANGED
@@ -1,3 +1,12 @@
1
+ # 1.4.11 16th January 2013
2
+ * Bugfixes and finally a working project
3
+
4
+ # 1.4.10 14th January 2013
5
+ * Bugfixes
6
+
7
+ # 1.4.9 14th January 2013
8
+ * Bugfixes
9
+
1
10
  # 1.4.8 13th January 2013
2
11
  * Updated initializer
3
12
  * Better errors
@@ -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.4.10'
7
+ s.version = '1.4.11'
8
8
 
9
9
  s.summary = 'Combines Gollum and Rails'
10
10
  s.description= 'include Gollum into Rails with ease'
@@ -44,7 +44,7 @@ module GollumRails
44
44
  autoload :Orm
45
45
 
46
46
  # GollumRails version string
47
- VERSION = '1.4.10'
47
+ VERSION = '1.4.11'
48
48
 
49
49
  end
50
50
 
@@ -18,7 +18,7 @@ module GollumRails
18
18
 
19
19
  attr_accessor :wiki_path
20
20
 
21
- attr_accessor :wiki_options
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
@@ -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.10
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-14 00:00:00.000000000 Z
11
+ date: 2014-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel