sinatra-simple-navigation 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ *3.2.1
2
+
3
+ * bugfix. Creating a modular style app now works without requiring 'sinatra'. Credits to Carlo Bertini.
4
+
1
5
  *3.2.0
2
6
 
3
7
  * depends on simple-navigation 3.2.0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.0
1
+ 3.2.1
@@ -8,6 +8,10 @@ module Sinatra
8
8
  end
9
9
  end
10
10
 
11
- ::SimpleNavigation.register
12
- helpers ::SimpleNavigation::Helpers
11
+ #check if root is defined. It's undefined for modular style apps.
12
+ unless ::Sinatra::Application.root.nil?
13
+ ::SimpleNavigation.register
14
+ helpers ::SimpleNavigation::Helpers
15
+ end
16
+
13
17
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-simple-navigation
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
- - 0
10
- version: 3.2.0
9
+ - 1
10
+ version: 3.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andi Schacke
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-09 00:00:00 +01:00
18
+ date: 2011-02-26 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency