appengine-apis 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,5 +19,5 @@ $:.unshift(File.dirname(__FILE__)) unless
19
19
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
20
20
 
21
21
  module AppEngine
22
- VERSION = '0.0.14'
22
+ VERSION = '0.0.15'
23
23
  end
@@ -55,8 +55,6 @@ module AppEngine
55
55
  testing::LocalUserServiceTestConfig.new,
56
56
  testing::LocalXMPPServiceTestConfig.new,
57
57
  ].to_java(testing::LocalServiceTestConfig)
58
- # Pass a nil config to escape LocalServiceTestConfig
59
- configs = nil if ENV['SKIP_LOCAL_SERVICE_APIS')
60
58
  testing::LocalServiceTestHelper.new(configs)
61
59
  rescue => ex
62
60
  if failed
@@ -117,6 +115,7 @@ module AppEngine
117
115
  end
118
116
  self.persistent_datastore = true
119
117
  setup
118
+ at_exit {java.lang.System.exit(0)}
120
119
  end
121
120
  end
122
121
 
@@ -139,6 +139,12 @@ module AppEngine
139
139
  else
140
140
  :each
141
141
  end
142
+
143
+ if payload
144
+ if headers["Content-Length"].to_i != payload.size
145
+ headers["Content-Length"] = payload.size
146
+ end
147
+ end
142
148
 
143
149
  headers.send(iterator) do |name, value|
144
150
  request.set_header(HTTPHeader.new(name, value))
@@ -194,7 +200,7 @@ module Net # :nodoc:
194
200
  proto = use_ssl? ? 'https' : 'http'
195
201
  url = "#{proto}://#{addr_port}#{req.path}"
196
202
  options = {
197
- :payload => body,
203
+ :payload => body || req.body,
198
204
  :follow_redirects => false,
199
205
  :allow_truncated => true,
200
206
  :method => req.method,
@@ -237,4 +243,4 @@ module Net # :nodoc:
237
243
  @urlfetch_body = body || ''
238
244
  end
239
245
  end
240
- end
246
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 14
9
- version: 0.0.14
8
+ - 15
9
+ version: 0.0.15
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ryan Brown
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-12 00:00:00 -07:00
17
+ date: 2010-04-29 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency