cgi-spa 0.3.2 → 0.3.3
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/cgi-spa.gemspec +2 -2
- data/lib/cgi-spa/job-control.rb +5 -0
- data/lib/cgi-spa/version.rb +1 -1
- metadata +2 -2
data/cgi-spa.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{cgi-spa}
|
|
5
|
-
s.version = "0.3.
|
|
5
|
+
s.version = "0.3.3"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Sam Ruby"]
|
|
9
|
-
s.date = %q{2009-12-
|
|
9
|
+
s.date = %q{2009-12-27}
|
|
10
10
|
s.description = %q{ Provides a number of globals, helper methods, and monkey patches which
|
|
11
11
|
simplify the development of single page applications in the form of
|
|
12
12
|
CGI scripts.
|
data/lib/cgi-spa/job-control.rb
CHANGED
|
@@ -14,6 +14,11 @@ def submit(cmd=nil)
|
|
|
14
14
|
STDOUT.reopen '/dev/null', 'a'
|
|
15
15
|
STDERR.reopen STDOUT
|
|
16
16
|
|
|
17
|
+
# clear environment of cgi cruft
|
|
18
|
+
ENV.keys.to_a.each do |key|
|
|
19
|
+
ENV.delete(key) if key =~ /HTTP/ or $cgi.respond_to? key.downcase
|
|
20
|
+
end
|
|
21
|
+
|
|
17
22
|
# setup environment
|
|
18
23
|
ENV['USER'] ||= $USER
|
|
19
24
|
ENV['HOME'] ||= $HOME
|
data/lib/cgi-spa/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cgi-spa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sam Ruby
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-12-
|
|
12
|
+
date: 2009-12-27 00:00:00 -05:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|