webs 0.1.38 → 0.1.39

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.
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
3
3
  require 'rake'
4
4
  require 'echoe'
5
5
 
6
- Echoe.new('webs', '0.1.38') do |p|
6
+ Echoe.new('webs', '0.1.39') do |p|
7
7
  p.description = "Reusable webs stuff."
8
8
  p.url = "https://colczak@github.com/websdev/websgem.git"
9
9
  p.author = "Chuck Olczak"
@@ -97,7 +97,15 @@ module Webs
97
97
  end
98
98
 
99
99
  def set_webs_permapath pp=nil
100
- @permapath = pp || request.env["REQUEST_PATH"] || "/"
100
+ @permapath = pp
101
+ if @permapath.nil?
102
+ @permapath = request.path
103
+ if !@permapath.blank? && defined?(Webs::PLATFORM_CONTEXT_PATH) && @permapath.index( Webs::PLATFORM_CONTEXT_PATH )==0
104
+ @permapath = @permapath[(Webs::PLATFORM_CONTEXT_PATH.length)..@permapath.length-1]
105
+ end
106
+ end
107
+ @permapath ||= "/"
108
+ @permapath
101
109
  end
102
110
 
103
111
  def validate_webs_session
data/lib/webs.rb CHANGED
@@ -7,7 +7,7 @@ require dir + 'helper/params'
7
7
  require dir + 'helper/tags'
8
8
 
9
9
  module Webs
10
- VERSION = '0.1.38'.freeze
10
+ VERSION = '0.1.39'.freeze
11
11
 
12
12
  def self.app_title
13
13
  APP_NAME.titleize
data/webs.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{webs}
5
- s.version = "0.1.38"
5
+ s.version = "0.1.39"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Chuck Olczak"]
9
- s.date = %q{2011-06-02}
9
+ s.date = %q{2011-06-03}
10
10
  s.description = %q{Reusable webs stuff.}
11
11
  s.email = %q{chuck@webs.com}
12
12
  gemfiles = [
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: webs
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.38
5
+ version: 0.1.39
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chuck Olczak
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-02 00:00:00 -04:00
13
+ date: 2011-06-03 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies: []
16
16