activesupport 3.1.0.beta1 → 3.1.0.rc1

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.

Files changed (46) hide show
  1. data/CHANGELOG +33 -1
  2. data/README.rdoc +1 -1
  3. data/lib/active_support.rb +1 -1
  4. data/lib/active_support/buffered_logger.rb +9 -4
  5. data/lib/active_support/configurable.rb +9 -6
  6. data/lib/active_support/core_ext/array/conversions.rb +2 -2
  7. data/lib/active_support/core_ext/array/random_access.rb +1 -1
  8. data/lib/active_support/core_ext/array/uniq_by.rb +2 -3
  9. data/lib/active_support/core_ext/class/inheritable_attributes.rb +0 -2
  10. data/lib/active_support/core_ext/date/calculations.rb +3 -3
  11. data/lib/active_support/core_ext/date/conversions.rb +3 -2
  12. data/lib/active_support/core_ext/date_time/conversions.rb +8 -8
  13. data/lib/active_support/core_ext/hash/conversions.rb +2 -1
  14. data/lib/active_support/core_ext/hash/indifferent_access.rb +12 -0
  15. data/lib/active_support/core_ext/hash/slice.rb +1 -1
  16. data/lib/active_support/core_ext/integer/inflections.rb +7 -4
  17. data/lib/active_support/core_ext/kernel/reporting.rb +13 -1
  18. data/lib/active_support/core_ext/module/attr_accessor_with_default.rb +1 -0
  19. data/lib/active_support/core_ext/module/deprecation.rb +0 -2
  20. data/lib/active_support/core_ext/numeric/time.rb +2 -0
  21. data/lib/active_support/core_ext/object/blank.rb +3 -3
  22. data/lib/active_support/core_ext/object/duplicable.rb +2 -0
  23. data/lib/active_support/core_ext/object/try.rb +2 -0
  24. data/lib/active_support/core_ext/object/with_options.rb +8 -5
  25. data/lib/active_support/core_ext/string/behavior.rb +1 -2
  26. data/lib/active_support/core_ext/string/exclude.rb +1 -1
  27. data/lib/active_support/core_ext/string/inquiry.rb +1 -1
  28. data/lib/active_support/core_ext/time/calculations.rb +4 -3
  29. data/lib/active_support/core_ext/time/marshal.rb +1 -0
  30. data/lib/active_support/descendants_tracker.rb +9 -7
  31. data/lib/active_support/duration.rb +1 -0
  32. data/lib/active_support/hash_with_indifferent_access.rb +12 -4
  33. data/lib/active_support/inflector/methods.rb +5 -3
  34. data/lib/active_support/json/encoding.rb +4 -1
  35. data/lib/active_support/log_subscriber/test_helper.rb +1 -0
  36. data/lib/active_support/ordered_hash.rb +4 -0
  37. data/lib/active_support/secure_random.rb +3 -202
  38. data/lib/active_support/testing/performance.rb +227 -335
  39. data/lib/active_support/testing/performance/jruby.rb +115 -0
  40. data/lib/active_support/testing/performance/rubinius.rb +113 -0
  41. data/lib/active_support/testing/performance/ruby.rb +152 -0
  42. data/lib/active_support/testing/performance/ruby/mri.rb +59 -0
  43. data/lib/active_support/testing/performance/ruby/yarv.rb +57 -0
  44. data/lib/active_support/version.rb +1 -1
  45. data/lib/active_support/xml_mini.rb +4 -1
  46. metadata +8 -3
@@ -3,7 +3,7 @@ module ActiveSupport
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
5
  TINY = 0
6
- PRE = "beta1"
6
+ PRE = "rc1"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
@@ -1,4 +1,5 @@
1
1
  require 'active_support/core_ext/module/delegation'
2
+ require 'active_support/core_ext/string/inflections'
2
3
 
3
4
  module ActiveSupport
4
5
  # = XmlMini
@@ -138,7 +139,9 @@ module ActiveSupport
138
139
  protected
139
140
 
140
141
  def _dasherize(key)
141
- key.gsub(/(?!^[_]*)_(?![_]*$)/, '-')
142
+ # $2 must be a non-greedy regex for this to work
143
+ left, middle, right = /\A(_*)(.*?)(_*)\Z/.match(key.strip)[1,3]
144
+ "#{left}#{middle.tr('_ ', '--')}#{right}"
142
145
  end
143
146
 
144
147
  # TODO: Add support for other encodings
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: activesupport
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 3.1.0.beta1
5
+ version: 3.1.0.rc1
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Heinemeier Hansson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-04 00:00:00 -05:00
13
+ date: 2011-05-21 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -224,6 +224,11 @@ files:
224
224
  - lib/active_support/testing/isolation.rb
225
225
  - lib/active_support/testing/mochaing.rb
226
226
  - lib/active_support/testing/pending.rb
227
+ - lib/active_support/testing/performance/jruby.rb
228
+ - lib/active_support/testing/performance/rubinius.rb
229
+ - lib/active_support/testing/performance/ruby/mri.rb
230
+ - lib/active_support/testing/performance/ruby/yarv.rb
231
+ - lib/active_support/testing/performance/ruby.rb
227
232
  - lib/active_support/testing/performance.rb
228
233
  - lib/active_support/testing/setup_and_teardown.rb
229
234
  - lib/active_support/time/autoload.rb
@@ -264,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
269
  version: 1.3.1
265
270
  requirements: []
266
271
 
267
- rubyforge_project: activesupport
272
+ rubyforge_project:
268
273
  rubygems_version: 1.6.2
269
274
  signing_key:
270
275
  specification_version: 3