<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,62 +1,62 @@
-AgileMantisNavigation
-=====================
-
-Site navigation via Controller Class Methods and one helper tag.  No config files or hassling with mulitple links sprinkled across many views.
-Sample controllers and CSS file included.
-
-Features:
-1 - Sort order, explicit or default of alphabetic.
-2 - Security to determine (at time of render, not during app load), if a link should be rendered or not.
-3 - Support for different css when user is &quot;on&quot; one of the page links (e.g. to remove underline, bold, change tab background, change hover, etc.)
-4 - Visual seperators, or not, your choice (html or text)
-5 - Support of 'link_to' helper, with both 'options' and 'html_options'
-6 - Simple link definitions, if desired, or complex definitions.
-7 - Auto discovery of links via Controller Class Methods upon initializaiton, no config files.
-8 - Links defined in the controllers, a logical place to manage actions and their links.
-9 - Support for Namespace Controllers
-
-Examples
-========
-
-# Example: A simple link to the Gallery controler, index view:
-def self.agile_mantis_navigation_primary
-    { :name =&gt; 'Our Gallery' }
-end
-
-# Produces:
-&lt;div class=&quot;agile_mantis_navigation&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;/gallery&quot;&gt;Our Gallery&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
-
-# If the Browser is 'on' the view, the link looks like:
-&lt;a href=&quot;/gallery&quot; class=&quot;on&quot;&gt;Our Gallery&lt;/a&gt;
-
-# Example: Multiple links, via an Array.  Explicit sort order and view definition:
-def self.agile_mantis_navigation_primary
-    links = Array.new
-    links &lt;&lt; { :name =&gt; 'About Us', :sort_order =&gt; 1, :link_to_options =&gt; { :action =&gt;  'about' } } 
-    links &lt;&lt; { :name =&gt; 'Terms &amp; Conditions', :sort_order =&gt; 99999, :link_to_options =&gt; { :action =&gt;  'terms' } } 
-end
-
-# Security example:
-def self.link_allowed_method
-  true # Or custom logic
-end
-
-def self.agile_mantis_navigation_primary
-  { :name =&gt; 'Admin Page', :permission =&gt; :link_allowed_method } 
-end
-
-
-
-Installation
-============
-1) Drop plugin in plugins folder
-2) Add helper tag to layout:
-   - No separator: &lt;%= agile_mantis_navigation_links %&gt;
-   - Separator: &lt;%= agile_mantis_navigation_links(&quot; | &quot;) %&gt;  Replace pipe with text or html
-3) Add CSS tags for a custom look/feel (see sample_app\public\stylesheets\agile_mantis_navigation.css for examples and tag names)
-4) To override default sort order and use the :sort_order option, add the following to environment.rb
-   AGILE_MANTIS_NAVIGATION_PRIMARY_SORT_ORDER = :use_sort_order_symbol  
-5) Add links to controller methods self.agile_mantis_navigation_primary
-
-
-Copyright (c) 2009 [Ledsworth Consluting LLC], released under the MIT license
+AgileMantisNavigation
+=====================
+
+Site navigation via Controller Class Methods and one helper tag.  No config files or hassling with mulitple links sprinkled across many views.
+Sample controllers and CSS file included.
+
+Features:
+1 - Sort order, explicit or default of alphabetic.
+2 - Security to determine (at time of render, not during app load), if a link should be rendered or not.
+3 - Support for different css when user is &quot;on&quot; one of the page links (e.g. to remove underline, bold, change tab background, change hover, etc.)
+4 - Visual seperators, or not, your choice (html or text)
+5 - Support of 'link_to' helper, with both 'options' and 'html_options'
+6 - Simple link definitions, if desired, or complex definitions.
+7 - Auto discovery of links via Controller Class Methods upon initializaiton, no config files.
+8 - Links defined in the controllers, a logical place to manage actions and their links.
+9 - Support for Namespace Controllers
+
+Examples
+========
+
+# Example: A simple link to the Gallery controler, index view:
+def self.agile_mantis_navigation_primary
+    { :name =&gt; 'Our Gallery' }
+end
+
+# Produces:
+&lt;div class=&quot;agile_mantis_navigation&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;/gallery&quot;&gt;Our Gallery&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
+
+# If the Browser is 'on' the view, the link looks like:
+&lt;a href=&quot;/gallery&quot; class=&quot;on&quot;&gt;Our Gallery&lt;/a&gt;
+
+# Example: Multiple links, via an Array.  Explicit sort order and view definition:
+def self.agile_mantis_navigation_primary
+    links = Array.new
+    links &lt;&lt; { :name =&gt; 'About Us', :sort_order =&gt; 1, :link_to_options =&gt; { :action =&gt;  'about' } } 
+    links &lt;&lt; { :name =&gt; 'Terms &amp; Conditions', :sort_order =&gt; 99999, :link_to_options =&gt; { :action =&gt;  'terms' } } 
+end
+
+# Security example:
+def self.link_allowed_method
+  true # Or custom logic
+end
+
+def self.agile_mantis_navigation_primary
+  { :name =&gt; 'Admin Page', :permission =&gt; :link_allowed_method } 
+end
+
+
+
+Installation
+============
+1) Drop plugin in plugins folder
+2) Add helper tag to layout:
+   - No separator: &lt;%= agile_mantis_navigation_links %&gt;
+   - Separator: &lt;%= agile_mantis_navigation_links(&quot; | &quot;) %&gt;  Replace pipe with text or html
+3) Add CSS tags for a custom look/feel (see sample_app\public\stylesheets\agile_mantis_navigation.css for examples and tag names)
+4) To override default sort order and use the :sort_order option, add the following to environment.rb
+   AGILE_MANTIS_NAVIGATION_PRIMARY_SORT_ORDER = :use_sort_order_symbol  
+5) Add links to controller methods self.agile_mantis_navigation_primary
+
+
+Copyright (c) 2009 [Ledsworth Consluting LLC], released under the MIT license</diff>
      <filename>plugins/agile_mantis_navigation/README</filename>
    </modified>
    <modified>
      <diff>@@ -1,60 +1,60 @@
-require 'application.rb'
-class AgileMantisNavigation
-
-	attr_accessor :primary_sort_order
-
-	def initialize(rails_root,sort_order=nil)
-		if sort_order
-			self.primary_sort_order = sort_order
-		else
-			self.primary_sort_order = :name
-		end
-		@primary_links = []
-		Dir[&quot;#{RAILS_ROOT}/app/controllers/**/*_controller.rb&quot;].entries.each do |controller|
-			capture_links(controller.gsub(&quot;.rb&quot;,&quot;&quot;).gsub(&quot;#{RAILS_ROOT}/app/controllers/&quot;,&quot;&quot;).camelize)
-		end
-		sort_primary
-	end
-	
-	def capture_links(controller)
-		(eval(&quot;#{controller}.methods&quot;)).sort.each do |method| 
-			if method == &quot;agile_mantis_navigation_primary&quot;
-				am_links = eval(&quot;#{controller}.agile_mantis_navigation_primary&quot;)
-				if am_links
-					add_primary(controller,am_links)
-				end
-			end
-		end
-	end
-	
-	def add_primary(controller,am_links)
-		am_links = [am_links] unless am_links.kind_of?(Array)
-		am_links.each do |am_link|
-			controller_path = &quot;/&quot; + eval(&quot;#{controller}.controller_path&quot;)	# namespace controllers require leading / for link_to to work
-			if am_link[:link_to_options]
-				am_link[:link_to_options]=am_link[:link_to_options].merge({ :controller =&gt; controller_path })
-			else
-				am_link=am_link.merge({:link_to_options=&gt;{ :controller =&gt; controller_path }})
-			end
-			# Ensure :sort_order exists if primary sort order symbol is the sort order, so sort_primary doesn't error
-			if primary_sort_order == :use_sort_order_symbol &amp;&amp; !am_link[:sort_order]
-				am_link=am_link.merge({ :sort_order =&gt; 1 })
-			end
-			am_link[:controller] = controller
-			@primary_links &lt;&lt; am_link
-		end
-	end
-
-	def sort_primary
-		if primary_sort_order == :use_sort_order_symbol 
-			@primary_links = @primary_links.sort_by { |am_link| am_link[:sort_order] }
-			return
-		end	
-		@primary_links = @primary_links.sort_by { |am_link| am_link[:name] }
-	end
-	
-	def primary
-		@primary_links
-	end
-	
+require 'application.rb'
+class AgileMantisNavigation
+
+	attr_accessor :primary_sort_order
+
+	def initialize(rails_root,sort_order=nil)
+		if sort_order
+			self.primary_sort_order = sort_order
+		else
+			self.primary_sort_order = :name
+		end
+		@primary_links = []
+		Dir[&quot;#{RAILS_ROOT}/app/controllers/**/*_controller.rb&quot;].entries.each do |controller|
+			capture_links(controller.gsub(&quot;.rb&quot;,&quot;&quot;).gsub(&quot;#{RAILS_ROOT}/app/controllers/&quot;,&quot;&quot;).camelize)
+		end
+		sort_primary
+	end
+	
+	def capture_links(controller)
+		(eval(&quot;#{controller}.methods&quot;)).sort.each do |method| 
+			if method == &quot;agile_mantis_navigation_primary&quot;
+				am_links = eval(&quot;#{controller}.agile_mantis_navigation_primary&quot;)
+				if am_links
+					add_primary(controller,am_links)
+				end
+			end
+		end
+	end
+	
+	def add_primary(controller,am_links)
+		am_links = [am_links] unless am_links.kind_of?(Array)
+		am_links.each do |am_link|
+			controller_path = &quot;/&quot; + eval(&quot;#{controller}.controller_path&quot;)	# namespace controllers require leading / for link_to to work
+			if am_link[:link_to_options]
+				am_link[:link_to_options]=am_link[:link_to_options].merge({ :controller =&gt; controller_path })
+			else
+				am_link=am_link.merge({:link_to_options=&gt;{ :controller =&gt; controller_path }})
+			end
+			# Ensure :sort_order exists if primary sort order symbol is the sort order, so sort_primary doesn't error
+			if primary_sort_order == :use_sort_order_symbol &amp;&amp; !am_link[:sort_order]
+				am_link=am_link.merge({ :sort_order =&gt; 1 })
+			end
+			am_link[:controller] = controller
+			@primary_links &lt;&lt; am_link
+		end
+	end
+
+	def sort_primary
+		if primary_sort_order == :use_sort_order_symbol 
+			@primary_links = @primary_links.sort_by { |am_link| am_link[:sort_order] }
+			return
+		end	
+		@primary_links = @primary_links.sort_by { |am_link| am_link[:name] }
+	end
+	
+	def primary
+		@primary_links
+	end
+	
 end
\ No newline at end of file</diff>
      <filename>plugins/agile_mantis_navigation/lib/agile_mantis_navigation.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,19 +1,19 @@
-/* Agile Mantis Navigation */
-DIV.agile_mantis_navigation ul{
-  margin: 0;
-  padding: 0; 	
-}
-DIV.agile_mantis_navigation li {
-  list-style-type: none;
-  float: left;
-  text-align: center;
-  padding-right: 8px;
-}
-DIV.agile_mantis_navigation a {
-  color: #555555;
-  text-decoration: underline;
-}
-DIV.agile_mantis_navigation a.on {
-  color: #ff0000;
-  text-decoration: none;
+/* Agile Mantis Navigation */
+DIV.agile_mantis_navigation ul{
+  margin: 0;
+  padding: 0; 	
+}
+DIV.agile_mantis_navigation li {
+  list-style-type: none;
+  float: left;
+  text-align: center;
+  padding-right: 8px;
+}
+DIV.agile_mantis_navigation a {
+  color: #555555;
+  text-decoration: underline;
+}
+DIV.agile_mantis_navigation a.on {
+  color: #ff0000;
+  text-decoration: none;
 }
\ No newline at end of file</diff>
      <filename>plugins/agile_mantis_navigation/sample_app/public/stylesheets/agile_mantis_navigation.css</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-Only the files used for testing and demonstration are included here.  This is not a full rails app.
-
-Do not just copy this over an existing app, use for examples, demonostration, or for placing in a fresh
+Only the files used for testing and demonstration are included here.  This is not a full rails app.
+
+Do not just copy this over an existing app, use for examples, demonostration, or for placing in a fresh
 Rails app so plugin tests can be run if changes are being made.
\ No newline at end of file</diff>
      <filename>plugins/agile_mantis_navigation/sample_app/readme.txt</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
-Artist Index, with :action =&gt;  'index' in :link_to_options
-
+Artist Index, with :action =&gt;  'index' in :link_to_options
+
 &lt;a href=&quot;/artist/index&quot;&gt;Artist, w/index in URI&lt;/a&gt;
\ No newline at end of file</diff>
      <filename>plugins/agile_mantis_navigation/sample_app/views/artist/index.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,15 +1,15 @@
-&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
-&lt;html&gt;
-  &lt;head&gt;
-    &lt;title&gt;Agile Mantis Navigation - Sample Application&lt;/title&gt;
-      &lt;%= stylesheet_link_tag 'agile_mantis_navigation', :media =&gt; &quot;all&quot; %&gt;
-      &lt;%= javascript_include_tag :defaults %&gt;
-&lt;/head&gt;
-  &lt;body&gt;
-    &lt;%= agile_mantis_navigation_links(&quot; | &quot;) %&gt;
-		&amp;nbsp;&lt;p /&gt;
-		&lt;div&gt;
-			&lt;%= yield %&gt;
-		&lt;/div&gt;
-  &lt;/body&gt;
+&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;Agile Mantis Navigation - Sample Application&lt;/title&gt;
+      &lt;%= stylesheet_link_tag 'agile_mantis_navigation', :media =&gt; &quot;all&quot; %&gt;
+      &lt;%= javascript_include_tag :defaults %&gt;
+&lt;/head&gt;
+  &lt;body&gt;
+    &lt;%= agile_mantis_navigation_links(&quot; | &quot;) %&gt;
+		&amp;nbsp;&lt;p /&gt;
+		&lt;div&gt;
+			&lt;%= yield %&gt;
+		&lt;/div&gt;
+  &lt;/body&gt;
 &lt;/html&gt;
\ No newline at end of file</diff>
      <filename>plugins/agile_mantis_navigation/sample_app/views/layouts/application.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -8,9 +8,6 @@ require File.dirname(__FILE__) + '/../../../../config/environment.rb'
 
 class AgileMantisNavigationTest &lt; Test::Unit::TestCase
 
-  def setup
-  end
-	
 	def test_with_no_sort_order_specified
     @agm = AgileMantisNavigation.new(RAILS_ROOT,nil)
 		assert_nil primary_sort_order_in_environment, &quot;This test should not have AGILE_MANTIS_NAVIGATION_PRIMARY_SORT_ORDER set in environment.rg&quot;</diff>
      <filename>plugins/agile_mantis_navigation/test/agile_mantis_navigation_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>242b9191f4fecb4c4a816e1126a03521ff34310f</id>
    </parent>
  </parents>
  <author>
    <name>Brian Ledsworth</name>
    <email>brian@ledsworth.com</email>
  </author>
  <url>http://github.com/AgileMantis/agile-mantis-navigation/commit/ad63e77e390bc77c419fd53923ac1e70ca0428cc</url>
  <id>ad63e77e390bc77c419fd53923ac1e70ca0428cc</id>
  <committed-date>2009-03-18T19:22:18-07:00</committed-date>
  <authored-date>2009-03-18T19:22:18-07:00</authored-date>
  <message>Removed empty setup method from test</message>
  <tree>6e6cbad4bc7065f0ce5f21bba0f049e3a7740fe3</tree>
  <committer>
    <name>Brian Ledsworth</name>
    <email>brian@ledsworth.com</email>
  </committer>
</commit>
