Permalink
Browse files

Footer param to footer/nav url

  • Loading branch information...
1 parent 74c3b83 commit f09683c96cd631eaf5a12cded1da1049d68c7150 luis manotas committed Feb 10, 2011
Showing with 5 additions and 5 deletions.
  1. +1 −1 Rakefile
  2. +3 −3 lib/rhomobile/nav.rb
  3. +1 −1 rhomobile-nav.gemspec
View
@@ -18,7 +18,7 @@ begin
gemspec.add_development_dependency(%q<rspec>, [">= 2.0.0"])
gemspec.add_development_dependency(%q<sinatra>, [">= 0"])
gemspec.add_development_dependency(%q<rack-test>, [">= 0"])
- gemspec.version = '0.0.34' #rake build in folder to upgrade .gemspec file
+ gemspec.version = '0.0.35' #rake build in folder to upgrade .gemspec file
end
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
View
@@ -40,17 +40,17 @@ def insert!
end
def footer
- open("#{@nav_host}/footer/nav").read
+ open("#{@nav_host}/footer/nav?footer=#{@options[:footer]}").read
end
def header
cookies = Rack::Request.new(@env).cookies
user = cookies["rho_user"]
url = "#{@nav_host}/nav"
if user
- open("#{url}/#{user}?blog=#{@options[:blog]}&subscribe=#{@options[:subscribe]}&support=#{@options[:support]}&footer=#{@options[:footer]}").read
+ open("#{url}/#{user}?blog=#{@options[:blog]}&subscribe=#{@options[:subscribe]}&support=#{@options[:support]}").read
else
- open(url+"?blog=#{@options[:blog]}&subscribe=#{@options[:subscribe]}&support=#{@options[:support]}&footer=#{@options[:footer]}").read
+ open(url+"?blog=#{@options[:blog]}&subscribe=#{@options[:subscribe]}&support=#{@options[:support]}").read
end
end
View
@@ -5,7 +5,7 @@
Gem::Specification.new do |s|
s.name = %q{rhomobile-nav}
- s.version = "0.0.34"
+ s.version = "0.0.35"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["David Dollar", "Pedro Belo", "Todd Matthews"]

0 comments on commit f09683c

Please sign in to comment.