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,154 +0,0 @@
|
|
1
|
-
module ActiveSupport
|
2
|
-
# = Notifications
|
3
|
-
#
|
4
|
-
# +ActiveSupport::Notifications+ provides an instrumentation API for Ruby.
|
5
|
-
#
|
6
|
-
# == Instrumenters
|
7
|
-
#
|
8
|
-
# To instrument an event you just need to do:
|
9
|
-
#
|
10
|
-
# ActiveSupport::Notifications.instrument("render", :extra => :information) do
|
11
|
-
# render :text => "Foo"
|
12
|
-
# end
|
13
|
-
#
|
14
|
-
# That executes the block first and notifies all subscribers once done.
|
15
|
-
#
|
16
|
-
# In the example above "render" is the name of the event, and the rest is called
|
17
|
-
# the _payload_. The payload is a mechanism that allows instrumenters to pass
|
18
|
-
# extra information to subscribers. Payloads consist of a hash whose contents
|
19
|
-
# are arbitrary and generally depend on the event.
|
20
|
-
#
|
21
|
-
# == Subscribers
|
22
|
-
#
|
23
|
-
# You can consume those events and the information they provide by registering
|
24
|
-
# a subscriber. For instance, let's store all "render" events in an array:
|
25
|
-
#
|
26
|
-
# events = []
|
27
|
-
#
|
28
|
-
# ActiveSupport::Notifications.subscribe("render") do |*args|
|
29
|
-
# events << ActiveSupport::Notifications::Event.new(*args)
|
30
|
-
# end
|
31
|
-
#
|
32
|
-
# That code returns right away, you are just subscribing to "render" events.
|
33
|
-
# The block will be called asynchronously whenever someone instruments "render":
|
34
|
-
#
|
35
|
-
# ActiveSupport::Notifications.instrument("render", :extra => :information) do
|
36
|
-
# render :text => "Foo"
|
37
|
-
# end
|
38
|
-
#
|
39
|
-
# event = events.first
|
40
|
-
# event.name # => "render"
|
41
|
-
# event.duration # => 10 (in milliseconds)
|
42
|
-
# event.payload # => { :extra => :information }
|
43
|
-
#
|
44
|
-
# The block in the +subscribe+ call gets the name of the event, start
|
45
|
-
# timestamp, end timestamp, a string with a unique identifier for that event
|
46
|
-
# (something like "535801666f04d0298cd6"), and a hash with the payload, in
|
47
|
-
# that order.
|
48
|
-
#
|
49
|
-
# If an exception happens during that particular instrumentation the payload will
|
50
|
-
# have a key +:exception+ with an array of two elements as value: a string with
|
51
|
-
# the name of the exception class, and the exception message.
|
52
|
-
#
|
53
|
-
# As the previous example depicts, the class +ActiveSupport::Notifications::Event+
|
54
|
-
# is able to take the arguments as they come and provide an object-oriented
|
55
|
-
# interface to that data.
|
56
|
-
#
|
57
|
-
# You can also subscribe to all events whose name matches a certain regexp:
|
58
|
-
#
|
59
|
-
# ActiveSupport::Notifications.subscribe(/render/) do |*args|
|
60
|
-
# ...
|
61
|
-
# end
|
62
|
-
#
|
63
|
-
# and even pass no argument to +subscribe+, in which case you are subscribing
|
64
|
-
# to all events.
|
65
|
-
#
|
66
|
-
# == Temporary Subscriptions
|
67
|
-
#
|
68
|
-
# Sometimes you do not want to subscribe to an event for the entire life of
|
69
|
-
# the application. There are two ways to unsubscribe.
|
70
|
-
#
|
71
|
-
# WARNING: The instrumentation framework is designed for long-running subscribers,
|
72
|
-
# use this feature sparingly because it wipes some internal caches and that has
|
73
|
-
# a negative impact on performance.
|
74
|
-
#
|
75
|
-
# === Subscribe While a Block Runs
|
76
|
-
#
|
77
|
-
# You can subscribe to some event temporarily while some block runs. For
|
78
|
-
# example, in
|
79
|
-
#
|
80
|
-
# callback = lambda {|*args| ... }
|
81
|
-
# ActiveSupport::Notifications.subscribed(callback, "sql.active_record") do
|
82
|
-
# ...
|
83
|
-
# end
|
84
|
-
#
|
85
|
-
# the callback will be called for all "sql.active_record" events instrumented
|
86
|
-
# during the execution of the block. The callback is unsubscribed automatically
|
87
|
-
# after that.
|
88
|
-
#
|
89
|
-
# === Manual Unsubscription
|
90
|
-
#
|
91
|
-
# The +subscribe+ method returns a subscriber object:
|
92
|
-
#
|
93
|
-
# subscriber = ActiveSupport::Notifications.subscribe("render") do |*args|
|
94
|
-
# ...
|
95
|
-
# end
|
96
|
-
#
|
97
|
-
# To prevent that block from being called anymore, just unsubscribe passing
|
98
|
-
# that reference:
|
99
|
-
#
|
100
|
-
# ActiveSupport::Notifications.unsubscribe(subscriber)
|
101
|
-
#
|
102
|
-
# == Default Queue
|
103
|
-
#
|
104
|
-
# Notifications ships with a queue implementation that consumes and publish events
|
105
|
-
# to log subscribers in a thread. You can use any queue implementation you want.
|
106
|
-
#
|
107
|
-
module Notifications
|
108
|
-
autoload :Instrumenter, 'active_support/notifications/instrumenter'
|
109
|
-
autoload :Event, 'active_support/notifications/instrumenter'
|
110
|
-
autoload :Fanout, 'active_support/notifications/fanout'
|
111
|
-
|
112
|
-
@instrumenters = Hash.new { |h,k| h[k] = notifier.listening?(k) }
|
113
|
-
|
114
|
-
class << self
|
115
|
-
attr_accessor :notifier
|
116
|
-
|
117
|
-
def publish(name, *args)
|
118
|
-
notifier.publish(name, *args)
|
119
|
-
end
|
120
|
-
|
121
|
-
def instrument(name, payload = {})
|
122
|
-
if @instrumenters[name]
|
123
|
-
instrumenter.instrument(name, payload) { yield payload if block_given? }
|
124
|
-
else
|
125
|
-
yield payload if block_given?
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
def subscribe(*args, &block)
|
130
|
-
notifier.subscribe(*args, &block).tap do
|
131
|
-
@instrumenters.clear
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
def subscribed(callback, *args, &block)
|
136
|
-
subscriber = subscribe(*args, &callback)
|
137
|
-
yield
|
138
|
-
ensure
|
139
|
-
unsubscribe(subscriber)
|
140
|
-
end
|
141
|
-
|
142
|
-
def unsubscribe(args)
|
143
|
-
notifier.unsubscribe(args)
|
144
|
-
@instrumenters.clear
|
145
|
-
end
|
146
|
-
|
147
|
-
def instrumenter
|
148
|
-
Thread.current[:"instrumentation_#{notifier.object_id}"] ||= Instrumenter.new(notifier)
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
|
-
self.notifier = Fanout.new
|
153
|
-
end
|
154
|
-
end
|
@@ -1,61 +0,0 @@
|
|
1
|
-
module ActiveSupport
|
2
|
-
module Notifications
|
3
|
-
# This is a default queue implementation that ships with Notifications.
|
4
|
-
# It just pushes events to all registered log subscribers.
|
5
|
-
class Fanout
|
6
|
-
def initialize
|
7
|
-
@subscribers = []
|
8
|
-
@listeners_for = {}
|
9
|
-
end
|
10
|
-
|
11
|
-
def subscribe(pattern = nil, block = Proc.new)
|
12
|
-
subscriber = Subscriber.new(pattern, block).tap do |s|
|
13
|
-
@subscribers << s
|
14
|
-
end
|
15
|
-
@listeners_for.clear
|
16
|
-
subscriber
|
17
|
-
end
|
18
|
-
|
19
|
-
def unsubscribe(subscriber)
|
20
|
-
@subscribers.reject! {|s| s.matches?(subscriber)}
|
21
|
-
@listeners_for.clear
|
22
|
-
end
|
23
|
-
|
24
|
-
def publish(name, *args)
|
25
|
-
listeners_for(name).each { |s| s.publish(name, *args) }
|
26
|
-
end
|
27
|
-
|
28
|
-
def listeners_for(name)
|
29
|
-
@listeners_for[name] ||= @subscribers.select { |s| s.subscribed_to?(name) }
|
30
|
-
end
|
31
|
-
|
32
|
-
def listening?(name)
|
33
|
-
listeners_for(name).any?
|
34
|
-
end
|
35
|
-
|
36
|
-
# This is a sync queue, so there is no waiting.
|
37
|
-
def wait
|
38
|
-
end
|
39
|
-
|
40
|
-
class Subscriber #:nodoc:
|
41
|
-
def initialize(pattern, delegate)
|
42
|
-
@pattern = pattern
|
43
|
-
@delegate = delegate
|
44
|
-
end
|
45
|
-
|
46
|
-
def publish(message, *args)
|
47
|
-
@delegate.call(message, *args)
|
48
|
-
end
|
49
|
-
|
50
|
-
def subscribed_to?(name)
|
51
|
-
!@pattern || @pattern === name.to_s
|
52
|
-
end
|
53
|
-
|
54
|
-
def matches?(subscriber_or_name)
|
55
|
-
self === subscriber_or_name ||
|
56
|
-
@pattern && @pattern === subscriber_or_name
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
require 'active_support/core_ext/module/delegation'
|
2
|
-
|
3
|
-
module ActiveSupport
|
4
|
-
module Notifications
|
5
|
-
class Instrumenter
|
6
|
-
attr_reader :id
|
7
|
-
|
8
|
-
def initialize(notifier)
|
9
|
-
@id = unique_id
|
10
|
-
@notifier = notifier
|
11
|
-
end
|
12
|
-
|
13
|
-
# Instrument the given block by measuring the time taken to execute it
|
14
|
-
# and publish it. Notice that events get sent even if an error occurs
|
15
|
-
# in the passed-in block
|
16
|
-
def instrument(name, payload={})
|
17
|
-
started = Time.now
|
18
|
-
|
19
|
-
begin
|
20
|
-
yield
|
21
|
-
rescue Exception => e
|
22
|
-
payload[:exception] = [e.class.name, e.message]
|
23
|
-
raise e
|
24
|
-
ensure
|
25
|
-
@notifier.publish(name, started, Time.now, @id, payload)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
private
|
30
|
-
def unique_id
|
31
|
-
SecureRandom.hex(10)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
class Event
|
36
|
-
attr_reader :name, :time, :end, :transaction_id, :payload, :duration
|
37
|
-
|
38
|
-
def initialize(name, start, ending, transaction_id, payload)
|
39
|
-
@name = name
|
40
|
-
@payload = payload.dup
|
41
|
-
@time = start
|
42
|
-
@transaction_id = transaction_id
|
43
|
-
@end = ending
|
44
|
-
@duration = 1000.0 * (@end - @time)
|
45
|
-
end
|
46
|
-
|
47
|
-
def parent_of?(event)
|
48
|
-
start = (time - event.time) * 1000
|
49
|
-
start <= 0 && (start + duration >= event.duration)
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'active_support/core_ext/hash/deep_merge'
|
2
|
-
|
3
|
-
module ActiveSupport
|
4
|
-
class OptionMerger #:nodoc:
|
5
|
-
instance_methods.each do |method|
|
6
|
-
undef_method(method) if method !~ /^(__|instance_eval|class|object_id)/
|
7
|
-
end
|
8
|
-
|
9
|
-
def initialize(context, options)
|
10
|
-
@context, @options = context, options
|
11
|
-
end
|
12
|
-
|
13
|
-
private
|
14
|
-
def method_missing(method, *arguments, &block)
|
15
|
-
if arguments.last.is_a?(Proc)
|
16
|
-
proc = arguments.pop
|
17
|
-
arguments << lambda { |*args| @options.deep_merge(proc.call(*args)) }
|
18
|
-
else
|
19
|
-
arguments << (arguments.last.respond_to?(:to_hash) ? @options.deep_merge(arguments.pop) : @options.dup)
|
20
|
-
end
|
21
|
-
|
22
|
-
@context.__send__(method, *arguments, &block)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,222 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'psych'
|
3
|
-
rescue LoadError
|
4
|
-
end
|
5
|
-
|
6
|
-
require 'yaml'
|
7
|
-
|
8
|
-
YAML.add_builtin_type("omap") do |type, val|
|
9
|
-
ActiveSupport::OrderedHash[val.map{ |v| v.to_a.first }]
|
10
|
-
end
|
11
|
-
|
12
|
-
module ActiveSupport
|
13
|
-
# The order of iteration over hashes in Ruby 1.8 is undefined. For example, you do not know the
|
14
|
-
# order in which +keys+ will return keys, or +each+ yield pairs. <tt>ActiveSupport::OrderedHash</tt>
|
15
|
-
# implements a hash that preserves insertion order, as in Ruby 1.9:
|
16
|
-
#
|
17
|
-
# oh = ActiveSupport::OrderedHash.new
|
18
|
-
# oh[:a] = 1
|
19
|
-
# oh[:b] = 2
|
20
|
-
# oh.keys # => [:a, :b], this order is guaranteed
|
21
|
-
#
|
22
|
-
# <tt>ActiveSupport::OrderedHash</tt> is namespaced to prevent conflicts with other implementations.
|
23
|
-
class OrderedHash < ::Hash
|
24
|
-
def to_yaml_type
|
25
|
-
"!tag:yaml.org,2002:omap"
|
26
|
-
end
|
27
|
-
|
28
|
-
def encode_with(coder)
|
29
|
-
coder.represent_seq '!omap', map { |k,v| { k => v } }
|
30
|
-
end
|
31
|
-
|
32
|
-
def to_yaml(opts = {})
|
33
|
-
if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck?
|
34
|
-
return super
|
35
|
-
end
|
36
|
-
|
37
|
-
YAML.quick_emit(self, opts) do |out|
|
38
|
-
out.seq(taguri) do |seq|
|
39
|
-
each do |k, v|
|
40
|
-
seq.add(k => v)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
def nested_under_indifferent_access
|
47
|
-
self
|
48
|
-
end
|
49
|
-
|
50
|
-
# Returns true to make sure that this hash is extractable via <tt>Array#extract_options!</tt>
|
51
|
-
def extractable_options?
|
52
|
-
true
|
53
|
-
end
|
54
|
-
|
55
|
-
# Hash is ordered in Ruby 1.9!
|
56
|
-
if RUBY_VERSION < '1.9'
|
57
|
-
|
58
|
-
# In MRI the Hash class is core and written in C. In particular, methods are
|
59
|
-
# programmed with explicit C function calls and polymorphism is not honored.
|
60
|
-
#
|
61
|
-
# For example, []= is crucial in this implementation to maintain the @keys
|
62
|
-
# array but hash.c invokes rb_hash_aset() originally. This prevents method
|
63
|
-
# reuse through inheritance and forces us to reimplement stuff.
|
64
|
-
#
|
65
|
-
# For instance, we cannot use the inherited #merge! because albeit the algorithm
|
66
|
-
# itself would work, our []= is not being called at all by the C code.
|
67
|
-
|
68
|
-
def initialize(*args, &block)
|
69
|
-
super
|
70
|
-
@keys = []
|
71
|
-
end
|
72
|
-
|
73
|
-
def self.[](*args)
|
74
|
-
ordered_hash = new
|
75
|
-
|
76
|
-
if (args.length == 1 && args.first.is_a?(Array))
|
77
|
-
args.first.each do |key_value_pair|
|
78
|
-
next unless (key_value_pair.is_a?(Array))
|
79
|
-
ordered_hash[key_value_pair[0]] = key_value_pair[1]
|
80
|
-
end
|
81
|
-
|
82
|
-
return ordered_hash
|
83
|
-
end
|
84
|
-
|
85
|
-
unless (args.size % 2 == 0)
|
86
|
-
raise ArgumentError.new("odd number of arguments for Hash")
|
87
|
-
end
|
88
|
-
|
89
|
-
args.each_with_index do |val, ind|
|
90
|
-
next if (ind % 2 != 0)
|
91
|
-
ordered_hash[val] = args[ind + 1]
|
92
|
-
end
|
93
|
-
|
94
|
-
ordered_hash
|
95
|
-
end
|
96
|
-
|
97
|
-
def initialize_copy(other)
|
98
|
-
super
|
99
|
-
# make a deep copy of keys
|
100
|
-
@keys = other.keys
|
101
|
-
end
|
102
|
-
|
103
|
-
def []=(key, value)
|
104
|
-
@keys << key unless has_key?(key)
|
105
|
-
super
|
106
|
-
end
|
107
|
-
|
108
|
-
def delete(key)
|
109
|
-
if has_key? key
|
110
|
-
index = @keys.index(key)
|
111
|
-
@keys.delete_at index
|
112
|
-
end
|
113
|
-
super
|
114
|
-
end
|
115
|
-
|
116
|
-
def delete_if
|
117
|
-
super
|
118
|
-
sync_keys!
|
119
|
-
self
|
120
|
-
end
|
121
|
-
|
122
|
-
def reject!
|
123
|
-
super
|
124
|
-
sync_keys!
|
125
|
-
self
|
126
|
-
end
|
127
|
-
|
128
|
-
def reject(&block)
|
129
|
-
dup.reject!(&block)
|
130
|
-
end
|
131
|
-
|
132
|
-
def keys
|
133
|
-
@keys.dup
|
134
|
-
end
|
135
|
-
|
136
|
-
def values
|
137
|
-
@keys.collect { |key| self[key] }
|
138
|
-
end
|
139
|
-
|
140
|
-
def to_hash
|
141
|
-
self
|
142
|
-
end
|
143
|
-
|
144
|
-
def to_a
|
145
|
-
@keys.map { |key| [ key, self[key] ] }
|
146
|
-
end
|
147
|
-
|
148
|
-
def each_key
|
149
|
-
return to_enum(:each_key) unless block_given?
|
150
|
-
@keys.each { |key| yield key }
|
151
|
-
self
|
152
|
-
end
|
153
|
-
|
154
|
-
def each_value
|
155
|
-
return to_enum(:each_value) unless block_given?
|
156
|
-
@keys.each { |key| yield self[key]}
|
157
|
-
self
|
158
|
-
end
|
159
|
-
|
160
|
-
def each
|
161
|
-
return to_enum(:each) unless block_given?
|
162
|
-
@keys.each {|key| yield [key, self[key]]}
|
163
|
-
self
|
164
|
-
end
|
165
|
-
|
166
|
-
def each_pair
|
167
|
-
return to_enum(:each_pair) unless block_given?
|
168
|
-
@keys.each {|key| yield key, self[key]}
|
169
|
-
self
|
170
|
-
end
|
171
|
-
|
172
|
-
alias_method :select, :find_all
|
173
|
-
|
174
|
-
def clear
|
175
|
-
super
|
176
|
-
@keys.clear
|
177
|
-
self
|
178
|
-
end
|
179
|
-
|
180
|
-
def shift
|
181
|
-
k = @keys.first
|
182
|
-
v = delete(k)
|
183
|
-
[k, v]
|
184
|
-
end
|
185
|
-
|
186
|
-
def merge!(other_hash)
|
187
|
-
if block_given?
|
188
|
-
other_hash.each { |k, v| self[k] = key?(k) ? yield(k, self[k], v) : v }
|
189
|
-
else
|
190
|
-
other_hash.each { |k, v| self[k] = v }
|
191
|
-
end
|
192
|
-
self
|
193
|
-
end
|
194
|
-
|
195
|
-
alias_method :update, :merge!
|
196
|
-
|
197
|
-
def merge(other_hash, &block)
|
198
|
-
dup.merge!(other_hash, &block)
|
199
|
-
end
|
200
|
-
|
201
|
-
# When replacing with another hash, the initial order of our keys must come from the other hash -ordered or not.
|
202
|
-
def replace(other)
|
203
|
-
super
|
204
|
-
@keys = other.keys
|
205
|
-
self
|
206
|
-
end
|
207
|
-
|
208
|
-
def invert
|
209
|
-
OrderedHash[self.to_a.map!{|key_value_pair| key_value_pair.reverse}]
|
210
|
-
end
|
211
|
-
|
212
|
-
def inspect
|
213
|
-
"#<OrderedHash #{super}>"
|
214
|
-
end
|
215
|
-
|
216
|
-
private
|
217
|
-
def sync_keys!
|
218
|
-
@keys.delete_if {|k| !has_key?(k)}
|
219
|
-
end
|
220
|
-
end
|
221
|
-
end
|
222
|
-
end
|