rubys-gorp 0.1.3 → 0.1.5

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.
Files changed (4) hide show
  1. data/gorp.gemspec +2 -2
  2. data/lib/gorp.rb +6 -2
  3. data/lib/version.rb +1 -1
  4. metadata +2 -2
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{gorp}
5
- s.version = "0.1.3"
5
+ s.version = "0.1.5"
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-09-18}
9
+ s.date = %q{2009-09-25}
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
@@ -127,7 +127,7 @@ end
127
127
  def irb file
128
128
  $x.pre "irb #{file}", :class=>'stdin'
129
129
  log :irb, file
130
- cmd = "irb -f -rubygems -r config/boot --prompt-mode simple #{$CODE}/#{file}"
130
+ cmd = "irb -f -rubygems -r ./config/boot --prompt-mode simple #{$CODE}/#{file}"
131
131
  Open3.popen3(cmd) do |pin, pout, perr|
132
132
  terr = Thread.new do
133
133
  $x.pre perr.readline.chomp, :class=>'stderr' until perr.eof?
@@ -509,7 +509,11 @@ def restart_server
509
509
  # start server, redirecting stdout to a string
510
510
  $stdout = StringIO.open('','w')
511
511
  require './config/boot'
512
- require 'commands/server'
512
+ if Rails::VERSION::MAJOR == 2
513
+ require 'commands/server'
514
+ else
515
+ require 'rails/commands/server'
516
+ end
513
517
  end
514
518
  rescue
515
519
  STDERR.puts $!
@@ -2,7 +2,7 @@ module Gorp
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 3
5
+ TINY = 5
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: rubys-gorp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
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-09-18 00:00:00 -07:00
12
+ date: 2009-09-25 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency