sinatra-simple-navigation 3.7.1 → 4.0.0

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: 361e50d8b5b911aafb014289374d5470bc259e2a
4
- data.tar.gz: e6a955216cb3922c7c1118db201e06ff173dd8c3
3
+ metadata.gz: 3a007ac51db46779d129ea86a5fe7efd6ac35ce0
4
+ data.tar.gz: 1493fb3fdab3c4168d329c25c463b4dc20474a44
5
5
  SHA512:
6
- metadata.gz: 30dd5438bcef01ea5e09ac4989d1e50a758b62ae66b3ca105dbd2bb54af3d0d59ed0e1c775fa78f416d6422f4d1769ec7b5c2e01a5ceda47bd6f036623e02128
7
- data.tar.gz: 97573fe8a8a47f5208b19d5e9d584cc9aa87d8a93704e47c841a71588cc8d823b9104a95ac5d4585631d8dd79fa9ee267c0853b85ab65552a6dacd413eb66636
6
+ metadata.gz: eec85374e1dc9351ff8da4e021654edfaf2b895afe098103ebb2e242cb4488a5f75ad6ab5e4fd67f3106fb1643a79f887fb9543445ee79242b39b35060d5abed
7
+ data.tar.gz: b095b2ecf508a4d9a1d7eb9cca4bc9bf9db21bf7ae1ec3e78bcd962d57ae7e78e4cc610d290ac7cf0669a02b70ff2a9ea4a49c89d7992f253a65637accd213b6
data/CHANGELOG CHANGED
@@ -1,6 +1,6 @@
1
- *3.7.1
1
+ *4.0.0
2
2
 
3
- * pins down dependency on simple-navigation >= 3.12 and < 4.0
3
+ * fix extension registration, depends on simple-navigation 4.0.0
4
4
 
5
5
  *3.7.0
6
6
 
data/Rakefile CHANGED
@@ -1,7 +1,4 @@
1
1
  require 'bundler/gem_tasks'
2
- require 'rspec/core/rake_task'
3
2
 
4
- desc 'Default: run specs.'
5
- task :default => :spec
6
-
7
- RSpec::Core::RakeTask.new(:spec)
3
+ desc 'Default: build the gem.'
4
+ task default: :build
@@ -1,4 +1,4 @@
1
- require 'sinatra/simple_navigation/version'
1
+ require 'sinatra/base'
2
2
  require 'simple-navigation'
3
3
 
4
4
  module Sinatra
@@ -6,14 +6,13 @@ module Sinatra
6
6
  module SimpleNavigation
7
7
  def self.registered(app)
8
8
  app.helpers ::SimpleNavigation::Helpers
9
- ::SimpleNavigation.register
9
+ ::SimpleNavigation.register(app)
10
10
  end
11
11
  end
12
-
13
- #check if root is defined. It's undefined for modular style apps.
12
+
13
+ # for classic style apps
14
14
  unless ::Sinatra::Application.root.nil?
15
- ::SimpleNavigation.register
16
- helpers ::SimpleNavigation::Helpers
15
+ register SimpleNavigation
17
16
  end
18
-
17
+
19
18
  end
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module SimpleNavigation
3
- VERSION = '3.7.1'
3
+ VERSION = '4.0.0'
4
4
  end
5
5
  end
@@ -26,5 +26,8 @@ Gem::Specification.new do |spec|
26
26
 
27
27
  spec.rdoc_options = ['--inline-source', '--charset=UTF-8']
28
28
 
29
- spec.add_runtime_dependency('simple-navigation', '~> 3.12')
29
+ spec.add_runtime_dependency('simple-navigation', '>= 4.0.0')
30
+ spec.add_runtime_dependency('sinatra', '~> 1.0')
31
+
32
+ spec.add_development_dependency 'rake'
30
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-simple-navigation
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.1
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andi Schacke
@@ -9,22 +9,50 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-08 00:00:00.000000000 Z
12
+ date: 2015-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: simple-navigation
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: 4.0.0
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: 4.0.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: sinatra
16
30
  requirement: !ruby/object:Gem::Requirement
17
31
  requirements:
18
32
  - - "~>"
19
33
  - !ruby/object:Gem::Version
20
- version: '3.12'
34
+ version: '1.0'
21
35
  type: :runtime
22
36
  prerelease: false
23
37
  version_requirements: !ruby/object:Gem::Requirement
24
38
  requirements:
25
39
  - - "~>"
26
40
  - !ruby/object:Gem::Version
27
- version: '3.12'
41
+ version: '1.0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rake
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
28
56
  description: A Sinatra extension to enable creating navigations with the simple-navigation
29
57
  gem. Also works for Padrino. See http://github.com/codeplant/simple-navigation for
30
58
  more information on simple-navigation.