activesupport 3.1.0.rc6 → 3.1.0.rc8

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,6 +1,16 @@
1
1
  *Rails 3.1.0 (unreleased)*
2
2
 
3
- * Using Module#delegate to delegate to non-public methods is deprecated [Jon Leighton]
3
+ * ActiveSupport::Dependencies#load and ActiveSupport::Dependencies#require now
4
+ return the value from `super` [Aaron Patterson]
5
+
6
+ * Fixed ActiveSupport::Gzip to work properly in Ruby 1.8 [Guillermo Iguaran]
7
+
8
+ * Kernel.require_library_or_gem was deprecated and will be removed in Rails 3.2.0 [Josh Kalderimis]
9
+
10
+ * ActiveSupport::Duration#duplicable? was fixed for Ruby 1.8 [thedarkone]
11
+
12
+ * ActiveSupport::BufferedLogger set log encoding to BINARY, but still use text
13
+ mode to output portable newlines. [fxn]
4
14
 
5
15
  * ActiveSupport::Dependencies now raises NameError if it finds an existing constant in load_missing_constant. This better reflects the nature of the error which is usually caused by calling constantize on a nested constant. [Andrew White]
6
16
 
@@ -1,6 +1,4 @@
1
1
  require "active_support/core_ext/module/remove_method"
2
- require 'active_support/core_ext/kernel/singleton_class'
3
- require 'active_support/deprecation'
4
2
 
5
3
  class Module
6
4
  # Provides a delegate class method to easily expose contained objects' methods
@@ -128,32 +126,16 @@ class Module
128
126
  %(raise "#{self}##{prefix}#{method} delegated to #{to}.#{method}, but #{to} is nil: \#{self.inspect}")
129
127
  end
130
128
 
131
- module_eval(<<-EOS, file, line - 4)
132
- def #{prefix}#{method}(*args, &block) # def customer_name(*args, &block)
133
- to = #{to} # to = client
134
- #
135
- begin # begin
136
- result = to.__send__(#{method.inspect}, *args, &block) # result = to.__send__(:name, *args, &block)
137
- rescue NoMethodError # rescue NoMethodError
138
- if to.nil? # if to.nil?
139
- #{on_nil} # return # depends on :allow_nil
140
- else # else
141
- raise # raise
142
- end # end
143
- end # end
144
- #
145
- klass = to.singleton_methods.any? ? to.singleton_class : to.class # klass = to.singleton_methods.any? ? to.singleton_class : to.class
146
- unless klass.public_method_defined?(#{method.inspect}) # unless klass.public_method_defined?(:name)
147
- ActiveSupport::Deprecation.warn( # ActiveSupport::Deprecation.warn(
148
- "Using Module#delegate to delegate to non-public methods is " + # "..." +
149
- "deprecated. Please declare your methods as public if they " + # "..." +
150
- "are going to accessed from other classes.", # "...",
151
- [#{"#{file}:#{line}".inspect}] # ["app/models/firm.rb:16"]
152
- ) # )
153
- end # end
154
- #
155
- result # result
156
- end # end
129
+ module_eval(<<-EOS, file, line - 1)
130
+ def #{prefix}#{method}(*args, &block) # def customer_name(*args, &block)
131
+ #{to}.__send__(#{method.inspect}, *args, &block) # client.__send__(:name, *args, &block)
132
+ rescue NoMethodError # rescue NoMethodError
133
+ if #{to}.nil? # if client.nil?
134
+ #{on_nil} # return # depends on :allow_nil
135
+ else # else
136
+ raise # raise
137
+ end # end
138
+ end # end
157
139
  EOS
158
140
  end
159
141
  end
@@ -230,11 +230,15 @@ module ActiveSupport #:nodoc:
230
230
  end
231
231
 
232
232
  def load(file, *)
233
- load_dependency(file) { super }
233
+ result = false
234
+ load_dependency(file) { result = super }
235
+ result
234
236
  end
235
237
 
236
238
  def require(file, *)
237
- load_dependency(file) { super }
239
+ result = false
240
+ load_dependency(file) { result = super }
241
+ result
238
242
  end
239
243
 
240
244
  # Mark the given constant as unloadable. Unloadable constants are removed each
@@ -3,7 +3,7 @@ module ActiveSupport
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
5
  TINY = 0
6
- PRE = "rc6"
6
+ PRE = "rc8"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activesupport
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424105
5
- prerelease: 6
4
+ hash: 977940593
5
+ prerelease: true
6
6
  segments:
7
7
  - 3
8
8
  - 1
9
9
  - 0
10
- - rc
11
- - 6
12
- version: 3.1.0.rc6
10
+ - rc8
11
+ version: 3.1.0.rc8
13
12
  platform: ruby
14
13
  authors:
15
14
  - David Heinemeier Hansson
@@ -17,7 +16,8 @@ autorequire:
17
16
  bindir: bin
18
17
  cert_chain: []
19
18
 
20
- date: 2011-08-16 00:00:00 Z
19
+ date: 2011-08-29 00:00:00 -03:00
20
+ default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: multi_json
@@ -256,6 +256,7 @@ files:
256
256
  - lib/active_support/xml_mini/rexml.rb
257
257
  - lib/active_support/xml_mini.rb
258
258
  - lib/active_support.rb
259
+ has_rdoc: true
259
260
  homepage: http://www.rubyonrails.org
260
261
  licenses: []
261
262
 
@@ -289,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
289
290
  requirements: []
290
291
 
291
292
  rubyforge_project:
292
- rubygems_version: 1.8.8
293
+ rubygems_version: 1.3.7
293
294
  signing_key:
294
295
  specification_version: 3
295
296
  summary: A toolkit of support libraries and Ruby core extensions extracted from the Rails framework.