appengine-tools 0.0.3 → 0.0.4
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 +1 -1
- data/lib/appengine-tools/bundler.rb +8 -9
- data/lib/appengine-tools/dev_appserver.rb +2 -1
- metadata +2 -2
data/Rakefile
CHANGED
@@ -68,10 +68,6 @@ module AppEngine
|
|
68
68
|
path(AppEngine::Rack.app.public_root) if AppEngine::Rack.app.public_root
|
69
69
|
end
|
70
70
|
|
71
|
-
def persistent_path_token
|
72
|
-
path(public_root, '__preserve__')
|
73
|
-
end
|
74
|
-
|
75
71
|
def rack_app
|
76
72
|
AppEngine::Rack.app
|
77
73
|
end
|
@@ -117,8 +113,6 @@ module AppEngine
|
|
117
113
|
def create_public
|
118
114
|
return if app.public_root.nil?
|
119
115
|
Dir.mkdir(app.public_root) unless File.exists?(app.public_root)
|
120
|
-
token = app.persistent_path_token
|
121
|
-
FileUtils.touch(token) unless File.exists?(token)
|
122
116
|
end
|
123
117
|
|
124
118
|
def convert_config_ru
|
@@ -150,10 +144,15 @@ module AppEngine
|
|
150
144
|
def copy_rack
|
151
145
|
update_jars('jruby-rack', EXISTING_RACK, [JRUBY_RACK]) do
|
152
146
|
require 'open-uri'
|
153
|
-
|
154
|
-
open(
|
155
|
-
|
147
|
+
begin
|
148
|
+
open(JRUBY_RACK_URL) do |src|
|
149
|
+
open(File.join(app.webinf_lib, JRUBY_RACK), 'wb') do |dest|
|
150
|
+
dest.write(src.read)
|
151
|
+
end
|
156
152
|
end
|
153
|
+
rescue SocketError
|
154
|
+
puts "Unable to download jruby-rack."
|
155
|
+
puts "Please check your internet connection."
|
157
156
|
end
|
158
157
|
end
|
159
158
|
end
|
@@ -38,7 +38,7 @@ module AppEngine
|
|
38
38
|
|
39
39
|
def parse_argv(argv)
|
40
40
|
java_args = []
|
41
|
-
server_args = [
|
41
|
+
server_args = []
|
42
42
|
start_on_first_thread = false
|
43
43
|
if RUBY_PLATFORM =~ /darwin/ ||
|
44
44
|
(RUBY_PLATFORM == 'java' &&
|
@@ -67,6 +67,7 @@ module AppEngine
|
|
67
67
|
server_args[-1] = File.expand_path(path)
|
68
68
|
Dir.chdir(path)
|
69
69
|
end
|
70
|
+
server_args.unshift '--disable_update_check'
|
70
71
|
ENV.delete 'GEM_HOME'
|
71
72
|
ENV.delete 'GEM_PATH'
|
72
73
|
java_args << '-classpath'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appengine-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
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-09-
|
12
|
+
date: 2009-09-15 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|