gollum_rails 1.4.5 → 1.4.6

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: a65e04d858846202b9e65e3d4dd51971cf1c83e6
4
- data.tar.gz: 9887fe6a0643f45e4593651ef508dfe17d3713af
3
+ metadata.gz: 1f1d83fb2faa64453dcb5a65f5924a0c9964b031
4
+ data.tar.gz: f0244385a600d80b43c9c854e34320e34eed0ebc
5
5
  SHA512:
6
- metadata.gz: 135bbc89399108bd13f312710e8e2a8b71c009feaf3cd5a6047fa65ade779a996800597a6084ed1e78b42200bbe0954469e2a70e7bc71b2b9e039869b43e0aa0
7
- data.tar.gz: e163103d54bb560f8b5e8f8152109f1603835869bed63599a03042178f390ffc462bf1f4fbe5844780b22561710f22a11ffeb77a443c5f8c31ce9685813e6c42
6
+ metadata.gz: af72a2be4d4bd7727935b9272dd572230b432382ae542a9ecf4a79cd54050090b17f48485d3d43480261c375b75a780f1e04c8e14e852f534311014e82afc434
7
+ data.tar.gz: 08892031c42725374caf6b80fb4652aae56a367d6416c429ec9f1f9a0d5ed42b37f5650cb4aa80e83863af20a60e41f308f80dbf210d989d0a4d50866b2f5e47
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gollum_rails (1.4.5)
4
+ gollum_rails (1.4.6)
5
5
  activemodel (>= 4.0.0)
6
6
  gollum-lib (~> 1.0.9)
7
7
 
@@ -89,7 +89,7 @@ GEM
89
89
  nokogiri (1.6.0)
90
90
  mini_portile (~> 0.5.0)
91
91
  polyglot (0.3.3)
92
- posix-spawn (0.3.6)
92
+ posix-spawn (0.3.8)
93
93
  pry (0.9.12.2)
94
94
  coderay (~> 1.0.5)
95
95
  method_source (~> 0.8)
@@ -144,7 +144,7 @@ GEM
144
144
  actionpack (>= 3.0)
145
145
  activesupport (>= 3.0)
146
146
  sprockets (~> 2.8)
147
- stringex (2.1.0)
147
+ stringex (2.1.2)
148
148
  term-ansicolor (1.2.2)
149
149
  tins (~> 0.8)
150
150
  thor (0.18.1)
data/HISTORY.md CHANGED
@@ -1,9 +1,20 @@
1
+ # 1.4.6 9th December 2013
2
+ * Updated the initializer to support paths now
3
+ * Updated error messages
4
+
5
+ # 1.0.6 9th December 2013 *RAILS3 branch*
6
+ * Rails 3 backwards compability
7
+
8
+ # 1.4.5 6th November 2013
9
+ * Updated Gollum-Lib version to 1.0.9
10
+ * Updated Rails stuff to 4.0.1
11
+
12
+
1
13
  # 1.4.4 31th October 2013
2
14
  * Removed Monkey patch for Grit
3
15
  * Upgraded Gollum lib version
4
16
  * Fixed specs for new gollum behavior
5
17
  * Removed String freedom patches
6
- *
7
18
 
8
19
  # 1.4.3 1th September 2013
9
20
  * Display the current pages version (short OR long)
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.5'
7
+ s.version = '1.4.6'
8
8
 
9
9
  s.summary = 'Combines Gollum and Rails'
10
10
  s.description= 'include Gollum into Rails with ease'
@@ -69,6 +69,7 @@ module GollumRails
69
69
  # path_valid? nil
70
70
  # # =>false
71
71
  def path_valid?(path)
72
+ return path.exist? if path.is_a?(Pathname)
72
73
  return !(path.nil? || path.empty? || ! path.is_a?(String))
73
74
  end
74
75
 
@@ -78,7 +79,7 @@ module GollumRails
78
79
  GollumRails::Adapters::Gollum::Wiki.new(repository, options || {})
79
80
  true
80
81
  else
81
- raise GollumInternalError, 'no repository path specified'
82
+ raise GollumInternalError, 'Repistory path empty or invalid!'
82
83
  end
83
84
 
84
85
  end
data/lib/gollum_rails.rb CHANGED
@@ -20,7 +20,7 @@ module GollumRails
20
20
  autoload :Setup, 'gollum_rails/setup'
21
21
 
22
22
  # GollumRails version string
23
- VERSION = '1.4.5'
23
+ VERSION = '1.4.6'
24
24
 
25
25
  # Simplified error
26
26
  class Error < StandardError; end
@@ -40,6 +40,12 @@ describe GollumRails::Setup do
40
40
  expect{setup.startup=true}.to raise_error
41
41
  end
42
42
  end
43
+ it "should throw an error if a pathname was supplied that does not exist" do
44
+ GollumRails::Setup.build do |setup|
45
+ setup.repository = Pathname.new('/nonexistingdirectoryshouldbenonexisting')
46
+ expect{setup.startup=(true)}.to raise_error(GollumRails::GollumInternalError)
47
+ end
48
+ end
43
49
  it "should test the Rails configuration" do
44
50
  GollumRails::Setup.build do |setup|
45
51
 
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.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Kasper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-06 00:00:00.000000000 Z
11
+ date: 2013-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubyforge_project: gollum_rails
151
- rubygems_version: 2.0.6
151
+ rubygems_version: 2.1.11
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Combines Gollum and Rails