cgi-spa 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -1,5 +0,0 @@
1
- Manifest
2
- README
3
- Rakefile
4
- lib/cgi-spa.rb
5
- lib/version.rb
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.1.1"
5
+ s.version = "0.2.0"
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-11-27}
9
+ s.date = %q{2009-12-03}
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.rb CHANGED
@@ -9,9 +9,12 @@ $cgi = CGI.new
9
9
  $param = $cgi.params
10
10
  $x = Builder::XmlMarkup.new :indent => 2
11
11
 
12
+ # get arguments if CGI couldn't find any...
13
+ $param.merge!(CGI.parse(ARGV.join('&'))) if $param.empty?
14
+
12
15
  # fast path for accessing CGI parameters
13
16
  def $param.method_missing(name)
14
- self[name.to_s].join
17
+ self[name.to_s].join if has_key? name.to_s
15
18
  end
16
19
 
17
20
  # environment objects
data/lib/version.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  module CgiSpa
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 1
5
- TINY = 1
4
+ MINOR = 2
5
+ TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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.1.1
4
+ version: 0.2.0
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-11-27 00:00:00 -05:00
12
+ date: 2009-12-03 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency