webs 0.1.10 → 0.1.11

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.10') do |p|
6
+ Echoe.new('webs', '0.1.11') 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"
@@ -0,0 +1,18 @@
1
+ module ActionDispatch
2
+ module Routing
3
+ module UrlFor
4
+ alias_method :url_for_original, :url_for
5
+
6
+ def url_for(options = nil)
7
+ url = url_for_original(options)
8
+
9
+ # Will remove a context path from a relative url. The issue happens when an
10
+ # webs platform application has a non-root context path. By removing the context path from the
11
+ # url url_for and named paths will now work
12
+ url = url[(Webs::PLATFORM_CONTEXT_PATH.length)..url.length-1] if defined?(Webs::PLATFORM_CONTEXT_PATH) && url.index( Webs::PLATFORM_CONTEXT_PATH )==0
13
+
14
+ url
15
+ end
16
+ end
17
+ end
18
+ end
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.10".freeze
10
+ VERSION = "0.1.11".freeze
11
11
 
12
12
  # def self.load_constants
13
13
  # s = File.read("#{Pathname(__FILE__).dirname.expand_path}/config/webs_constants.yml")
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.10"
5
+ s.version = "0.1.11"
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{2010-11-04}
9
+ s.date = %q{2011-01-19}
10
10
  s.description = %q{Reusable webs stuff.}
11
11
  s.email = %q{chuck@webs.com}
12
12
  gemfiles = [
@@ -15,6 +15,7 @@ Gem::Specification.new do |s|
15
15
  "lib/cache/cache.rb",
16
16
  "lib/config/webs_constants.rb",
17
17
  "lib/config/webs_initializer.rb",
18
+ "lib/controller/url_for_context_path.rb",
18
19
  "lib/controller/webs_controller.rb",
19
20
  "lib/helper/application.rb",
20
21
  "lib/helper/params.rb",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 10
10
- version: 0.1.10
9
+ - 11
10
+ version: 0.1.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chuck Olczak
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-04 00:00:00 -04:00
18
+ date: 2011-01-19 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -31,6 +31,7 @@ extra_rdoc_files:
31
31
  - lib/cache/cache.rb
32
32
  - lib/config/webs_constants.rb
33
33
  - lib/config/webs_initializer.rb
34
+ - lib/controller/url_for_context_path.rb
34
35
  - lib/controller/webs_controller.rb
35
36
  - lib/helper/application.rb
36
37
  - lib/helper/params.rb
@@ -44,6 +45,7 @@ files:
44
45
  - lib/cache/cache.rb
45
46
  - lib/config/webs_constants.rb
46
47
  - lib/config/webs_initializer.rb
48
+ - lib/controller/url_for_context_path.rb
47
49
  - lib/controller/webs_controller.rb
48
50
  - lib/helper/application.rb
49
51
  - lib/helper/params.rb