mack-active_record 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mack-active_record/test_extensions.rb +0 -3
- metadata +3 -374
- data/lib/gems/activesupport-2.2.2/lib/active_support/base64.rb +0 -33
- data/lib/gems/activesupport-2.2.2/lib/active_support/basic_object.rb +0 -24
- data/lib/gems/activesupport-2.2.2/lib/active_support/buffered_logger.rb +0 -122
- data/lib/gems/activesupport-2.2.2/lib/active_support/cache/compressed_mem_cache_store.rb +0 -20
- data/lib/gems/activesupport-2.2.2/lib/active_support/cache/drb_store.rb +0 -15
- data/lib/gems/activesupport-2.2.2/lib/active_support/cache/file_store.rb +0 -72
- data/lib/gems/activesupport-2.2.2/lib/active_support/cache/mem_cache_store.rb +0 -127
- data/lib/gems/activesupport-2.2.2/lib/active_support/cache/memory_store.rb +0 -52
- data/lib/gems/activesupport-2.2.2/lib/active_support/cache/synchronized_memory_store.rb +0 -47
- data/lib/gems/activesupport-2.2.2/lib/active_support/cache.rb +0 -223
- data/lib/gems/activesupport-2.2.2/lib/active_support/callbacks.rb +0 -280
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/array/access.rb +0 -53
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/array/conversions.rb +0 -183
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/array/extract_options.rb +0 -20
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/array/grouping.rb +0 -106
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/array/random_access.rb +0 -12
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/array.rb +0 -13
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/base64/encoding.rb +0 -16
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/base64.rb +0 -4
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb +0 -12
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/bigdecimal/conversions.rb +0 -37
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/bigdecimal.rb +0 -6
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/blank.rb +0 -58
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +0 -14
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/cgi.rb +0 -5
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/class/attribute_accessors.rb +0 -54
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/class/delegating_attributes.rb +0 -46
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/class/inheritable_attributes.rb +0 -140
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/class/removal.rb +0 -50
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/class.rb +0 -4
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/date/behavior.rb +0 -42
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/date/calculations.rb +0 -230
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/date/conversions.rb +0 -107
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/date.rb +0 -10
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/date_time/calculations.rb +0 -126
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/date_time/conversions.rb +0 -96
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/date_time.rb +0 -12
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/duplicable.rb +0 -43
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/enumerable.rb +0 -107
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/exception.rb +0 -41
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/file/atomic.rb +0 -46
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/file.rb +0 -5
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/float/rounding.rb +0 -24
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/float/time.rb +0 -27
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/float.rb +0 -7
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/conversions.rb +0 -259
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/deep_merge.rb +0 -23
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/diff.rb +0 -19
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/except.rb +0 -25
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/indifferent_access.rb +0 -137
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/keys.rb +0 -52
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/reverse_merge.rb +0 -35
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/slice.rb +0 -33
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash.rb +0 -14
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/integer/even_odd.rb +0 -29
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/integer/inflections.rb +0 -20
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/integer/time.rb +0 -45
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/integer.rb +0 -9
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel/agnostics.rb +0 -11
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel/daemonizing.rb +0 -7
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel/debugger.rb +0 -13
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel/reporting.rb +0 -59
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel/requires.rb +0 -24
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel.rb +0 -5
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/load_error.rb +0 -38
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/logger.rb +0 -143
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module/aliasing.rb +0 -74
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module/attr_accessor_with_default.rb +0 -31
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module/attr_internal.rb +0 -32
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module/attribute_accessors.rb +0 -58
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module/delegation.rb +0 -95
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module/inclusion.rb +0 -30
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module/introspection.rb +0 -90
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module/loading.rb +0 -23
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module/model_naming.rb +0 -23
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module/synchronization.rb +0 -39
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module.rb +0 -23
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/name_error.rb +0 -17
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/numeric/bytes.rb +0 -44
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/numeric/conversions.rb +0 -19
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/numeric/time.rb +0 -81
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/numeric.rb +0 -9
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/object/conversions.rb +0 -14
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/object/extending.rb +0 -80
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/object/instance_variables.rb +0 -74
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/object/metaclass.rb +0 -13
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/object/misc.rb +0 -74
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/object.rb +0 -5
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/pathname/clean_within.rb +0 -14
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/pathname.rb +0 -7
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/proc.rb +0 -12
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/process/daemon.rb +0 -25
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/process.rb +0 -1
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/range/blockless_step.rb +0 -32
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/range/conversions.rb +0 -27
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/range/include_range.rb +0 -30
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/range/overlaps.rb +0 -15
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/range.rb +0 -11
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/rexml.rb +0 -36
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/access.rb +0 -82
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/behavior.rb +0 -13
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/conversions.rb +0 -28
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/filters.rb +0 -26
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/inflections.rb +0 -167
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/iterators.rb +0 -21
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/multibyte.rb +0 -81
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/starts_ends_with.rb +0 -35
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/xchar.rb +0 -11
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string.rb +0 -22
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/symbol.rb +0 -14
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/time/behavior.rb +0 -13
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/time/calculations.rb +0 -303
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/time/conversions.rb +0 -90
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/time/zones.rb +0 -86
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext/time.rb +0 -42
- data/lib/gems/activesupport-2.2.2/lib/active_support/core_ext.rb +0 -4
- data/lib/gems/activesupport-2.2.2/lib/active_support/dependencies.rb +0 -621
- data/lib/gems/activesupport-2.2.2/lib/active_support/deprecation.rb +0 -243
- data/lib/gems/activesupport-2.2.2/lib/active_support/duration.rb +0 -96
- data/lib/gems/activesupport-2.2.2/lib/active_support/gzip.rb +0 -25
- data/lib/gems/activesupport-2.2.2/lib/active_support/inflections.rb +0 -55
- data/lib/gems/activesupport-2.2.2/lib/active_support/inflector.rb +0 -397
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/decoding.rb +0 -63
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/date.rb +0 -21
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/date_time.rb +0 -21
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/enumerable.rb +0 -12
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/false_class.rb +0 -5
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/hash.rb +0 -47
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/nil_class.rb +0 -5
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/numeric.rb +0 -5
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/object.rb +0 -6
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/regexp.rb +0 -5
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/string.rb +0 -36
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/symbol.rb +0 -5
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/time.rb +0 -21
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/true_class.rb +0 -5
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/encoding.rb +0 -37
- data/lib/gems/activesupport-2.2.2/lib/active_support/json/variable.rb +0 -10
- data/lib/gems/activesupport-2.2.2/lib/active_support/json.rb +0 -23
- data/lib/gems/activesupport-2.2.2/lib/active_support/locale/en.yml +0 -32
- data/lib/gems/activesupport-2.2.2/lib/active_support/memoizable.rb +0 -82
- data/lib/gems/activesupport-2.2.2/lib/active_support/multibyte/chars.rb +0 -679
- data/lib/gems/activesupport-2.2.2/lib/active_support/multibyte/exceptions.rb +0 -8
- data/lib/gems/activesupport-2.2.2/lib/active_support/multibyte/unicode_database.rb +0 -71
- data/lib/gems/activesupport-2.2.2/lib/active_support/multibyte.rb +0 -33
- data/lib/gems/activesupport-2.2.2/lib/active_support/option_merger.rb +0 -17
- data/lib/gems/activesupport-2.2.2/lib/active_support/ordered_hash.rb +0 -58
- data/lib/gems/activesupport-2.2.2/lib/active_support/ordered_options.rb +0 -19
- data/lib/gems/activesupport-2.2.2/lib/active_support/rescuable.rb +0 -108
- data/lib/gems/activesupport-2.2.2/lib/active_support/secure_random.rb +0 -197
- data/lib/gems/activesupport-2.2.2/lib/active_support/string_inquirer.rb +0 -21
- data/lib/gems/activesupport-2.2.2/lib/active_support/test_case.rb +0 -24
- data/lib/gems/activesupport-2.2.2/lib/active_support/testing/core_ext/test/unit/assertions.rb +0 -72
- data/lib/gems/activesupport-2.2.2/lib/active_support/testing/core_ext/test.rb +0 -6
- data/lib/gems/activesupport-2.2.2/lib/active_support/testing/default.rb +0 -9
- data/lib/gems/activesupport-2.2.2/lib/active_support/testing/performance.rb +0 -452
- data/lib/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb +0 -120
- data/lib/gems/activesupport-2.2.2/lib/active_support/time_with_zone.rb +0 -328
- data/lib/gems/activesupport-2.2.2/lib/active_support/values/time_zone.rb +0 -403
- data/lib/gems/activesupport-2.2.2/lib/active_support/values/unicode_tables.dat +0 -0
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/blankslate.rb +0 -113
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/blankslate.rb +0 -20
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/css.rb +0 -250
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/xchar.rb +0 -115
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb +0 -139
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/xmlevents.rb +0 -63
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/xmlmarkup.rb +0 -328
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder.rb +0 -13
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb +0 -216
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb +0 -53
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n.rb +0 -194
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/memcache-client-1.5.1/memcache.rb +0 -849
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone.rb +0 -47
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone_info.rb +0 -228
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Algiers.rb +0 -55
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Cairo.rb +0 -219
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Casablanca.rb +0 -40
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Harare.rb +0 -18
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Johannesburg.rb +0 -25
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Monrovia.rb +0 -22
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Nairobi.rb +0 -23
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Argentina/Buenos_Aires.rb +0 -166
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Argentina/San_Juan.rb +0 -86
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Bogota.rb +0 -23
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Caracas.rb +0 -23
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Chicago.rb +0 -283
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Chihuahua.rb +0 -136
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Denver.rb +0 -204
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Godthab.rb +0 -161
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Guatemala.rb +0 -27
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Halifax.rb +0 -274
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Indiana/Indianapolis.rb +0 -149
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Juneau.rb +0 -194
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/La_Paz.rb +0 -22
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Lima.rb +0 -35
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Los_Angeles.rb +0 -232
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Mazatlan.rb +0 -139
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Mexico_City.rb +0 -144
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Monterrey.rb +0 -131
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/New_York.rb +0 -282
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Phoenix.rb +0 -30
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Regina.rb +0 -74
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Santiago.rb +0 -205
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Sao_Paulo.rb +0 -171
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/St_Johns.rb +0 -288
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Tijuana.rb +0 -196
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Almaty.rb +0 -67
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Baghdad.rb +0 -73
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Baku.rb +0 -161
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Bangkok.rb +0 -20
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Chongqing.rb +0 -33
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Colombo.rb +0 -30
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Dhaka.rb +0 -27
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Hong_Kong.rb +0 -87
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Irkutsk.rb +0 -165
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Jakarta.rb +0 -30
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Jerusalem.rb +0 -163
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kabul.rb +0 -20
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kamchatka.rb +0 -163
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Karachi.rb +0 -30
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Katmandu.rb +0 -20
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kolkata.rb +0 -25
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Krasnoyarsk.rb +0 -163
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kuala_Lumpur.rb +0 -31
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kuwait.rb +0 -18
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Magadan.rb +0 -163
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Muscat.rb +0 -18
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Novosibirsk.rb +0 -164
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Rangoon.rb +0 -24
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Riyadh.rb +0 -18
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Seoul.rb +0 -34
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Shanghai.rb +0 -35
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Singapore.rb +0 -33
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Taipei.rb +0 -59
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tashkent.rb +0 -47
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tbilisi.rb +0 -78
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tehran.rb +0 -121
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tokyo.rb +0 -30
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Ulaanbaatar.rb +0 -65
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Urumqi.rb +0 -33
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Vladivostok.rb +0 -164
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yakutsk.rb +0 -163
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yekaterinburg.rb +0 -165
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yerevan.rb +0 -165
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/Azores.rb +0 -270
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/Cape_Verde.rb +0 -23
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/South_Georgia.rb +0 -18
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Adelaide.rb +0 -187
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Brisbane.rb +0 -35
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Darwin.rb +0 -29
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Hobart.rb +0 -193
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Melbourne.rb +0 -185
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Perth.rb +0 -37
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Sydney.rb +0 -185
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Etc/UTC.rb +0 -16
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Amsterdam.rb +0 -228
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Athens.rb +0 -185
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Belgrade.rb +0 -163
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Berlin.rb +0 -188
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Bratislava.rb +0 -13
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Brussels.rb +0 -232
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Bucharest.rb +0 -181
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Budapest.rb +0 -197
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Copenhagen.rb +0 -179
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Dublin.rb +0 -276
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Helsinki.rb +0 -163
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Istanbul.rb +0 -218
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Kiev.rb +0 -168
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Lisbon.rb +0 -268
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Ljubljana.rb +0 -13
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/London.rb +0 -288
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Madrid.rb +0 -211
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Minsk.rb +0 -170
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Moscow.rb +0 -181
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Paris.rb +0 -232
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Prague.rb +0 -187
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Riga.rb +0 -176
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Rome.rb +0 -215
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Sarajevo.rb +0 -13
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Skopje.rb +0 -13
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Sofia.rb +0 -173
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Stockholm.rb +0 -165
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Tallinn.rb +0 -172
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Vienna.rb +0 -183
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Vilnius.rb +0 -170
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Warsaw.rb +0 -212
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Zagreb.rb +0 -13
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Auckland.rb +0 -202
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Fiji.rb +0 -23
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Guam.rb +0 -22
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Honolulu.rb +0 -28
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Majuro.rb +0 -20
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Midway.rb +0 -25
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Noumea.rb +0 -25
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Pago_Pago.rb +0 -26
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Port_Moresby.rb +0 -20
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Tongatapu.rb +0 -27
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/info_timezone.rb +0 -52
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/linked_timezone.rb +0 -51
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/linked_timezone_info.rb +0 -44
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/offset_rationals.rb +0 -98
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/ruby_core_support.rb +0 -56
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/time_or_datetime.rb +0 -292
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb +0 -508
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_definition.rb +0 -56
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_info.rb +0 -40
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_offset_info.rb +0 -94
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_period.rb +0 -198
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_transition_info.rb +0 -129
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo.rb +0 -33
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb +0 -1021
- data/lib/gems/activesupport-2.2.2/lib/active_support/vendor.rb +0 -34
- data/lib/gems/activesupport-2.2.2/lib/active_support/version.rb +0 -9
- data/lib/gems/activesupport-2.2.2/lib/active_support/whiny_nil.rb +0 -58
- data/lib/gems/activesupport-2.2.2/lib/active_support.rb +0 -61
- data/lib/gems/activesupport-2.2.2/lib/activesupport.rb +0 -1
@@ -1,9 +0,0 @@
|
|
1
|
-
require 'active_support/core_ext/numeric/time'
|
2
|
-
require 'active_support/core_ext/numeric/bytes'
|
3
|
-
require 'active_support/core_ext/numeric/conversions'
|
4
|
-
|
5
|
-
class Numeric #:nodoc:
|
6
|
-
include ActiveSupport::CoreExtensions::Numeric::Time
|
7
|
-
include ActiveSupport::CoreExtensions::Numeric::Bytes
|
8
|
-
include ActiveSupport::CoreExtensions::Numeric::Conversions
|
9
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
class Object
|
2
|
-
# Alias of <tt>to_s</tt>.
|
3
|
-
def to_param
|
4
|
-
to_s
|
5
|
-
end
|
6
|
-
|
7
|
-
# Converts an object into a string suitable for use as a URL query string, using the given <tt>key</tt> as the
|
8
|
-
# param name.
|
9
|
-
#
|
10
|
-
# Note: This method is defined as a default implementation for all Objects for Hash#to_query to work.
|
11
|
-
def to_query(key)
|
12
|
-
"#{CGI.escape(key.to_s)}=#{CGI.escape(to_param.to_s)}"
|
13
|
-
end
|
14
|
-
end
|
@@ -1,80 +0,0 @@
|
|
1
|
-
class Object
|
2
|
-
def remove_subclasses_of(*superclasses) #:nodoc:
|
3
|
-
Class.remove_class(*subclasses_of(*superclasses))
|
4
|
-
end
|
5
|
-
|
6
|
-
begin
|
7
|
-
ObjectSpace.each_object(Class.new) {}
|
8
|
-
|
9
|
-
# Exclude this class unless it's a subclass of our supers and is defined.
|
10
|
-
# We check defined? in case we find a removed class that has yet to be
|
11
|
-
# garbage collected. This also fails for anonymous classes -- please
|
12
|
-
# submit a patch if you have a workaround.
|
13
|
-
def subclasses_of(*superclasses) #:nodoc:
|
14
|
-
subclasses = []
|
15
|
-
|
16
|
-
superclasses.each do |sup|
|
17
|
-
ObjectSpace.each_object(class << sup; self; end) do |k|
|
18
|
-
if k != sup && (k.name.blank? || eval("defined?(::#{k}) && ::#{k}.object_id == k.object_id"))
|
19
|
-
subclasses << k
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
subclasses
|
25
|
-
end
|
26
|
-
rescue RuntimeError
|
27
|
-
# JRuby and any implementations which cannot handle the objectspace traversal
|
28
|
-
# above fall back to this implementation
|
29
|
-
def subclasses_of(*superclasses) #:nodoc:
|
30
|
-
subclasses = []
|
31
|
-
|
32
|
-
superclasses.each do |sup|
|
33
|
-
ObjectSpace.each_object(Class) do |k|
|
34
|
-
if superclasses.any? { |superclass| k < superclass } &&
|
35
|
-
(k.name.blank? || eval("defined?(::#{k}) && ::#{k}.object_id == k.object_id"))
|
36
|
-
subclasses << k
|
37
|
-
end
|
38
|
-
end
|
39
|
-
subclasses.uniq!
|
40
|
-
end
|
41
|
-
subclasses
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
def extended_by #:nodoc:
|
46
|
-
ancestors = class << self; ancestors end
|
47
|
-
ancestors.select { |mod| mod.class == Module } - [ Object, Kernel ]
|
48
|
-
end
|
49
|
-
|
50
|
-
def extend_with_included_modules_from(object) #:nodoc:
|
51
|
-
object.extended_by.each { |mod| extend mod }
|
52
|
-
end
|
53
|
-
|
54
|
-
unless defined? instance_exec # 1.9
|
55
|
-
module InstanceExecMethods #:nodoc:
|
56
|
-
end
|
57
|
-
include InstanceExecMethods
|
58
|
-
|
59
|
-
# Evaluate the block with the given arguments within the context of
|
60
|
-
# this object, so self is set to the method receiver.
|
61
|
-
#
|
62
|
-
# From Mauricio's http://eigenclass.org/hiki/bounded+space+instance_exec
|
63
|
-
def instance_exec(*args, &block)
|
64
|
-
begin
|
65
|
-
old_critical, Thread.critical = Thread.critical, true
|
66
|
-
n = 0
|
67
|
-
n += 1 while respond_to?(method_name = "__instance_exec#{n}")
|
68
|
-
InstanceExecMethods.module_eval { define_method(method_name, &block) }
|
69
|
-
ensure
|
70
|
-
Thread.critical = old_critical
|
71
|
-
end
|
72
|
-
|
73
|
-
begin
|
74
|
-
send(method_name, *args)
|
75
|
-
ensure
|
76
|
-
InstanceExecMethods.module_eval { remove_method(method_name) } rescue nil
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
@@ -1,74 +0,0 @@
|
|
1
|
-
class Object
|
2
|
-
# Available in 1.8.6 and later.
|
3
|
-
unless respond_to?(:instance_variable_defined?)
|
4
|
-
def instance_variable_defined?(variable)
|
5
|
-
instance_variables.include?(variable.to_s)
|
6
|
-
end
|
7
|
-
end
|
8
|
-
|
9
|
-
# Returns a hash that maps instance variable names without "@" to their
|
10
|
-
# corresponding values. Keys are strings both in Ruby 1.8 and 1.9.
|
11
|
-
#
|
12
|
-
# class C
|
13
|
-
# def initialize(x, y)
|
14
|
-
# @x, @y = x, y
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# C.new(0, 1).instance_values # => {"x" => 0, "y" => 1}
|
19
|
-
def instance_values #:nodoc:
|
20
|
-
instance_variables.inject({}) do |values, name|
|
21
|
-
values[name.to_s[1..-1]] = instance_variable_get(name)
|
22
|
-
values
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
# Returns an array of instance variable names including "@". They are strings
|
27
|
-
# both in Ruby 1.8 and 1.9.
|
28
|
-
#
|
29
|
-
# class C
|
30
|
-
# def initialize(x, y)
|
31
|
-
# @x, @y = x, y
|
32
|
-
# end
|
33
|
-
# end
|
34
|
-
#
|
35
|
-
# C.new(0, 1).instance_variable_names # => ["@y", "@x"]
|
36
|
-
if RUBY_VERSION >= '1.9'
|
37
|
-
def instance_variable_names
|
38
|
-
instance_variables.map { |var| var.to_s }
|
39
|
-
end
|
40
|
-
else
|
41
|
-
alias_method :instance_variable_names, :instance_variables
|
42
|
-
end
|
43
|
-
|
44
|
-
# Copies the instance variables of +object+ into +self+.
|
45
|
-
#
|
46
|
-
# Instance variable names in the +exclude+ array are ignored. If +object+
|
47
|
-
# responds to <tt>protected_instance_variables</tt> the ones returned are
|
48
|
-
# also ignored. For example, Rails controllers implement that method.
|
49
|
-
#
|
50
|
-
# In both cases strings and symbols are understood, and they have to include
|
51
|
-
# the at sign.
|
52
|
-
#
|
53
|
-
# class C
|
54
|
-
# def initialize(x, y, z)
|
55
|
-
# @x, @y, @z = x, y, z
|
56
|
-
# end
|
57
|
-
#
|
58
|
-
# def protected_instance_variables
|
59
|
-
# %w(@z)
|
60
|
-
# end
|
61
|
-
# end
|
62
|
-
#
|
63
|
-
# a = C.new(0, 1, 2)
|
64
|
-
# b = C.new(3, 4, 5)
|
65
|
-
#
|
66
|
-
# a.copy_instance_variables_from(b, [:@y])
|
67
|
-
# # a is now: @x = 3, @y = 1, @z = 2
|
68
|
-
def copy_instance_variables_from(object, exclude = []) #:nodoc:
|
69
|
-
exclude += object.protected_instance_variables if object.respond_to? :protected_instance_variables
|
70
|
-
|
71
|
-
vars = object.instance_variables.map(&:to_s) - exclude.map(&:to_s)
|
72
|
-
vars.each { |name| instance_variable_set(name, object.instance_variable_get(name)) }
|
73
|
-
end
|
74
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
class Object
|
2
|
-
# Get object's meta (ghost, eigenclass, singleton) class
|
3
|
-
def metaclass
|
4
|
-
class << self
|
5
|
-
self
|
6
|
-
end
|
7
|
-
end
|
8
|
-
|
9
|
-
# If class_eval is called on an object, add those methods to its metaclass
|
10
|
-
def class_eval(*args, &block)
|
11
|
-
metaclass.class_eval(*args, &block)
|
12
|
-
end
|
13
|
-
end
|
@@ -1,74 +0,0 @@
|
|
1
|
-
class Object
|
2
|
-
# Returns +value+ after yielding +value+ to the block. This simplifies the
|
3
|
-
# process of constructing an object, performing work on the object, and then
|
4
|
-
# returning the object from a method. It is a Ruby-ized realization of the K
|
5
|
-
# combinator, courtesy of Mikael Brockman.
|
6
|
-
#
|
7
|
-
# ==== Examples
|
8
|
-
#
|
9
|
-
# # Without returning
|
10
|
-
# def foo
|
11
|
-
# values = []
|
12
|
-
# values << "bar"
|
13
|
-
# values << "baz"
|
14
|
-
# return values
|
15
|
-
# end
|
16
|
-
#
|
17
|
-
# foo # => ['bar', 'baz']
|
18
|
-
#
|
19
|
-
# # returning with a local variable
|
20
|
-
# def foo
|
21
|
-
# returning values = [] do
|
22
|
-
# values << 'bar'
|
23
|
-
# values << 'baz'
|
24
|
-
# end
|
25
|
-
# end
|
26
|
-
#
|
27
|
-
# foo # => ['bar', 'baz']
|
28
|
-
#
|
29
|
-
# # returning with a block argument
|
30
|
-
# def foo
|
31
|
-
# returning [] do |values|
|
32
|
-
# values << 'bar'
|
33
|
-
# values << 'baz'
|
34
|
-
# end
|
35
|
-
# end
|
36
|
-
#
|
37
|
-
# foo # => ['bar', 'baz']
|
38
|
-
def returning(value)
|
39
|
-
yield(value)
|
40
|
-
value
|
41
|
-
end
|
42
|
-
|
43
|
-
# An elegant way to factor duplication out of options passed to a series of
|
44
|
-
# method calls. Each method called in the block, with the block variable as
|
45
|
-
# the receiver, will have its options merged with the default +options+ hash
|
46
|
-
# provided. Each method called on the block variable must take an options
|
47
|
-
# hash as its final argument.
|
48
|
-
#
|
49
|
-
# with_options :order => 'created_at', :class_name => 'Comment' do |post|
|
50
|
-
# post.has_many :comments, :conditions => ['approved = ?', true], :dependent => :delete_all
|
51
|
-
# post.has_many :unapproved_comments, :conditions => ['approved = ?', false]
|
52
|
-
# post.has_many :all_comments
|
53
|
-
# end
|
54
|
-
#
|
55
|
-
# Can also be used with an explicit receiver:
|
56
|
-
#
|
57
|
-
# map.with_options :controller => "people" do |people|
|
58
|
-
# people.connect "/people", :action => "index"
|
59
|
-
# people.connect "/people/:id", :action => "show"
|
60
|
-
# end
|
61
|
-
#
|
62
|
-
def with_options(options)
|
63
|
-
yield ActiveSupport::OptionMerger.new(self, options)
|
64
|
-
end
|
65
|
-
|
66
|
-
# A duck-type assistant method. For example, Active Support extends Date
|
67
|
-
# to define an acts_like_date? method, and extends Time to define
|
68
|
-
# acts_like_time?. As a result, we can do "x.acts_like?(:time)" and
|
69
|
-
# "x.acts_like?(:date)" to do duck-type-safe comparisons, since classes that
|
70
|
-
# we want to act like Time simply need to define an acts_like_time? method.
|
71
|
-
def acts_like?(duck)
|
72
|
-
respond_to? "acts_like_#{duck}?"
|
73
|
-
end
|
74
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
module ActiveSupport #:nodoc:
|
2
|
-
module CoreExtensions #:nodoc:
|
3
|
-
module Pathname #:nodoc:
|
4
|
-
module CleanWithin
|
5
|
-
# Clean the paths contained in the provided string.
|
6
|
-
def clean_within(string)
|
7
|
-
string.gsub(%r{[\w. ]+(/[\w. ]+)+(\.rb)?(\b|$)}) do |path|
|
8
|
-
new(path).cleanpath
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
class Proc #:nodoc:
|
2
|
-
def bind(object)
|
3
|
-
block, time = self, Time.now
|
4
|
-
(class << object; self end).class_eval do
|
5
|
-
method_name = "__bind_#{time.to_i}_#{time.usec}"
|
6
|
-
define_method(method_name, &block)
|
7
|
-
method = instance_method(method_name)
|
8
|
-
remove_method(method_name)
|
9
|
-
method
|
10
|
-
end.bind(object)
|
11
|
-
end
|
12
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
if RUBY_VERSION < "1.9"
|
2
|
-
module Process
|
3
|
-
def self.daemon(nochdir = nil, noclose = nil)
|
4
|
-
exit if fork # Parent exits, child continues.
|
5
|
-
Process.setsid # Become session leader.
|
6
|
-
exit if fork # Zap session leader. See [1].
|
7
|
-
|
8
|
-
unless nochdir
|
9
|
-
Dir.chdir "/" # Release old working directory.
|
10
|
-
end
|
11
|
-
|
12
|
-
File.umask 0000 # Ensure sensible umask. Adjust as needed.
|
13
|
-
|
14
|
-
unless noclose
|
15
|
-
STDIN.reopen "/dev/null" # Free file descriptors and
|
16
|
-
STDOUT.reopen "/dev/null", "a" # point them somewhere sensible.
|
17
|
-
STDERR.reopen '/dev/null', 'a'
|
18
|
-
end
|
19
|
-
|
20
|
-
trap("TERM") { exit }
|
21
|
-
|
22
|
-
return 0
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
require 'active_support/core_ext/process/daemon'
|
@@ -1,32 +0,0 @@
|
|
1
|
-
module ActiveSupport #:nodoc:
|
2
|
-
module CoreExtensions #:nodoc:
|
3
|
-
module Range #:nodoc:
|
4
|
-
# Return an array when step is called without a block.
|
5
|
-
module BlocklessStep
|
6
|
-
def self.included(base) #:nodoc:
|
7
|
-
base.alias_method_chain :step, :blockless
|
8
|
-
end
|
9
|
-
|
10
|
-
if RUBY_VERSION < '1.9'
|
11
|
-
def step_with_blockless(value = 1, &block)
|
12
|
-
if block_given?
|
13
|
-
step_without_blockless(value, &block)
|
14
|
-
else
|
15
|
-
returning [] do |array|
|
16
|
-
step_without_blockless(value) { |step| array << step }
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
else
|
21
|
-
def step_with_blockless(value = 1, &block)
|
22
|
-
if block_given?
|
23
|
-
step_without_blockless(value, &block)
|
24
|
-
else
|
25
|
-
step_without_blockless(value).to_a
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
module ActiveSupport #:nodoc:
|
2
|
-
module CoreExtensions #:nodoc:
|
3
|
-
module Range #:nodoc:
|
4
|
-
# Getting ranges in different convenient string representations and other objects
|
5
|
-
module Conversions
|
6
|
-
RANGE_FORMATS = {
|
7
|
-
:db => Proc.new { |start, stop| "BETWEEN '#{start.to_s(:db)}' AND '#{stop.to_s(:db)}'" }
|
8
|
-
}
|
9
|
-
|
10
|
-
def self.included(base) #:nodoc:
|
11
|
-
base.class_eval do
|
12
|
-
alias_method :to_default_s, :to_s
|
13
|
-
alias_method :to_s, :to_formatted_s
|
14
|
-
end
|
15
|
-
end
|
16
|
-
# Gives a human readable format of the range.
|
17
|
-
#
|
18
|
-
# ==== Example:
|
19
|
-
#
|
20
|
-
# [1..100].to_formatted_s # => "1..100"
|
21
|
-
def to_formatted_s(format = :default)
|
22
|
-
RANGE_FORMATS[format] ? RANGE_FORMATS[format].call(first, last) : to_default_s
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
module ActiveSupport #:nodoc:
|
2
|
-
module CoreExtensions #:nodoc:
|
3
|
-
module Range #:nodoc:
|
4
|
-
# Check if a Range includes another Range.
|
5
|
-
module IncludeRange
|
6
|
-
def self.included(base) #:nodoc:
|
7
|
-
base.alias_method_chain :include?, :range
|
8
|
-
end
|
9
|
-
|
10
|
-
# Extends the default Range#include? to support range comparisons.
|
11
|
-
# (1..5).include?(1..5) # => true
|
12
|
-
# (1..5).include?(2..3) # => true
|
13
|
-
# (1..5).include?(2..6) # => false
|
14
|
-
#
|
15
|
-
# The native Range#include? behavior is untouched.
|
16
|
-
# ("a".."f").include?("c") # => true
|
17
|
-
# (5..9).include?(11) # => false
|
18
|
-
def include_with_range?(value)
|
19
|
-
if value.is_a?(::Range)
|
20
|
-
operator = exclude_end? ? :< : :<=
|
21
|
-
end_value = value.exclude_end? ? last.succ : last
|
22
|
-
include?(value.first) && (value.last <=> end_value).send(operator, 0)
|
23
|
-
else
|
24
|
-
include_without_range?(value)
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module ActiveSupport #:nodoc:
|
2
|
-
module CoreExtensions #:nodoc:
|
3
|
-
module Range #:nodoc:
|
4
|
-
# Check if Ranges overlap.
|
5
|
-
module Overlaps
|
6
|
-
# Compare two ranges and see if they overlap eachother
|
7
|
-
# (1..5).overlaps?(4..6) # => true
|
8
|
-
# (1..5).overlaps?(7..9) # => false
|
9
|
-
def overlaps?(other)
|
10
|
-
include?(other.first) || other.include?(first)
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'active_support/core_ext/range/conversions'
|
2
|
-
require 'active_support/core_ext/range/overlaps'
|
3
|
-
require 'active_support/core_ext/range/include_range'
|
4
|
-
require 'active_support/core_ext/range/blockless_step'
|
5
|
-
|
6
|
-
class Range #:nodoc:
|
7
|
-
include ActiveSupport::CoreExtensions::Range::Conversions
|
8
|
-
include ActiveSupport::CoreExtensions::Range::Overlaps
|
9
|
-
include ActiveSupport::CoreExtensions::Range::IncludeRange
|
10
|
-
include ActiveSupport::CoreExtensions::Range::BlocklessStep
|
11
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
require 'rexml/document'
|
2
|
-
require 'rexml/entity'
|
3
|
-
|
4
|
-
# Fixes the rexml vulnerability disclosed at:
|
5
|
-
# http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/
|
6
|
-
# This fix is identical to rexml-expansion-fix version 1.0.1
|
7
|
-
|
8
|
-
# Earlier versions of rexml defined REXML::Version, newer ones REXML::VERSION
|
9
|
-
unless REXML::Document.respond_to?(:entity_expansion_limit=)
|
10
|
-
module REXML
|
11
|
-
class Entity < Child
|
12
|
-
undef_method :unnormalized
|
13
|
-
def unnormalized
|
14
|
-
document.record_entity_expansion! if document
|
15
|
-
v = value()
|
16
|
-
return nil if v.nil?
|
17
|
-
@unnormalized = Text::unnormalize(v, parent)
|
18
|
-
@unnormalized
|
19
|
-
end
|
20
|
-
end
|
21
|
-
class Document < Element
|
22
|
-
@@entity_expansion_limit = 10_000
|
23
|
-
def self.entity_expansion_limit= val
|
24
|
-
@@entity_expansion_limit = val
|
25
|
-
end
|
26
|
-
|
27
|
-
def record_entity_expansion!
|
28
|
-
@number_of_expansions ||= 0
|
29
|
-
@number_of_expansions += 1
|
30
|
-
if @number_of_expansions > @@entity_expansion_limit
|
31
|
-
raise "Number of entity expansions exceeded, processing aborted."
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,82 +0,0 @@
|
|
1
|
-
module ActiveSupport #:nodoc:
|
2
|
-
module CoreExtensions #:nodoc:
|
3
|
-
module String #:nodoc:
|
4
|
-
unless '1.9'.respond_to?(:force_encoding)
|
5
|
-
# Makes it easier to access parts of a string, such as specific characters and substrings.
|
6
|
-
module Access
|
7
|
-
# Returns the character at the +position+ treating the string as an array (where 0 is the first character).
|
8
|
-
#
|
9
|
-
# Examples:
|
10
|
-
# "hello".at(0) # => "h"
|
11
|
-
# "hello".at(4) # => "o"
|
12
|
-
# "hello".at(10) # => nil
|
13
|
-
def at(position)
|
14
|
-
mb_chars[position, 1].to_s
|
15
|
-
end
|
16
|
-
|
17
|
-
# Returns the remaining of the string from the +position+ treating the string as an array (where 0 is the first character).
|
18
|
-
#
|
19
|
-
# Examples:
|
20
|
-
# "hello".from(0) # => "hello"
|
21
|
-
# "hello".from(2) # => "llo"
|
22
|
-
# "hello".from(10) # => nil
|
23
|
-
def from(position)
|
24
|
-
mb_chars[position..-1].to_s
|
25
|
-
end
|
26
|
-
|
27
|
-
# Returns the beginning of the string up to the +position+ treating the string as an array (where 0 is the first character).
|
28
|
-
#
|
29
|
-
# Examples:
|
30
|
-
# "hello".to(0) # => "h"
|
31
|
-
# "hello".to(2) # => "hel"
|
32
|
-
# "hello".to(10) # => "hello"
|
33
|
-
def to(position)
|
34
|
-
mb_chars[0..position].to_s
|
35
|
-
end
|
36
|
-
|
37
|
-
# Returns the first character of the string or the first +limit+ characters.
|
38
|
-
#
|
39
|
-
# Examples:
|
40
|
-
# "hello".first # => "h"
|
41
|
-
# "hello".first(2) # => "he"
|
42
|
-
# "hello".first(10) # => "hello"
|
43
|
-
def first(limit = 1)
|
44
|
-
mb_chars[0..(limit - 1)].to_s
|
45
|
-
end
|
46
|
-
|
47
|
-
# Returns the last character of the string or the last +limit+ characters.
|
48
|
-
#
|
49
|
-
# Examples:
|
50
|
-
# "hello".last # => "o"
|
51
|
-
# "hello".last(2) # => "lo"
|
52
|
-
# "hello".last(10) # => "hello"
|
53
|
-
def last(limit = 1)
|
54
|
-
(mb_chars[(-limit)..-1] || self).to_s
|
55
|
-
end
|
56
|
-
end
|
57
|
-
else
|
58
|
-
module Access #:nodoc:
|
59
|
-
def at(position)
|
60
|
-
self[position]
|
61
|
-
end
|
62
|
-
|
63
|
-
def from(position)
|
64
|
-
self[position..-1]
|
65
|
-
end
|
66
|
-
|
67
|
-
def to(position)
|
68
|
-
self[0..position]
|
69
|
-
end
|
70
|
-
|
71
|
-
def first(limit = 1)
|
72
|
-
self[0..(limit - 1)]
|
73
|
-
end
|
74
|
-
|
75
|
-
def last(limit = 1)
|
76
|
-
from(-limit) || self
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
module ActiveSupport #:nodoc:
|
2
|
-
module CoreExtensions #:nodoc:
|
3
|
-
module String #:nodoc:
|
4
|
-
module Behavior
|
5
|
-
# Enable more predictable duck-typing on String-like classes. See
|
6
|
-
# Object#acts_like?.
|
7
|
-
def acts_like_string?
|
8
|
-
true
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
require 'date'
|
2
|
-
|
3
|
-
module ActiveSupport #:nodoc:
|
4
|
-
module CoreExtensions #:nodoc:
|
5
|
-
module String #:nodoc:
|
6
|
-
# Converting strings to other objects
|
7
|
-
module Conversions
|
8
|
-
# 'a'.ord == 'a'[0] for Ruby 1.9 forward compatibility.
|
9
|
-
def ord
|
10
|
-
self[0]
|
11
|
-
end if RUBY_VERSION < '1.9'
|
12
|
-
|
13
|
-
# Form can be either :utc (default) or :local.
|
14
|
-
def to_time(form = :utc)
|
15
|
-
::Time.send("#{form}_time", *::Date._parse(self, false).values_at(:year, :mon, :mday, :hour, :min, :sec).map { |arg| arg || 0 })
|
16
|
-
end
|
17
|
-
|
18
|
-
def to_date
|
19
|
-
::Date.new(*::Date._parse(self, false).values_at(:year, :mon, :mday))
|
20
|
-
end
|
21
|
-
|
22
|
-
def to_datetime
|
23
|
-
::DateTime.civil(*::Date._parse(self, false).values_at(:year, :mon, :mday, :hour, :min, :sec).map { |arg| arg || 0 })
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
module ActiveSupport #:nodoc:
|
2
|
-
module CoreExtensions #:nodoc:
|
3
|
-
module String #:nodoc:
|
4
|
-
module Filters
|
5
|
-
# Returns the string, first removing all whitespace on both ends of
|
6
|
-
# the string, and then changing remaining consecutive whitespace
|
7
|
-
# groups into one space each.
|
8
|
-
#
|
9
|
-
# Examples:
|
10
|
-
# %{ Multi-line
|
11
|
-
# string }.squish # => "Multi-line string"
|
12
|
-
# " foo bar \n \t boo".squish # => "foo bar boo"
|
13
|
-
def squish
|
14
|
-
dup.squish!
|
15
|
-
end
|
16
|
-
|
17
|
-
# Performs a destructive squish. See String#squish.
|
18
|
-
def squish!
|
19
|
-
strip!
|
20
|
-
gsub!(/\s+/, ' ')
|
21
|
-
self
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|