cgi-spa 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/cgi-spa.gemspec CHANGED
@@ -2,18 +2,18 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{cgi-spa}
5
- s.version = "0.2.0"
5
+ s.version = "0.2.1"
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-03}
9
+ s.date = %q{2009-12-18}
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.
13
13
  }
14
14
  s.email = %q{rubys@intertwingly.net}
15
15
  s.extra_rdoc_files = ["README", "lib/cgi-spa.rb", "lib/version.rb"]
16
- s.files = ["Manifest", "README", "Rakefile", "lib/cgi-spa.rb", "lib/version.rb", "cgi-spa.gemspec"]
16
+ s.files = ["Manifest", "README", "Rakefile", "cgi-spa.gemspec", "lib/cgi-spa.rb", "lib/version.rb"]
17
17
  s.homepage = %q{http://github.com/rubys/cgi-spa}
18
18
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Cgi-spa", "--main", "README"]
19
19
  s.require_paths = ["lib"]
data/lib/cgi-spa.rb CHANGED
@@ -17,6 +17,12 @@ def $param.method_missing(name)
17
17
  self[name.to_s].join if has_key? name.to_s
18
18
  end
19
19
 
20
+ # quick access to request_uri
21
+ SELF = ENV['REQUEST_URI'].to_s
22
+ def SELF?
23
+ SELF + "?" # avoids spoiling the cache
24
+ end
25
+
20
26
  # environment objects
21
27
  $USER = ENV['USER'] ||
22
28
  if RUBY_PLATFORM =~ /darwin/
data/lib/version.rb CHANGED
@@ -2,7 +2,7 @@ module CgiSpa
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 0
5
+ TINY = 1
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.2.0
4
+ version: 0.2.1
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-03 00:00:00 -05:00
12
+ date: 2009-12-18 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -46,9 +46,9 @@ files:
46
46
  - Manifest
47
47
  - README
48
48
  - Rakefile
49
+ - cgi-spa.gemspec
49
50
  - lib/cgi-spa.rb
50
51
  - lib/version.rb
51
- - cgi-spa.gemspec
52
52
  has_rdoc: true
53
53
  homepage: http://github.com/rubys/cgi-spa
54
54
  licenses: []