activesupport 4.0.13 → 5.2.5
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.
- checksums.yaml +5 -5
- data/CHANGELOG.md +412 -444
- data/MIT-LICENSE +2 -2
- data/README.rdoc +8 -4
- data/lib/active_support/all.rb +5 -3
- data/lib/active_support/array_inquirer.rb +48 -0
- data/lib/active_support/backtrace_cleaner.rb +14 -12
- data/lib/active_support/benchmarkable.rb +6 -14
- data/lib/active_support/builder.rb +3 -1
- data/lib/active_support/cache/file_store.rb +67 -51
- data/lib/active_support/cache/mem_cache_store.rb +95 -97
- data/lib/active_support/cache/memory_store.rb +28 -30
- data/lib/active_support/cache/null_store.rb +7 -8
- data/lib/active_support/cache/redis_cache_store.rb +466 -0
- data/lib/active_support/cache/strategy/local_cache.rb +70 -56
- data/lib/active_support/cache/strategy/local_cache_middleware.rb +45 -0
- data/lib/active_support/cache.rb +331 -206
- data/lib/active_support/callbacks.rb +697 -426
- data/lib/active_support/concern.rb +32 -10
- data/lib/active_support/concurrency/load_interlock_aware_monitor.rb +17 -0
- data/lib/active_support/concurrency/share_lock.rb +227 -0
- data/lib/active_support/configurable.rb +8 -5
- data/lib/active_support/core_ext/array/access.rb +39 -1
- data/lib/active_support/core_ext/array/conversions.rb +24 -35
- data/lib/active_support/core_ext/array/extract_options.rb +2 -0
- data/lib/active_support/core_ext/array/grouping.rb +23 -13
- data/lib/active_support/core_ext/array/inquiry.rb +19 -0
- data/lib/active_support/core_ext/array/prepend_and_append.rb +7 -5
- data/lib/active_support/core_ext/array/wrap.rb +7 -4
- data/lib/active_support/core_ext/array.rb +9 -7
- data/lib/active_support/core_ext/benchmark.rb +3 -1
- data/lib/active_support/core_ext/big_decimal/conversions.rb +9 -26
- data/lib/active_support/core_ext/big_decimal.rb +3 -1
- data/lib/active_support/core_ext/class/attribute.rb +41 -23
- data/lib/active_support/core_ext/class/attribute_accessors.rb +5 -169
- data/lib/active_support/core_ext/class/subclasses.rb +20 -8
- data/lib/active_support/core_ext/class.rb +4 -4
- data/lib/active_support/core_ext/date/acts_like.rb +3 -1
- data/lib/active_support/core_ext/date/blank.rb +14 -0
- data/lib/active_support/core_ext/date/calculations.rb +21 -9
- data/lib/active_support/core_ext/date/conversions.rb +32 -22
- data/lib/active_support/core_ext/date/zones.rb +5 -34
- data/lib/active_support/core_ext/date.rb +6 -4
- data/lib/active_support/core_ext/date_and_time/calculations.rb +199 -57
- data/lib/active_support/core_ext/date_and_time/compatibility.rb +16 -0
- data/lib/active_support/core_ext/date_and_time/zones.rb +41 -0
- data/lib/active_support/core_ext/date_time/acts_like.rb +4 -2
- data/lib/active_support/core_ext/date_time/blank.rb +14 -0
- data/lib/active_support/core_ext/date_time/calculations.rb +78 -37
- data/lib/active_support/core_ext/date_time/compatibility.rb +18 -0
- data/lib/active_support/core_ext/date_time/conversions.rb +19 -13
- data/lib/active_support/core_ext/date_time.rb +7 -4
- data/lib/active_support/core_ext/digest/uuid.rb +53 -0
- data/lib/active_support/core_ext/digest.rb +3 -0
- data/lib/active_support/core_ext/enumerable.rb +113 -29
- data/lib/active_support/core_ext/file/atomic.rb +38 -31
- data/lib/active_support/core_ext/file.rb +3 -1
- data/lib/active_support/core_ext/hash/compact.rb +29 -0
- data/lib/active_support/core_ext/hash/conversions.rb +71 -49
- data/lib/active_support/core_ext/hash/deep_merge.rb +9 -13
- data/lib/active_support/core_ext/hash/except.rb +12 -3
- data/lib/active_support/core_ext/hash/indifferent_access.rb +5 -3
- data/lib/active_support/core_ext/hash/keys.rb +50 -38
- data/lib/active_support/core_ext/hash/reverse_merge.rb +5 -2
- data/lib/active_support/core_ext/hash/slice.rb +12 -6
- data/lib/active_support/core_ext/hash/transform_values.rb +32 -0
- data/lib/active_support/core_ext/hash.rb +11 -8
- data/lib/active_support/core_ext/integer/inflections.rb +3 -1
- data/lib/active_support/core_ext/integer/multiple.rb +2 -0
- data/lib/active_support/core_ext/integer/time.rb +11 -33
- data/lib/active_support/core_ext/integer.rb +5 -3
- data/lib/active_support/core_ext/kernel/agnostics.rb +2 -0
- data/lib/active_support/core_ext/kernel/concern.rb +14 -0
- data/lib/active_support/core_ext/kernel/reporting.rb +5 -74
- data/lib/active_support/core_ext/kernel/singleton_class.rb +2 -0
- data/lib/active_support/core_ext/kernel.rb +6 -4
- data/lib/active_support/core_ext/load_error.rb +5 -21
- data/lib/active_support/core_ext/marshal.rb +13 -10
- data/lib/active_support/core_ext/module/aliasing.rb +6 -44
- data/lib/active_support/core_ext/module/anonymous.rb +12 -1
- data/lib/active_support/core_ext/module/attr_internal.rb +8 -8
- data/lib/active_support/core_ext/module/attribute_accessors.rb +170 -21
- data/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb +150 -0
- data/lib/active_support/core_ext/module/concerning.rb +134 -0
- data/lib/active_support/core_ext/module/delegation.rb +135 -45
- data/lib/active_support/core_ext/module/deprecation.rb +3 -3
- data/lib/active_support/core_ext/module/introspection.rb +9 -25
- data/lib/active_support/core_ext/module/reachable.rb +5 -2
- data/lib/active_support/core_ext/module/redefine_method.rb +49 -0
- data/lib/active_support/core_ext/module/remove_method.rb +8 -3
- data/lib/active_support/core_ext/module.rb +14 -10
- data/lib/active_support/core_ext/name_error.rb +22 -2
- data/lib/active_support/core_ext/numeric/bytes.rb +22 -0
- data/lib/active_support/core_ext/numeric/conversions.rb +79 -74
- data/lib/active_support/core_ext/numeric/inquiry.rb +28 -0
- data/lib/active_support/core_ext/numeric/time.rb +37 -50
- data/lib/active_support/core_ext/numeric.rb +6 -3
- data/lib/active_support/core_ext/object/acts_like.rb +12 -1
- data/lib/active_support/core_ext/object/blank.rb +70 -19
- data/lib/active_support/core_ext/object/conversions.rb +6 -4
- data/lib/active_support/core_ext/object/deep_dup.rb +19 -10
- data/lib/active_support/core_ext/object/duplicable.rb +100 -34
- data/lib/active_support/core_ext/object/inclusion.rb +18 -15
- data/lib/active_support/core_ext/object/instance_variables.rb +3 -1
- data/lib/active_support/core_ext/object/json.rb +227 -0
- data/lib/active_support/core_ext/object/to_param.rb +3 -1
- data/lib/active_support/core_ext/object/to_query.rb +21 -8
- data/lib/active_support/core_ext/object/try.rb +94 -24
- data/lib/active_support/core_ext/object/with_options.rb +45 -5
- data/lib/active_support/core_ext/object.rb +14 -12
- data/lib/active_support/core_ext/range/compare_range.rb +61 -0
- data/lib/active_support/core_ext/range/conversions.rb +27 -7
- data/lib/active_support/core_ext/range/each.rb +19 -17
- data/lib/active_support/core_ext/range/include_range.rb +2 -22
- data/lib/active_support/core_ext/range/include_time_with_zone.rb +23 -0
- data/lib/active_support/core_ext/range/overlaps.rb +2 -0
- data/lib/active_support/core_ext/range.rb +7 -4
- data/lib/active_support/core_ext/regexp.rb +6 -0
- data/lib/active_support/core_ext/securerandom.rb +25 -0
- data/lib/active_support/core_ext/string/access.rb +41 -39
- data/lib/active_support/core_ext/string/behavior.rb +3 -1
- data/lib/active_support/core_ext/string/conversions.rb +17 -13
- data/lib/active_support/core_ext/string/exclude.rb +5 -3
- data/lib/active_support/core_ext/string/filters.rb +55 -6
- data/lib/active_support/core_ext/string/indent.rb +6 -4
- data/lib/active_support/core_ext/string/inflections.rb +66 -24
- data/lib/active_support/core_ext/string/inquiry.rb +3 -1
- data/lib/active_support/core_ext/string/multibyte.rb +15 -7
- data/lib/active_support/core_ext/string/output_safety.rb +114 -54
- data/lib/active_support/core_ext/string/starts_ends_with.rb +2 -0
- data/lib/active_support/core_ext/string/strip.rb +4 -5
- data/lib/active_support/core_ext/string/zones.rb +4 -1
- data/lib/active_support/core_ext/string.rb +15 -13
- data/lib/active_support/core_ext/time/acts_like.rb +3 -1
- data/lib/active_support/core_ext/time/calculations.rb +123 -110
- data/lib/active_support/core_ext/time/compatibility.rb +16 -0
- data/lib/active_support/core_ext/time/conversions.rb +23 -14
- data/lib/active_support/core_ext/time/zones.rb +42 -26
- data/lib/active_support/core_ext/time.rb +7 -5
- data/lib/active_support/core_ext/uri.rb +6 -8
- data/lib/active_support/core_ext.rb +3 -2
- data/lib/active_support/current_attributes.rb +195 -0
- data/lib/active_support/dependencies/autoload.rb +3 -1
- data/lib/active_support/dependencies/interlock.rb +57 -0
- data/lib/active_support/dependencies.rb +196 -166
- data/lib/active_support/deprecation/behaviors.rb +48 -15
- data/lib/active_support/deprecation/constant_accessor.rb +52 -0
- data/lib/active_support/deprecation/instance_delegator.rb +17 -2
- data/lib/active_support/deprecation/method_wrappers.rb +66 -20
- data/lib/active_support/deprecation/proxy_wrappers.rb +56 -28
- data/lib/active_support/deprecation/reporting.rb +32 -12
- data/lib/active_support/deprecation.rb +14 -11
- data/lib/active_support/descendants_tracker.rb +2 -0
- data/lib/active_support/digest.rb +20 -0
- data/lib/active_support/duration/iso8601_parser.rb +125 -0
- data/lib/active_support/duration/iso8601_serializer.rb +55 -0
- data/lib/active_support/duration.rb +354 -34
- data/lib/active_support/encrypted_configuration.rb +49 -0
- data/lib/active_support/encrypted_file.rb +99 -0
- data/lib/active_support/evented_file_update_checker.rb +205 -0
- data/lib/active_support/execution_wrapper.rb +128 -0
- data/lib/active_support/executor.rb +8 -0
- data/lib/active_support/file_update_checker.rb +63 -37
- data/lib/active_support/gem_version.rb +17 -0
- data/lib/active_support/gzip.rb +7 -5
- data/lib/active_support/hash_with_indifferent_access.rb +158 -35
- data/lib/active_support/i18n.rb +8 -6
- data/lib/active_support/i18n_railtie.rb +38 -20
- data/lib/active_support/inflections.rb +19 -12
- data/lib/active_support/inflector/inflections.rb +79 -30
- data/lib/active_support/inflector/methods.rb +197 -129
- data/lib/active_support/inflector/transliterate.rb +48 -27
- data/lib/active_support/inflector.rb +7 -5
- data/lib/active_support/json/decoding.rb +21 -25
- data/lib/active_support/json/encoding.rb +84 -292
- data/lib/active_support/json.rb +4 -2
- data/lib/active_support/key_generator.rb +26 -28
- data/lib/active_support/lazy_load_hooks.rb +51 -21
- data/lib/active_support/locale/en.yml +2 -0
- data/lib/active_support/log_subscriber/test_helper.rb +14 -12
- data/lib/active_support/log_subscriber.rb +13 -10
- data/lib/active_support/logger.rb +54 -3
- data/lib/active_support/logger_silence.rb +12 -7
- data/lib/active_support/logger_thread_safe_level.rb +34 -0
- data/lib/active_support/message_encryptor.rb +173 -50
- data/lib/active_support/message_verifier.rb +159 -22
- data/lib/active_support/messages/metadata.rb +71 -0
- data/lib/active_support/messages/rotation_configuration.rb +22 -0
- data/lib/active_support/messages/rotator.rb +56 -0
- data/lib/active_support/multibyte/chars.rb +38 -26
- data/lib/active_support/multibyte/unicode.rb +138 -146
- data/lib/active_support/multibyte.rb +4 -2
- data/lib/active_support/notifications/fanout.rb +23 -16
- data/lib/active_support/notifications/instrumenter.rb +29 -8
- data/lib/active_support/notifications.rb +22 -13
- data/lib/active_support/number_helper/number_converter.rb +184 -0
- data/lib/active_support/number_helper/number_to_currency_converter.rb +46 -0
- data/lib/active_support/number_helper/number_to_delimited_converter.rb +29 -0
- data/lib/active_support/number_helper/number_to_human_converter.rb +68 -0
- data/lib/active_support/number_helper/number_to_human_size_converter.rb +59 -0
- data/lib/active_support/number_helper/number_to_percentage_converter.rb +14 -0
- data/lib/active_support/number_helper/number_to_phone_converter.rb +58 -0
- data/lib/active_support/number_helper/number_to_rounded_converter.rb +54 -0
- data/lib/active_support/number_helper/rounding_helper.rb +66 -0
- data/lib/active_support/number_helper.rb +125 -391
- data/lib/active_support/option_merger.rb +3 -1
- data/lib/active_support/ordered_hash.rb +6 -4
- data/lib/active_support/ordered_options.rb +31 -5
- data/lib/active_support/per_thread_registry.rb +19 -11
- data/lib/active_support/proxy_object.rb +2 -0
- data/lib/active_support/rails.rb +16 -8
- data/lib/active_support/railtie.rb +43 -9
- data/lib/active_support/reloader.rb +131 -0
- data/lib/active_support/rescuable.rb +108 -53
- data/lib/active_support/security_utils.rb +31 -0
- data/lib/active_support/string_inquirer.rb +11 -3
- data/lib/active_support/subscriber.rb +54 -17
- data/lib/active_support/tagged_logging.rb +14 -11
- data/lib/active_support/test_case.rb +42 -37
- data/lib/active_support/testing/assertions.rb +126 -39
- data/lib/active_support/testing/autorun.rb +5 -3
- data/lib/active_support/testing/constant_lookup.rb +3 -6
- data/lib/active_support/testing/declarative.rb +10 -22
- data/lib/active_support/testing/deprecation.rb +14 -10
- data/lib/active_support/testing/file_fixtures.rb +36 -0
- data/lib/active_support/testing/isolation.rb +55 -86
- data/lib/active_support/testing/method_call_assertions.rb +43 -0
- data/lib/active_support/testing/setup_and_teardown.rb +30 -10
- data/lib/active_support/testing/stream.rb +44 -0
- data/lib/active_support/testing/tagged_logging.rb +5 -3
- data/lib/active_support/testing/time_helpers.rb +200 -0
- data/lib/active_support/time.rb +13 -13
- data/lib/active_support/time_with_zone.rb +223 -73
- data/lib/active_support/values/time_zone.rb +261 -126
- data/lib/active_support/values/unicode_tables.dat +0 -0
- data/lib/active_support/version.rb +6 -7
- data/lib/active_support/xml_mini/jdom.rb +116 -113
- data/lib/active_support/xml_mini/libxml.rb +17 -16
- data/lib/active_support/xml_mini/libxmlsax.rb +16 -18
- data/lib/active_support/xml_mini/nokogiri.rb +15 -15
- data/lib/active_support/xml_mini/nokogirisax.rb +15 -16
- data/lib/active_support/xml_mini/rexml.rb +17 -16
- data/lib/active_support/xml_mini.rb +69 -51
- data/lib/active_support.rb +29 -3
- metadata +84 -54
- data/lib/active_support/basic_object.rb +0 -11
- data/lib/active_support/buffered_logger.rb +0 -21
- data/lib/active_support/concurrency/latch.rb +0 -27
- data/lib/active_support/core_ext/array/uniq_by.rb +0 -19
- data/lib/active_support/core_ext/class/delegating_attributes.rb +0 -40
- data/lib/active_support/core_ext/date_time/zones.rb +0 -24
- data/lib/active_support/core_ext/hash/diff.rb +0 -14
- data/lib/active_support/core_ext/kernel/debugger.rb +0 -10
- data/lib/active_support/core_ext/logger.rb +0 -67
- data/lib/active_support/core_ext/module/qualified_const.rb +0 -52
- data/lib/active_support/core_ext/object/to_json.rb +0 -27
- data/lib/active_support/core_ext/proc.rb +0 -17
- data/lib/active_support/core_ext/string/encoding.rb +0 -8
- data/lib/active_support/core_ext/struct.rb +0 -6
- data/lib/active_support/core_ext/thread.rb +0 -79
- data/lib/active_support/core_ext/time/marshal.rb +0 -30
- data/lib/active_support/file_watcher.rb +0 -36
- data/lib/active_support/json/variable.rb +0 -18
- data/lib/active_support/testing/pending.rb +0 -14
@@ -1,9 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require
|
4
|
-
require
|
5
|
-
require
|
6
|
-
require
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "time"
|
4
|
+
require "base64"
|
5
|
+
require "bigdecimal"
|
6
|
+
require "active_support/core_ext/module/delegation"
|
7
|
+
require "active_support/core_ext/string/inflections"
|
8
|
+
require "active_support/core_ext/date_time/calculations"
|
7
9
|
|
8
10
|
module ActiveSupport
|
9
11
|
# = XmlMini
|
@@ -20,11 +22,11 @@ module ActiveSupport
|
|
20
22
|
attr_writer :original_filename, :content_type
|
21
23
|
|
22
24
|
def original_filename
|
23
|
-
@original_filename ||
|
25
|
+
@original_filename || "untitled"
|
24
26
|
end
|
25
27
|
|
26
28
|
def content_type
|
27
|
-
@content_type ||
|
29
|
+
@content_type || "application/octet-stream"
|
28
30
|
end
|
29
31
|
end
|
30
32
|
|
@@ -32,20 +34,25 @@ module ActiveSupport
|
|
32
34
|
"binary" => "base64"
|
33
35
|
} unless defined?(DEFAULT_ENCODINGS)
|
34
36
|
|
35
|
-
TYPE_NAMES
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
37
|
+
unless defined?(TYPE_NAMES)
|
38
|
+
TYPE_NAMES = {
|
39
|
+
"Symbol" => "symbol",
|
40
|
+
"Integer" => "integer",
|
41
|
+
"BigDecimal" => "decimal",
|
42
|
+
"Float" => "float",
|
43
|
+
"TrueClass" => "boolean",
|
44
|
+
"FalseClass" => "boolean",
|
45
|
+
"Date" => "date",
|
46
|
+
"DateTime" => "dateTime",
|
47
|
+
"Time" => "dateTime",
|
48
|
+
"Array" => "array",
|
49
|
+
"Hash" => "hash"
|
50
|
+
}
|
51
|
+
|
52
|
+
# No need to map these on Ruby 2.4+
|
53
|
+
TYPE_NAMES["Fixnum"] = "integer" unless 0.class == Integer
|
54
|
+
TYPE_NAMES["Bignum"] = "integer" unless 0.class == Integer
|
55
|
+
end
|
49
56
|
|
50
57
|
FORMATTING = {
|
51
58
|
"symbol" => Proc.new { |symbol| symbol.to_s },
|
@@ -63,10 +70,20 @@ module ActiveSupport
|
|
63
70
|
"datetime" => Proc.new { |time| Time.xmlschema(time).utc rescue ::DateTime.parse(time).utc },
|
64
71
|
"integer" => Proc.new { |integer| integer.to_i },
|
65
72
|
"float" => Proc.new { |float| float.to_f },
|
66
|
-
"decimal" => Proc.new
|
73
|
+
"decimal" => Proc.new do |number|
|
74
|
+
if String === number
|
75
|
+
begin
|
76
|
+
BigDecimal(number)
|
77
|
+
rescue ArgumentError
|
78
|
+
BigDecimal(number.to_f.to_s)
|
79
|
+
end
|
80
|
+
else
|
81
|
+
BigDecimal(number)
|
82
|
+
end
|
83
|
+
end,
|
67
84
|
"boolean" => Proc.new { |boolean| %w(1 true).include?(boolean.to_s.strip) },
|
68
85
|
"string" => Proc.new { |string| string.to_s },
|
69
|
-
"yaml" => Proc.new { |yaml| YAML
|
86
|
+
"yaml" => Proc.new { |yaml| YAML.load(yaml) rescue yaml },
|
70
87
|
"base64Binary" => Proc.new { |bin| ::Base64.decode64(bin) },
|
71
88
|
"binary" => Proc.new { |bin, entity| _parse_binary(bin, entity) },
|
72
89
|
"file" => Proc.new { |file, entity| _parse_file(file, entity) }
|
@@ -78,7 +95,10 @@ module ActiveSupport
|
|
78
95
|
)
|
79
96
|
end
|
80
97
|
|
81
|
-
|
98
|
+
attr_accessor :depth
|
99
|
+
self.depth = 100
|
100
|
+
|
101
|
+
delegate :parse, to: :backend
|
82
102
|
|
83
103
|
def backend
|
84
104
|
current_thread_backend || @backend
|
@@ -100,7 +120,7 @@ module ActiveSupport
|
|
100
120
|
|
101
121
|
def to_tag(key, value, options)
|
102
122
|
type_name = options.delete(:type)
|
103
|
-
merged_options = options.merge(:
|
123
|
+
merged_options = options.merge(root: key, skip_instruct: true)
|
104
124
|
|
105
125
|
if value.is_a?(::Method) || value.is_a?(::Proc)
|
106
126
|
if value.arity == 1
|
@@ -118,7 +138,7 @@ module ActiveSupport
|
|
118
138
|
|
119
139
|
key = rename_key(key.to_s, options)
|
120
140
|
|
121
|
-
attributes = options[:skip_types] || type_name.nil? ? {
|
141
|
+
attributes = options[:skip_types] || type_name.nil? ? {} : { type: type_name }
|
122
142
|
attributes[:nil] = true if value.nil?
|
123
143
|
|
124
144
|
encoding = options[:encoding] || DEFAULT_ENCODINGS[type_name]
|
@@ -141,33 +161,31 @@ module ActiveSupport
|
|
141
161
|
key
|
142
162
|
end
|
143
163
|
|
144
|
-
|
145
|
-
|
146
|
-
def _dasherize(key)
|
147
|
-
# $2 must be a non-greedy regex for this to work
|
148
|
-
left, middle, right = /\A(_*)(.*?)(_*)\Z/.match(key.strip)[1,3]
|
149
|
-
"#{left}#{middle.tr('_ ', '--')}#{right}"
|
150
|
-
end
|
164
|
+
private
|
151
165
|
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
::Base64.decode64(bin)
|
157
|
-
else
|
158
|
-
bin
|
166
|
+
def _dasherize(key)
|
167
|
+
# $2 must be a non-greedy regex for this to work
|
168
|
+
left, middle, right = /\A(_*)(.*?)(_*)\Z/.match(key.strip)[1, 3]
|
169
|
+
"#{left}#{middle.tr('_ ', '--')}#{right}"
|
159
170
|
end
|
160
|
-
end
|
161
171
|
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
172
|
+
# TODO: Add support for other encodings
|
173
|
+
def _parse_binary(bin, entity)
|
174
|
+
case entity["encoding"]
|
175
|
+
when "base64"
|
176
|
+
::Base64.decode64(bin)
|
177
|
+
else
|
178
|
+
bin
|
179
|
+
end
|
180
|
+
end
|
169
181
|
|
170
|
-
|
182
|
+
def _parse_file(file, entity)
|
183
|
+
f = StringIO.new(::Base64.decode64(file))
|
184
|
+
f.extend(FileLike)
|
185
|
+
f.original_filename = entity["name"]
|
186
|
+
f.content_type = entity["content_type"]
|
187
|
+
f
|
188
|
+
end
|
171
189
|
|
172
190
|
def current_thread_backend
|
173
191
|
Thread.current[:xml_mini_backend]
|
@@ -187,5 +205,5 @@ module ActiveSupport
|
|
187
205
|
end
|
188
206
|
end
|
189
207
|
|
190
|
-
XmlMini.backend =
|
208
|
+
XmlMini.backend = "REXML"
|
191
209
|
end
|
data/lib/active_support.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
#--
|
2
|
-
# Copyright (c) 2005-
|
4
|
+
# Copyright (c) 2005-2018 David Heinemeier Hansson
|
3
5
|
#
|
4
6
|
# Permission is hereby granted, free of charge, to any person obtaining
|
5
7
|
# a copy of this software and associated documentation files (the
|
@@ -21,31 +23,37 @@
|
|
21
23
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
24
|
#++
|
23
25
|
|
24
|
-
require
|
26
|
+
require "securerandom"
|
25
27
|
require "active_support/dependencies/autoload"
|
26
28
|
require "active_support/version"
|
27
29
|
require "active_support/logger"
|
28
30
|
require "active_support/lazy_load_hooks"
|
31
|
+
require "active_support/core_ext/date_and_time/compatibility"
|
29
32
|
|
30
33
|
module ActiveSupport
|
31
34
|
extend ActiveSupport::Autoload
|
32
35
|
|
33
36
|
autoload :Concern
|
37
|
+
autoload :CurrentAttributes
|
34
38
|
autoload :Dependencies
|
35
39
|
autoload :DescendantsTracker
|
40
|
+
autoload :ExecutionWrapper
|
41
|
+
autoload :Executor
|
36
42
|
autoload :FileUpdateChecker
|
43
|
+
autoload :EventedFileUpdateChecker
|
37
44
|
autoload :LogSubscriber
|
38
45
|
autoload :Notifications
|
46
|
+
autoload :Reloader
|
39
47
|
|
40
48
|
eager_autoload do
|
41
49
|
autoload :BacktraceCleaner
|
42
|
-
autoload :BasicObject
|
43
50
|
autoload :ProxyObject
|
44
51
|
autoload :Benchmarkable
|
45
52
|
autoload :Cache
|
46
53
|
autoload :Callbacks
|
47
54
|
autoload :Configurable
|
48
55
|
autoload :Deprecation
|
56
|
+
autoload :Digest
|
49
57
|
autoload :Gzip
|
50
58
|
autoload :Inflector
|
51
59
|
autoload :JSON
|
@@ -53,17 +61,35 @@ module ActiveSupport
|
|
53
61
|
autoload :MessageEncryptor
|
54
62
|
autoload :MessageVerifier
|
55
63
|
autoload :Multibyte
|
64
|
+
autoload :NumberHelper
|
56
65
|
autoload :OptionMerger
|
57
66
|
autoload :OrderedHash
|
58
67
|
autoload :OrderedOptions
|
59
68
|
autoload :StringInquirer
|
60
69
|
autoload :TaggedLogging
|
61
70
|
autoload :XmlMini
|
71
|
+
autoload :ArrayInquirer
|
62
72
|
end
|
63
73
|
|
64
74
|
autoload :Rescuable
|
65
75
|
autoload :SafeBuffer, "active_support/core_ext/string/output_safety"
|
66
76
|
autoload :TestCase
|
77
|
+
|
78
|
+
def self.eager_load!
|
79
|
+
super
|
80
|
+
|
81
|
+
NumberHelper.eager_load!
|
82
|
+
end
|
83
|
+
|
84
|
+
cattr_accessor :test_order # :nodoc:
|
85
|
+
|
86
|
+
def self.to_time_preserves_timezone
|
87
|
+
DateAndTime::Compatibility.preserve_timezone
|
88
|
+
end
|
89
|
+
|
90
|
+
def self.to_time_preserves_timezone=(value)
|
91
|
+
DateAndTime::Compatibility.preserve_timezone = value
|
92
|
+
end
|
67
93
|
end
|
68
94
|
|
69
95
|
autoload :I18n, "active_support/i18n"
|
metadata
CHANGED
@@ -1,91 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activesupport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.6'
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
19
|
+
version: '0.7'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0.6'
|
30
27
|
- - ">="
|
31
28
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
33
|
-
-
|
34
|
-
name: multi_json
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
29
|
+
version: '0.7'
|
30
|
+
- - "<"
|
38
31
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
40
|
-
type: :runtime
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '1.3'
|
32
|
+
version: '2'
|
47
33
|
- !ruby/object:Gem::Dependency
|
48
34
|
name: tzinfo
|
49
35
|
requirement: !ruby/object:Gem::Requirement
|
50
36
|
requirements:
|
51
37
|
- - "~>"
|
52
38
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
39
|
+
version: '1.1'
|
54
40
|
type: :runtime
|
55
41
|
prerelease: false
|
56
42
|
version_requirements: !ruby/object:Gem::Requirement
|
57
43
|
requirements:
|
58
44
|
- - "~>"
|
59
45
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
46
|
+
version: '1.1'
|
61
47
|
- !ruby/object:Gem::Dependency
|
62
48
|
name: minitest
|
63
49
|
requirement: !ruby/object:Gem::Requirement
|
64
50
|
requirements:
|
65
51
|
- - "~>"
|
66
52
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
53
|
+
version: '5.1'
|
68
54
|
type: :runtime
|
69
55
|
prerelease: false
|
70
56
|
version_requirements: !ruby/object:Gem::Requirement
|
71
57
|
requirements:
|
72
58
|
- - "~>"
|
73
59
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
60
|
+
version: '5.1'
|
75
61
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
62
|
+
name: concurrent-ruby
|
77
63
|
requirement: !ruby/object:Gem::Requirement
|
78
64
|
requirements:
|
79
65
|
- - "~>"
|
80
66
|
- !ruby/object:Gem::Version
|
81
|
-
version: '0
|
67
|
+
version: '1.0'
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 1.0.2
|
82
71
|
type: :runtime
|
83
72
|
prerelease: false
|
84
73
|
version_requirements: !ruby/object:Gem::Requirement
|
85
74
|
requirements:
|
86
75
|
- - "~>"
|
87
76
|
- !ruby/object:Gem::Version
|
88
|
-
version: '0
|
77
|
+
version: '1.0'
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 1.0.2
|
89
81
|
description: A toolkit of support libraries and Ruby core extensions extracted from
|
90
82
|
the Rails framework. Rich support for multibyte strings, internationalization, time
|
91
83
|
zones, and testing.
|
@@ -99,20 +91,22 @@ files:
|
|
99
91
|
- README.rdoc
|
100
92
|
- lib/active_support.rb
|
101
93
|
- lib/active_support/all.rb
|
94
|
+
- lib/active_support/array_inquirer.rb
|
102
95
|
- lib/active_support/backtrace_cleaner.rb
|
103
|
-
- lib/active_support/basic_object.rb
|
104
96
|
- lib/active_support/benchmarkable.rb
|
105
|
-
- lib/active_support/buffered_logger.rb
|
106
97
|
- lib/active_support/builder.rb
|
107
98
|
- lib/active_support/cache.rb
|
108
99
|
- lib/active_support/cache/file_store.rb
|
109
100
|
- lib/active_support/cache/mem_cache_store.rb
|
110
101
|
- lib/active_support/cache/memory_store.rb
|
111
102
|
- lib/active_support/cache/null_store.rb
|
103
|
+
- lib/active_support/cache/redis_cache_store.rb
|
112
104
|
- lib/active_support/cache/strategy/local_cache.rb
|
105
|
+
- lib/active_support/cache/strategy/local_cache_middleware.rb
|
113
106
|
- lib/active_support/callbacks.rb
|
114
107
|
- lib/active_support/concern.rb
|
115
|
-
- lib/active_support/concurrency/
|
108
|
+
- lib/active_support/concurrency/load_interlock_aware_monitor.rb
|
109
|
+
- lib/active_support/concurrency/share_lock.rb
|
116
110
|
- lib/active_support/configurable.rb
|
117
111
|
- lib/active_support/core_ext.rb
|
118
112
|
- lib/active_support/core_ext/array.rb
|
@@ -120,8 +114,8 @@ files:
|
|
120
114
|
- lib/active_support/core_ext/array/conversions.rb
|
121
115
|
- lib/active_support/core_ext/array/extract_options.rb
|
122
116
|
- lib/active_support/core_ext/array/grouping.rb
|
117
|
+
- lib/active_support/core_ext/array/inquiry.rb
|
123
118
|
- lib/active_support/core_ext/array/prepend_and_append.rb
|
124
|
-
- lib/active_support/core_ext/array/uniq_by.rb
|
125
119
|
- lib/active_support/core_ext/array/wrap.rb
|
126
120
|
- lib/active_support/core_ext/benchmark.rb
|
127
121
|
- lib/active_support/core_ext/big_decimal.rb
|
@@ -129,58 +123,66 @@ files:
|
|
129
123
|
- lib/active_support/core_ext/class.rb
|
130
124
|
- lib/active_support/core_ext/class/attribute.rb
|
131
125
|
- lib/active_support/core_ext/class/attribute_accessors.rb
|
132
|
-
- lib/active_support/core_ext/class/delegating_attributes.rb
|
133
126
|
- lib/active_support/core_ext/class/subclasses.rb
|
134
127
|
- lib/active_support/core_ext/date.rb
|
135
128
|
- lib/active_support/core_ext/date/acts_like.rb
|
129
|
+
- lib/active_support/core_ext/date/blank.rb
|
136
130
|
- lib/active_support/core_ext/date/calculations.rb
|
137
131
|
- lib/active_support/core_ext/date/conversions.rb
|
138
132
|
- lib/active_support/core_ext/date/zones.rb
|
139
133
|
- lib/active_support/core_ext/date_and_time/calculations.rb
|
134
|
+
- lib/active_support/core_ext/date_and_time/compatibility.rb
|
135
|
+
- lib/active_support/core_ext/date_and_time/zones.rb
|
140
136
|
- lib/active_support/core_ext/date_time.rb
|
141
137
|
- lib/active_support/core_ext/date_time/acts_like.rb
|
138
|
+
- lib/active_support/core_ext/date_time/blank.rb
|
142
139
|
- lib/active_support/core_ext/date_time/calculations.rb
|
140
|
+
- lib/active_support/core_ext/date_time/compatibility.rb
|
143
141
|
- lib/active_support/core_ext/date_time/conversions.rb
|
144
|
-
- lib/active_support/core_ext/
|
142
|
+
- lib/active_support/core_ext/digest.rb
|
143
|
+
- lib/active_support/core_ext/digest/uuid.rb
|
145
144
|
- lib/active_support/core_ext/enumerable.rb
|
146
145
|
- lib/active_support/core_ext/file.rb
|
147
146
|
- lib/active_support/core_ext/file/atomic.rb
|
148
147
|
- lib/active_support/core_ext/hash.rb
|
148
|
+
- lib/active_support/core_ext/hash/compact.rb
|
149
149
|
- lib/active_support/core_ext/hash/conversions.rb
|
150
150
|
- lib/active_support/core_ext/hash/deep_merge.rb
|
151
|
-
- lib/active_support/core_ext/hash/diff.rb
|
152
151
|
- lib/active_support/core_ext/hash/except.rb
|
153
152
|
- lib/active_support/core_ext/hash/indifferent_access.rb
|
154
153
|
- lib/active_support/core_ext/hash/keys.rb
|
155
154
|
- lib/active_support/core_ext/hash/reverse_merge.rb
|
156
155
|
- lib/active_support/core_ext/hash/slice.rb
|
156
|
+
- lib/active_support/core_ext/hash/transform_values.rb
|
157
157
|
- lib/active_support/core_ext/integer.rb
|
158
158
|
- lib/active_support/core_ext/integer/inflections.rb
|
159
159
|
- lib/active_support/core_ext/integer/multiple.rb
|
160
160
|
- lib/active_support/core_ext/integer/time.rb
|
161
161
|
- lib/active_support/core_ext/kernel.rb
|
162
162
|
- lib/active_support/core_ext/kernel/agnostics.rb
|
163
|
-
- lib/active_support/core_ext/kernel/
|
163
|
+
- lib/active_support/core_ext/kernel/concern.rb
|
164
164
|
- lib/active_support/core_ext/kernel/reporting.rb
|
165
165
|
- lib/active_support/core_ext/kernel/singleton_class.rb
|
166
166
|
- lib/active_support/core_ext/load_error.rb
|
167
|
-
- lib/active_support/core_ext/logger.rb
|
168
167
|
- lib/active_support/core_ext/marshal.rb
|
169
168
|
- lib/active_support/core_ext/module.rb
|
170
169
|
- lib/active_support/core_ext/module/aliasing.rb
|
171
170
|
- lib/active_support/core_ext/module/anonymous.rb
|
172
171
|
- lib/active_support/core_ext/module/attr_internal.rb
|
173
172
|
- lib/active_support/core_ext/module/attribute_accessors.rb
|
173
|
+
- lib/active_support/core_ext/module/attribute_accessors_per_thread.rb
|
174
|
+
- lib/active_support/core_ext/module/concerning.rb
|
174
175
|
- lib/active_support/core_ext/module/delegation.rb
|
175
176
|
- lib/active_support/core_ext/module/deprecation.rb
|
176
177
|
- lib/active_support/core_ext/module/introspection.rb
|
177
|
-
- lib/active_support/core_ext/module/qualified_const.rb
|
178
178
|
- lib/active_support/core_ext/module/reachable.rb
|
179
|
+
- lib/active_support/core_ext/module/redefine_method.rb
|
179
180
|
- lib/active_support/core_ext/module/remove_method.rb
|
180
181
|
- lib/active_support/core_ext/name_error.rb
|
181
182
|
- lib/active_support/core_ext/numeric.rb
|
182
183
|
- lib/active_support/core_ext/numeric/bytes.rb
|
183
184
|
- lib/active_support/core_ext/numeric/conversions.rb
|
185
|
+
- lib/active_support/core_ext/numeric/inquiry.rb
|
184
186
|
- lib/active_support/core_ext/numeric/time.rb
|
185
187
|
- lib/active_support/core_ext/object.rb
|
186
188
|
- lib/active_support/core_ext/object/acts_like.rb
|
@@ -190,23 +192,24 @@ files:
|
|
190
192
|
- lib/active_support/core_ext/object/duplicable.rb
|
191
193
|
- lib/active_support/core_ext/object/inclusion.rb
|
192
194
|
- lib/active_support/core_ext/object/instance_variables.rb
|
193
|
-
- lib/active_support/core_ext/object/
|
195
|
+
- lib/active_support/core_ext/object/json.rb
|
194
196
|
- lib/active_support/core_ext/object/to_param.rb
|
195
197
|
- lib/active_support/core_ext/object/to_query.rb
|
196
198
|
- lib/active_support/core_ext/object/try.rb
|
197
199
|
- lib/active_support/core_ext/object/with_options.rb
|
198
|
-
- lib/active_support/core_ext/proc.rb
|
199
200
|
- lib/active_support/core_ext/range.rb
|
201
|
+
- lib/active_support/core_ext/range/compare_range.rb
|
200
202
|
- lib/active_support/core_ext/range/conversions.rb
|
201
203
|
- lib/active_support/core_ext/range/each.rb
|
202
204
|
- lib/active_support/core_ext/range/include_range.rb
|
205
|
+
- lib/active_support/core_ext/range/include_time_with_zone.rb
|
203
206
|
- lib/active_support/core_ext/range/overlaps.rb
|
204
207
|
- lib/active_support/core_ext/regexp.rb
|
208
|
+
- lib/active_support/core_ext/securerandom.rb
|
205
209
|
- lib/active_support/core_ext/string.rb
|
206
210
|
- lib/active_support/core_ext/string/access.rb
|
207
211
|
- lib/active_support/core_ext/string/behavior.rb
|
208
212
|
- lib/active_support/core_ext/string/conversions.rb
|
209
|
-
- lib/active_support/core_ext/string/encoding.rb
|
210
213
|
- lib/active_support/core_ext/string/exclude.rb
|
211
214
|
- lib/active_support/core_ext/string/filters.rb
|
212
215
|
- lib/active_support/core_ext/string/indent.rb
|
@@ -217,27 +220,36 @@ files:
|
|
217
220
|
- lib/active_support/core_ext/string/starts_ends_with.rb
|
218
221
|
- lib/active_support/core_ext/string/strip.rb
|
219
222
|
- lib/active_support/core_ext/string/zones.rb
|
220
|
-
- lib/active_support/core_ext/struct.rb
|
221
|
-
- lib/active_support/core_ext/thread.rb
|
222
223
|
- lib/active_support/core_ext/time.rb
|
223
224
|
- lib/active_support/core_ext/time/acts_like.rb
|
224
225
|
- lib/active_support/core_ext/time/calculations.rb
|
226
|
+
- lib/active_support/core_ext/time/compatibility.rb
|
225
227
|
- lib/active_support/core_ext/time/conversions.rb
|
226
|
-
- lib/active_support/core_ext/time/marshal.rb
|
227
228
|
- lib/active_support/core_ext/time/zones.rb
|
228
229
|
- lib/active_support/core_ext/uri.rb
|
230
|
+
- lib/active_support/current_attributes.rb
|
229
231
|
- lib/active_support/dependencies.rb
|
230
232
|
- lib/active_support/dependencies/autoload.rb
|
233
|
+
- lib/active_support/dependencies/interlock.rb
|
231
234
|
- lib/active_support/deprecation.rb
|
232
235
|
- lib/active_support/deprecation/behaviors.rb
|
236
|
+
- lib/active_support/deprecation/constant_accessor.rb
|
233
237
|
- lib/active_support/deprecation/instance_delegator.rb
|
234
238
|
- lib/active_support/deprecation/method_wrappers.rb
|
235
239
|
- lib/active_support/deprecation/proxy_wrappers.rb
|
236
240
|
- lib/active_support/deprecation/reporting.rb
|
237
241
|
- lib/active_support/descendants_tracker.rb
|
242
|
+
- lib/active_support/digest.rb
|
238
243
|
- lib/active_support/duration.rb
|
244
|
+
- lib/active_support/duration/iso8601_parser.rb
|
245
|
+
- lib/active_support/duration/iso8601_serializer.rb
|
246
|
+
- lib/active_support/encrypted_configuration.rb
|
247
|
+
- lib/active_support/encrypted_file.rb
|
248
|
+
- lib/active_support/evented_file_update_checker.rb
|
249
|
+
- lib/active_support/execution_wrapper.rb
|
250
|
+
- lib/active_support/executor.rb
|
239
251
|
- lib/active_support/file_update_checker.rb
|
240
|
-
- lib/active_support/
|
252
|
+
- lib/active_support/gem_version.rb
|
241
253
|
- lib/active_support/gzip.rb
|
242
254
|
- lib/active_support/hash_with_indifferent_access.rb
|
243
255
|
- lib/active_support/i18n.rb
|
@@ -250,7 +262,6 @@ files:
|
|
250
262
|
- lib/active_support/json.rb
|
251
263
|
- lib/active_support/json/decoding.rb
|
252
264
|
- lib/active_support/json/encoding.rb
|
253
|
-
- lib/active_support/json/variable.rb
|
254
265
|
- lib/active_support/key_generator.rb
|
255
266
|
- lib/active_support/lazy_load_hooks.rb
|
256
267
|
- lib/active_support/locale/en.yml
|
@@ -258,8 +269,12 @@ files:
|
|
258
269
|
- lib/active_support/log_subscriber/test_helper.rb
|
259
270
|
- lib/active_support/logger.rb
|
260
271
|
- lib/active_support/logger_silence.rb
|
272
|
+
- lib/active_support/logger_thread_safe_level.rb
|
261
273
|
- lib/active_support/message_encryptor.rb
|
262
274
|
- lib/active_support/message_verifier.rb
|
275
|
+
- lib/active_support/messages/metadata.rb
|
276
|
+
- lib/active_support/messages/rotation_configuration.rb
|
277
|
+
- lib/active_support/messages/rotator.rb
|
263
278
|
- lib/active_support/multibyte.rb
|
264
279
|
- lib/active_support/multibyte/chars.rb
|
265
280
|
- lib/active_support/multibyte/unicode.rb
|
@@ -267,6 +282,15 @@ files:
|
|
267
282
|
- lib/active_support/notifications/fanout.rb
|
268
283
|
- lib/active_support/notifications/instrumenter.rb
|
269
284
|
- lib/active_support/number_helper.rb
|
285
|
+
- lib/active_support/number_helper/number_converter.rb
|
286
|
+
- lib/active_support/number_helper/number_to_currency_converter.rb
|
287
|
+
- lib/active_support/number_helper/number_to_delimited_converter.rb
|
288
|
+
- lib/active_support/number_helper/number_to_human_converter.rb
|
289
|
+
- lib/active_support/number_helper/number_to_human_size_converter.rb
|
290
|
+
- lib/active_support/number_helper/number_to_percentage_converter.rb
|
291
|
+
- lib/active_support/number_helper/number_to_phone_converter.rb
|
292
|
+
- lib/active_support/number_helper/number_to_rounded_converter.rb
|
293
|
+
- lib/active_support/number_helper/rounding_helper.rb
|
270
294
|
- lib/active_support/option_merger.rb
|
271
295
|
- lib/active_support/ordered_hash.rb
|
272
296
|
- lib/active_support/ordered_options.rb
|
@@ -274,7 +298,9 @@ files:
|
|
274
298
|
- lib/active_support/proxy_object.rb
|
275
299
|
- lib/active_support/rails.rb
|
276
300
|
- lib/active_support/railtie.rb
|
301
|
+
- lib/active_support/reloader.rb
|
277
302
|
- lib/active_support/rescuable.rb
|
303
|
+
- lib/active_support/security_utils.rb
|
278
304
|
- lib/active_support/string_inquirer.rb
|
279
305
|
- lib/active_support/subscriber.rb
|
280
306
|
- lib/active_support/tagged_logging.rb
|
@@ -284,10 +310,13 @@ files:
|
|
284
310
|
- lib/active_support/testing/constant_lookup.rb
|
285
311
|
- lib/active_support/testing/declarative.rb
|
286
312
|
- lib/active_support/testing/deprecation.rb
|
313
|
+
- lib/active_support/testing/file_fixtures.rb
|
287
314
|
- lib/active_support/testing/isolation.rb
|
288
|
-
- lib/active_support/testing/
|
315
|
+
- lib/active_support/testing/method_call_assertions.rb
|
289
316
|
- lib/active_support/testing/setup_and_teardown.rb
|
317
|
+
- lib/active_support/testing/stream.rb
|
290
318
|
- lib/active_support/testing/tagged_logging.rb
|
319
|
+
- lib/active_support/testing/time_helpers.rb
|
291
320
|
- lib/active_support/time.rb
|
292
321
|
- lib/active_support/time_with_zone.rb
|
293
322
|
- lib/active_support/values/time_zone.rb
|
@@ -300,10 +329,12 @@ files:
|
|
300
329
|
- lib/active_support/xml_mini/nokogiri.rb
|
301
330
|
- lib/active_support/xml_mini/nokogirisax.rb
|
302
331
|
- lib/active_support/xml_mini/rexml.rb
|
303
|
-
homepage: http://
|
332
|
+
homepage: http://rubyonrails.org
|
304
333
|
licenses:
|
305
334
|
- MIT
|
306
|
-
metadata:
|
335
|
+
metadata:
|
336
|
+
source_code_uri: https://github.com/rails/rails/tree/v5.2.5/activesupport
|
337
|
+
changelog_uri: https://github.com/rails/rails/blob/v5.2.5/activesupport/CHANGELOG.md
|
307
338
|
post_install_message:
|
308
339
|
rdoc_options:
|
309
340
|
- "--encoding"
|
@@ -314,15 +345,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
314
345
|
requirements:
|
315
346
|
- - ">="
|
316
347
|
- !ruby/object:Gem::Version
|
317
|
-
version:
|
348
|
+
version: 2.2.2
|
318
349
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
319
350
|
requirements:
|
320
351
|
- - ">="
|
321
352
|
- !ruby/object:Gem::Version
|
322
353
|
version: '0'
|
323
354
|
requirements: []
|
324
|
-
|
325
|
-
rubygems_version: 2.4.5
|
355
|
+
rubygems_version: 3.1.2
|
326
356
|
signing_key:
|
327
357
|
specification_version: 4
|
328
358
|
summary: A toolkit of support libraries and Ruby core extensions extracted from the
|
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'active_support/deprecation'
|
2
|
-
require 'active_support/proxy_object'
|
3
|
-
|
4
|
-
module ActiveSupport
|
5
|
-
class BasicObject < ProxyObject # :nodoc:
|
6
|
-
def self.inherited(*)
|
7
|
-
::ActiveSupport::Deprecation.warn 'ActiveSupport::BasicObject is deprecated! Use ActiveSupport::ProxyObject instead.'
|
8
|
-
super
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|