activesupport 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activesupport might be problematic. Click here for more details.

data/CHANGELOG CHANGED
@@ -1,8 +1,16 @@
1
+ *1.4.2* (March 12th, 2007)
2
+
3
+ * Ruby 1.8.6 and 1.9 define private Time#to_date and #to_datetime; make them
4
+ public for compatibility. [Jeremy Kemper]
5
+
6
+ * Deprecation: warn on stderr if RAILS_DEFAULT_LOGGER isn't set yet. [Jeremy Kemper]
7
+
8
+
1
9
  *1.4.1* (February 5th, 2007)
2
10
 
3
- * Optimize Class Inheritable Attributes so that unnecessary hashes are not created. [Bruce Perens]
11
+ * Optimize Class Inheritable Attributes so that unnecessary hashes are not created. Closes #7472 [Bruce Perens]
4
12
 
5
- * Added :instance_writer option to #mattr_writer/accessor, #cattr_writer/accessor, and #class_inheritable_writer to skip the creation of the instance writer. [Rick]
13
+ * Added :instance_writer option to #mattr_writer/accessor, #cattr_writer/accessor, and #class_inheritable_writer to skip the creation of the instance writer. [Rick]
6
14
 
7
15
  * Full test coverage for Inflector. #7228 [Dan Kubb]
8
16
 
@@ -1,3 +1,13 @@
1
+ require 'date'
2
+ require 'time'
3
+
4
+ # Ruby 1.8-cvs and 1.9 define private Time#to_date
5
+ class Time
6
+ %w(to_date to_datetime).each do |method|
7
+ public method if private_instance_methods.include?(method)
8
+ end
9
+ end
10
+
1
11
  require File.dirname(__FILE__) + '/time/calculations'
2
12
  require File.dirname(__FILE__) + '/time/conversions'
3
13
 
@@ -1,6 +1,3 @@
1
- require 'date'
2
- require 'time'
3
-
4
1
  module ActiveSupport #:nodoc:
5
2
  module CoreExtensions #:nodoc:
6
3
  module Time #:nodoc:
@@ -13,8 +13,9 @@ module ActiveSupport
13
13
  $stderr.puts callstack.join("\n ") if debug
14
14
  },
15
15
  'development' => Proc.new { |message, callstack|
16
- RAILS_DEFAULT_LOGGER.warn message
17
- RAILS_DEFAULT_LOGGER.debug callstack.join("\n ") if debug
16
+ logger = defined?(::RAILS_DEFAULT_LOGGER) ? ::RAILS_DEFAULT_LOGGER : Logger.new($stderr)
17
+ logger.warn message
18
+ logger.debug callstack.join("\n ") if debug
18
19
  }
19
20
  }
20
21
 
@@ -2,7 +2,7 @@ module ActiveSupport
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 4
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0
2
+ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: activesupport
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.4.1
7
- date: 2007-02-05 00:00:00 -06:00
6
+ version: 1.4.2
7
+ date: 2007-03-13 00:00:00 -05:00
8
8
  summary: Support and utility classes used by the Rails framework.
9
9
  require_paths:
10
10
  - lib