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 +4 -4
- data/Rakefile +1 -1
- data/lib/navgate.rb +2 -2
- data/navGATE.gemspec +1 -1
- data/readme.rdoc +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28428352c5f3ed8494bb269e3bc3e44b84409d22
|
|
4
|
+
data.tar.gz: a71da375f34631dbdd57478e59bb727f7edb4b14
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: adafd69d65e4341a42cfc4f4d27a2f88b3d96e6610bf2a8d8270ca82d020d04c6a92e095a5451a240c268d9ac75dd6d3008e87ea0246704408a656320c758266
|
|
7
|
+
data.tar.gz: 32d1b463adb1275ddc325645733819ecef754f910712366d6c4a18c945e8cfcd2c2c6eafe594ca51febaf8d2dcef6f005b5b48ee3ea08b38515f841860a872b0
|
data/Rakefile
CHANGED
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)
|
|
70
|
+
[:styling,:wrap].include?(k)
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
end
|
data/navGATE.gemspec
CHANGED
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({
|
|
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.
|