activesupport 3.0.20 → 3.1.0.beta1
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 +14 -66
- data/README.rdoc +1 -1
- data/lib/active_support/backtrace_cleaner.rb +1 -1
- data/lib/active_support/buffered_logger.rb +4 -11
- data/lib/active_support/cache.rb +12 -15
- data/lib/active_support/cache/file_store.rb +3 -2
- data/lib/active_support/cache/mem_cache_store.rb +11 -3
- data/lib/active_support/cache/strategy/local_cache.rb +28 -23
- data/lib/active_support/callbacks.rb +195 -175
- data/lib/active_support/concern.rb +105 -35
- data/lib/active_support/configurable.rb +41 -2
- data/lib/active_support/core_ext/array/access.rb +2 -2
- data/lib/active_support/core_ext/array/random_access.rb +10 -7
- data/lib/active_support/core_ext/big_decimal/conversions.rb +0 -2
- data/lib/active_support/core_ext/class/attribute.rb +27 -17
- data/lib/active_support/core_ext/class/inheritable_attributes.rb +12 -86
- data/lib/active_support/core_ext/class/subclasses.rb +20 -34
- data/lib/active_support/core_ext/date/calculations.rb +14 -2
- data/lib/active_support/core_ext/date/conversions.rb +6 -0
- data/lib/active_support/core_ext/date_time/calculations.rb +26 -9
- data/lib/active_support/core_ext/date_time/conversions.rb +1 -1
- data/lib/active_support/core_ext/date_time/zones.rb +1 -1
- data/lib/active_support/core_ext/enumerable.rb +2 -5
- data/lib/active_support/core_ext/float/rounding.rb +1 -1
- data/lib/active_support/core_ext/hash.rb +1 -0
- data/lib/active_support/core_ext/hash/conversions.rb +23 -36
- data/lib/active_support/core_ext/hash/deep_dup.rb +11 -0
- data/lib/active_support/core_ext/hash/keys.rb +6 -4
- data/lib/active_support/core_ext/hash/reverse_merge.rb +9 -14
- data/lib/active_support/core_ext/kernel/reporting.rb +19 -0
- data/lib/active_support/core_ext/logger.rb +11 -38
- data/lib/active_support/core_ext/module/attr_accessor_with_default.rb +11 -12
- data/lib/active_support/core_ext/module/attr_internal.rb +13 -6
- data/lib/active_support/core_ext/module/deprecation.rb +2 -0
- data/lib/active_support/core_ext/object.rb +1 -1
- data/lib/active_support/core_ext/object/blank.rb +42 -9
- data/lib/active_support/core_ext/object/duplicable.rb +48 -9
- data/lib/active_support/core_ext/object/inclusion.rb +15 -0
- data/lib/active_support/core_ext/object/instance_variables.rb +1 -35
- data/lib/active_support/core_ext/object/to_param.rb +13 -8
- data/lib/active_support/core_ext/object/to_query.rb +2 -2
- data/lib/active_support/core_ext/object/try.rb +27 -10
- data/lib/active_support/core_ext/object/with_options.rb +19 -5
- data/lib/active_support/core_ext/range.rb +1 -0
- data/lib/active_support/core_ext/range/cover.rb +3 -0
- data/lib/active_support/core_ext/string.rb +1 -0
- data/lib/active_support/core_ext/string/filters.rb +3 -3
- data/lib/active_support/core_ext/string/inflections.rb +1 -1
- data/lib/active_support/core_ext/string/inquiry.rb +13 -0
- data/lib/active_support/core_ext/string/multibyte.rb +1 -1
- data/lib/active_support/core_ext/string/output_safety.rb +33 -89
- data/lib/active_support/core_ext/time/calculations.rb +14 -13
- data/lib/active_support/core_ext/time/conversions.rb +2 -24
- data/lib/active_support/core_ext/time/marshal.rb +0 -1
- data/lib/active_support/core_ext/time/zones.rb +32 -21
- data/lib/active_support/core_ext/uri.rb +8 -0
- data/lib/active_support/dependencies.rb +93 -37
- data/lib/active_support/deprecation.rb +2 -2
- data/lib/active_support/deprecation/behaviors.rb +7 -0
- data/lib/active_support/deprecation/proxy_wrappers.rb +1 -1
- data/lib/active_support/deprecation/reporting.rb +4 -0
- data/lib/active_support/duration.rb +4 -0
- data/lib/active_support/file_update_checker.rb +1 -1
- data/lib/active_support/file_watcher.rb +36 -0
- data/lib/active_support/gzip.rb +0 -1
- data/lib/active_support/hash_with_indifferent_access.rb +6 -4
- data/lib/active_support/i18n.rb +0 -1
- data/lib/active_support/i18n_railtie.rb +2 -2
- data/lib/active_support/inflector/inflections.rb +1 -1
- data/lib/active_support/json/decoding.rb +37 -23
- data/lib/active_support/json/encoding.rb +8 -3
- data/lib/active_support/lazy_load_hooks.rb +7 -7
- data/lib/active_support/log_subscriber.rb +3 -3
- data/lib/active_support/log_subscriber/test_helper.rb +4 -3
- data/lib/active_support/message_encryptor.rb +1 -1
- data/lib/active_support/message_verifier.rb +1 -1
- data/lib/active_support/multibyte/chars.rb +4 -3
- data/lib/active_support/multibyte/unicode.rb +1 -1
- data/lib/active_support/notifications.rb +9 -8
- data/lib/active_support/notifications/fanout.rb +3 -3
- data/lib/active_support/ordered_hash.rb +19 -2
- data/lib/active_support/ordered_options.rb +33 -3
- data/lib/active_support/railtie.rb +1 -1
- data/lib/active_support/rescuable.rb +1 -0
- data/lib/active_support/secure_random.rb +11 -5
- data/lib/active_support/test_case.rb +2 -10
- data/lib/active_support/testing/assertions.rb +17 -6
- data/lib/active_support/testing/mochaing.rb +7 -0
- data/lib/active_support/testing/pending.rb +27 -23
- data/lib/active_support/testing/setup_and_teardown.rb +8 -11
- data/lib/active_support/time_with_zone.rb +6 -3
- data/lib/active_support/version.rb +3 -3
- data/lib/active_support/whiny_nil.rb +1 -1
- data/lib/active_support/xml_mini.rb +4 -2
- data/lib/active_support/xml_mini/jdom.rb +9 -16
- data/lib/active_support/xml_mini/libxml.rb +1 -0
- data/lib/active_support/xml_mini/libxmlsax.rb +2 -1
- data/lib/active_support/xml_mini/nokogiri.rb +1 -0
- data/lib/active_support/xml_mini/nokogirisax.rb +1 -0
- data/lib/active_support/xml_mini/rexml.rb +1 -0
- metadata +50 -32
- checksums.yaml +0 -7
- data/lib/active_support/core_ext/cgi.rb +0 -1
- data/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +0 -19
- data/lib/active_support/core_ext/object/returning.rb +0 -43
- data/lib/active_support/json/backends/jsongem.rb +0 -47
- data/lib/active_support/json/backends/okjson.rb +0 -644
- data/lib/active_support/json/backends/yajl.rb +0 -44
- data/lib/active_support/json/backends/yaml.rb +0 -19
- data/lib/active_support/testing/default.rb +0 -9
@@ -5,16 +5,9 @@ require 'active_support/testing/deprecation'
|
|
5
5
|
require 'active_support/testing/declarative'
|
6
6
|
require 'active_support/testing/pending'
|
7
7
|
require 'active_support/testing/isolation'
|
8
|
+
require 'active_support/testing/mochaing'
|
8
9
|
require 'active_support/core_ext/kernel/reporting'
|
9
10
|
|
10
|
-
begin
|
11
|
-
silence_warnings { require 'mocha/setup' }
|
12
|
-
rescue LoadError
|
13
|
-
# Fake Mocha::ExpectationError so we can rescue it in #run. Bleh.
|
14
|
-
Object.const_set :Mocha, Module.new
|
15
|
-
Mocha.const_set :ExpectationError, Class.new(StandardError)
|
16
|
-
end
|
17
|
-
|
18
11
|
module ActiveSupport
|
19
12
|
class TestCase < ::Test::Unit::TestCase
|
20
13
|
if defined? MiniTest
|
@@ -24,8 +17,7 @@ module ActiveSupport
|
|
24
17
|
else
|
25
18
|
Assertion = Test::Unit::AssertionFailedError
|
26
19
|
|
27
|
-
|
28
|
-
include ActiveSupport::Testing::Default
|
20
|
+
undef :default_test
|
29
21
|
end
|
30
22
|
|
31
23
|
$tags = {}
|
@@ -29,22 +29,33 @@ module ActiveSupport
|
|
29
29
|
# post :create, :article => {...}
|
30
30
|
# end
|
31
31
|
#
|
32
|
+
# A lambda or a list of lambdas can be passed in and evaluated:
|
33
|
+
#
|
34
|
+
# assert_difference lambda { Article.count }, 2 do
|
35
|
+
# post :create, :article => {...}
|
36
|
+
# end
|
37
|
+
#
|
38
|
+
# assert_difference [->{ Article.count }, ->{ Post.count }], 2 do
|
39
|
+
# post :create, :article => {...}
|
40
|
+
# end
|
41
|
+
#
|
32
42
|
# A error message can be specified.
|
33
43
|
#
|
34
44
|
# assert_difference 'Article.count', -1, "An Article should be destroyed" do
|
35
45
|
# post :delete, :id => ...
|
36
46
|
# end
|
37
47
|
def assert_difference(expression, difference = 1, message = nil, &block)
|
38
|
-
|
39
|
-
|
40
|
-
|
48
|
+
exps = Array.wrap(expression).map { |e|
|
49
|
+
e.respond_to?(:call) ? e : lambda { eval(e, block.binding) }
|
50
|
+
}
|
51
|
+
before = exps.map { |e| e.call }
|
41
52
|
|
42
53
|
yield
|
43
54
|
|
44
55
|
exps.each_with_index do |e, i|
|
45
|
-
error
|
46
|
-
error
|
47
|
-
assert_equal(before[i] + difference,
|
56
|
+
error = "#{e.inspect} didn't change by #{difference}"
|
57
|
+
error = "#{message}.\n#{error}" if message
|
58
|
+
assert_equal(before[i] + difference, e.call, error)
|
48
59
|
end
|
49
60
|
end
|
50
61
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Some code from jeremymcanally's "pending"
|
2
|
-
#
|
2
|
+
# https://github.com/jeremymcanally/pending/tree/master
|
3
3
|
|
4
4
|
module ActiveSupport
|
5
5
|
module Testing
|
@@ -11,32 +11,36 @@ module ActiveSupport
|
|
11
11
|
@@at_exit = false
|
12
12
|
|
13
13
|
def pending(description = "", &block)
|
14
|
-
if
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
if defined?(::MiniTest)
|
15
|
+
skip(description.blank? ? nil : description)
|
16
|
+
else
|
17
|
+
if description.is_a?(Symbol)
|
18
|
+
is_pending = $tags[description]
|
19
|
+
return block.call unless is_pending
|
20
|
+
end
|
18
21
|
|
19
|
-
|
20
|
-
|
22
|
+
if block_given?
|
23
|
+
failed = false
|
21
24
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
25
|
+
begin
|
26
|
+
block.call
|
27
|
+
rescue Exception
|
28
|
+
failed = true
|
29
|
+
end
|
27
30
|
|
28
|
-
|
29
|
-
|
31
|
+
flunk("<#{description}> did not fail.") unless failed
|
32
|
+
end
|
30
33
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
+
caller[0] =~ (/(.*):(.*):in `(.*)'/)
|
35
|
+
@@pending_cases << "#{$3} at #{$1}, line #{$2}"
|
36
|
+
print "P"
|
34
37
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
38
|
+
@@at_exit ||= begin
|
39
|
+
at_exit do
|
40
|
+
puts "\nPending Cases:"
|
41
|
+
@@pending_cases.each do |test_case|
|
42
|
+
puts test_case
|
43
|
+
end
|
40
44
|
end
|
41
45
|
end
|
42
46
|
end
|
@@ -45,4 +49,4 @@ module ActiveSupport
|
|
45
49
|
|
46
50
|
end
|
47
51
|
end
|
48
|
-
end
|
52
|
+
end
|
@@ -31,14 +31,14 @@ module ActiveSupport
|
|
31
31
|
def run(runner)
|
32
32
|
result = '.'
|
33
33
|
begin
|
34
|
-
|
34
|
+
run_callbacks :setup do
|
35
35
|
result = super
|
36
36
|
end
|
37
37
|
rescue Exception => e
|
38
38
|
result = runner.puke(self.class, method_name, e)
|
39
39
|
ensure
|
40
40
|
begin
|
41
|
-
|
41
|
+
run_callbacks :teardown
|
42
42
|
rescue Exception => e
|
43
43
|
result = runner.puke(self.class, method_name, e)
|
44
44
|
end
|
@@ -56,13 +56,13 @@ module ActiveSupport
|
|
56
56
|
def run(result)
|
57
57
|
return if @method_name.to_s == "default_test"
|
58
58
|
|
59
|
-
mocha_counter = retrieve_mocha_counter(
|
59
|
+
mocha_counter = retrieve_mocha_counter(result)
|
60
60
|
yield(Test::Unit::TestCase::STARTED, name)
|
61
61
|
@_result = result
|
62
62
|
|
63
63
|
begin
|
64
64
|
begin
|
65
|
-
|
65
|
+
run_callbacks :setup do
|
66
66
|
setup
|
67
67
|
__send__(@method_name)
|
68
68
|
mocha_verify(mocha_counter) if mocha_counter
|
@@ -77,9 +77,7 @@ module ActiveSupport
|
|
77
77
|
ensure
|
78
78
|
begin
|
79
79
|
teardown
|
80
|
-
|
81
|
-
rescue Mocha::ExpectationError => e
|
82
|
-
add_failure(e.message, e.backtrace)
|
80
|
+
run_callbacks :teardown
|
83
81
|
rescue Test::Unit::AssertionFailedError => e
|
84
82
|
add_failure(e.message, e.backtrace)
|
85
83
|
rescue Exception => e
|
@@ -97,18 +95,17 @@ module ActiveSupport
|
|
97
95
|
|
98
96
|
protected
|
99
97
|
|
100
|
-
def retrieve_mocha_counter(
|
98
|
+
def retrieve_mocha_counter(result) #:nodoc:
|
101
99
|
if respond_to?(:mocha_verify) # using mocha
|
102
100
|
if defined?(Mocha::TestCaseAdapter::AssertionCounter)
|
103
101
|
Mocha::TestCaseAdapter::AssertionCounter.new(result)
|
104
|
-
elsif defined?(Mocha::Integration::TestUnit::AssertionCounter)
|
105
|
-
Mocha::Integration::TestUnit::AssertionCounter.new(result)
|
106
102
|
else
|
107
|
-
Mocha::Integration::AssertionCounter.new(
|
103
|
+
Mocha::Integration::TestUnit::AssertionCounter.new(result)
|
108
104
|
end
|
109
105
|
end
|
110
106
|
end
|
111
107
|
end
|
108
|
+
|
112
109
|
end
|
113
110
|
end
|
114
111
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require "active_support/values/time_zone"
|
2
2
|
require 'active_support/core_ext/object/acts_like'
|
3
|
+
require 'active_support/core_ext/object/inclusion'
|
3
4
|
|
4
5
|
module ActiveSupport
|
5
6
|
# A Time-like class that can represent a time in any time zone. Necessary because standard Ruby Time instances are
|
@@ -32,6 +33,7 @@ module ActiveSupport
|
|
32
33
|
# t > Time.utc(1999) # => true
|
33
34
|
# t.is_a?(Time) # => true
|
34
35
|
# t.is_a?(ActiveSupport::TimeWithZone) # => true
|
36
|
+
#
|
35
37
|
class TimeWithZone
|
36
38
|
def self.name
|
37
39
|
'Time' # Report class name as 'Time' to thwart type checking
|
@@ -127,6 +129,7 @@ module ActiveSupport
|
|
127
129
|
# # With ActiveSupport::JSON::Encoding.use_standard_json_time_format = false
|
128
130
|
# Time.utc(2005,2,1,15,15,10).in_time_zone.to_json
|
129
131
|
# # => "2005/02/01 15:15:10 +0000"
|
132
|
+
#
|
130
133
|
def as_json(options = nil)
|
131
134
|
if ActiveSupport::JSON::Encoding.use_standard_json_time_format
|
132
135
|
xmlschema
|
@@ -279,7 +282,7 @@ module ActiveSupport
|
|
279
282
|
|
280
283
|
# A TimeWithZone acts like a Time, so just return +self+.
|
281
284
|
def to_time
|
282
|
-
|
285
|
+
utc
|
283
286
|
end
|
284
287
|
|
285
288
|
def to_datetime
|
@@ -307,7 +310,7 @@ module ActiveSupport
|
|
307
310
|
end
|
308
311
|
|
309
312
|
def marshal_load(variables)
|
310
|
-
initialize(variables[0].utc, ::Time.
|
313
|
+
initialize(variables[0].utc, ::Time.find_zone(variables[1]), variables[2].utc)
|
311
314
|
end
|
312
315
|
|
313
316
|
# Ensure proxy class responds to all methods that underlying time instance responds to.
|
@@ -342,7 +345,7 @@ module ActiveSupport
|
|
342
345
|
end
|
343
346
|
|
344
347
|
def duration_of_variable_length?(obj)
|
345
|
-
ActiveSupport::Duration === obj && obj.parts.any? {|p| [:years, :months, :days]
|
348
|
+
ActiveSupport::Duration === obj && obj.parts.any? {|p| p[0].in?([:years, :months, :days]) }
|
346
349
|
end
|
347
350
|
end
|
348
351
|
end
|
@@ -126,9 +126,11 @@ module ActiveSupport
|
|
126
126
|
end
|
127
127
|
|
128
128
|
def rename_key(key, options = {})
|
129
|
-
camelize = options
|
129
|
+
camelize = options[:camelize]
|
130
130
|
dasherize = !options.has_key?(:dasherize) || options[:dasherize]
|
131
|
-
|
131
|
+
if camelize
|
132
|
+
key = true == camelize ? key.camelize : key.camelize(camelize)
|
133
|
+
end
|
132
134
|
key = _dasherize(key) if dasherize
|
133
135
|
key
|
134
136
|
end
|
@@ -5,12 +5,12 @@ include Java
|
|
5
5
|
|
6
6
|
require 'active_support/core_ext/object/blank'
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
import javax.xml.parsers.DocumentBuilder unless defined? DocumentBuilder
|
9
|
+
import javax.xml.parsers.DocumentBuilderFactory unless defined? DocumentBuilderFactory
|
10
|
+
import java.io.StringReader unless defined? StringReader
|
11
|
+
import org.xml.sax.InputSource unless defined? InputSource
|
12
|
+
import org.xml.sax.Attributes unless defined? Attributes
|
13
|
+
import org.w3c.dom.Node unless defined? Node
|
14
14
|
|
15
15
|
# = XmlMini JRuby JDOM implementation
|
16
16
|
module ActiveSupport
|
@@ -41,7 +41,7 @@ module ActiveSupport
|
|
41
41
|
xml_string_reader = StringReader.new(data)
|
42
42
|
xml_input_source = InputSource.new(xml_string_reader)
|
43
43
|
doc = @dbf.new_document_builder.parse(xml_input_source)
|
44
|
-
merge_element!({
|
44
|
+
merge_element!({}, doc.document_element)
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
@@ -54,14 +54,9 @@ module ActiveSupport
|
|
54
54
|
# element::
|
55
55
|
# XML element to merge into hash
|
56
56
|
def merge_element!(hash, element)
|
57
|
-
delete_empty(hash)
|
58
57
|
merge!(hash, element.tag_name, collapse(element))
|
59
58
|
end
|
60
59
|
|
61
|
-
def delete_empty(hash)
|
62
|
-
hash.delete(CONTENT_KEY) if hash[CONTENT_KEY] == ''
|
63
|
-
end
|
64
|
-
|
65
60
|
# Actually converts an XML document element into a data structure.
|
66
61
|
#
|
67
62
|
# element::
|
@@ -89,7 +84,6 @@ module ActiveSupport
|
|
89
84
|
# element::
|
90
85
|
# XML element whose texts are to me merged into the hash
|
91
86
|
def merge_texts!(hash, element)
|
92
|
-
delete_empty(hash)
|
93
87
|
text_children = texts(element)
|
94
88
|
if text_children.join.empty?
|
95
89
|
hash
|
@@ -134,9 +128,8 @@ module ActiveSupport
|
|
134
128
|
attribute_hash = {}
|
135
129
|
attributes = element.attributes
|
136
130
|
for i in 0...attributes.length
|
137
|
-
|
138
|
-
|
139
|
-
end
|
131
|
+
attribute_hash[attributes.item(i).name] = attributes.item(i).value
|
132
|
+
end
|
140
133
|
attribute_hash
|
141
134
|
end
|
142
135
|
|
metadata
CHANGED
@@ -1,23 +1,38 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: activesupport
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: 6
|
5
|
+
version: 3.1.0.beta1
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- David Heinemeier Hansson
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
|
13
|
+
date: 2011-05-04 00:00:00 -05:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: multi_json
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ~>
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: "1.0"
|
25
|
+
type: :runtime
|
26
|
+
version_requirements: *id001
|
27
|
+
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.
|
16
28
|
email: david@loudthinking.com
|
17
29
|
executables: []
|
30
|
+
|
18
31
|
extensions: []
|
32
|
+
|
19
33
|
extra_rdoc_files: []
|
20
|
-
|
34
|
+
|
35
|
+
files:
|
21
36
|
- CHANGELOG
|
22
37
|
- README.rdoc
|
23
38
|
- lib/active_support/all.rb
|
@@ -48,8 +63,6 @@ files:
|
|
48
63
|
- lib/active_support/core_ext/benchmark.rb
|
49
64
|
- lib/active_support/core_ext/big_decimal/conversions.rb
|
50
65
|
- lib/active_support/core_ext/big_decimal.rb
|
51
|
-
- lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
|
52
|
-
- lib/active_support/core_ext/cgi.rb
|
53
66
|
- lib/active_support/core_ext/class/attribute.rb
|
54
67
|
- lib/active_support/core_ext/class/attribute_accessors.rb
|
55
68
|
- lib/active_support/core_ext/class/delegating_attributes.rb
|
@@ -73,6 +86,7 @@ files:
|
|
73
86
|
- lib/active_support/core_ext/float/rounding.rb
|
74
87
|
- lib/active_support/core_ext/float.rb
|
75
88
|
- lib/active_support/core_ext/hash/conversions.rb
|
89
|
+
- lib/active_support/core_ext/hash/deep_dup.rb
|
76
90
|
- lib/active_support/core_ext/hash/deep_merge.rb
|
77
91
|
- lib/active_support/core_ext/hash/diff.rb
|
78
92
|
- lib/active_support/core_ext/hash/except.rb
|
@@ -114,8 +128,8 @@ files:
|
|
114
128
|
- lib/active_support/core_ext/object/blank.rb
|
115
129
|
- lib/active_support/core_ext/object/conversions.rb
|
116
130
|
- lib/active_support/core_ext/object/duplicable.rb
|
131
|
+
- lib/active_support/core_ext/object/inclusion.rb
|
117
132
|
- lib/active_support/core_ext/object/instance_variables.rb
|
118
|
-
- lib/active_support/core_ext/object/returning.rb
|
119
133
|
- lib/active_support/core_ext/object/to_json.rb
|
120
134
|
- lib/active_support/core_ext/object/to_param.rb
|
121
135
|
- lib/active_support/core_ext/object/to_query.rb
|
@@ -127,6 +141,7 @@ files:
|
|
127
141
|
- lib/active_support/core_ext/process.rb
|
128
142
|
- lib/active_support/core_ext/range/blockless_step.rb
|
129
143
|
- lib/active_support/core_ext/range/conversions.rb
|
144
|
+
- lib/active_support/core_ext/range/cover.rb
|
130
145
|
- lib/active_support/core_ext/range/include_range.rb
|
131
146
|
- lib/active_support/core_ext/range/overlaps.rb
|
132
147
|
- lib/active_support/core_ext/range.rb
|
@@ -139,6 +154,7 @@ files:
|
|
139
154
|
- lib/active_support/core_ext/string/exclude.rb
|
140
155
|
- lib/active_support/core_ext/string/filters.rb
|
141
156
|
- lib/active_support/core_ext/string/inflections.rb
|
157
|
+
- lib/active_support/core_ext/string/inquiry.rb
|
142
158
|
- lib/active_support/core_ext/string/interpolation.rb
|
143
159
|
- lib/active_support/core_ext/string/multibyte.rb
|
144
160
|
- lib/active_support/core_ext/string/output_safety.rb
|
@@ -164,6 +180,7 @@ files:
|
|
164
180
|
- lib/active_support/descendants_tracker.rb
|
165
181
|
- lib/active_support/duration.rb
|
166
182
|
- lib/active_support/file_update_checker.rb
|
183
|
+
- lib/active_support/file_watcher.rb
|
167
184
|
- lib/active_support/gzip.rb
|
168
185
|
- lib/active_support/hash_with_indifferent_access.rb
|
169
186
|
- lib/active_support/i18n.rb
|
@@ -173,10 +190,6 @@ files:
|
|
173
190
|
- lib/active_support/inflector/methods.rb
|
174
191
|
- lib/active_support/inflector/transliterate.rb
|
175
192
|
- lib/active_support/inflector.rb
|
176
|
-
- lib/active_support/json/backends/jsongem.rb
|
177
|
-
- lib/active_support/json/backends/okjson.rb
|
178
|
-
- lib/active_support/json/backends/yajl.rb
|
179
|
-
- lib/active_support/json/backends/yaml.rb
|
180
193
|
- lib/active_support/json/decoding.rb
|
181
194
|
- lib/active_support/json/encoding.rb
|
182
195
|
- lib/active_support/json/variable.rb
|
@@ -207,9 +220,9 @@ files:
|
|
207
220
|
- lib/active_support/test_case.rb
|
208
221
|
- lib/active_support/testing/assertions.rb
|
209
222
|
- lib/active_support/testing/declarative.rb
|
210
|
-
- lib/active_support/testing/default.rb
|
211
223
|
- lib/active_support/testing/deprecation.rb
|
212
224
|
- lib/active_support/testing/isolation.rb
|
225
|
+
- lib/active_support/testing/mochaing.rb
|
213
226
|
- lib/active_support/testing/pending.rb
|
214
227
|
- lib/active_support/testing/performance.rb
|
215
228
|
- lib/active_support/testing/setup_and_teardown.rb
|
@@ -228,28 +241,33 @@ files:
|
|
228
241
|
- lib/active_support/xml_mini/rexml.rb
|
229
242
|
- lib/active_support/xml_mini.rb
|
230
243
|
- lib/active_support.rb
|
244
|
+
has_rdoc: true
|
231
245
|
homepage: http://www.rubyonrails.org
|
232
246
|
licenses: []
|
233
|
-
|
247
|
+
|
234
248
|
post_install_message:
|
235
249
|
rdoc_options: []
|
236
|
-
|
250
|
+
|
251
|
+
require_paths:
|
237
252
|
- lib
|
238
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
239
|
-
|
253
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
254
|
+
none: false
|
255
|
+
requirements:
|
240
256
|
- - ">="
|
241
|
-
- !ruby/object:Gem::Version
|
257
|
+
- !ruby/object:Gem::Version
|
242
258
|
version: 1.8.7
|
243
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
259
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
260
|
+
none: false
|
261
|
+
requirements:
|
262
|
+
- - ">"
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: 1.3.1
|
248
265
|
requirements: []
|
266
|
+
|
249
267
|
rubyforge_project: activesupport
|
250
|
-
rubygems_version:
|
268
|
+
rubygems_version: 1.6.2
|
251
269
|
signing_key:
|
252
|
-
specification_version:
|
253
|
-
summary: A toolkit of support libraries and Ruby core extensions extracted from the
|
254
|
-
Rails framework.
|
270
|
+
specification_version: 3
|
271
|
+
summary: A toolkit of support libraries and Ruby core extensions extracted from the Rails framework.
|
255
272
|
test_files: []
|
273
|
+
|