navGATE 0.1.07 → 0.1.08

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: 51c8aae592352c3cf832ddf301b28f04fb474457
4
- data.tar.gz: b630c76cae268e2be00d32aa2f6a701b733b3fde
3
+ metadata.gz: 9b26ae709b4597d50421cf3055f65fe31d447312
4
+ data.tar.gz: 674abf588d84a3fa2a79e293195bb6a833c3681b
5
5
  SHA512:
6
- metadata.gz: f1fff84955556b9433183b8287f04bfe5905f11a03690c8bd50d04c843f5c441b9308caacf37834c1dcba1fd16b1cb25068f9beeb6879c08cfb9feb473dc24cc
7
- data.tar.gz: b11b82392193c22ca7048c0a67c2818e8cd9632c3b3ba44fc6dd992f78c4a21a2889a5f5c432b45d2490879093d1e7a42d63594fe8ed4d89e14a1043cc279f02
6
+ metadata.gz: d3d98b92d2ccfabc90036fadd952f8e91f7df1085cf80bc7ae3deec7e9afac55a2b24682f75855e2b3d8ce8c8869fb16d1da68627c6655ed84a750857fa1ed65
7
+ data.tar.gz: b24768f38eb22aa1a27ed38163c588970a00a718922d3269fa29610c1556eaef7efba41419131ca873a76530e5d2325693a526571809883a1d640eff652c587d
data/Manifest CHANGED
@@ -1,11 +1,10 @@
1
1
  Manifest
2
2
  Rakefile
3
- app/controller/application_controller.rb
4
- app/helpers/application_helper.rb
5
3
  config/build_menu.yml
6
4
  config/initializers/build_menu.rb
7
5
  init.rb
8
6
  lib/navgate.rb
7
+ lib/navgate/application_controller.rb
9
8
  lib/navgate/base.rb
9
+ lib/readme.rdoc
10
10
  navGATE.gemspec
11
- readme.rdoc
data/Rakefile CHANGED
@@ -3,8 +3,9 @@ require 'rake'
3
3
  require 'echoe'
4
4
 
5
5
 
6
- Echoe.new('navGATE','0.1.07') do |p|
7
- p.description = "Allows the easy creation of menus with config files"
6
+ Echoe.new('navGATE','0.1.08') do |p|
7
+ p.summary = "Allows the easy creation of navigation with config files"
8
+ p.description = "Can create navigation from objects using the nav builder,from database tables or from a yaml file"
8
9
  p.url = "https://github.com/Thermatix/navGATE"
9
10
  p.author = "Martin Becker"
10
11
  p.email = "mbeckerwork@gmail.com"
data/init.rb CHANGED
@@ -1 +1 @@
1
- require 'navgate'
1
+ require 'lib/navgate'
@@ -1,9 +1,13 @@
1
1
 
2
2
  class ApplicationController < ActionController::Base
3
3
  before_filter :make_menu
4
+ helper_method :render_navigation
4
5
  def make_menu
5
6
  @navgate = NAVGATE
6
7
  @selected ||= @navgate.select(params)
7
8
  end
9
+ def render_navigation options = nil
10
+ @navgate.render_nav(params, options)
11
+ end
8
12
  end
9
13
 
data/lib/navgate.rb CHANGED
@@ -1,13 +1,17 @@
1
1
  require 'navgate/base'
2
+ require 'navgate/application_controller'
3
+ require 'navgate/application_helper'
2
4
  class Navgate
3
5
  class Builder < Base
4
6
 
5
7
  def render_it_with(options)
6
8
  options_to_render = ""
7
- options[:class] = self.css_class if self.css_class
9
+ options[:class] = "'#{self.css_class}'" if self.css_class
8
10
  if options
9
11
  options.each do |key,value|
12
+ ap value
10
13
  options_to_render += ("#{key}=#{value}" + " ") unless ignoring key
14
+ ap options_to_render
11
15
  end
12
16
  end
13
17
  style = styling(options)
File without changes
data/navGATE.gemspec CHANGED
@@ -2,19 +2,19 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "navGATE"
5
- s.version = "0.1.07"
5
+ s.version = "0.1.08"
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 = "2013-10-15"
10
- s.description = "Allows the easy creation of menus with config files"
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"]
13
- s.files = ["Manifest", "Rakefile", "app/controller/application_controller.rb", "app/helpers/application_helper.rb", "config/build_menu.yml", "config/initializers/build_menu.rb", "init.rb", "lib/navgate.rb", "lib/navgate/base.rb", "navGATE.gemspec", "readme.rdoc"]
12
+ s.extra_rdoc_files = ["lib/navgate.rb", "lib/navgate/application_controller.rb", "lib/navgate/base.rb", "lib/readme.rdoc"]
13
+ s.files = ["Manifest", "Rakefile", "config/build_menu.yml", "config/initializers/build_menu.rb", "init.rb", "lib/navgate.rb", "lib/navgate/application_controller.rb", "lib/navgate/base.rb", "lib/readme.rdoc", "navGATE.gemspec"]
14
14
  s.homepage = "https://github.com/Thermatix/navGATE"
15
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "navGATE", "--main", "readme.rdoc"]
15
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "navGATE"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = "navgate"
18
18
  s.rubygems_version = "2.0.6"
19
- s.summary = "Allows the easy creation of menus with config files"
19
+ s.summary = "Allows the easy creation of navigation with config files"
20
20
  end
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.07
4
+ version: 0.1.08
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Becker
@@ -10,25 +10,27 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2013-10-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Allows the easy creation of menus with config files
13
+ description: Can create navigation from objects using the nav builder,from database
14
+ tables or from a yaml file
14
15
  email: mbeckerwork@gmail.com
15
16
  executables: []
16
17
  extensions: []
17
18
  extra_rdoc_files:
18
19
  - lib/navgate.rb
20
+ - lib/navgate/application_controller.rb
19
21
  - lib/navgate/base.rb
22
+ - lib/readme.rdoc
20
23
  files:
21
24
  - Manifest
22
25
  - Rakefile
23
- - app/controller/application_controller.rb
24
- - app/helpers/application_helper.rb
25
26
  - config/build_menu.yml
26
27
  - config/initializers/build_menu.rb
27
28
  - init.rb
28
29
  - lib/navgate.rb
30
+ - lib/navgate/application_controller.rb
29
31
  - lib/navgate/base.rb
32
+ - lib/readme.rdoc
30
33
  - navGATE.gemspec
31
- - readme.rdoc
32
34
  homepage: https://github.com/Thermatix/navGATE
33
35
  licenses: []
34
36
  metadata: {}
@@ -38,8 +40,6 @@ rdoc_options:
38
40
  - --inline-source
39
41
  - --title
40
42
  - navGATE
41
- - --main
42
- - readme.rdoc
43
43
  require_paths:
44
44
  - lib
45
45
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -57,5 +57,5 @@ rubyforge_project: navgate
57
57
  rubygems_version: 2.0.6
58
58
  signing_key:
59
59
  specification_version: 4
60
- summary: Allows the easy creation of menus with config files
60
+ summary: Allows the easy creation of navigation with config files
61
61
  test_files: []
@@ -1,5 +0,0 @@
1
- module ApplicationHelper
2
- def render_navigation options = nil
3
- @navgate.render_nav(params, options)
4
- end
5
- end