rails 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rails might be problematic. Click here for more details.
- data/CHANGELOG +9 -0
- data/Rakefile +15 -12
- data/environments/boot.rb +2 -2
- data/lib/commands/console.rb +1 -1
- data/lib/commands/plugin.rb +6 -5
- data/lib/commands/process/inspector.rb +2 -2
- data/lib/commands/process/reaper.rb +1 -1
- data/lib/commands/process/spawner.rb +2 -2
- data/lib/commands/server.rb +1 -1
- data/lib/rails/version.rb +1 -1
- data/lib/rails_generator/generators/applications/app/app_generator.rb +1 -1
- data/lib/tasks/testing.rake +11 -8
- metadata +8 -9
data/CHANGELOG
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
*1.2.3* (March 12th, 2007)
|
2
|
+
|
3
|
+
* Ruby 1.8.6 compatibility
|
4
|
+
|
5
|
+
* Windows: include MinGW in RUBY_PLATFORM check. #2982 [okkez000@gmail.com, Kaspar Schiess]
|
6
|
+
|
7
|
+
* Stop swallowing errors during rake test [Koz]
|
8
|
+
|
9
|
+
|
1
10
|
*1.2.2* (February 5th, 2007)
|
2
11
|
|
3
12
|
* Fix gem deprecation warnings, which also means depending on RubyGems 0.9.0+ [Chad Fowler]
|
data/Rakefile
CHANGED
@@ -287,12 +287,12 @@ spec = Gem::Specification.new do |s|
|
|
287
287
|
on top of either MySQL, PostgreSQL, SQLite, DB2, SQL Server, or Oracle with eRuby- or Builder-based templates.
|
288
288
|
EOF
|
289
289
|
|
290
|
-
s.add_dependency('rake', '>= 0.7.
|
291
|
-
s.add_dependency('activesupport', '= 1.4.
|
292
|
-
s.add_dependency('activerecord', '= 1.15.
|
293
|
-
s.add_dependency('actionpack', '= 1.13.
|
294
|
-
s.add_dependency('actionmailer', '= 1.3.
|
295
|
-
s.add_dependency('actionwebservice', '= 1.2.
|
290
|
+
s.add_dependency('rake', '>= 0.7.2')
|
291
|
+
s.add_dependency('activesupport', '= 1.4.2' + PKG_BUILD)
|
292
|
+
s.add_dependency('activerecord', '= 1.15.3' + PKG_BUILD)
|
293
|
+
s.add_dependency('actionpack', '= 1.13.3' + PKG_BUILD)
|
294
|
+
s.add_dependency('actionmailer', '= 1.3.3' + PKG_BUILD)
|
295
|
+
s.add_dependency('actionwebservice', '= 1.2.3' + PKG_BUILD)
|
296
296
|
|
297
297
|
s.rdoc_options << '--exclude' << '.'
|
298
298
|
s.has_rdoc = false
|
@@ -323,9 +323,12 @@ task :pgem => [:gem] do
|
|
323
323
|
end
|
324
324
|
|
325
325
|
desc "Publish the release files to RubyForge."
|
326
|
-
task :release => [ :
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
326
|
+
task :release => [ :package ] do
|
327
|
+
require 'rubyforge'
|
328
|
+
|
329
|
+
packages = %w( gem tgz zip ).collect{ |ext| "pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}" }
|
330
|
+
|
331
|
+
rubyforge = RubyForge.new
|
332
|
+
rubyforge.login
|
333
|
+
rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages)
|
334
|
+
end
|
data/environments/boot.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
unless defined?(RAILS_ROOT)
|
4
4
|
root_path = File.join(File.dirname(__FILE__), '..')
|
5
5
|
|
6
|
-
unless RUBY_PLATFORM =~ /
|
6
|
+
unless RUBY_PLATFORM =~ /(:?mswin|mingw)/
|
7
7
|
require 'pathname'
|
8
8
|
root_path = Pathname.new(root_path).cleanpath(true).to_s
|
9
9
|
end
|
@@ -42,4 +42,4 @@ unless defined?(Rails::Initializer)
|
|
42
42
|
end
|
43
43
|
|
44
44
|
Rails::Initializer.run(:set_load_path)
|
45
|
-
end
|
45
|
+
end
|
data/lib/commands/console.rb
CHANGED
data/lib/commands/plugin.rb
CHANGED
@@ -240,11 +240,12 @@ class Plugin
|
|
240
240
|
def install_using_http(options = {})
|
241
241
|
root = rails_env.root
|
242
242
|
mkdir_p "#{root}/vendor/plugins"
|
243
|
-
Dir.chdir "#{root}/vendor/plugins"
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
243
|
+
Dir.chdir "#{root}/vendor/plugins" do
|
244
|
+
puts "fetching from '#{uri}'" if $verbose
|
245
|
+
fetcher = RecursiveHTTPFetcher.new(uri)
|
246
|
+
fetcher.quiet = true if options[:quiet]
|
247
|
+
fetcher.fetch
|
248
|
+
end
|
248
249
|
end
|
249
250
|
|
250
251
|
def svn_command(cmd, options = {})
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'optparse'
|
2
2
|
|
3
|
-
if RUBY_PLATFORM =~ /
|
3
|
+
if RUBY_PLATFORM =~ /(:?mswin|mingw)/ then abort("Inspector is only for Unix") end
|
4
4
|
|
5
5
|
OPTIONS = {
|
6
6
|
:pid_path => File.expand_path(RAILS_ROOT + '/tmp/pids'),
|
@@ -65,4 +65,4 @@ ARGV.options do |opts|
|
|
65
65
|
opts.parse!
|
66
66
|
end
|
67
67
|
|
68
|
-
Inspector.inspect(OPTIONS[:pid_path], OPTIONS[:pattern])
|
68
|
+
Inspector.inspect(OPTIONS[:pid_path], OPTIONS[:pattern])
|
@@ -92,7 +92,7 @@ server = case ARGV.first
|
|
92
92
|
else
|
93
93
|
if defined?(Mongrel)
|
94
94
|
"mongrel"
|
95
|
-
elsif RUBY_PLATFORM !~ /mswin/ && !silence_stderr { `spawn-fcgi -version` }.blank? && defined?(FCGI)
|
95
|
+
elsif RUBY_PLATFORM !~ /(:?mswin|mingw)/ && !silence_stderr { `spawn-fcgi -version` }.blank? && defined?(FCGI)
|
96
96
|
"fcgi"
|
97
97
|
end
|
98
98
|
end
|
@@ -206,4 +206,4 @@ if OPTIONS[:repeat]
|
|
206
206
|
end
|
207
207
|
else
|
208
208
|
spawner_class.spawn_all
|
209
|
-
end
|
209
|
+
end
|
data/lib/commands/server.rb
CHANGED
@@ -19,7 +19,7 @@ server = case ARGV.first
|
|
19
19
|
else
|
20
20
|
if defined?(Mongrel)
|
21
21
|
"mongrel"
|
22
|
-
elsif RUBY_PLATFORM !~ /mswin/ && !silence_stderr { `lighttpd -version` }.blank? && defined?(FCGI)
|
22
|
+
elsif RUBY_PLATFORM !~ /(:?mswin|mingw)/ && !silence_stderr { `lighttpd -version` }.blank? && defined?(FCGI)
|
23
23
|
"lighttpd"
|
24
24
|
else
|
25
25
|
"webrick"
|
data/lib/rails/version.rb
CHANGED
@@ -109,7 +109,7 @@ class AppGenerator < Rails::Generator::Base
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def mysql_socket_location
|
112
|
-
|
112
|
+
MYSQL_SOCKET_LOCATIONS.find { |f| File.exists?(f) } unless RUBY_PLATFORM =~ /(:?mswin|mingw)/
|
113
113
|
end
|
114
114
|
|
115
115
|
|
data/lib/tasks/testing.rake
CHANGED
@@ -30,7 +30,7 @@ end
|
|
30
30
|
module Kernel
|
31
31
|
def silence_stderr
|
32
32
|
old_stderr = STDERR.dup
|
33
|
-
STDERR.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')
|
33
|
+
STDERR.reopen(RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'NUL:' : '/dev/null')
|
34
34
|
STDERR.sync = true
|
35
35
|
yield
|
36
36
|
ensure
|
@@ -40,14 +40,17 @@ end
|
|
40
40
|
|
41
41
|
desc 'Test all units and functionals'
|
42
42
|
task :test do
|
43
|
-
|
44
|
-
|
43
|
+
exceptions = ["test:units", "test:functionals", "test:integration"].collect do |task|
|
44
|
+
begin
|
45
|
+
Rake::Task[task].invoke
|
46
|
+
nil
|
47
|
+
rescue => e
|
48
|
+
e
|
49
|
+
end
|
50
|
+
end.compact
|
45
51
|
|
46
|
-
|
47
|
-
|
48
|
-
end
|
49
|
-
|
50
|
-
raise "Test failures" if got_error
|
52
|
+
exceptions.each {|e| puts e;puts e.backtrace }
|
53
|
+
raise "Test failures" unless exceptions.empty?
|
51
54
|
end
|
52
55
|
|
53
56
|
namespace :test do
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rails
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.2.
|
7
|
-
date: 2007-
|
6
|
+
version: 1.2.3
|
7
|
+
date: 2007-03-13 00:00:00 -05:00
|
8
8
|
summary: Web-application framework with template engine, control-flow layer, and ORM.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -41,7 +41,6 @@ files:
|
|
41
41
|
- html
|
42
42
|
- lib
|
43
43
|
- MIT-LICENSE
|
44
|
-
- pkg
|
45
44
|
- Rakefile
|
46
45
|
- README
|
47
46
|
- bin/about
|
@@ -308,7 +307,7 @@ dependencies:
|
|
308
307
|
requirements:
|
309
308
|
- - ">="
|
310
309
|
- !ruby/object:Gem::Version
|
311
|
-
version: 0.7.
|
310
|
+
version: 0.7.2
|
312
311
|
version:
|
313
312
|
- !ruby/object:Gem::Dependency
|
314
313
|
name: activesupport
|
@@ -317,7 +316,7 @@ dependencies:
|
|
317
316
|
requirements:
|
318
317
|
- - "="
|
319
318
|
- !ruby/object:Gem::Version
|
320
|
-
version: 1.4.
|
319
|
+
version: 1.4.2
|
321
320
|
version:
|
322
321
|
- !ruby/object:Gem::Dependency
|
323
322
|
name: activerecord
|
@@ -326,7 +325,7 @@ dependencies:
|
|
326
325
|
requirements:
|
327
326
|
- - "="
|
328
327
|
- !ruby/object:Gem::Version
|
329
|
-
version: 1.15.
|
328
|
+
version: 1.15.3
|
330
329
|
version:
|
331
330
|
- !ruby/object:Gem::Dependency
|
332
331
|
name: actionpack
|
@@ -335,7 +334,7 @@ dependencies:
|
|
335
334
|
requirements:
|
336
335
|
- - "="
|
337
336
|
- !ruby/object:Gem::Version
|
338
|
-
version: 1.13.
|
337
|
+
version: 1.13.3
|
339
338
|
version:
|
340
339
|
- !ruby/object:Gem::Dependency
|
341
340
|
name: actionmailer
|
@@ -344,7 +343,7 @@ dependencies:
|
|
344
343
|
requirements:
|
345
344
|
- - "="
|
346
345
|
- !ruby/object:Gem::Version
|
347
|
-
version: 1.3.
|
346
|
+
version: 1.3.3
|
348
347
|
version:
|
349
348
|
- !ruby/object:Gem::Dependency
|
350
349
|
name: actionwebservice
|
@@ -353,5 +352,5 @@ dependencies:
|
|
353
352
|
requirements:
|
354
353
|
- - "="
|
355
354
|
- !ruby/object:Gem::Version
|
356
|
-
version: 1.2.
|
355
|
+
version: 1.2.3
|
357
356
|
version:
|