gorp 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/gorp.gemspec +2 -2
- data/lib/gorp.rb +21 -2
- data/lib/version.rb +1 -1
- metadata +2 -2
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.10.
|
5
|
+
s.version = "0.10.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-
|
9
|
+
s.date = %q{2009-12-05}
|
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.rb
CHANGED
@@ -9,6 +9,7 @@ require 'net/http'
|
|
9
9
|
require 'builder'
|
10
10
|
require 'stringio'
|
11
11
|
require 'gorp/env'
|
12
|
+
require 'time'
|
12
13
|
|
13
14
|
require 'rbconfig'
|
14
15
|
$ruby = File.join(Config::CONFIG["bindir"], Config::CONFIG["RUBY_INSTALL_NAME"])
|
@@ -681,13 +682,31 @@ at_exit do
|
|
681
682
|
end
|
682
683
|
|
683
684
|
$x.a(:class => 'toc', :id => 'env') {$x.h2 'Environment'}
|
684
|
-
|
685
|
-
|
685
|
+
$x.pre Time.now.httpdate, :class=>'stdout'
|
686
|
+
|
686
687
|
cmd "#{$ruby} -v"
|
687
688
|
cmd 'gem -v'
|
688
689
|
cmd 'gem list'
|
689
690
|
cmd 'echo $RUBYLIB | sed "s/:/\n/g"'
|
690
691
|
|
692
|
+
cmd which_rails($rails) + ' -v'
|
693
|
+
|
694
|
+
if $rails != 'rails'
|
695
|
+
Dir.chdir($rails) do
|
696
|
+
log :cmd, 'git log -1'
|
697
|
+
$x.pre 'git log -1', :class=>'stdin'
|
698
|
+
`git log -1`.strip.split(/\n/).each do |line|
|
699
|
+
line.sub! /commit (\w{40})/,
|
700
|
+
'commit <a href="http://github.com/rails/rails/commit/\1">\1</a>'
|
701
|
+
if $1
|
702
|
+
$x.pre(:class=>'stdout') {$x << line.chomp}
|
703
|
+
else
|
704
|
+
$x.pre line.chomp, :class=>'stdout'
|
705
|
+
end
|
706
|
+
end
|
707
|
+
end
|
708
|
+
end
|
709
|
+
|
691
710
|
$x.a(:class => 'toc', :id => 'todos') {$x.h2 'Todos'}
|
692
711
|
$x.ul :class => 'todos'
|
693
712
|
end
|
data/lib/version.rb
CHANGED
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.10.
|
4
|
+
version: 0.10.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-
|
12
|
+
date: 2009-12-05 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|