backbone-deep-rails 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/lib/backbone/deep/rails/version.rb +1 -1
- metadata +18 -245
- data/vendor/bundle/cache/activemodel-3.2.11.gem +0 -0
- data/vendor/bundle/cache/activesupport-3.2.11.gem +0 -0
- data/vendor/bundle/gems/activesupport-3.2.11/CHANGELOG.md +0 -157
- data/vendor/bundle/gems/activesupport-3.2.11/MIT-LICENSE +0 -20
- data/vendor/bundle/gems/activesupport-3.2.11/README.rdoc +0 -33
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support.rb +0 -82
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/all.rb +0 -3
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/backtrace_cleaner.rb +0 -99
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/base64.rb +0 -54
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/basic_object.rb +0 -21
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/benchmarkable.rb +0 -55
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/buffered_logger.rb +0 -125
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/builder.rb +0 -6
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache.rb +0 -638
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/file_store.rb +0 -178
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/mem_cache_store.rb +0 -206
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/memory_store.rb +0 -159
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/null_store.rb +0 -44
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/strategy/local_cache.rb +0 -169
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/callbacks.rb +0 -626
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/concern.rb +0 -131
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/configurable.rb +0 -90
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext.rb +0 -3
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array.rb +0 -8
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/access.rb +0 -46
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/conversions.rb +0 -164
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/extract_options.rb +0 -29
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/grouping.rb +0 -100
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/prepend_and_append.rb +0 -7
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/random_access.rb +0 -30
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/uniq_by.rb +0 -16
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/wrap.rb +0 -48
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/benchmark.rb +0 -7
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/big_decimal.rb +0 -1
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/big_decimal/conversions.rb +0 -45
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class.rb +0 -4
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class/attribute.rb +0 -115
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class/attribute_accessors.rb +0 -168
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class/delegating_attributes.rb +0 -44
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class/subclasses.rb +0 -36
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/acts_like.rb +0 -8
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/calculations.rb +0 -276
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/conversions.rb +0 -106
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/freeze.rb +0 -33
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/zones.rb +0 -14
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date_time/acts_like.rb +0 -13
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date_time/calculations.rb +0 -143
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date_time/conversions.rb +0 -103
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date_time/zones.rb +0 -21
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/enumerable.rb +0 -127
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/exception.rb +0 -3
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/file.rb +0 -2
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/file/atomic.rb +0 -42
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/file/path.rb +0 -5
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/float.rb +0 -1
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/float/rounding.rb +0 -19
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash.rb +0 -9
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/conversions.rb +0 -175
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/deep_dup.rb +0 -18
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/deep_merge.rb +0 -21
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/diff.rb +0 -13
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/except.rb +0 -23
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/indifferent_access.rb +0 -24
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/keys.rb +0 -54
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/reverse_merge.rb +0 -23
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/slice.rb +0 -40
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/integer.rb +0 -3
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/integer/inflections.rb +0 -17
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/integer/multiple.rb +0 -10
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/integer/time.rb +0 -39
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/io.rb +0 -15
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel.rb +0 -4
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel/agnostics.rb +0 -11
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel/debugger.rb +0 -10
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel/reporting.rb +0 -93
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel/singleton_class.rb +0 -13
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/load_error.rb +0 -23
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/logger.rb +0 -83
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module.rb +0 -12
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/aliasing.rb +0 -70
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/anonymous.rb +0 -24
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/attr_internal.rb +0 -39
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/attribute_accessors.rb +0 -64
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/delegation.rb +0 -153
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/deprecation.rb +0 -9
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/introspection.rb +0 -88
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/method_names.rb +0 -14
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/qualified_const.rb +0 -64
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/reachable.rb +0 -8
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/remove_method.rb +0 -16
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/synchronization.rb +0 -45
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/name_error.rb +0 -18
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/numeric.rb +0 -2
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/numeric/bytes.rb +0 -44
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/numeric/time.rb +0 -79
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object.rb +0 -13
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/acts_like.rb +0 -10
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/blank.rb +0 -121
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/conversions.rb +0 -4
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/duplicable.rb +0 -119
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/inclusion.rb +0 -25
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/instance_variables.rb +0 -33
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/to_json.rb +0 -19
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/to_param.rb +0 -55
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/to_query.rb +0 -27
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/try.rb +0 -57
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/with_options.rb +0 -43
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/proc.rb +0 -14
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/process.rb +0 -1
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/process/daemon.rb +0 -23
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range.rb +0 -5
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/blockless_step.rb +0 -29
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/conversions.rb +0 -21
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/cover.rb +0 -3
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/include_range.rb +0 -21
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/overlaps.rb +0 -8
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/regexp.rb +0 -5
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/rexml.rb +0 -46
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string.rb +0 -14
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/access.rb +0 -99
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/behavior.rb +0 -6
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/conversions.rb +0 -66
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/encoding.rb +0 -11
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/exclude.rb +0 -11
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/filters.rb +0 -49
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/inflections.rb +0 -202
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/inquiry.rb +0 -13
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/interpolation.rb +0 -2
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/multibyte.rb +0 -72
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/output_safety.rb +0 -186
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/starts_ends_with.rb +0 -4
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/strip.rb +0 -26
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/xchar.rb +0 -18
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/acts_like.rb +0 -8
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/calculations.rb +0 -360
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/conversions.rb +0 -85
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/marshal.rb +0 -57
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/publicize_conversion_methods.rb +0 -10
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/zones.rb +0 -86
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/uri.rb +0 -30
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/dependencies.rb +0 -703
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/dependencies/autoload.rb +0 -50
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation.rb +0 -18
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation/behaviors.rb +0 -49
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation/method_wrappers.rb +0 -29
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation/proxy_wrappers.rb +0 -81
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation/reporting.rb +0 -65
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/descendants_tracker.rb +0 -45
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/duration.rb +0 -110
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/file_update_checker.rb +0 -121
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/file_watcher.rb +0 -36
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/gzip.rb +0 -30
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/hash_with_indifferent_access.rb +0 -178
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/i18n.rb +0 -9
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/i18n_railtie.rb +0 -102
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflections.rb +0 -63
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflector.rb +0 -7
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflector/inflections.rb +0 -174
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflector/methods.rb +0 -321
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflector/transliterate.rb +0 -98
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/json.rb +0 -2
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/json/decoding.rb +0 -79
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/json/encoding.rb +0 -284
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/json/variable.rb +0 -9
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb +0 -46
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/locale/en.yml +0 -36
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/log_subscriber.rb +0 -122
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/log_subscriber/test_helper.rb +0 -101
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/memoizable.rb +0 -116
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/message_encryptor.rb +0 -103
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/message_verifier.rb +0 -74
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte.rb +0 -44
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte/chars.rb +0 -476
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte/exceptions.rb +0 -8
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte/unicode.rb +0 -393
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte/utils.rb +0 -60
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/notifications.rb +0 -154
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/notifications/fanout.rb +0 -61
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb +0 -53
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/option_merger.rb +0 -25
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/ordered_hash.rb +0 -222
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/ordered_options.rb +0 -61
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/railtie.rb +0 -59
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/rescuable.rb +0 -115
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/ruby/shim.rb +0 -22
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/string_inquirer.rb +0 -21
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/tagged_logging.rb +0 -80
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/test_case.rb +0 -34
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/assertions.rb +0 -97
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/declarative.rb +0 -40
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/deprecation.rb +0 -55
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/isolation.rb +0 -157
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/mochaing.rb +0 -7
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/pending.rb +0 -52
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance.rb +0 -317
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/jruby.rb +0 -115
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/rubinius.rb +0 -113
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/ruby.rb +0 -152
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/ruby/mri.rb +0 -57
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/ruby/yarv.rb +0 -57
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/setup_and_teardown.rb +0 -118
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/time.rb +0 -35
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/time/autoload.rb +0 -5
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/time_with_zone.rb +0 -358
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/values/time_zone.rb +0 -397
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/values/unicode_tables.dat +0 -0
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/version.rb +0 -10
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/whiny_nil.rb +0 -24
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini.rb +0 -168
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/jdom.rb +0 -175
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/libxml.rb +0 -80
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/libxmlsax.rb +0 -86
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/nokogiri.rb +0 -84
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/nokogirisax.rb +0 -88
- data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/rexml.rb +0 -130
- data/vendor/bundle/specifications/activesupport-3.2.11.gemspec +0 -33
@@ -1,393 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
module ActiveSupport
|
3
|
-
module Multibyte
|
4
|
-
module Unicode
|
5
|
-
|
6
|
-
extend self
|
7
|
-
|
8
|
-
# A list of all available normalization forms. See http://www.unicode.org/reports/tr15/tr15-29.html for more
|
9
|
-
# information about normalization.
|
10
|
-
NORMALIZATION_FORMS = [:c, :kc, :d, :kd]
|
11
|
-
|
12
|
-
# The Unicode version that is supported by the implementation
|
13
|
-
UNICODE_VERSION = '5.2.0'
|
14
|
-
|
15
|
-
# The default normalization used for operations that require normalization. It can be set to any of the
|
16
|
-
# normalizations in NORMALIZATION_FORMS.
|
17
|
-
#
|
18
|
-
# Example:
|
19
|
-
# ActiveSupport::Multibyte::Unicode.default_normalization_form = :c
|
20
|
-
attr_accessor :default_normalization_form
|
21
|
-
@default_normalization_form = :kc
|
22
|
-
|
23
|
-
# Hangul character boundaries and properties
|
24
|
-
HANGUL_SBASE = 0xAC00
|
25
|
-
HANGUL_LBASE = 0x1100
|
26
|
-
HANGUL_VBASE = 0x1161
|
27
|
-
HANGUL_TBASE = 0x11A7
|
28
|
-
HANGUL_LCOUNT = 19
|
29
|
-
HANGUL_VCOUNT = 21
|
30
|
-
HANGUL_TCOUNT = 28
|
31
|
-
HANGUL_NCOUNT = HANGUL_VCOUNT * HANGUL_TCOUNT
|
32
|
-
HANGUL_SCOUNT = 11172
|
33
|
-
HANGUL_SLAST = HANGUL_SBASE + HANGUL_SCOUNT
|
34
|
-
HANGUL_JAMO_FIRST = 0x1100
|
35
|
-
HANGUL_JAMO_LAST = 0x11FF
|
36
|
-
|
37
|
-
# All the unicode whitespace
|
38
|
-
WHITESPACE = [
|
39
|
-
(0x0009..0x000D).to_a, # White_Space # Cc [5] <control-0009>..<control-000D>
|
40
|
-
0x0020, # White_Space # Zs SPACE
|
41
|
-
0x0085, # White_Space # Cc <control-0085>
|
42
|
-
0x00A0, # White_Space # Zs NO-BREAK SPACE
|
43
|
-
0x1680, # White_Space # Zs OGHAM SPACE MARK
|
44
|
-
0x180E, # White_Space # Zs MONGOLIAN VOWEL SEPARATOR
|
45
|
-
(0x2000..0x200A).to_a, # White_Space # Zs [11] EN QUAD..HAIR SPACE
|
46
|
-
0x2028, # White_Space # Zl LINE SEPARATOR
|
47
|
-
0x2029, # White_Space # Zp PARAGRAPH SEPARATOR
|
48
|
-
0x202F, # White_Space # Zs NARROW NO-BREAK SPACE
|
49
|
-
0x205F, # White_Space # Zs MEDIUM MATHEMATICAL SPACE
|
50
|
-
0x3000, # White_Space # Zs IDEOGRAPHIC SPACE
|
51
|
-
].flatten.freeze
|
52
|
-
|
53
|
-
# BOM (byte order mark) can also be seen as whitespace, it's a non-rendering character used to distinguish
|
54
|
-
# between little and big endian. This is not an issue in utf-8, so it must be ignored.
|
55
|
-
LEADERS_AND_TRAILERS = WHITESPACE + [65279] # ZERO-WIDTH NO-BREAK SPACE aka BOM
|
56
|
-
|
57
|
-
# Returns a regular expression pattern that matches the passed Unicode codepoints
|
58
|
-
def self.codepoints_to_pattern(array_of_codepoints) #:nodoc:
|
59
|
-
array_of_codepoints.collect{ |e| [e].pack 'U*' }.join('|')
|
60
|
-
end
|
61
|
-
TRAILERS_PAT = /(#{codepoints_to_pattern(LEADERS_AND_TRAILERS)})+\Z/u
|
62
|
-
LEADERS_PAT = /\A(#{codepoints_to_pattern(LEADERS_AND_TRAILERS)})+/u
|
63
|
-
|
64
|
-
# Unpack the string at codepoints boundaries. Raises an EncodingError when the encoding of the string isn't
|
65
|
-
# valid UTF-8.
|
66
|
-
#
|
67
|
-
# Example:
|
68
|
-
# Unicode.u_unpack('Café') # => [67, 97, 102, 233]
|
69
|
-
def u_unpack(string)
|
70
|
-
begin
|
71
|
-
string.unpack 'U*'
|
72
|
-
rescue ArgumentError
|
73
|
-
raise EncodingError, 'malformed UTF-8 character'
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
# Detect whether the codepoint is in a certain character class. Returns +true+ when it's in the specified
|
78
|
-
# character class and +false+ otherwise. Valid character classes are: <tt>:cr</tt>, <tt>:lf</tt>, <tt>:l</tt>,
|
79
|
-
# <tt>:v</tt>, <tt>:lv</tt>, <tt>:lvt</tt> and <tt>:t</tt>.
|
80
|
-
#
|
81
|
-
# Primarily used by the grapheme cluster support.
|
82
|
-
def in_char_class?(codepoint, classes)
|
83
|
-
classes.detect { |c| database.boundary[c] === codepoint } ? true : false
|
84
|
-
end
|
85
|
-
|
86
|
-
# Unpack the string at grapheme boundaries. Returns a list of character lists.
|
87
|
-
#
|
88
|
-
# Example:
|
89
|
-
# Unicode.g_unpack('क्षि') # => [[2325, 2381], [2359], [2367]]
|
90
|
-
# Unicode.g_unpack('Café') # => [[67], [97], [102], [233]]
|
91
|
-
def g_unpack(string)
|
92
|
-
codepoints = u_unpack(string)
|
93
|
-
unpacked = []
|
94
|
-
pos = 0
|
95
|
-
marker = 0
|
96
|
-
eoc = codepoints.length
|
97
|
-
while(pos < eoc)
|
98
|
-
pos += 1
|
99
|
-
previous = codepoints[pos-1]
|
100
|
-
current = codepoints[pos]
|
101
|
-
if (
|
102
|
-
# CR X LF
|
103
|
-
( previous == database.boundary[:cr] and current == database.boundary[:lf] ) or
|
104
|
-
# L X (L|V|LV|LVT)
|
105
|
-
( database.boundary[:l] === previous and in_char_class?(current, [:l,:v,:lv,:lvt]) ) or
|
106
|
-
# (LV|V) X (V|T)
|
107
|
-
( in_char_class?(previous, [:lv,:v]) and in_char_class?(current, [:v,:t]) ) or
|
108
|
-
# (LVT|T) X (T)
|
109
|
-
( in_char_class?(previous, [:lvt,:t]) and database.boundary[:t] === current ) or
|
110
|
-
# X Extend
|
111
|
-
(database.boundary[:extend] === current)
|
112
|
-
)
|
113
|
-
else
|
114
|
-
unpacked << codepoints[marker..pos-1]
|
115
|
-
marker = pos
|
116
|
-
end
|
117
|
-
end
|
118
|
-
unpacked
|
119
|
-
end
|
120
|
-
|
121
|
-
# Reverse operation of g_unpack.
|
122
|
-
#
|
123
|
-
# Example:
|
124
|
-
# Unicode.g_pack(Unicode.g_unpack('क्षि')) # => 'क्षि'
|
125
|
-
def g_pack(unpacked)
|
126
|
-
(unpacked.flatten).pack('U*')
|
127
|
-
end
|
128
|
-
|
129
|
-
# Re-order codepoints so the string becomes canonical.
|
130
|
-
def reorder_characters(codepoints)
|
131
|
-
length = codepoints.length- 1
|
132
|
-
pos = 0
|
133
|
-
while pos < length do
|
134
|
-
cp1, cp2 = database.codepoints[codepoints[pos]], database.codepoints[codepoints[pos+1]]
|
135
|
-
if (cp1.combining_class > cp2.combining_class) && (cp2.combining_class > 0)
|
136
|
-
codepoints[pos..pos+1] = cp2.code, cp1.code
|
137
|
-
pos += (pos > 0 ? -1 : 1)
|
138
|
-
else
|
139
|
-
pos += 1
|
140
|
-
end
|
141
|
-
end
|
142
|
-
codepoints
|
143
|
-
end
|
144
|
-
|
145
|
-
# Decompose composed characters to the decomposed form.
|
146
|
-
def decompose_codepoints(type, codepoints)
|
147
|
-
codepoints.inject([]) do |decomposed, cp|
|
148
|
-
# if it's a hangul syllable starter character
|
149
|
-
if HANGUL_SBASE <= cp and cp < HANGUL_SLAST
|
150
|
-
sindex = cp - HANGUL_SBASE
|
151
|
-
ncp = [] # new codepoints
|
152
|
-
ncp << HANGUL_LBASE + sindex / HANGUL_NCOUNT
|
153
|
-
ncp << HANGUL_VBASE + (sindex % HANGUL_NCOUNT) / HANGUL_TCOUNT
|
154
|
-
tindex = sindex % HANGUL_TCOUNT
|
155
|
-
ncp << (HANGUL_TBASE + tindex) unless tindex == 0
|
156
|
-
decomposed.concat ncp
|
157
|
-
# if the codepoint is decomposable in with the current decomposition type
|
158
|
-
elsif (ncp = database.codepoints[cp].decomp_mapping) and (!database.codepoints[cp].decomp_type || type == :compatability)
|
159
|
-
decomposed.concat decompose_codepoints(type, ncp.dup)
|
160
|
-
else
|
161
|
-
decomposed << cp
|
162
|
-
end
|
163
|
-
end
|
164
|
-
end
|
165
|
-
|
166
|
-
# Compose decomposed characters to the composed form.
|
167
|
-
def compose_codepoints(codepoints)
|
168
|
-
pos = 0
|
169
|
-
eoa = codepoints.length - 1
|
170
|
-
starter_pos = 0
|
171
|
-
starter_char = codepoints[0]
|
172
|
-
previous_combining_class = -1
|
173
|
-
while pos < eoa
|
174
|
-
pos += 1
|
175
|
-
lindex = starter_char - HANGUL_LBASE
|
176
|
-
# -- Hangul
|
177
|
-
if 0 <= lindex and lindex < HANGUL_LCOUNT
|
178
|
-
vindex = codepoints[starter_pos+1] - HANGUL_VBASE rescue vindex = -1
|
179
|
-
if 0 <= vindex and vindex < HANGUL_VCOUNT
|
180
|
-
tindex = codepoints[starter_pos+2] - HANGUL_TBASE rescue tindex = -1
|
181
|
-
if 0 <= tindex and tindex < HANGUL_TCOUNT
|
182
|
-
j = starter_pos + 2
|
183
|
-
eoa -= 2
|
184
|
-
else
|
185
|
-
tindex = 0
|
186
|
-
j = starter_pos + 1
|
187
|
-
eoa -= 1
|
188
|
-
end
|
189
|
-
codepoints[starter_pos..j] = (lindex * HANGUL_VCOUNT + vindex) * HANGUL_TCOUNT + tindex + HANGUL_SBASE
|
190
|
-
end
|
191
|
-
starter_pos += 1
|
192
|
-
starter_char = codepoints[starter_pos]
|
193
|
-
# -- Other characters
|
194
|
-
else
|
195
|
-
current_char = codepoints[pos]
|
196
|
-
current = database.codepoints[current_char]
|
197
|
-
if current.combining_class > previous_combining_class
|
198
|
-
if ref = database.composition_map[starter_char]
|
199
|
-
composition = ref[current_char]
|
200
|
-
else
|
201
|
-
composition = nil
|
202
|
-
end
|
203
|
-
unless composition.nil?
|
204
|
-
codepoints[starter_pos] = composition
|
205
|
-
starter_char = composition
|
206
|
-
codepoints.delete_at pos
|
207
|
-
eoa -= 1
|
208
|
-
pos -= 1
|
209
|
-
previous_combining_class = -1
|
210
|
-
else
|
211
|
-
previous_combining_class = current.combining_class
|
212
|
-
end
|
213
|
-
else
|
214
|
-
previous_combining_class = current.combining_class
|
215
|
-
end
|
216
|
-
if current.combining_class == 0
|
217
|
-
starter_pos = pos
|
218
|
-
starter_char = codepoints[pos]
|
219
|
-
end
|
220
|
-
end
|
221
|
-
end
|
222
|
-
codepoints
|
223
|
-
end
|
224
|
-
|
225
|
-
# Replaces all ISO-8859-1 or CP1252 characters by their UTF-8 equivalent resulting in a valid UTF-8 string.
|
226
|
-
#
|
227
|
-
# Passing +true+ will forcibly tidy all bytes, assuming that the string's encoding is entirely CP1252 or ISO-8859-1.
|
228
|
-
def tidy_bytes(string, force = false)
|
229
|
-
if force
|
230
|
-
return string.unpack("C*").map do |b|
|
231
|
-
tidy_byte(b)
|
232
|
-
end.flatten.compact.pack("C*").unpack("U*").pack("U*")
|
233
|
-
end
|
234
|
-
|
235
|
-
bytes = string.unpack("C*")
|
236
|
-
conts_expected = 0
|
237
|
-
last_lead = 0
|
238
|
-
|
239
|
-
bytes.each_index do |i|
|
240
|
-
|
241
|
-
byte = bytes[i]
|
242
|
-
is_cont = byte > 127 && byte < 192
|
243
|
-
is_lead = byte > 191 && byte < 245
|
244
|
-
is_unused = byte > 240
|
245
|
-
is_restricted = byte > 244
|
246
|
-
|
247
|
-
# Impossible or highly unlikely byte? Clean it.
|
248
|
-
if is_unused || is_restricted
|
249
|
-
bytes[i] = tidy_byte(byte)
|
250
|
-
elsif is_cont
|
251
|
-
# Not expecting continuation byte? Clean up. Otherwise, now expect one less.
|
252
|
-
conts_expected == 0 ? bytes[i] = tidy_byte(byte) : conts_expected -= 1
|
253
|
-
else
|
254
|
-
if conts_expected > 0
|
255
|
-
# Expected continuation, but got ASCII or leading? Clean backwards up to
|
256
|
-
# the leading byte.
|
257
|
-
(1..(i - last_lead)).each {|j| bytes[i - j] = tidy_byte(bytes[i - j])}
|
258
|
-
conts_expected = 0
|
259
|
-
end
|
260
|
-
if is_lead
|
261
|
-
# Final byte is leading? Clean it.
|
262
|
-
if i == bytes.length - 1
|
263
|
-
bytes[i] = tidy_byte(bytes.last)
|
264
|
-
else
|
265
|
-
# Valid leading byte? Expect continuations determined by position of
|
266
|
-
# first zero bit, with max of 3.
|
267
|
-
conts_expected = byte < 224 ? 1 : byte < 240 ? 2 : 3
|
268
|
-
last_lead = i
|
269
|
-
end
|
270
|
-
end
|
271
|
-
end
|
272
|
-
end
|
273
|
-
bytes.empty? ? "" : bytes.flatten.compact.pack("C*").unpack("U*").pack("U*")
|
274
|
-
end
|
275
|
-
|
276
|
-
# Returns the KC normalization of the string by default. NFKC is considered the best normalization form for
|
277
|
-
# passing strings to databases and validations.
|
278
|
-
#
|
279
|
-
# * <tt>string</tt> - The string to perform normalization on.
|
280
|
-
# * <tt>form</tt> - The form you want to normalize in. Should be one of the following:
|
281
|
-
# <tt>:c</tt>, <tt>:kc</tt>, <tt>:d</tt>, or <tt>:kd</tt>. Default is
|
282
|
-
# ActiveSupport::Multibyte.default_normalization_form
|
283
|
-
def normalize(string, form=nil)
|
284
|
-
form ||= @default_normalization_form
|
285
|
-
# See http://www.unicode.org/reports/tr15, Table 1
|
286
|
-
codepoints = u_unpack(string)
|
287
|
-
case form
|
288
|
-
when :d
|
289
|
-
reorder_characters(decompose_codepoints(:canonical, codepoints))
|
290
|
-
when :c
|
291
|
-
compose_codepoints(reorder_characters(decompose_codepoints(:canonical, codepoints)))
|
292
|
-
when :kd
|
293
|
-
reorder_characters(decompose_codepoints(:compatability, codepoints))
|
294
|
-
when :kc
|
295
|
-
compose_codepoints(reorder_characters(decompose_codepoints(:compatability, codepoints)))
|
296
|
-
else
|
297
|
-
raise ArgumentError, "#{form} is not a valid normalization variant", caller
|
298
|
-
end.pack('U*')
|
299
|
-
end
|
300
|
-
|
301
|
-
def apply_mapping(string, mapping) #:nodoc:
|
302
|
-
u_unpack(string).map do |codepoint|
|
303
|
-
cp = database.codepoints[codepoint]
|
304
|
-
if cp and (ncp = cp.send(mapping)) and ncp > 0
|
305
|
-
ncp
|
306
|
-
else
|
307
|
-
codepoint
|
308
|
-
end
|
309
|
-
end.pack('U*')
|
310
|
-
end
|
311
|
-
|
312
|
-
# Holds data about a codepoint in the Unicode database
|
313
|
-
class Codepoint
|
314
|
-
attr_accessor :code, :combining_class, :decomp_type, :decomp_mapping, :uppercase_mapping, :lowercase_mapping
|
315
|
-
end
|
316
|
-
|
317
|
-
# Holds static data from the Unicode database
|
318
|
-
class UnicodeDatabase
|
319
|
-
ATTRIBUTES = :codepoints, :composition_exclusion, :composition_map, :boundary, :cp1252
|
320
|
-
|
321
|
-
attr_writer(*ATTRIBUTES)
|
322
|
-
|
323
|
-
def initialize
|
324
|
-
@codepoints = Hash.new(Codepoint.new)
|
325
|
-
@composition_exclusion = []
|
326
|
-
@composition_map = {}
|
327
|
-
@boundary = {}
|
328
|
-
@cp1252 = {}
|
329
|
-
end
|
330
|
-
|
331
|
-
# Lazy load the Unicode database so it's only loaded when it's actually used
|
332
|
-
ATTRIBUTES.each do |attr_name|
|
333
|
-
class_eval(<<-EOS, __FILE__, __LINE__ + 1)
|
334
|
-
def #{attr_name} # def codepoints
|
335
|
-
load # load
|
336
|
-
@#{attr_name} # @codepoints
|
337
|
-
end # end
|
338
|
-
EOS
|
339
|
-
end
|
340
|
-
|
341
|
-
# Loads the Unicode database and returns all the internal objects of UnicodeDatabase.
|
342
|
-
def load
|
343
|
-
begin
|
344
|
-
@codepoints, @composition_exclusion, @composition_map, @boundary, @cp1252 = File.open(self.class.filename, 'rb') { |f| Marshal.load f.read }
|
345
|
-
rescue Exception => e
|
346
|
-
raise IOError.new("Couldn't load the Unicode tables for UTF8Handler (#{e.message}), ActiveSupport::Multibyte is unusable")
|
347
|
-
end
|
348
|
-
|
349
|
-
# Redefine the === method so we can write shorter rules for grapheme cluster breaks
|
350
|
-
@boundary.each do |k,_|
|
351
|
-
@boundary[k].instance_eval do
|
352
|
-
def ===(other)
|
353
|
-
detect { |i| i === other } ? true : false
|
354
|
-
end
|
355
|
-
end if @boundary[k].kind_of?(Array)
|
356
|
-
end
|
357
|
-
|
358
|
-
# define attr_reader methods for the instance variables
|
359
|
-
class << self
|
360
|
-
attr_reader(*ATTRIBUTES)
|
361
|
-
end
|
362
|
-
end
|
363
|
-
|
364
|
-
# Returns the directory in which the data files are stored
|
365
|
-
def self.dirname
|
366
|
-
File.dirname(__FILE__) + '/../values/'
|
367
|
-
end
|
368
|
-
|
369
|
-
# Returns the filename for the data file for this version
|
370
|
-
def self.filename
|
371
|
-
File.expand_path File.join(dirname, "unicode_tables.dat")
|
372
|
-
end
|
373
|
-
end
|
374
|
-
|
375
|
-
private
|
376
|
-
|
377
|
-
def tidy_byte(byte)
|
378
|
-
if byte < 160
|
379
|
-
[database.cp1252[byte] || byte].pack("U").unpack("C*")
|
380
|
-
elsif byte < 192
|
381
|
-
[194, byte]
|
382
|
-
else
|
383
|
-
[195, byte - 64]
|
384
|
-
end
|
385
|
-
end
|
386
|
-
|
387
|
-
def database
|
388
|
-
@database ||= UnicodeDatabase.new
|
389
|
-
end
|
390
|
-
|
391
|
-
end
|
392
|
-
end
|
393
|
-
end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
module ActiveSupport #:nodoc:
|
4
|
-
module Multibyte #:nodoc:
|
5
|
-
if Kernel.const_defined?(:Encoding)
|
6
|
-
# Returns a regular expression that matches valid characters in the current encoding
|
7
|
-
def self.valid_character
|
8
|
-
VALID_CHARACTER[Encoding.default_external.to_s]
|
9
|
-
end
|
10
|
-
else
|
11
|
-
def self.valid_character
|
12
|
-
case $KCODE
|
13
|
-
when 'UTF8'
|
14
|
-
VALID_CHARACTER['UTF-8']
|
15
|
-
when 'SJIS'
|
16
|
-
VALID_CHARACTER['Shift_JIS']
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
if 'string'.respond_to?(:valid_encoding?)
|
22
|
-
# Verifies the encoding of a string
|
23
|
-
def self.verify(string)
|
24
|
-
string.valid_encoding?
|
25
|
-
end
|
26
|
-
else
|
27
|
-
def self.verify(string)
|
28
|
-
if expression = valid_character
|
29
|
-
# Splits the string on character boundaries, which are determined based on $KCODE.
|
30
|
-
string.split(//).all? { |c| expression =~ c }
|
31
|
-
else
|
32
|
-
true
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
# Verifies the encoding of the string and raises an exception when it's not valid
|
38
|
-
def self.verify!(string)
|
39
|
-
raise EncodingError.new("Found characters with invalid encoding") unless verify(string)
|
40
|
-
end
|
41
|
-
|
42
|
-
if 'string'.respond_to?(:force_encoding)
|
43
|
-
# Removes all invalid characters from the string.
|
44
|
-
#
|
45
|
-
# Note: this method is a no-op in Ruby 1.9
|
46
|
-
def self.clean(string)
|
47
|
-
string
|
48
|
-
end
|
49
|
-
else
|
50
|
-
def self.clean(string)
|
51
|
-
if expression = valid_character
|
52
|
-
# Splits the string on character boundaries, which are determined based on $KCODE.
|
53
|
-
string.split(//).grep(expression).join
|
54
|
-
else
|
55
|
-
string
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|