gollum_rails 1.4.12 → 1.4.13

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: 90d9a58dfe931e3cbb2b06821bd1a4b312857de1
4
- data.tar.gz: 05b23204c8f0a1ac417a803cdfc6797b9b0fbd90
3
+ metadata.gz: 5f67ec69d7746afcea87ebf4ae4cc57625b5735c
4
+ data.tar.gz: c9bf925679161f987317347e05fafa8caf5fd477
5
5
  SHA512:
6
- metadata.gz: 800fa34910d98ccf5379d2e370c3de82f5012e006abf6a84861a78ced1e687afc525930b095951821b9cb4e15af1550b663f94d4cd955a2352b7e9cec2966df8
7
- data.tar.gz: 750ee370a98bd42a15a77fa5be3bba45d4a3fe43d9bf87ac3e4aea6fa3031bd04572a70c7606eebc1770f063fa6142df91c9f2191e43ff67874ba882fc459ed0
6
+ metadata.gz: 151b9810a740a25fea35423bde68cc862b39c27094479ed8329fcac3b7c4644ea9f485ef9cb311460a3e17a25378bcbd49ba414ce93e1da271b66fcd6c40d5b5
7
+ data.tar.gz: 6d4e9b50bcd96ee9c62372ba1f12422b3d3fa7612d33eed097d7c93035f0bc77bd3bc1ec57780c49da0225a9a3ef46d9cfcb82524464f9cabc85e8c68b6b61d8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gollum_rails (1.4.12)
4
+ gollum_rails (1.4.13)
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,6 @@
1
+ # 1.4.13 16th January 2014
2
+ * Update wiki reloading
3
+
1
4
  # 1.4.12 16th January 2014
2
5
  * Date fix in Readme
3
6
  * `all` static method now initializes in a GollumRails::Page
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.4.12'
7
+ s.version = '1.4.13'
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
@@ -44,7 +44,7 @@ module GollumRails
44
44
  autoload :Orm
45
45
 
46
46
  # GollumRails version string
47
- VERSION = '1.4.12'
47
+ VERSION = '1.4.13'
48
48
 
49
49
  end
50
50
 
@@ -21,7 +21,7 @@ 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, Setup.wiki_options )
24
+ @wiki = Gollum::Wiki.new(Setup.wiki_path, Setup.wiki_options )
25
25
  end
26
26
  end
27
27
  # Gets the pages format
@@ -195,6 +195,14 @@ describe "Gollum Page" do
195
195
  expect(RailsModel.find('whoooohoo')).to be_nil
196
196
  end
197
197
 
198
+ it "should initializes all with GollumRails::Page" do
199
+ expect(RailsModel.all.first).to be_kind_of GollumRails::Page
200
+ end
201
+
202
+ it "should have a gollum page after initializing with all" do
203
+ expect(RailsModel.all.first.gollum_page).not_to be_nil
204
+ end
205
+
198
206
  it "tests the find method to return a gollum_rails:page if a page was found" do
199
207
  expect(RailsModel.find('Goole')).to be_a GollumRails::Page
200
208
  end
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.4.12
4
+ version: 1.4.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Kasper