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,175 +0,0 @@
|
|
1
|
-
raise "JRuby is required to use the JDOM backend for XmlMini" unless RUBY_PLATFORM =~ /java/
|
2
|
-
|
3
|
-
require 'jruby'
|
4
|
-
include Java
|
5
|
-
|
6
|
-
require 'active_support/core_ext/object/blank'
|
7
|
-
|
8
|
-
java_import javax.xml.parsers.DocumentBuilder unless defined? DocumentBuilder
|
9
|
-
java_import javax.xml.parsers.DocumentBuilderFactory unless defined? DocumentBuilderFactory
|
10
|
-
java_import java.io.StringReader unless defined? StringReader
|
11
|
-
java_import org.xml.sax.InputSource unless defined? InputSource
|
12
|
-
java_import org.xml.sax.Attributes unless defined? Attributes
|
13
|
-
java_import org.w3c.dom.Node unless defined? Node
|
14
|
-
|
15
|
-
# = XmlMini JRuby JDOM implementation
|
16
|
-
module ActiveSupport
|
17
|
-
module XmlMini_JDOM #:nodoc:
|
18
|
-
extend self
|
19
|
-
|
20
|
-
CONTENT_KEY = '__content__'.freeze
|
21
|
-
|
22
|
-
NODE_TYPE_NAMES = %w{ATTRIBUTE_NODE CDATA_SECTION_NODE COMMENT_NODE DOCUMENT_FRAGMENT_NODE
|
23
|
-
DOCUMENT_NODE DOCUMENT_TYPE_NODE ELEMENT_NODE ENTITY_NODE ENTITY_REFERENCE_NODE NOTATION_NODE
|
24
|
-
PROCESSING_INSTRUCTION_NODE TEXT_NODE}
|
25
|
-
|
26
|
-
node_type_map = {}
|
27
|
-
NODE_TYPE_NAMES.each { |type| node_type_map[Node.send(type)] = type }
|
28
|
-
|
29
|
-
# Parse an XML Document string or IO into a simple hash using Java's jdom.
|
30
|
-
# data::
|
31
|
-
# XML Document string or IO to parse
|
32
|
-
def parse(data)
|
33
|
-
if data.respond_to?(:read)
|
34
|
-
data = data.read
|
35
|
-
end
|
36
|
-
|
37
|
-
if data.blank?
|
38
|
-
{}
|
39
|
-
else
|
40
|
-
@dbf = DocumentBuilderFactory.new_instance
|
41
|
-
xml_string_reader = StringReader.new(data)
|
42
|
-
xml_input_source = InputSource.new(xml_string_reader)
|
43
|
-
doc = @dbf.new_document_builder.parse(xml_input_source)
|
44
|
-
merge_element!({CONTENT_KEY => ''}, doc.document_element)
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
private
|
49
|
-
|
50
|
-
# Convert an XML element and merge into the hash
|
51
|
-
#
|
52
|
-
# hash::
|
53
|
-
# Hash to merge the converted element into.
|
54
|
-
# element::
|
55
|
-
# XML element to merge into hash
|
56
|
-
def merge_element!(hash, element)
|
57
|
-
delete_empty(hash)
|
58
|
-
merge!(hash, element.tag_name, collapse(element))
|
59
|
-
end
|
60
|
-
|
61
|
-
def delete_empty(hash)
|
62
|
-
hash.delete(CONTENT_KEY) if hash[CONTENT_KEY] == ''
|
63
|
-
end
|
64
|
-
|
65
|
-
# Actually converts an XML document element into a data structure.
|
66
|
-
#
|
67
|
-
# element::
|
68
|
-
# The document element to be collapsed.
|
69
|
-
def collapse(element)
|
70
|
-
hash = get_attributes(element)
|
71
|
-
|
72
|
-
child_nodes = element.child_nodes
|
73
|
-
if child_nodes.length > 0
|
74
|
-
for i in 0...child_nodes.length
|
75
|
-
child = child_nodes.item(i)
|
76
|
-
merge_element!(hash, child) unless child.node_type == Node.TEXT_NODE
|
77
|
-
end
|
78
|
-
merge_texts!(hash, element) unless empty_content?(element)
|
79
|
-
hash
|
80
|
-
else
|
81
|
-
merge_texts!(hash, element)
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
|
-
# Merge all the texts of an element into the hash
|
86
|
-
#
|
87
|
-
# hash::
|
88
|
-
# Hash to add the converted element to.
|
89
|
-
# element::
|
90
|
-
# XML element whose texts are to me merged into the hash
|
91
|
-
def merge_texts!(hash, element)
|
92
|
-
delete_empty(hash)
|
93
|
-
text_children = texts(element)
|
94
|
-
if text_children.join.empty?
|
95
|
-
hash
|
96
|
-
else
|
97
|
-
# must use value to prevent double-escaping
|
98
|
-
merge!(hash, CONTENT_KEY, text_children.join)
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
# Adds a new key/value pair to an existing Hash. If the key to be added
|
103
|
-
# already exists and the existing value associated with key is not
|
104
|
-
# an Array, it will be wrapped in an Array. Then the new value is
|
105
|
-
# appended to that Array.
|
106
|
-
#
|
107
|
-
# hash::
|
108
|
-
# Hash to add key/value pair to.
|
109
|
-
# key::
|
110
|
-
# Key to be added.
|
111
|
-
# value::
|
112
|
-
# Value to be associated with key.
|
113
|
-
def merge!(hash, key, value)
|
114
|
-
if hash.has_key?(key)
|
115
|
-
if hash[key].instance_of?(Array)
|
116
|
-
hash[key] << value
|
117
|
-
else
|
118
|
-
hash[key] = [hash[key], value]
|
119
|
-
end
|
120
|
-
elsif value.instance_of?(Array)
|
121
|
-
hash[key] = [value]
|
122
|
-
else
|
123
|
-
hash[key] = value
|
124
|
-
end
|
125
|
-
hash
|
126
|
-
end
|
127
|
-
|
128
|
-
# Converts the attributes array of an XML element into a hash.
|
129
|
-
# Returns an empty Hash if node has no attributes.
|
130
|
-
#
|
131
|
-
# element::
|
132
|
-
# XML element to extract attributes from.
|
133
|
-
def get_attributes(element)
|
134
|
-
attribute_hash = {}
|
135
|
-
attributes = element.attributes
|
136
|
-
for i in 0...attributes.length
|
137
|
-
attribute_hash[CONTENT_KEY] ||= ''
|
138
|
-
attribute_hash[attributes.item(i).name] = attributes.item(i).value
|
139
|
-
end
|
140
|
-
attribute_hash
|
141
|
-
end
|
142
|
-
|
143
|
-
# Determines if a document element has text content
|
144
|
-
#
|
145
|
-
# element::
|
146
|
-
# XML element to be checked.
|
147
|
-
def texts(element)
|
148
|
-
texts = []
|
149
|
-
child_nodes = element.child_nodes
|
150
|
-
for i in 0...child_nodes.length
|
151
|
-
item = child_nodes.item(i)
|
152
|
-
if item.node_type == Node.TEXT_NODE
|
153
|
-
texts << item.get_data
|
154
|
-
end
|
155
|
-
end
|
156
|
-
texts
|
157
|
-
end
|
158
|
-
|
159
|
-
# Determines if a document element has text content
|
160
|
-
#
|
161
|
-
# element::
|
162
|
-
# XML element to be checked.
|
163
|
-
def empty_content?(element)
|
164
|
-
text = ''
|
165
|
-
child_nodes = element.child_nodes
|
166
|
-
for i in 0...child_nodes.length
|
167
|
-
item = child_nodes.item(i)
|
168
|
-
if item.node_type == Node.TEXT_NODE
|
169
|
-
text << item.get_data.strip
|
170
|
-
end
|
171
|
-
end
|
172
|
-
text.strip.length == 0
|
173
|
-
end
|
174
|
-
end
|
175
|
-
end
|
@@ -1,80 +0,0 @@
|
|
1
|
-
require 'libxml'
|
2
|
-
require 'active_support/core_ext/object/blank'
|
3
|
-
require 'stringio'
|
4
|
-
|
5
|
-
# = XmlMini LibXML implementation
|
6
|
-
module ActiveSupport
|
7
|
-
module XmlMini_LibXML #:nodoc:
|
8
|
-
extend self
|
9
|
-
|
10
|
-
# Parse an XML Document string or IO into a simple hash using libxml.
|
11
|
-
# data::
|
12
|
-
# XML Document string or IO to parse
|
13
|
-
def parse(data)
|
14
|
-
if !data.respond_to?(:read)
|
15
|
-
data = StringIO.new(data || '')
|
16
|
-
end
|
17
|
-
|
18
|
-
char = data.getc
|
19
|
-
if char.nil?
|
20
|
-
{}
|
21
|
-
else
|
22
|
-
data.ungetc(char)
|
23
|
-
LibXML::XML::Parser.io(data).parse.to_hash
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
module LibXML #:nodoc:
|
31
|
-
module Conversions #:nodoc:
|
32
|
-
module Document #:nodoc:
|
33
|
-
def to_hash
|
34
|
-
root.to_hash
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
module Node #:nodoc:
|
39
|
-
CONTENT_ROOT = '__content__'.freeze
|
40
|
-
|
41
|
-
# Convert XML document to hash
|
42
|
-
#
|
43
|
-
# hash::
|
44
|
-
# Hash to merge the converted element into.
|
45
|
-
def to_hash(hash={})
|
46
|
-
node_hash = {}
|
47
|
-
|
48
|
-
# Insert node hash into parent hash correctly.
|
49
|
-
case hash[name]
|
50
|
-
when Array then hash[name] << node_hash
|
51
|
-
when Hash then hash[name] = [hash[name], node_hash]
|
52
|
-
when nil then hash[name] = node_hash
|
53
|
-
end
|
54
|
-
|
55
|
-
# Handle child elements
|
56
|
-
each_child do |c|
|
57
|
-
if c.element?
|
58
|
-
c.to_hash(node_hash)
|
59
|
-
elsif c.text? || c.cdata?
|
60
|
-
node_hash[CONTENT_ROOT] ||= ''
|
61
|
-
node_hash[CONTENT_ROOT] << c.content
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
# Remove content node if it is blank
|
66
|
-
if node_hash.length > 1 && node_hash[CONTENT_ROOT].blank?
|
67
|
-
node_hash.delete(CONTENT_ROOT)
|
68
|
-
end
|
69
|
-
|
70
|
-
# Handle attributes
|
71
|
-
each_attr { |a| node_hash[a.name] = a.value }
|
72
|
-
|
73
|
-
hash
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
LibXML::XML::Document.send(:include, LibXML::Conversions::Document)
|
80
|
-
LibXML::XML::Node.send(:include, LibXML::Conversions::Node)
|
@@ -1,86 +0,0 @@
|
|
1
|
-
require 'libxml'
|
2
|
-
require 'active_support/core_ext/object/blank'
|
3
|
-
require 'stringio'
|
4
|
-
|
5
|
-
# = XmlMini LibXML implementation using a SAX-based parser
|
6
|
-
module ActiveSupport
|
7
|
-
module XmlMini_LibXMLSAX
|
8
|
-
extend self
|
9
|
-
|
10
|
-
# Class that will build the hash while the XML document
|
11
|
-
# is being parsed using SAX events.
|
12
|
-
class HashBuilder
|
13
|
-
|
14
|
-
include LibXML::XML::SaxParser::Callbacks
|
15
|
-
|
16
|
-
CONTENT_KEY = '__content__'.freeze
|
17
|
-
HASH_SIZE_KEY = '__hash_size__'.freeze
|
18
|
-
|
19
|
-
attr_reader :hash
|
20
|
-
|
21
|
-
def current_hash
|
22
|
-
@hash_stack.last
|
23
|
-
end
|
24
|
-
|
25
|
-
def on_start_document
|
26
|
-
@hash = { CONTENT_KEY => '' }
|
27
|
-
@hash_stack = [@hash]
|
28
|
-
end
|
29
|
-
|
30
|
-
def on_end_document
|
31
|
-
@hash = @hash_stack.pop
|
32
|
-
@hash.delete(CONTENT_KEY)
|
33
|
-
end
|
34
|
-
|
35
|
-
def on_start_element(name, attrs = {})
|
36
|
-
new_hash = { CONTENT_KEY => '' }.merge(attrs)
|
37
|
-
new_hash[HASH_SIZE_KEY] = new_hash.size + 1
|
38
|
-
|
39
|
-
case current_hash[name]
|
40
|
-
when Array then current_hash[name] << new_hash
|
41
|
-
when Hash then current_hash[name] = [current_hash[name], new_hash]
|
42
|
-
when nil then current_hash[name] = new_hash
|
43
|
-
end
|
44
|
-
|
45
|
-
@hash_stack.push(new_hash)
|
46
|
-
end
|
47
|
-
|
48
|
-
def on_end_element(name)
|
49
|
-
if current_hash.length > current_hash.delete(HASH_SIZE_KEY) && current_hash[CONTENT_KEY].blank? || current_hash[CONTENT_KEY] == ''
|
50
|
-
current_hash.delete(CONTENT_KEY)
|
51
|
-
end
|
52
|
-
@hash_stack.pop
|
53
|
-
end
|
54
|
-
|
55
|
-
def on_characters(string)
|
56
|
-
current_hash[CONTENT_KEY] << string
|
57
|
-
end
|
58
|
-
|
59
|
-
alias_method :on_cdata_block, :on_characters
|
60
|
-
end
|
61
|
-
|
62
|
-
attr_accessor :document_class
|
63
|
-
self.document_class = HashBuilder
|
64
|
-
|
65
|
-
def parse(data)
|
66
|
-
if !data.respond_to?(:read)
|
67
|
-
data = StringIO.new(data || '')
|
68
|
-
end
|
69
|
-
|
70
|
-
char = data.getc
|
71
|
-
if char.nil?
|
72
|
-
{}
|
73
|
-
else
|
74
|
-
data.ungetc(char)
|
75
|
-
|
76
|
-
LibXML::XML::Error.set_handler(&LibXML::XML::Error::QUIET_HANDLER)
|
77
|
-
parser = LibXML::XML::SaxParser.io(data)
|
78
|
-
document = self.document_class.new
|
79
|
-
|
80
|
-
parser.callbacks = document
|
81
|
-
parser.parse
|
82
|
-
document.hash
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
@@ -1,84 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'nokogiri'
|
3
|
-
rescue LoadError => e
|
4
|
-
$stderr.puts "You don't have nokogiri installed in your application. Please add it to your Gemfile and run bundle install"
|
5
|
-
raise e
|
6
|
-
end
|
7
|
-
require 'active_support/core_ext/object/blank'
|
8
|
-
require 'stringio'
|
9
|
-
|
10
|
-
# = XmlMini Nokogiri implementation
|
11
|
-
module ActiveSupport
|
12
|
-
module XmlMini_Nokogiri #:nodoc:
|
13
|
-
extend self
|
14
|
-
|
15
|
-
# Parse an XML Document string or IO into a simple hash using libxml / nokogiri.
|
16
|
-
# data::
|
17
|
-
# XML Document string or IO to parse
|
18
|
-
def parse(data)
|
19
|
-
if !data.respond_to?(:read)
|
20
|
-
data = StringIO.new(data || '')
|
21
|
-
end
|
22
|
-
|
23
|
-
char = data.getc
|
24
|
-
if char.nil?
|
25
|
-
{}
|
26
|
-
else
|
27
|
-
data.ungetc(char)
|
28
|
-
doc = Nokogiri::XML(data)
|
29
|
-
raise doc.errors.first if doc.errors.length > 0
|
30
|
-
doc.to_hash
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
module Conversions #:nodoc:
|
35
|
-
module Document #:nodoc:
|
36
|
-
def to_hash
|
37
|
-
root.to_hash
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
module Node #:nodoc:
|
42
|
-
CONTENT_ROOT = '__content__'.freeze
|
43
|
-
|
44
|
-
# Convert XML document to hash
|
45
|
-
#
|
46
|
-
# hash::
|
47
|
-
# Hash to merge the converted element into.
|
48
|
-
def to_hash(hash={})
|
49
|
-
node_hash = {}
|
50
|
-
|
51
|
-
# Insert node hash into parent hash correctly.
|
52
|
-
case hash[name]
|
53
|
-
when Array then hash[name] << node_hash
|
54
|
-
when Hash then hash[name] = [hash[name], node_hash]
|
55
|
-
when nil then hash[name] = node_hash
|
56
|
-
end
|
57
|
-
|
58
|
-
# Handle child elements
|
59
|
-
children.each do |c|
|
60
|
-
if c.element?
|
61
|
-
c.to_hash(node_hash)
|
62
|
-
elsif c.text? || c.cdata?
|
63
|
-
node_hash[CONTENT_ROOT] ||= ''
|
64
|
-
node_hash[CONTENT_ROOT] << c.content
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
# Remove content node if it is blank and there are child tags
|
69
|
-
if node_hash.length > 1 && node_hash[CONTENT_ROOT].blank?
|
70
|
-
node_hash.delete(CONTENT_ROOT)
|
71
|
-
end
|
72
|
-
|
73
|
-
# Handle attributes
|
74
|
-
attribute_nodes.each { |a| node_hash[a.node_name] = a.value }
|
75
|
-
|
76
|
-
hash
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
Nokogiri::XML::Document.send(:include, Conversions::Document)
|
82
|
-
Nokogiri::XML::Node.send(:include, Conversions::Node)
|
83
|
-
end
|
84
|
-
end
|
@@ -1,88 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'nokogiri'
|
3
|
-
rescue LoadError => e
|
4
|
-
$stderr.puts "You don't have nokogiri installed in your application. Please add it to your Gemfile and run bundle install"
|
5
|
-
raise e
|
6
|
-
end
|
7
|
-
require 'active_support/core_ext/object/blank'
|
8
|
-
require 'stringio'
|
9
|
-
|
10
|
-
# = XmlMini Nokogiri implementation using a SAX-based parser
|
11
|
-
module ActiveSupport
|
12
|
-
module XmlMini_NokogiriSAX
|
13
|
-
extend self
|
14
|
-
|
15
|
-
# Class that will build the hash while the XML document
|
16
|
-
# is being parsed using SAX events.
|
17
|
-
class HashBuilder < Nokogiri::XML::SAX::Document
|
18
|
-
|
19
|
-
CONTENT_KEY = '__content__'.freeze
|
20
|
-
HASH_SIZE_KEY = '__hash_size__'.freeze
|
21
|
-
|
22
|
-
attr_reader :hash
|
23
|
-
|
24
|
-
def current_hash
|
25
|
-
@hash_stack.last
|
26
|
-
end
|
27
|
-
|
28
|
-
def start_document
|
29
|
-
@hash = {}
|
30
|
-
@hash_stack = [@hash]
|
31
|
-
end
|
32
|
-
|
33
|
-
def end_document
|
34
|
-
raise "Parse stack not empty!" if @hash_stack.size > 1
|
35
|
-
end
|
36
|
-
|
37
|
-
def error(error_message)
|
38
|
-
raise error_message
|
39
|
-
end
|
40
|
-
|
41
|
-
def start_element(name, attrs = [])
|
42
|
-
new_hash = { CONTENT_KEY => '' }.merge(Hash[attrs])
|
43
|
-
new_hash[HASH_SIZE_KEY] = new_hash.size + 1
|
44
|
-
|
45
|
-
case current_hash[name]
|
46
|
-
when Array then current_hash[name] << new_hash
|
47
|
-
when Hash then current_hash[name] = [current_hash[name], new_hash]
|
48
|
-
when nil then current_hash[name] = new_hash
|
49
|
-
end
|
50
|
-
|
51
|
-
@hash_stack.push(new_hash)
|
52
|
-
end
|
53
|
-
|
54
|
-
def end_element(name)
|
55
|
-
if current_hash.length > current_hash.delete(HASH_SIZE_KEY) && current_hash[CONTENT_KEY].blank? || current_hash[CONTENT_KEY] == ''
|
56
|
-
current_hash.delete(CONTENT_KEY)
|
57
|
-
end
|
58
|
-
@hash_stack.pop
|
59
|
-
end
|
60
|
-
|
61
|
-
def characters(string)
|
62
|
-
current_hash[CONTENT_KEY] << string
|
63
|
-
end
|
64
|
-
|
65
|
-
alias_method :cdata_block, :characters
|
66
|
-
end
|
67
|
-
|
68
|
-
attr_accessor :document_class
|
69
|
-
self.document_class = HashBuilder
|
70
|
-
|
71
|
-
def parse(data)
|
72
|
-
if !data.respond_to?(:read)
|
73
|
-
data = StringIO.new(data || '')
|
74
|
-
end
|
75
|
-
|
76
|
-
char = data.getc
|
77
|
-
if char.nil?
|
78
|
-
{}
|
79
|
-
else
|
80
|
-
data.ungetc(char)
|
81
|
-
document = self.document_class.new
|
82
|
-
parser = Nokogiri::XML::SAX::Parser.new(document)
|
83
|
-
parser.parse(data)
|
84
|
-
document.hash
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|