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 +1 -1
- data/lib/appengine-rack/java.rb +5 -3
- data/lib/appengine-rack.rb +2 -1
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/appengine-rack/java.rb
CHANGED
@@ -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
|
-
|
54
|
-
|
55
|
-
|
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)
|
data/lib/appengine-rack.rb
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
begin
|
19
19
|
require 'appengine-apis/urlfetch'
|
20
|
-
rescue
|
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.
|
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-
|
12
|
+
date: 2009-08-13 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|