appengine-rack 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ EOF
10
10
 
11
11
  spec = Gem::Specification.new do |s|
12
12
  s.name = "appengine-rack"
13
- s.version = "0.0.1"
13
+ s.version = "0.0.2"
14
14
  s.author = "Ryan Brown"
15
15
  s.email = "ribrdb@google.com"
16
16
  s.homepage = "http://code.google.com/p/appengine-jruby"
@@ -50,9 +50,11 @@ class JavaServletFilter
50
50
  filter = doc.add_element('filter')
51
51
  filter.add_element('filter-name').add_text(name.to_s)
52
52
  filter.add_element('filter-class').add_text(klass.to_s)
53
- map = doc.add_element('filter-mapping')
54
- map.add_element('filter-name').add_text(name.to_s)
55
- map.add_element('url-pattern').add_text(pattern.to_s)
53
+ unless pattern == '/' && options[:wildcard]
54
+ map = doc.add_element('filter-mapping')
55
+ map.add_element('filter-name').add_text(name.to_s)
56
+ map.add_element('url-pattern').add_text(pattern.to_s)
57
+ end
56
58
  if options[:wildcard]
57
59
  wildcard = doc.add_element('filter-mapping')
58
60
  wildcard.add_element('filter-name').add_text(name.to_s)
@@ -17,7 +17,7 @@
17
17
 
18
18
  begin
19
19
  require 'appengine-apis/urlfetch'
20
- rescue LoadError
20
+ rescue Exception
21
21
  end
22
22
 
23
23
  module AppEngine
@@ -136,6 +136,7 @@ module AppEngine
136
136
  def self.append_xml(doc, pattern)
137
137
  security = doc.add_element('security-constraint')
138
138
  collection = security.add_element('web-resource-collection')
139
+ collection.add_element('url-pattern').add_text(pattern)
139
140
  collection.add_element('url-pattern').add_text(
140
141
  AppEngine::Rack.make_wildcard(pattern))
141
142
  yield security
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appengine-rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Brown
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-27 00:00:00 -07:00
12
+ date: 2009-08-13 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency