activesupport 3.2.0.rc2 → 3.2.0

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.

@@ -1,4 +1,4 @@
1
- ## Rails 3.2.0 (unreleased) ##
1
+ ## Rails 3.2.0 (January 20, 2012) ##
2
2
 
3
3
  * ActiveSupport::Base64 is deprecated in favor of ::Base64. *Sergey Nartimov*
4
4
 
@@ -59,7 +59,7 @@ module Enumerable
59
59
  if block_given?
60
60
  map(&block).sum(identity)
61
61
  else
62
- inject { |sum, element| sum + element } || identity
62
+ inject(:+) || identity
63
63
  end
64
64
  end
65
65
 
@@ -14,7 +14,7 @@ class Hash
14
14
  # #with_indifferent_access. This method will be called on the current object
15
15
  # by the enclosing object and is aliased to #with_indifferent_access by
16
16
  # default. Subclasses of Hash may overwrite this method to return +self+ if
17
- # converting to an +ActiveSupport::HashWithIndifferentAccess+ would not be
17
+ # converting to an <tt>ActiveSupport::HashWithIndifferentAccess</tt> would not be
18
18
  # desirable.
19
19
  #
20
20
  # b = {:b => 1}
@@ -151,8 +151,8 @@ class Object
151
151
  end
152
152
  end
153
153
 
154
- class Struct
155
- def as_json(options = nil) #:nodoc:
154
+ class Struct #:nodoc:
155
+ def as_json(options = nil)
156
156
  Hash[members.zip(values)]
157
157
  end
158
158
  end
@@ -281,4 +281,4 @@ class DateTime
281
281
  strftime('%Y/%m/%d %H:%M:%S %z')
282
282
  end
283
283
  end
284
- end
284
+ end
@@ -68,6 +68,10 @@ module ActiveSupport
68
68
  # Sometimes you do not want to subscribe to an event for the entire life of
69
69
  # the application. There are two ways to unsubscribe.
70
70
  #
71
+ # WARNING: The instrumentation framework is designed for long-running subscribers,
72
+ # use this feature sparingly because it wipes some internal caches and that has
73
+ # a negative impact on performance.
74
+ #
71
75
  # === Subscribe While a Block Runs
72
76
  #
73
77
  # You can subscribe to some event temporarily while some block runs. For
@@ -3,7 +3,7 @@ module ActiveSupport
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
5
  TINY = 0
6
- PRE = "rc2"
6
+ PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,63 +1,46 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: activesupport
3
- version: !ruby/object:Gem::Version
4
- hash: 977940591
5
- prerelease: true
6
- segments:
7
- - 3
8
- - 2
9
- - 0
10
- - rc2
11
- version: 3.2.0.rc2
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.2.0
5
+ prerelease:
12
6
  platform: ruby
13
- authors:
7
+ authors:
14
8
  - David Heinemeier Hansson
15
9
  autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
-
19
- date: 2012-01-04 00:00:00 -02:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
23
15
  name: i18n
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70311744701700 !ruby/object:Gem::Requirement
26
17
  none: false
27
- requirements:
18
+ requirements:
28
19
  - - ~>
29
- - !ruby/object:Gem::Version
30
- hash: 7
31
- segments:
32
- - 0
33
- - 6
34
- version: "0.6"
20
+ - !ruby/object:Gem::Version
21
+ version: '0.6'
35
22
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: multi_json
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70311744701700
25
+ - !ruby/object:Gem::Dependency
26
+ name: multi_json
27
+ requirement: &70311744701220 !ruby/object:Gem::Requirement
41
28
  none: false
42
- requirements:
29
+ requirements:
43
30
  - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 15
46
- segments:
47
- - 1
48
- - 0
49
- version: "1.0"
31
+ - !ruby/object:Gem::Version
32
+ version: '1.0'
50
33
  type: :runtime
51
- version_requirements: *id002
52
- description: A toolkit of support libraries and Ruby core extensions extracted from the Rails framework. Rich support for multibyte strings, internationalization, time zones, and testing.
34
+ prerelease: false
35
+ version_requirements: *70311744701220
36
+ description: A toolkit of support libraries and Ruby core extensions extracted from
37
+ the Rails framework. Rich support for multibyte strings, internationalization, time
38
+ zones, and testing.
53
39
  email: david@loudthinking.com
54
40
  executables: []
55
-
56
41
  extensions: []
57
-
58
42
  extra_rdoc_files: []
59
-
60
- files:
43
+ files:
61
44
  - CHANGELOG.md
62
45
  - MIT-LICENSE
63
46
  - README.rdoc
@@ -271,43 +254,31 @@ files:
271
254
  - lib/active_support/xml_mini/rexml.rb
272
255
  - lib/active_support/xml_mini.rb
273
256
  - lib/active_support.rb
274
- has_rdoc: true
275
257
  homepage: http://www.rubyonrails.org
276
258
  licenses: []
277
-
278
259
  post_install_message:
279
- rdoc_options: []
280
-
281
- require_paths:
260
+ rdoc_options:
261
+ - --encoding
262
+ - UTF-8
263
+ require_paths:
282
264
  - lib
283
- required_ruby_version: !ruby/object:Gem::Requirement
265
+ required_ruby_version: !ruby/object:Gem::Requirement
284
266
  none: false
285
- requirements:
286
- - - ">="
287
- - !ruby/object:Gem::Version
288
- hash: 57
289
- segments:
290
- - 1
291
- - 8
292
- - 7
267
+ requirements:
268
+ - - ! '>='
269
+ - !ruby/object:Gem::Version
293
270
  version: 1.8.7
294
- required_rubygems_version: !ruby/object:Gem::Requirement
271
+ required_rubygems_version: !ruby/object:Gem::Requirement
295
272
  none: false
296
- requirements:
297
- - - ">"
298
- - !ruby/object:Gem::Version
299
- hash: 25
300
- segments:
301
- - 1
302
- - 3
303
- - 1
304
- version: 1.3.1
273
+ requirements:
274
+ - - ! '>='
275
+ - !ruby/object:Gem::Version
276
+ version: '0'
305
277
  requirements: []
306
-
307
278
  rubyforge_project:
308
- rubygems_version: 1.3.7
279
+ rubygems_version: 1.8.10
309
280
  signing_key:
310
281
  specification_version: 3
311
- summary: A toolkit of support libraries and Ruby core extensions extracted from the Rails framework.
282
+ summary: A toolkit of support libraries and Ruby core extensions extracted from the
283
+ Rails framework.
312
284
  test_files: []
313
-