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 CHANGED
@@ -1,7 +1,6 @@
1
1
  Manifest
2
2
  README
3
3
  Rakefile
4
- gorp.gemspec
5
4
  lib/gorp.rb
6
5
  lib/gorp/commands.rb
7
6
  lib/gorp/edit.rb
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "gorp"
5
- s.version = "0.28.0"
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", "gorp.gemspec", "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", "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"]
@@ -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
@@ -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
- if File.exist? 'Gemfile'
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('Gemfile') =~ /gem ['"]rails['"], :path/
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 '
@@ -2,7 +2,7 @@ module Gorp
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 28
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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: 111
4
+ hash: 109
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 28
9
- - 0
10
- version: 0.28.0
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