gorp 0.28.0 → 0.28.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest +0 -1
- data/gorp.gemspec +2 -2
- data/lib/gorp/output.rb +2 -2
- data/lib/gorp/rails.rb +3 -2
- data/lib/version.rb +1 -1
- metadata +4 -4
data/Manifest
CHANGED
data/gorp.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "gorp"
|
5
|
-
s.version = "0.28.
|
5
|
+
s.version = "0.28.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"]
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.description = " Enables the creation of scenarios that involve creating a rails project,\n starting and stoppping of servers, generating projects, editing files,\n issuing http requests, running of commands, etc. Output is captured as\n a single HTML file that can be viewed locally or uploaded.\n\n Additionally, there is support for verification, in the form of defining\n assertions based on selections (typically CSS) against the generated HTML.\n"
|
11
11
|
s.email = "rubys@intertwingly.net"
|
12
12
|
s.extra_rdoc_files = ["README", "lib/gorp.rb", "lib/gorp/commands.rb", "lib/gorp/edit.rb", "lib/gorp/env.rb", "lib/gorp/net.rb", "lib/gorp/output.css", "lib/gorp/output.rb", "lib/gorp/rails.env", "lib/gorp/rails.rb", "lib/gorp/test.rb", "lib/gorp/xml.rb", "lib/version.rb"]
|
13
|
-
s.files = ["Manifest", "README", "Rakefile", "
|
13
|
+
s.files = ["Manifest", "README", "Rakefile", "lib/gorp.rb", "lib/gorp/commands.rb", "lib/gorp/edit.rb", "lib/gorp/env.rb", "lib/gorp/net.rb", "lib/gorp/output.css", "lib/gorp/output.rb", "lib/gorp/rails.env", "lib/gorp/rails.rb", "lib/gorp/test.rb", "lib/gorp/xml.rb", "lib/version.rb", "gorp.gemspec"]
|
14
14
|
s.homepage = "http://github.com/rubys/gorp"
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Gorp", "--main", "README"]
|
16
16
|
s.require_paths = ["lib"]
|
data/lib/gorp/output.rb
CHANGED
@@ -96,12 +96,12 @@ at_exit do
|
|
96
96
|
"<ul class=\"todos\">\n#{$todos.target!.gsub(/^/,' '*6)} </ul>"
|
97
97
|
$x.target!.gsub! '<strong/>', '<strong></strong>'
|
98
98
|
$x.target!.gsub! /(<textarea[^>]+)\/>/, '\1></textarea>'
|
99
|
-
log :WRITE, Gorp.path("#{$output}.html")
|
99
|
+
Gorp.log :WRITE, Gorp.path("#{$output}.html")
|
100
100
|
open("#{$WORK}/#{$output}.html",'w') { |file| file.write $x.target! }
|
101
101
|
|
102
102
|
# run tests
|
103
103
|
if $checker
|
104
|
-
log :CHECK, "#{$output}.html"
|
104
|
+
Gorp.log :CHECK, "#{$output}.html"
|
105
105
|
Dir.chdir $BASE
|
106
106
|
STDOUT.puts
|
107
107
|
if $checker.respond_to? :call
|
data/lib/gorp/rails.rb
CHANGED
@@ -104,10 +104,11 @@ module Gorp
|
|
104
104
|
rails = Gorp.which_rails($rails)
|
105
105
|
rails += ' new' if `#{rails} -v` !~ /Rails 2/
|
106
106
|
opt = ''
|
107
|
-
|
107
|
+
gemfile = ENV['BUNDLE_GEMFILE'] || 'Gemfile'
|
108
|
+
if File.exist? gemfile
|
108
109
|
rails = "bundle exec " + rails
|
109
110
|
opt += ' --skip-bundle'
|
110
|
-
opt += ' --dev' if File.read(
|
111
|
+
opt += ' --dev' if File.read(gemfile) =~ /gem ['"]rails['"], :path/
|
111
112
|
elsif `ruby -v` =~ /1\.8/
|
112
113
|
rails.sub! /^/, 'ruby ' unless rails =~ /^ruby /
|
113
114
|
rails.sub! 'ruby ', 'ruby -rubygems '
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gorp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 109
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 28
|
9
|
-
-
|
10
|
-
version: 0.28.
|
9
|
+
- 1
|
10
|
+
version: 0.28.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sam Ruby
|
@@ -111,7 +111,6 @@ files:
|
|
111
111
|
- Manifest
|
112
112
|
- README
|
113
113
|
- Rakefile
|
114
|
-
- gorp.gemspec
|
115
114
|
- lib/gorp.rb
|
116
115
|
- lib/gorp/commands.rb
|
117
116
|
- lib/gorp/edit.rb
|
@@ -124,6 +123,7 @@ files:
|
|
124
123
|
- lib/gorp/test.rb
|
125
124
|
- lib/gorp/xml.rb
|
126
125
|
- lib/version.rb
|
126
|
+
- gorp.gemspec
|
127
127
|
homepage: http://github.com/rubys/gorp
|
128
128
|
licenses: []
|
129
129
|
|