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,42 +0,0 @@
|
|
1
|
-
class File
|
2
|
-
# Write to a file atomically. Useful for situations where you don't
|
3
|
-
# want other processes or threads to see half-written files.
|
4
|
-
#
|
5
|
-
# File.atomic_write("important.file") do |file|
|
6
|
-
# file.write("hello")
|
7
|
-
# end
|
8
|
-
#
|
9
|
-
# If your temp directory is not on the same filesystem as the file you're
|
10
|
-
# trying to write, you can provide a different temporary directory.
|
11
|
-
#
|
12
|
-
# File.atomic_write("/data/something.important", "/data/tmp") do |file|
|
13
|
-
# file.write("hello")
|
14
|
-
# end
|
15
|
-
def self.atomic_write(file_name, temp_dir = Dir.tmpdir)
|
16
|
-
require 'tempfile' unless defined?(Tempfile)
|
17
|
-
require 'fileutils' unless defined?(FileUtils)
|
18
|
-
|
19
|
-
temp_file = Tempfile.new(basename(file_name), temp_dir)
|
20
|
-
temp_file.binmode
|
21
|
-
yield temp_file
|
22
|
-
temp_file.close
|
23
|
-
|
24
|
-
begin
|
25
|
-
# Get original file permissions
|
26
|
-
old_stat = stat(file_name)
|
27
|
-
rescue Errno::ENOENT
|
28
|
-
# No old permissions, write a temp file to determine the defaults
|
29
|
-
check_name = join(dirname(file_name), ".permissions_check.#{Thread.current.object_id}.#{Process.pid}.#{rand(1000000)}")
|
30
|
-
open(check_name, "w") { }
|
31
|
-
old_stat = stat(check_name)
|
32
|
-
unlink(check_name)
|
33
|
-
end
|
34
|
-
|
35
|
-
# Overwrite original file with temp file
|
36
|
-
FileUtils.mv(temp_file.path, file_name)
|
37
|
-
|
38
|
-
# Set correct permissions on new file
|
39
|
-
chown(old_stat.uid, old_stat.gid, file_name)
|
40
|
-
chmod(old_stat.mode, file_name)
|
41
|
-
end
|
42
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
require 'active_support/core_ext/float/rounding'
|
@@ -1,19 +0,0 @@
|
|
1
|
-
class Float
|
2
|
-
alias precisionless_round round
|
3
|
-
private :precisionless_round
|
4
|
-
|
5
|
-
# Rounds the float with the specified precision.
|
6
|
-
#
|
7
|
-
# x = 1.337
|
8
|
-
# x.round # => 1
|
9
|
-
# x.round(1) # => 1.3
|
10
|
-
# x.round(2) # => 1.34
|
11
|
-
def round(precision = nil)
|
12
|
-
if precision
|
13
|
-
magnitude = 10.0 ** precision
|
14
|
-
(self * magnitude).round / magnitude
|
15
|
-
else
|
16
|
-
precisionless_round
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end if RUBY_VERSION < '1.9'
|
@@ -1,9 +0,0 @@
|
|
1
|
-
require 'active_support/core_ext/hash/conversions'
|
2
|
-
require 'active_support/core_ext/hash/deep_merge'
|
3
|
-
require 'active_support/core_ext/hash/deep_dup'
|
4
|
-
require 'active_support/core_ext/hash/diff'
|
5
|
-
require 'active_support/core_ext/hash/except'
|
6
|
-
require 'active_support/core_ext/hash/indifferent_access'
|
7
|
-
require 'active_support/core_ext/hash/keys'
|
8
|
-
require 'active_support/core_ext/hash/reverse_merge'
|
9
|
-
require 'active_support/core_ext/hash/slice'
|
data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/conversions.rb
DELETED
@@ -1,175 +0,0 @@
|
|
1
|
-
require 'active_support/xml_mini'
|
2
|
-
require 'active_support/time'
|
3
|
-
require 'active_support/core_ext/array/wrap'
|
4
|
-
require 'active_support/core_ext/hash/reverse_merge'
|
5
|
-
require 'active_support/core_ext/object/blank'
|
6
|
-
require 'active_support/core_ext/string/inflections'
|
7
|
-
|
8
|
-
class Hash
|
9
|
-
# Returns a string containing an XML representation of its receiver:
|
10
|
-
#
|
11
|
-
# {"foo" => 1, "bar" => 2}.to_xml
|
12
|
-
# # =>
|
13
|
-
# # <?xml version="1.0" encoding="UTF-8"?>
|
14
|
-
# # <hash>
|
15
|
-
# # <foo type="integer">1</foo>
|
16
|
-
# # <bar type="integer">2</bar>
|
17
|
-
# # </hash>
|
18
|
-
#
|
19
|
-
# To do so, the method loops over the pairs and builds nodes that depend on
|
20
|
-
# the _values_. Given a pair +key+, +value+:
|
21
|
-
#
|
22
|
-
# * If +value+ is a hash there's a recursive call with +key+ as <tt>:root</tt>.
|
23
|
-
#
|
24
|
-
# * If +value+ is an array there's a recursive call with +key+ as <tt>:root</tt>,
|
25
|
-
# and +key+ singularized as <tt>:children</tt>.
|
26
|
-
#
|
27
|
-
# * If +value+ is a callable object it must expect one or two arguments. Depending
|
28
|
-
# on the arity, the callable is invoked with the +options+ hash as first argument
|
29
|
-
# with +key+ as <tt>:root</tt>, and +key+ singularized as second argument. The
|
30
|
-
# callable can add nodes by using <tt>options[:builder]</tt>.
|
31
|
-
#
|
32
|
-
# "foo".to_xml(lambda { |options, key| options[:builder].b(key) })
|
33
|
-
# # => "<b>foo</b>"
|
34
|
-
#
|
35
|
-
# * If +value+ responds to +to_xml+ the method is invoked with +key+ as <tt>:root</tt>.
|
36
|
-
#
|
37
|
-
# class Foo
|
38
|
-
# def to_xml(options)
|
39
|
-
# options[:builder].bar "fooing!"
|
40
|
-
# end
|
41
|
-
# end
|
42
|
-
#
|
43
|
-
# {:foo => Foo.new}.to_xml(:skip_instruct => true)
|
44
|
-
# # => "<hash><bar>fooing!</bar></hash>"
|
45
|
-
#
|
46
|
-
# * Otherwise, a node with +key+ as tag is created with a string representation of
|
47
|
-
# +value+ as text node. If +value+ is +nil+ an attribute "nil" set to "true" is added.
|
48
|
-
# Unless the option <tt>:skip_types</tt> exists and is true, an attribute "type" is
|
49
|
-
# added as well according to the following mapping:
|
50
|
-
#
|
51
|
-
# XML_TYPE_NAMES = {
|
52
|
-
# "Symbol" => "symbol",
|
53
|
-
# "Fixnum" => "integer",
|
54
|
-
# "Bignum" => "integer",
|
55
|
-
# "BigDecimal" => "decimal",
|
56
|
-
# "Float" => "float",
|
57
|
-
# "TrueClass" => "boolean",
|
58
|
-
# "FalseClass" => "boolean",
|
59
|
-
# "Date" => "date",
|
60
|
-
# "DateTime" => "datetime",
|
61
|
-
# "Time" => "datetime"
|
62
|
-
# }
|
63
|
-
#
|
64
|
-
# By default the root node is "hash", but that's configurable via the <tt>:root</tt> option.
|
65
|
-
#
|
66
|
-
# The default XML builder is a fresh instance of <tt>Builder::XmlMarkup</tt>. You can
|
67
|
-
# configure your own builder with the <tt>:builder</tt> option. The method also accepts
|
68
|
-
# options like <tt>:dasherize</tt> and friends, they are forwarded to the builder.
|
69
|
-
def to_xml(options = {})
|
70
|
-
require 'active_support/builder' unless defined?(Builder)
|
71
|
-
|
72
|
-
options = options.dup
|
73
|
-
options[:indent] ||= 2
|
74
|
-
options[:root] ||= "hash"
|
75
|
-
options[:builder] ||= Builder::XmlMarkup.new(:indent => options[:indent])
|
76
|
-
|
77
|
-
builder = options[:builder]
|
78
|
-
builder.instruct! unless options.delete(:skip_instruct)
|
79
|
-
|
80
|
-
root = ActiveSupport::XmlMini.rename_key(options[:root].to_s, options)
|
81
|
-
|
82
|
-
builder.__send__(:method_missing, root) do
|
83
|
-
each { |key, value| ActiveSupport::XmlMini.to_tag(key, value, options) }
|
84
|
-
yield builder if block_given?
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
class DisallowedType < StandardError #:nodoc:
|
89
|
-
def initialize(type)
|
90
|
-
super "Disallowed type attribute: #{type.inspect}"
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
DISALLOWED_XML_TYPES = %w(symbol yaml)
|
95
|
-
|
96
|
-
class << self
|
97
|
-
def from_xml(xml, disallowed_types = nil)
|
98
|
-
typecast_xml_value(unrename_keys(ActiveSupport::XmlMini.parse(xml)), disallowed_types)
|
99
|
-
end
|
100
|
-
|
101
|
-
def from_trusted_xml(xml)
|
102
|
-
from_xml xml, []
|
103
|
-
end
|
104
|
-
|
105
|
-
private
|
106
|
-
def typecast_xml_value(value, disallowed_types = nil)
|
107
|
-
disallowed_types ||= DISALLOWED_XML_TYPES
|
108
|
-
|
109
|
-
case value.class.to_s
|
110
|
-
when 'Hash'
|
111
|
-
if value.include?('type') && !value['type'].is_a?(Hash) && disallowed_types.include?(value['type'])
|
112
|
-
raise DisallowedType, value['type']
|
113
|
-
end
|
114
|
-
|
115
|
-
if value['type'] == 'array'
|
116
|
-
_, entries = Array.wrap(value.detect { |k,v| not v.is_a?(String) })
|
117
|
-
if entries.nil? || (c = value['__content__'] && c.blank?)
|
118
|
-
[]
|
119
|
-
else
|
120
|
-
case entries.class.to_s # something weird with classes not matching here. maybe singleton methods breaking is_a?
|
121
|
-
when "Array"
|
122
|
-
entries.collect { |v| typecast_xml_value(v, disallowed_types) }
|
123
|
-
when "Hash"
|
124
|
-
[typecast_xml_value(entries, disallowed_types)]
|
125
|
-
else
|
126
|
-
raise "can't typecast #{entries.inspect}"
|
127
|
-
end
|
128
|
-
end
|
129
|
-
elsif value['type'] == 'file' ||
|
130
|
-
(value["__content__"] && (value.keys.size == 1 || value["__content__"].present?))
|
131
|
-
content = value["__content__"]
|
132
|
-
if parser = ActiveSupport::XmlMini::PARSING[value["type"]]
|
133
|
-
parser.arity == 1 ? parser.call(content) : parser.call(content, value)
|
134
|
-
else
|
135
|
-
content
|
136
|
-
end
|
137
|
-
elsif value['type'] == 'string' && value['nil'] != 'true'
|
138
|
-
""
|
139
|
-
# blank or nil parsed values are represented by nil
|
140
|
-
elsif value.blank? || value['nil'] == 'true'
|
141
|
-
nil
|
142
|
-
# If the type is the only element which makes it then
|
143
|
-
# this still makes the value nil, except if type is
|
144
|
-
# a XML node(where type['value'] is a Hash)
|
145
|
-
elsif value['type'] && value.size == 1 && !value['type'].is_a?(::Hash)
|
146
|
-
nil
|
147
|
-
else
|
148
|
-
xml_value = Hash[value.map { |k,v| [k, typecast_xml_value(v, disallowed_types)] }]
|
149
|
-
|
150
|
-
# Turn { :files => { :file => #<StringIO> } into { :files => #<StringIO> } so it is compatible with
|
151
|
-
# how multipart uploaded files from HTML appear
|
152
|
-
xml_value["file"].is_a?(StringIO) ? xml_value["file"] : xml_value
|
153
|
-
end
|
154
|
-
when 'Array'
|
155
|
-
value.map! { |i| typecast_xml_value(i, disallowed_types) }
|
156
|
-
value.length > 1 ? value : value.first
|
157
|
-
when 'String'
|
158
|
-
value
|
159
|
-
else
|
160
|
-
raise "can't typecast #{value.class.name} - #{value.inspect}"
|
161
|
-
end
|
162
|
-
end
|
163
|
-
|
164
|
-
def unrename_keys(params)
|
165
|
-
case params.class.to_s
|
166
|
-
when "Hash"
|
167
|
-
Hash[params.map { |k,v| [k.to_s.tr("-", "_"), unrename_keys(v)] } ]
|
168
|
-
when "Array"
|
169
|
-
params.map { |v| unrename_keys(v) }
|
170
|
-
else
|
171
|
-
params
|
172
|
-
end
|
173
|
-
end
|
174
|
-
end
|
175
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
class Hash
|
2
|
-
# Returns a deep copy of hash.
|
3
|
-
#
|
4
|
-
# hash = { :a => { :b => 'b' } }
|
5
|
-
# dup = hash.deep_dup
|
6
|
-
# dup[:a][:c] = 'c'
|
7
|
-
#
|
8
|
-
# hash[:a][:c] #=> nil
|
9
|
-
# dup[:a][:c] #=> "c"
|
10
|
-
def deep_dup
|
11
|
-
duplicate = self.dup
|
12
|
-
duplicate.each_pair do |k,v|
|
13
|
-
tv = duplicate[k]
|
14
|
-
duplicate[k] = tv.is_a?(Hash) && v.is_a?(Hash) ? tv.deep_dup : v
|
15
|
-
end
|
16
|
-
duplicate
|
17
|
-
end
|
18
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
class Hash
|
2
|
-
# Returns a new hash with +self+ and +other_hash+ merged recursively.
|
3
|
-
#
|
4
|
-
# h1 = {:x => {:y => [4,5,6]}, :z => [7,8,9]}
|
5
|
-
# h2 = {:x => {:y => [7,8,9]}, :z => "xyz"}
|
6
|
-
#
|
7
|
-
# h1.deep_merge(h2) #=> { :x => {:y => [7, 8, 9]}, :z => "xyz" }
|
8
|
-
# h2.deep_merge(h1) #=> { :x => {:y => [4, 5, 6]}, :z => [7, 8, 9] }
|
9
|
-
def deep_merge(other_hash)
|
10
|
-
dup.deep_merge!(other_hash)
|
11
|
-
end
|
12
|
-
|
13
|
-
# Same as +deep_merge+, but modifies +self+.
|
14
|
-
def deep_merge!(other_hash)
|
15
|
-
other_hash.each_pair do |k,v|
|
16
|
-
tv = self[k]
|
17
|
-
self[k] = tv.is_a?(Hash) && v.is_a?(Hash) ? tv.deep_merge(v) : v
|
18
|
-
end
|
19
|
-
self
|
20
|
-
end
|
21
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
class Hash
|
2
|
-
# Returns a hash that represents the difference between two hashes.
|
3
|
-
#
|
4
|
-
# Examples:
|
5
|
-
#
|
6
|
-
# {1 => 2}.diff(1 => 2) # => {}
|
7
|
-
# {1 => 2}.diff(1 => 3) # => {1 => 2}
|
8
|
-
# {}.diff(1 => 2) # => {1 => 2}
|
9
|
-
# {1 => 2, 3 => 4}.diff(1 => 2) # => {3 => 4}
|
10
|
-
def diff(h2)
|
11
|
-
dup.delete_if { |k, v| h2[k] == v }.merge!(h2.dup.delete_if { |k, v| has_key?(k) })
|
12
|
-
end
|
13
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
class Hash
|
2
|
-
# Return a hash that includes everything but the given keys. This is useful for
|
3
|
-
# limiting a set of parameters to everything but a few known toggles:
|
4
|
-
#
|
5
|
-
# @person.update_attributes(params[:person].except(:admin))
|
6
|
-
#
|
7
|
-
# If the receiver responds to +convert_key+, the method is called on each of the
|
8
|
-
# arguments. This allows +except+ to play nice with hashes with indifferent access
|
9
|
-
# for instance:
|
10
|
-
#
|
11
|
-
# {:a => 1}.with_indifferent_access.except(:a) # => {}
|
12
|
-
# {:a => 1}.with_indifferent_access.except("a") # => {}
|
13
|
-
#
|
14
|
-
def except(*keys)
|
15
|
-
dup.except!(*keys)
|
16
|
-
end
|
17
|
-
|
18
|
-
# Replaces the hash without the given keys.
|
19
|
-
def except!(*keys)
|
20
|
-
keys.each { |key| delete(key) }
|
21
|
-
self
|
22
|
-
end
|
23
|
-
end
|
data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/indifferent_access.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
require 'active_support/hash_with_indifferent_access'
|
2
|
-
|
3
|
-
class Hash
|
4
|
-
|
5
|
-
# Returns an <tt>ActiveSupport::HashWithIndifferentAccess</tt> out of its receiver:
|
6
|
-
#
|
7
|
-
# {:a => 1}.with_indifferent_access["a"] # => 1
|
8
|
-
#
|
9
|
-
def with_indifferent_access
|
10
|
-
ActiveSupport::HashWithIndifferentAccess.new_from_hash_copying_default(self)
|
11
|
-
end
|
12
|
-
|
13
|
-
# Called when object is nested under an object that receives
|
14
|
-
# #with_indifferent_access. This method will be called on the current object
|
15
|
-
# by the enclosing object and is aliased to #with_indifferent_access by
|
16
|
-
# default. Subclasses of Hash may overwrite this method to return +self+ if
|
17
|
-
# converting to an <tt>ActiveSupport::HashWithIndifferentAccess</tt> would not be
|
18
|
-
# desirable.
|
19
|
-
#
|
20
|
-
# b = {:b => 1}
|
21
|
-
# {:a => b}.with_indifferent_access["a"] # calls b.nested_under_indifferent_access
|
22
|
-
#
|
23
|
-
alias nested_under_indifferent_access with_indifferent_access
|
24
|
-
end
|
@@ -1,54 +0,0 @@
|
|
1
|
-
class Hash
|
2
|
-
# Return a new hash with all keys converted to strings.
|
3
|
-
#
|
4
|
-
# { :name => 'Rob', :years => '28' }.stringify_keys
|
5
|
-
# #=> { "name" => "Rob", "years" => "28" }
|
6
|
-
def stringify_keys
|
7
|
-
dup.stringify_keys!
|
8
|
-
end
|
9
|
-
|
10
|
-
# Destructively convert all keys to strings. Same as
|
11
|
-
# +stringify_keys+, but modifies +self+.
|
12
|
-
def stringify_keys!
|
13
|
-
keys.each do |key|
|
14
|
-
self[key.to_s] = delete(key)
|
15
|
-
end
|
16
|
-
self
|
17
|
-
end
|
18
|
-
|
19
|
-
# Return a new hash with all keys converted to symbols, as long as
|
20
|
-
# they respond to +to_sym+.
|
21
|
-
#
|
22
|
-
# { 'name' => 'Rob', 'years' => '28' }.symbolize_keys
|
23
|
-
# #=> { :name => "Rob", :years => "28" }
|
24
|
-
def symbolize_keys
|
25
|
-
dup.symbolize_keys!
|
26
|
-
end
|
27
|
-
|
28
|
-
# Destructively convert all keys to symbols, as long as they respond
|
29
|
-
# to +to_sym+. Same as +symbolize_keys+, but modifies +self+.
|
30
|
-
def symbolize_keys!
|
31
|
-
keys.each do |key|
|
32
|
-
self[(key.to_sym rescue key) || key] = delete(key)
|
33
|
-
end
|
34
|
-
self
|
35
|
-
end
|
36
|
-
|
37
|
-
alias_method :to_options, :symbolize_keys
|
38
|
-
alias_method :to_options!, :symbolize_keys!
|
39
|
-
|
40
|
-
# Validate all keys in a hash match *valid keys, raising ArgumentError on a mismatch.
|
41
|
-
# Note that keys are NOT treated indifferently, meaning if you use strings for keys but assert symbols
|
42
|
-
# as keys, this will fail.
|
43
|
-
#
|
44
|
-
# ==== Examples
|
45
|
-
# { :name => "Rob", :years => "28" }.assert_valid_keys(:name, :age) # => raises "ArgumentError: Unknown key: years"
|
46
|
-
# { :name => "Rob", :age => "28" }.assert_valid_keys("name", "age") # => raises "ArgumentError: Unknown key: name"
|
47
|
-
# { :name => "Rob", :age => "28" }.assert_valid_keys(:name, :age) # => passes, raises nothing
|
48
|
-
def assert_valid_keys(*valid_keys)
|
49
|
-
valid_keys.flatten!
|
50
|
-
each_key do |k|
|
51
|
-
raise(ArgumentError, "Unknown key: #{k}") unless valid_keys.include?(k)
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/reverse_merge.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
class Hash
|
2
|
-
# Merges the caller into +other_hash+. For example,
|
3
|
-
#
|
4
|
-
# options = options.reverse_merge(:size => 25, :velocity => 10)
|
5
|
-
#
|
6
|
-
# is equivalent to
|
7
|
-
#
|
8
|
-
# options = {:size => 25, :velocity => 10}.merge(options)
|
9
|
-
#
|
10
|
-
# This is particularly useful for initializing an options hash
|
11
|
-
# with default values.
|
12
|
-
def reverse_merge(other_hash)
|
13
|
-
other_hash.merge(self)
|
14
|
-
end
|
15
|
-
|
16
|
-
# Destructive +reverse_merge+.
|
17
|
-
def reverse_merge!(other_hash)
|
18
|
-
# right wins if there is no left
|
19
|
-
merge!( other_hash ){|key,left,right| left }
|
20
|
-
end
|
21
|
-
|
22
|
-
alias_method :reverse_update, :reverse_merge!
|
23
|
-
end
|