activesupport 3.1.0.beta1 → 3.1.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of activesupport might be problematic. Click here for more details.
- data/CHANGELOG +33 -1
- data/README.rdoc +1 -1
- data/lib/active_support.rb +1 -1
- data/lib/active_support/buffered_logger.rb +9 -4
- data/lib/active_support/configurable.rb +9 -6
- data/lib/active_support/core_ext/array/conversions.rb +2 -2
- data/lib/active_support/core_ext/array/random_access.rb +1 -1
- data/lib/active_support/core_ext/array/uniq_by.rb +2 -3
- data/lib/active_support/core_ext/class/inheritable_attributes.rb +0 -2
- data/lib/active_support/core_ext/date/calculations.rb +3 -3
- data/lib/active_support/core_ext/date/conversions.rb +3 -2
- data/lib/active_support/core_ext/date_time/conversions.rb +8 -8
- data/lib/active_support/core_ext/hash/conversions.rb +2 -1
- data/lib/active_support/core_ext/hash/indifferent_access.rb +12 -0
- data/lib/active_support/core_ext/hash/slice.rb +1 -1
- data/lib/active_support/core_ext/integer/inflections.rb +7 -4
- data/lib/active_support/core_ext/kernel/reporting.rb +13 -1
- data/lib/active_support/core_ext/module/attr_accessor_with_default.rb +1 -0
- data/lib/active_support/core_ext/module/deprecation.rb +0 -2
- data/lib/active_support/core_ext/numeric/time.rb +2 -0
- data/lib/active_support/core_ext/object/blank.rb +3 -3
- data/lib/active_support/core_ext/object/duplicable.rb +2 -0
- data/lib/active_support/core_ext/object/try.rb +2 -0
- data/lib/active_support/core_ext/object/with_options.rb +8 -5
- data/lib/active_support/core_ext/string/behavior.rb +1 -2
- data/lib/active_support/core_ext/string/exclude.rb +1 -1
- data/lib/active_support/core_ext/string/inquiry.rb +1 -1
- data/lib/active_support/core_ext/time/calculations.rb +4 -3
- data/lib/active_support/core_ext/time/marshal.rb +1 -0
- data/lib/active_support/descendants_tracker.rb +9 -7
- data/lib/active_support/duration.rb +1 -0
- data/lib/active_support/hash_with_indifferent_access.rb +12 -4
- data/lib/active_support/inflector/methods.rb +5 -3
- data/lib/active_support/json/encoding.rb +4 -1
- data/lib/active_support/log_subscriber/test_helper.rb +1 -0
- data/lib/active_support/ordered_hash.rb +4 -0
- data/lib/active_support/secure_random.rb +3 -202
- data/lib/active_support/testing/performance.rb +227 -335
- data/lib/active_support/testing/performance/jruby.rb +115 -0
- data/lib/active_support/testing/performance/rubinius.rb +113 -0
- data/lib/active_support/testing/performance/ruby.rb +152 -0
- data/lib/active_support/testing/performance/ruby/mri.rb +59 -0
- data/lib/active_support/testing/performance/ruby/yarv.rb +57 -0
- data/lib/active_support/version.rb +1 -1
- data/lib/active_support/xml_mini.rb +4 -1
- metadata +8 -3
@@ -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
|
-
|
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.
|
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-
|
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:
|
272
|
+
rubyforge_project:
|
268
273
|
rubygems_version: 1.6.2
|
269
274
|
signing_key:
|
270
275
|
specification_version: 3
|