Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Footer param to footer/nav url

  • Loading branch information...
commit f09683c96cd631eaf5a12cded1da1049d68c7150 1 parent 74c3b83
luis manotas authored
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
2  Rakefile
@@ -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
6 lib/rhomobile/nav.rb
@@ -40,7 +40,7 @@ def insert!
end
def footer
- open("#{@nav_host}/footer/nav").read
+ open("#{@nav_host}/footer/nav?footer=#{@options[:footer]}").read
end
def header
@@ -48,9 +48,9 @@ def header
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
2  rhomobile-nav.gemspec
@@ -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"]
Please sign in to comment.
Something went wrong with that request. Please try again.