navGATE 0.1.05 → 0.1.06

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dcc2b8715bfa1f336ece8a2344e68234f0ab3ee7
4
- data.tar.gz: cebb4230ad57164ea627a579e031b3541eb24f31
3
+ metadata.gz: 28428352c5f3ed8494bb269e3bc3e44b84409d22
4
+ data.tar.gz: a71da375f34631dbdd57478e59bb727f7edb4b14
5
5
  SHA512:
6
- metadata.gz: adfbeb9a65596f64a43dce156a1d86358e34f179f657f9e2cd40a9cb78c5ade4e99214d73b7cf1e9e769bda82262fecb07766fb9d6a26747048e89528e62fed7
7
- data.tar.gz: d1a56d700e0e95d2f08b1735d890dd5c9b73c3f7948dbf125d7ba8adc6b3364af91b2fabc3fb053ff98a76e31b506ca6e758da38977f854af07b2b5d6bb58cc1
6
+ metadata.gz: adafd69d65e4341a42cfc4f4d27a2f88b3d96e6610bf2a8d8270ca82d020d04c6a92e095a5451a240c268d9ac75dd6d3008e87ea0246704408a656320c758266
7
+ data.tar.gz: 32d1b463adb1275ddc325645733819ecef754f910712366d6c4a18c945e8cfcd2c2c6eafe594ca51febaf8d2dcef6f005b5b48ee3ea08b38515f841860a872b0
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake'
3
3
  require 'echoe'
4
4
 
5
5
 
6
- Echoe.new('navGATE','0.1.05') do |p|
6
+ Echoe.new('navGATE','0.1.06') do |p|
7
7
  p.description = "Allows the easy creation of menus with config files"
8
8
  p.url = "https://github.com/Thermatix/navGATE"
9
9
  p.author = "Martin Becker"
data/lib/navgate.rb CHANGED
@@ -4,9 +4,9 @@ class Navgate
4
4
 
5
5
  def render_it_with(options)
6
6
  options_to_render = ""
7
+ options[:class] = self.css_class if self.css_class
7
8
  if options
8
9
  options.each do |key,value|
9
- options_to_render += ("class='#{self.css_class}") if self.css_class
10
10
  options_to_render += ("#{key}=#{value}" + " ") unless ignoring key
11
11
  end
12
12
  end
@@ -67,7 +67,7 @@ class Navgate
67
67
  end
68
68
 
69
69
  def ignoring k
70
- [:styling,:wrap].include?(k) || ((k == "class") if self.css_class)
70
+ [:styling,:wrap].include?(k)
71
71
  end
72
72
 
73
73
  end
data/navGATE.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "navGATE"
5
- s.version = "0.1.05"
5
+ s.version = "0.1.06"
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"]
data/readme.rdoc CHANGED
@@ -97,7 +97,6 @@ Styling: This is how the navigation can be styled it can either be ':verticle' o
97
97
  Wrap: This allows you to wrap each link in a html tag, wrap can itself take two differant options, either a string containing the tag's name (without "<>", only the tag name) or an Array containing the tag name and it's class.
98
98
 
99
99
  example:
100
- render_navigation({"class" => "'nav button'",styling: :verticle, wrap: ['li','test']}) %>
100
+ render_navigation({:class => "'nav button'", styling: :verticle, wrap: ['li','test']}) %>
101
101
 
102
- note: class has to be in "" due to it being a keyword in ruby.
103
102
  note: There is no point in passing a class here if you have one set when you first build the menu, it will just be ignored.
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.05
4
+ version: 0.1.06
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Becker