gorp 0.16.3 → 0.16.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/gorp.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{gorp}
5
- s.version = "0.16.3"
5
+ s.version = "0.16.4"
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-26}
9
+ s.date = %q{2009-12-27}
10
10
  s.description = %q{ Enables the creation of scenarios that involve creating a rails project,
11
11
  starting and stoppping of servers, generating projects, editing files,
12
12
  issuing http requests, running of commands, etc. Output is captured as
data/lib/gorp/rails.rb CHANGED
@@ -89,13 +89,15 @@ def restart_server
89
89
  end
90
90
  else
91
91
  #
92
- # For unknown reason, the below produces:
92
+ # For unknown reason, when run as CGI, the below produces:
93
93
  # undefined method `chomp' for nil:NilClass (NoMethodError)
94
94
  # from rails/actionpack/lib/action_dispatch/middleware/static.rb:13
95
95
  # path = env['PATH_INFO'].chomp('/')
96
96
  #
97
- # STDOUT.reopen '/dev/null', 'a'
98
- # exec "#{$ruby} script/server --port #{$PORT}"
97
+ unless ENV['GATEWAY_INTERFACE'].to_s =~ /CGI/
98
+ STDOUT.reopen '/dev/null', 'a'
99
+ exec "#{$ruby} script/server --port #{$PORT}"
100
+ end
99
101
 
100
102
  # alternatives to the above, with backtrace
101
103
  begin
data/lib/version.rb CHANGED
@@ -2,7 +2,7 @@ module Gorp
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 16
5
- TINY = 3
5
+ TINY = 4
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: gorp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.3
4
+ version: 0.16.4
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-26 00:00:00 -05:00
12
+ date: 2009-12-27 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency