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,121 +0,0 @@
|
|
1
|
-
require "active_support/core_ext/array/wrap"
|
2
|
-
require "active_support/core_ext/array/extract_options"
|
3
|
-
|
4
|
-
module ActiveSupport
|
5
|
-
# \FileUpdateChecker specifies the API used by Rails to watch files
|
6
|
-
# and control reloading. The API depends on four methods:
|
7
|
-
#
|
8
|
-
# * +initialize+ which expects two parameters and one block as
|
9
|
-
# described below;
|
10
|
-
#
|
11
|
-
# * +updated?+ which returns a boolean if there were updates in
|
12
|
-
# the filesystem or not;
|
13
|
-
#
|
14
|
-
# * +execute+ which executes the given block on initialization
|
15
|
-
# and updates the counter to the latest timestamp;
|
16
|
-
#
|
17
|
-
# * +execute_if_updated+ which just executes the block if it was updated;
|
18
|
-
#
|
19
|
-
# After initialization, a call to +execute_if_updated+ must execute
|
20
|
-
# the block only if there was really a change in the filesystem.
|
21
|
-
#
|
22
|
-
# == Examples
|
23
|
-
#
|
24
|
-
# This class is used by Rails to reload the I18n framework whenever
|
25
|
-
# they are changed upon a new request.
|
26
|
-
#
|
27
|
-
# i18n_reloader = ActiveSupport::FileUpdateChecker.new(paths) do
|
28
|
-
# I18n.reload!
|
29
|
-
# end
|
30
|
-
#
|
31
|
-
# ActionDispatch::Reloader.to_prepare do
|
32
|
-
# i18n_reloader.execute_if_updated
|
33
|
-
# end
|
34
|
-
#
|
35
|
-
class FileUpdateChecker
|
36
|
-
# It accepts two parameters on initialization. The first is an array
|
37
|
-
# of files and the second is an optional hash of directories. The hash must
|
38
|
-
# have directories as keys and the value is an array of extensions to be
|
39
|
-
# watched under that directory.
|
40
|
-
#
|
41
|
-
# This method must also receive a block that will be called once a path changes.
|
42
|
-
#
|
43
|
-
# == Implementation details
|
44
|
-
#
|
45
|
-
# This particular implementation checks for added and updated files,
|
46
|
-
# but not removed files. Directories lookup are compiled to a glob for
|
47
|
-
# performance. Therefore, while someone can add new files to the +files+
|
48
|
-
# array after initialization (and parts of Rails do depend on this feature),
|
49
|
-
# adding new directories after initialization is not allowed.
|
50
|
-
#
|
51
|
-
# Notice that other objects that implements FileUpdateChecker API may
|
52
|
-
# not even allow new files to be added after initialization. If this
|
53
|
-
# is the case, we recommend freezing the +files+ after initialization to
|
54
|
-
# avoid changes that won't make effect.
|
55
|
-
def initialize(files, dirs={}, &block)
|
56
|
-
@files = files
|
57
|
-
@glob = compile_glob(dirs)
|
58
|
-
@block = block
|
59
|
-
@updated_at = nil
|
60
|
-
@last_update_at = updated_at
|
61
|
-
end
|
62
|
-
|
63
|
-
# Check if any of the entries were updated. If so, the updated_at
|
64
|
-
# value is cached until the block is executed via +execute+ or +execute_if_updated+
|
65
|
-
def updated?
|
66
|
-
current_updated_at = updated_at
|
67
|
-
if @last_update_at < current_updated_at
|
68
|
-
@updated_at = updated_at
|
69
|
-
true
|
70
|
-
else
|
71
|
-
false
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
# Executes the given block and updates the counter to latest timestamp.
|
76
|
-
def execute
|
77
|
-
@last_update_at = updated_at
|
78
|
-
@block.call
|
79
|
-
ensure
|
80
|
-
@updated_at = nil
|
81
|
-
end
|
82
|
-
|
83
|
-
# Execute the block given if updated.
|
84
|
-
def execute_if_updated
|
85
|
-
if updated?
|
86
|
-
execute
|
87
|
-
true
|
88
|
-
else
|
89
|
-
false
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
private
|
94
|
-
|
95
|
-
def updated_at #:nodoc:
|
96
|
-
@updated_at || begin
|
97
|
-
all = []
|
98
|
-
all.concat @files.select { |f| File.exists?(f) }
|
99
|
-
all.concat Dir[@glob] if @glob
|
100
|
-
all.map { |path| File.mtime(path) }.max || Time.at(0)
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
|
-
def compile_glob(hash) #:nodoc:
|
105
|
-
hash.freeze # Freeze so changes aren't accidently pushed
|
106
|
-
return if hash.empty?
|
107
|
-
|
108
|
-
globs = []
|
109
|
-
hash.each do |key, value|
|
110
|
-
globs << "#{key}/**/*#{compile_ext(value)}"
|
111
|
-
end
|
112
|
-
"{#{globs.join(",")}}"
|
113
|
-
end
|
114
|
-
|
115
|
-
def compile_ext(array) #:nodoc:
|
116
|
-
array = Array.wrap(array)
|
117
|
-
return if array.empty?
|
118
|
-
".{#{array.join(",")}}"
|
119
|
-
end
|
120
|
-
end
|
121
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
module ActiveSupport
|
2
|
-
class FileWatcher
|
3
|
-
class Backend
|
4
|
-
def initialize(path, watcher)
|
5
|
-
@watcher = watcher
|
6
|
-
@path = path
|
7
|
-
end
|
8
|
-
|
9
|
-
def trigger(files)
|
10
|
-
@watcher.trigger(files)
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
def initialize
|
15
|
-
@regex_matchers = {}
|
16
|
-
end
|
17
|
-
|
18
|
-
def watch(pattern, &block)
|
19
|
-
@regex_matchers[pattern] = block
|
20
|
-
end
|
21
|
-
|
22
|
-
def trigger(files)
|
23
|
-
trigger_files = Hash.new { |h,k| h[k] = Hash.new { |h2,k2| h2[k2] = [] } }
|
24
|
-
|
25
|
-
files.each do |file, state|
|
26
|
-
@regex_matchers.each do |pattern, block|
|
27
|
-
trigger_files[block][state] << file if pattern === file
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
trigger_files.each do |block, payload|
|
32
|
-
block.call payload
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
require 'zlib'
|
2
|
-
require 'stringio'
|
3
|
-
require 'active_support/core_ext/string/encoding'
|
4
|
-
|
5
|
-
module ActiveSupport
|
6
|
-
# A convenient wrapper for the zlib standard library that allows compression/decompression of strings with gzip.
|
7
|
-
module Gzip
|
8
|
-
class Stream < StringIO
|
9
|
-
def initialize(*)
|
10
|
-
super
|
11
|
-
set_encoding "BINARY" if "".encoding_aware?
|
12
|
-
end
|
13
|
-
def close; rewind; end
|
14
|
-
end
|
15
|
-
|
16
|
-
# Decompresses a gzipped string.
|
17
|
-
def self.decompress(source)
|
18
|
-
Zlib::GzipReader.new(StringIO.new(source)).read
|
19
|
-
end
|
20
|
-
|
21
|
-
# Compresses a string using gzip.
|
22
|
-
def self.compress(source)
|
23
|
-
output = Stream.new
|
24
|
-
gz = Zlib::GzipWriter.new(output)
|
25
|
-
gz.write(source)
|
26
|
-
gz.close
|
27
|
-
output.string
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/hash_with_indifferent_access.rb
DELETED
@@ -1,178 +0,0 @@
|
|
1
|
-
require 'active_support/core_ext/hash/keys'
|
2
|
-
|
3
|
-
# This class has dubious semantics and we only have it so that
|
4
|
-
# people can write <tt>params[:key]</tt> instead of <tt>params['key']</tt>
|
5
|
-
# and they get the same value for both keys.
|
6
|
-
|
7
|
-
module ActiveSupport
|
8
|
-
class HashWithIndifferentAccess < Hash
|
9
|
-
|
10
|
-
# Always returns true, so that <tt>Array#extract_options!</tt> finds members of this class.
|
11
|
-
def extractable_options?
|
12
|
-
true
|
13
|
-
end
|
14
|
-
|
15
|
-
def with_indifferent_access
|
16
|
-
dup
|
17
|
-
end
|
18
|
-
|
19
|
-
def nested_under_indifferent_access
|
20
|
-
self
|
21
|
-
end
|
22
|
-
|
23
|
-
def initialize(constructor = {})
|
24
|
-
if constructor.is_a?(Hash)
|
25
|
-
super()
|
26
|
-
update(constructor)
|
27
|
-
else
|
28
|
-
super(constructor)
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
def default(key = nil)
|
33
|
-
if key.is_a?(Symbol) && include?(key = key.to_s)
|
34
|
-
self[key]
|
35
|
-
else
|
36
|
-
super
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
def self.new_from_hash_copying_default(hash)
|
41
|
-
new(hash).tap do |new_hash|
|
42
|
-
new_hash.default = hash.default
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
alias_method :regular_writer, :[]= unless method_defined?(:regular_writer)
|
47
|
-
alias_method :regular_update, :update unless method_defined?(:regular_update)
|
48
|
-
|
49
|
-
# Assigns a new value to the hash:
|
50
|
-
#
|
51
|
-
# hash = HashWithIndifferentAccess.new
|
52
|
-
# hash[:key] = "value"
|
53
|
-
#
|
54
|
-
def []=(key, value)
|
55
|
-
regular_writer(convert_key(key), convert_value(value))
|
56
|
-
end
|
57
|
-
|
58
|
-
alias_method :store, :[]=
|
59
|
-
|
60
|
-
# Updates the instantized hash with values from the second:
|
61
|
-
#
|
62
|
-
# hash_1 = HashWithIndifferentAccess.new
|
63
|
-
# hash_1[:key] = "value"
|
64
|
-
#
|
65
|
-
# hash_2 = HashWithIndifferentAccess.new
|
66
|
-
# hash_2[:key] = "New Value!"
|
67
|
-
#
|
68
|
-
# hash_1.update(hash_2) # => {"key"=>"New Value!"}
|
69
|
-
#
|
70
|
-
def update(other_hash)
|
71
|
-
if other_hash.is_a? HashWithIndifferentAccess
|
72
|
-
super(other_hash)
|
73
|
-
else
|
74
|
-
other_hash.each_pair { |key, value| regular_writer(convert_key(key), convert_value(value)) }
|
75
|
-
self
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
alias_method :merge!, :update
|
80
|
-
|
81
|
-
# Checks the hash for a key matching the argument passed in:
|
82
|
-
#
|
83
|
-
# hash = HashWithIndifferentAccess.new
|
84
|
-
# hash["key"] = "value"
|
85
|
-
# hash.key? :key # => true
|
86
|
-
# hash.key? "key" # => true
|
87
|
-
#
|
88
|
-
def key?(key)
|
89
|
-
super(convert_key(key))
|
90
|
-
end
|
91
|
-
|
92
|
-
alias_method :include?, :key?
|
93
|
-
alias_method :has_key?, :key?
|
94
|
-
alias_method :member?, :key?
|
95
|
-
|
96
|
-
# Same as <tt>Hash#fetch</tt> where the key passed as argument can be
|
97
|
-
# either a string or a symbol:
|
98
|
-
#
|
99
|
-
# counters = HashWithIndifferentAccess.new
|
100
|
-
# counters[:foo] = 1
|
101
|
-
#
|
102
|
-
# counters.fetch("foo") # => 1
|
103
|
-
# counters.fetch(:bar, 0) # => 0
|
104
|
-
# counters.fetch(:bar) {|key| 0} # => 0
|
105
|
-
# counters.fetch(:zoo) # => KeyError: key not found: "zoo"
|
106
|
-
#
|
107
|
-
def fetch(key, *extras)
|
108
|
-
super(convert_key(key), *extras)
|
109
|
-
end
|
110
|
-
|
111
|
-
# Returns an array of the values at the specified indices:
|
112
|
-
#
|
113
|
-
# hash = HashWithIndifferentAccess.new
|
114
|
-
# hash[:a] = "x"
|
115
|
-
# hash[:b] = "y"
|
116
|
-
# hash.values_at("a", "b") # => ["x", "y"]
|
117
|
-
#
|
118
|
-
def values_at(*indices)
|
119
|
-
indices.collect {|key| self[convert_key(key)]}
|
120
|
-
end
|
121
|
-
|
122
|
-
# Returns an exact copy of the hash.
|
123
|
-
def dup
|
124
|
-
self.class.new(self).tap do |new_hash|
|
125
|
-
new_hash.default = default
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
# Merges the instantized and the specified hashes together, giving precedence to the values from the second hash.
|
130
|
-
# Does not overwrite the existing hash.
|
131
|
-
def merge(hash)
|
132
|
-
self.dup.update(hash)
|
133
|
-
end
|
134
|
-
|
135
|
-
# Performs the opposite of merge, with the keys and values from the first hash taking precedence over the second.
|
136
|
-
# This overloaded definition prevents returning a regular hash, if reverse_merge is called on a <tt>HashWithDifferentAccess</tt>.
|
137
|
-
def reverse_merge(other_hash)
|
138
|
-
super self.class.new_from_hash_copying_default(other_hash)
|
139
|
-
end
|
140
|
-
|
141
|
-
def reverse_merge!(other_hash)
|
142
|
-
replace(reverse_merge( other_hash ))
|
143
|
-
end
|
144
|
-
|
145
|
-
# Removes a specified key from the hash.
|
146
|
-
def delete(key)
|
147
|
-
super(convert_key(key))
|
148
|
-
end
|
149
|
-
|
150
|
-
def stringify_keys!; self end
|
151
|
-
def stringify_keys; dup end
|
152
|
-
undef :symbolize_keys!
|
153
|
-
def symbolize_keys; to_hash.symbolize_keys end
|
154
|
-
def to_options!; self end
|
155
|
-
|
156
|
-
# Convert to a Hash with String keys.
|
157
|
-
def to_hash
|
158
|
-
Hash.new(default).merge!(self)
|
159
|
-
end
|
160
|
-
|
161
|
-
protected
|
162
|
-
def convert_key(key)
|
163
|
-
key.kind_of?(Symbol) ? key.to_s : key
|
164
|
-
end
|
165
|
-
|
166
|
-
def convert_value(value)
|
167
|
-
if value.is_a? Hash
|
168
|
-
value.nested_under_indifferent_access
|
169
|
-
elsif value.is_a?(Array)
|
170
|
-
value.dup.replace(value.map { |e| convert_value(e) })
|
171
|
-
else
|
172
|
-
value
|
173
|
-
end
|
174
|
-
end
|
175
|
-
end
|
176
|
-
end
|
177
|
-
|
178
|
-
HashWithIndifferentAccess = ActiveSupport::HashWithIndifferentAccess
|
@@ -1,9 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'i18n'
|
3
|
-
require 'active_support/lazy_load_hooks'
|
4
|
-
rescue LoadError => e
|
5
|
-
$stderr.puts "The i18n gem is not available. Please add it to your Gemfile and run bundle install"
|
6
|
-
raise e
|
7
|
-
end
|
8
|
-
|
9
|
-
I18n.load_path << "#{File.dirname(__FILE__)}/locale/en.yml"
|
@@ -1,102 +0,0 @@
|
|
1
|
-
require "active_support"
|
2
|
-
require "active_support/file_update_checker"
|
3
|
-
require "active_support/core_ext/array/wrap"
|
4
|
-
|
5
|
-
module I18n
|
6
|
-
class Railtie < Rails::Railtie
|
7
|
-
config.i18n = ActiveSupport::OrderedOptions.new
|
8
|
-
config.i18n.railties_load_path = []
|
9
|
-
config.i18n.load_path = []
|
10
|
-
config.i18n.fallbacks = ActiveSupport::OrderedOptions.new
|
11
|
-
|
12
|
-
def self.reloader
|
13
|
-
@reloader ||= ActiveSupport::FileUpdateChecker.new(reloader_paths){ I18n.reload! }
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.reloader_paths
|
17
|
-
@reloader_paths ||= []
|
18
|
-
end
|
19
|
-
|
20
|
-
# Add <tt>I18n::Railtie.reloader</tt> to ActionDispatch callbacks. Since, at this
|
21
|
-
# point, no path was added to the reloader, I18n.reload! is not triggered
|
22
|
-
# on to_prepare callbacks. This will only happen on the config.after_initialize
|
23
|
-
# callback below.
|
24
|
-
initializer "i18n.callbacks" do |app|
|
25
|
-
app.reloaders << I18n::Railtie.reloader
|
26
|
-
ActionDispatch::Reloader.to_prepare do
|
27
|
-
I18n::Railtie.reloader.execute_if_updated
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
# Set the i18n configuration after initialization since a lot of
|
32
|
-
# configuration is still usually done in application initializers.
|
33
|
-
config.after_initialize do |app|
|
34
|
-
I18n::Railtie.initialize_i18n(app)
|
35
|
-
end
|
36
|
-
|
37
|
-
# Trigger i18n config before any eager loading has happened
|
38
|
-
# so it's ready if any classes require it when eager loaded
|
39
|
-
config.before_eager_load do |app|
|
40
|
-
I18n::Railtie.initialize_i18n(app)
|
41
|
-
end
|
42
|
-
|
43
|
-
protected
|
44
|
-
|
45
|
-
@i18n_inited = false
|
46
|
-
|
47
|
-
# Setup i18n configuration
|
48
|
-
def self.initialize_i18n(app)
|
49
|
-
return if @i18n_inited
|
50
|
-
|
51
|
-
fallbacks = app.config.i18n.delete(:fallbacks)
|
52
|
-
|
53
|
-
app.config.i18n.each do |setting, value|
|
54
|
-
case setting
|
55
|
-
when :railties_load_path
|
56
|
-
app.config.i18n.load_path.unshift(*value)
|
57
|
-
when :load_path
|
58
|
-
I18n.load_path += value
|
59
|
-
else
|
60
|
-
I18n.send("#{setting}=", value)
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
init_fallbacks(fallbacks) if fallbacks && validate_fallbacks(fallbacks)
|
65
|
-
|
66
|
-
reloader_paths.concat I18n.load_path
|
67
|
-
reloader.execute
|
68
|
-
|
69
|
-
@i18n_inited = true
|
70
|
-
end
|
71
|
-
|
72
|
-
def self.include_fallbacks_module
|
73
|
-
I18n.backend.class.send(:include, I18n::Backend::Fallbacks)
|
74
|
-
end
|
75
|
-
|
76
|
-
def self.init_fallbacks(fallbacks)
|
77
|
-
include_fallbacks_module
|
78
|
-
|
79
|
-
args = case fallbacks
|
80
|
-
when ActiveSupport::OrderedOptions
|
81
|
-
[*(fallbacks[:defaults] || []) << fallbacks[:map]].compact
|
82
|
-
when Hash, Array
|
83
|
-
Array.wrap(fallbacks)
|
84
|
-
else # TrueClass
|
85
|
-
[]
|
86
|
-
end
|
87
|
-
|
88
|
-
I18n.fallbacks = I18n::Locale::Fallbacks.new(*args)
|
89
|
-
end
|
90
|
-
|
91
|
-
def self.validate_fallbacks(fallbacks)
|
92
|
-
case fallbacks
|
93
|
-
when ActiveSupport::OrderedOptions
|
94
|
-
!fallbacks.empty?
|
95
|
-
when TrueClass, Array, Hash
|
96
|
-
true
|
97
|
-
else
|
98
|
-
raise "Unexpected fallback type #{fallbacks.inspect}"
|
99
|
-
end
|
100
|
-
end
|
101
|
-
end
|
102
|
-
end
|