navGATE 0.1.3.1 → 0.1.3.2

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: 801efb19de9205c606cd1cf8365b84d915d72f6c
4
- data.tar.gz: d4b15567af621a29ec1a00082ebc63abef16d124
3
+ metadata.gz: 1705038ffb01f7857827c4922860690b51d93a54
4
+ data.tar.gz: 51919bab8e0ec4a97878e6d276bad8eeced44c39
5
5
  SHA512:
6
- metadata.gz: 665dee87202916fe6fd9fa82a425360ee67364c8dc0b43aebd58d7273fd10dc68fe6f0a185a10ae8e13e41569546bf2a8141640199c004196f7a67ee2585caf8
7
- data.tar.gz: 0d2edba55083f9cb22eaa9862c8d9d4221ba02312477bf445accb03cab45c1d337d13a461f3591ae6dca64b79f45768c43405f81ff06aa160ac155a78a32a188
6
+ metadata.gz: fbde55237adfa7e14105bfc50c625a71209d0bc46760af60a03e7b237802f311639b172a6a4d445ddb80b81a3f615185b4e01265afeacc1a5e6791a0846d4694
7
+ data.tar.gz: 30750cba650154311ec150531f00870166789022846900c9a998c02b9dbc98afd6b6530d65f6e0c2c8c9ee7b175c97bdc2b7283de2d7a0e4d2ec3ab3efd7da6d
data/Manifest CHANGED
@@ -9,7 +9,6 @@ lib/navgate/base.rb
9
9
  lib/navgate/builder.rb
10
10
  lib/navgate/main.rb
11
11
  lib/navgate/modules/navgatehelpers.rb
12
- lib/navgate/navgatehelpers.rb
13
12
  lib/readme.rdoc
14
13
  navGATE.gemspec
15
14
  readme.rdoc
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake'
3
3
  require 'echoe'
4
4
 
5
5
 
6
- Echoe.new('navGATE','0.1.3.1') do |p|
6
+ Echoe.new('navGATE','0.1.3.2') do |p|
7
7
  p.summary = "Allows the easy creation of navigation with config files"
8
8
  p.description = "Can create navigation from objects using the nav builder,from database tables or from a yaml file"
9
9
  p.url = "https://github.com/Thermatix/navGATE"
@@ -4,7 +4,7 @@ module NavGate
4
4
  if Module.const_get("Rails").is_a?(Module).inspect
5
5
  #with rails
6
6
  def make_menu
7
- @navgate = NAVGATE
7
+ @navgate = NavGate::Navigation
8
8
  @selected ||= @navgate.select(params[:selection], params[:controller])
9
9
  end
10
10
  def render_navigation options = nil
@@ -13,7 +13,7 @@ module NavGate
13
13
  else
14
14
  #without rails
15
15
  def make_menu selection, controller
16
- @navgate = NAVGATE
16
+ @navgate = NavGate::Navigation
17
17
  @selected ||= @navgate.select(selection, controller)
18
18
  end
19
19
  def render_navigation controller, options = nil
data/navGATE.gemspec CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "navGATE"
5
- s.version = "0.1.3.1"
5
+ s.version = "0.1.3.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Martin Becker"]
9
9
  s.date = "2014-01-09"
10
10
  s.description = "Can create navigation from objects using the nav builder,from database tables or from a yaml file"
11
11
  s.email = "mbeckerwork@gmail.com"
12
- s.extra_rdoc_files = ["lib/navgate.rb", "lib/navgate/base.rb", "lib/navgate/builder.rb", "lib/navgate/main.rb", "lib/navgate/modules/navgatehelpers.rb", "lib/navgate/navgatehelpers.rb", "lib/readme.rdoc"]
13
- s.files = ["LICENCE/GPL-2", "Manifest", "Rakefile", "config/build_menu.yml", "config/initializers/build_menu.rb", "init.rb", "lib/navgate.rb", "lib/navgate/base.rb", "lib/navgate/builder.rb", "lib/navgate/main.rb", "lib/navgate/modules/navgatehelpers.rb", "lib/navgate/navgatehelpers.rb", "lib/readme.rdoc", "navGATE.gemspec", "readme.rdoc"]
12
+ s.extra_rdoc_files = ["lib/navgate.rb", "lib/navgate/base.rb", "lib/navgate/builder.rb", "lib/navgate/main.rb", "lib/navgate/modules/navgatehelpers.rb", "lib/readme.rdoc"]
13
+ s.files = ["LICENCE/GPL-2", "Manifest", "Rakefile", "config/build_menu.yml", "config/initializers/build_menu.rb", "init.rb", "lib/navgate.rb", "lib/navgate/base.rb", "lib/navgate/builder.rb", "lib/navgate/main.rb", "lib/navgate/modules/navgatehelpers.rb", "lib/readme.rdoc", "navGATE.gemspec", "readme.rdoc"]
14
14
  s.homepage = "https://github.com/Thermatix/navGATE"
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "navGATE", "--main", "readme.rdoc"]
16
16
  s.require_paths = ["lib"]
data/readme.rdoc CHANGED
@@ -12,7 +12,7 @@ This gem was built with Rails in mind.
12
12
  lastly the gem is up on rubygems.org
13
13
 
14
14
  ==Setup
15
- in the Application controller you have to <tt> include NavGateHelpers </tt> first.
15
+ in the Application controller you have to <tt> include NavGate::NavGateHelpers </tt> first.
16
16
 
17
17
  ===For Rails
18
18
  You next have to add a before_filter and helper method to the application controller
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: navGATE
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3.1
4
+ version: 0.1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Becker
@@ -21,7 +21,6 @@ extra_rdoc_files:
21
21
  - lib/navgate/builder.rb
22
22
  - lib/navgate/main.rb
23
23
  - lib/navgate/modules/navgatehelpers.rb
24
- - lib/navgate/navgatehelpers.rb
25
24
  - lib/readme.rdoc
26
25
  files:
27
26
  - LICENCE/GPL-2
@@ -35,7 +34,6 @@ files:
35
34
  - lib/navgate/builder.rb
36
35
  - lib/navgate/main.rb
37
36
  - lib/navgate/modules/navgatehelpers.rb
38
- - lib/navgate/navgatehelpers.rb
39
37
  - lib/readme.rdoc
40
38
  - navGATE.gemspec
41
39
  - readme.rdoc
@@ -1,26 +0,0 @@
1
- module NavGate
2
- module NavGateHelpers
3
- def NavGateHelpers.included(mod)
4
- if Module.const_get("Rails").is_a?(Module).inspect
5
- #with rails
6
- def make_menu
7
- @navgate = NavGate::Navigation
8
- @selected ||= @navgate.select(params[:selection], params[:controller])
9
- end
10
- def render_navigation options = nil
11
- @navgate.render_nav((params[:selection]||request.fullpath), params[:controller], options )
12
- end
13
- else
14
- #without rails
15
- def make_menu selection, controller
16
- @navgate = NavGate::Navigation
17
- @selected ||= @navgate.select(selection, controller)
18
- end
19
- def render_navigation controller, options = nil
20
- @navgate.render_nav( @selected , controller, options )
21
- end
22
- end
23
- end
24
- end
25
- end
26
-