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,14 +0,0 @@
|
|
1
|
-
require 'active_support/core_ext/string/conversions'
|
2
|
-
require 'active_support/core_ext/string/filters'
|
3
|
-
require 'active_support/core_ext/string/multibyte'
|
4
|
-
require 'active_support/core_ext/string/starts_ends_with'
|
5
|
-
require 'active_support/core_ext/string/inflections'
|
6
|
-
require 'active_support/core_ext/string/access'
|
7
|
-
require 'active_support/core_ext/string/xchar'
|
8
|
-
require 'active_support/core_ext/string/behavior'
|
9
|
-
require 'active_support/core_ext/string/interpolation'
|
10
|
-
require 'active_support/core_ext/string/output_safety'
|
11
|
-
require 'active_support/core_ext/string/exclude'
|
12
|
-
require 'active_support/core_ext/string/encoding'
|
13
|
-
require 'active_support/core_ext/string/strip'
|
14
|
-
require 'active_support/core_ext/string/inquiry'
|
@@ -1,99 +0,0 @@
|
|
1
|
-
require "active_support/multibyte"
|
2
|
-
|
3
|
-
class String
|
4
|
-
unless '1.9'.respond_to?(:force_encoding)
|
5
|
-
# Returns the character at the +position+ treating the string as an array (where 0 is the first character).
|
6
|
-
#
|
7
|
-
# Examples:
|
8
|
-
# "hello".at(0) # => "h"
|
9
|
-
# "hello".at(4) # => "o"
|
10
|
-
# "hello".at(10) # => ERROR if < 1.9, nil in 1.9
|
11
|
-
def at(position)
|
12
|
-
mb_chars[position, 1].to_s
|
13
|
-
end
|
14
|
-
|
15
|
-
# Returns the remaining of the string from the +position+ treating the string as an array (where 0 is the first character).
|
16
|
-
#
|
17
|
-
# Examples:
|
18
|
-
# "hello".from(0) # => "hello"
|
19
|
-
# "hello".from(2) # => "llo"
|
20
|
-
# "hello".from(10) # => "" if < 1.9, nil in 1.9
|
21
|
-
def from(position)
|
22
|
-
mb_chars[position..-1].to_s
|
23
|
-
end
|
24
|
-
|
25
|
-
# Returns the beginning of the string up to the +position+ treating the string as an array (where 0 is the first character).
|
26
|
-
#
|
27
|
-
# Examples:
|
28
|
-
# "hello".to(0) # => "h"
|
29
|
-
# "hello".to(2) # => "hel"
|
30
|
-
# "hello".to(10) # => "hello"
|
31
|
-
def to(position)
|
32
|
-
mb_chars[0..position].to_s
|
33
|
-
end
|
34
|
-
|
35
|
-
# Returns the first character of the string or the first +limit+ characters.
|
36
|
-
#
|
37
|
-
# Examples:
|
38
|
-
# "hello".first # => "h"
|
39
|
-
# "hello".first(2) # => "he"
|
40
|
-
# "hello".first(10) # => "hello"
|
41
|
-
def first(limit = 1)
|
42
|
-
if limit == 0
|
43
|
-
''
|
44
|
-
elsif limit >= size
|
45
|
-
self
|
46
|
-
else
|
47
|
-
mb_chars[0...limit].to_s
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
# Returns the last character of the string or the last +limit+ characters.
|
52
|
-
#
|
53
|
-
# Examples:
|
54
|
-
# "hello".last # => "o"
|
55
|
-
# "hello".last(2) # => "lo"
|
56
|
-
# "hello".last(10) # => "hello"
|
57
|
-
def last(limit = 1)
|
58
|
-
if limit == 0
|
59
|
-
''
|
60
|
-
elsif limit >= size
|
61
|
-
self
|
62
|
-
else
|
63
|
-
mb_chars[(-limit)..-1].to_s
|
64
|
-
end
|
65
|
-
end
|
66
|
-
else
|
67
|
-
def at(position)
|
68
|
-
self[position]
|
69
|
-
end
|
70
|
-
|
71
|
-
def from(position)
|
72
|
-
self[position..-1]
|
73
|
-
end
|
74
|
-
|
75
|
-
def to(position)
|
76
|
-
self[0..position]
|
77
|
-
end
|
78
|
-
|
79
|
-
def first(limit = 1)
|
80
|
-
if limit == 0
|
81
|
-
''
|
82
|
-
elsif limit >= size
|
83
|
-
self
|
84
|
-
else
|
85
|
-
to(limit - 1)
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
def last(limit = 1)
|
90
|
-
if limit == 0
|
91
|
-
''
|
92
|
-
elsif limit >= size
|
93
|
-
self
|
94
|
-
else
|
95
|
-
from(-limit)
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|
data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/conversions.rb
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
require 'date'
|
3
|
-
require 'active_support/core_ext/time/publicize_conversion_methods'
|
4
|
-
require 'active_support/core_ext/time/calculations'
|
5
|
-
|
6
|
-
class String
|
7
|
-
# Returns the codepoint of the first character of the string, assuming a
|
8
|
-
# single-byte character encoding:
|
9
|
-
#
|
10
|
-
# "a".ord # => 97
|
11
|
-
# "à".ord # => 224, in ISO-8859-1
|
12
|
-
#
|
13
|
-
# This method is defined in Ruby 1.8 for Ruby 1.9 forward compatibility on
|
14
|
-
# these character encodings.
|
15
|
-
#
|
16
|
-
# <tt>ActiveSupport::Multibyte::Chars#ord</tt> is forward compatible with
|
17
|
-
# Ruby 1.9 on UTF8 strings:
|
18
|
-
#
|
19
|
-
# "a".mb_chars.ord # => 97
|
20
|
-
# "à".mb_chars.ord # => 224, in UTF8
|
21
|
-
#
|
22
|
-
# Note that the 224 is different in both examples. In ISO-8859-1 "à" is
|
23
|
-
# represented as a single byte, 224. In UTF8 it is represented with two
|
24
|
-
# bytes, namely 195 and 160, but its Unicode codepoint is 224. If we
|
25
|
-
# call +ord+ on the UTF8 string "à" the return value will be 195. That is
|
26
|
-
# not an error, because UTF8 is unsupported, the call itself would be
|
27
|
-
# bogus.
|
28
|
-
def ord
|
29
|
-
self[0]
|
30
|
-
end unless method_defined?(:ord)
|
31
|
-
|
32
|
-
# +getbyte+ backport from Ruby 1.9
|
33
|
-
alias_method :getbyte, :[] unless method_defined?(:getbyte)
|
34
|
-
|
35
|
-
# Form can be either :utc (default) or :local.
|
36
|
-
def to_time(form = :utc)
|
37
|
-
return nil if self.blank?
|
38
|
-
d = ::Date._parse(self, false).values_at(:year, :mon, :mday, :hour, :min, :sec, :sec_fraction, :offset).map { |arg| arg || 0 }
|
39
|
-
d[6] *= 1000000
|
40
|
-
::Time.send("#{form}_time", *d[0..6]) - d[7]
|
41
|
-
end
|
42
|
-
|
43
|
-
# Converts a string to a Date value.
|
44
|
-
#
|
45
|
-
# "1-1-2012".to_date #=> Sun, 01 Jan 2012
|
46
|
-
# "01/01/2012".to_date #=> Sun, 01 Jan 2012
|
47
|
-
# "2012-12-13".to_date #=> Thu, 13 Dec 2012
|
48
|
-
# "12/13/2012".to_date #=> ArgumentError: invalid date
|
49
|
-
def to_date
|
50
|
-
return nil if self.blank?
|
51
|
-
::Date.new(*::Date._parse(self, false).values_at(:year, :mon, :mday))
|
52
|
-
end
|
53
|
-
|
54
|
-
# Converts a string to a DateTime value.
|
55
|
-
#
|
56
|
-
# "1-1-2012".to_datetime #=> Sun, 01 Jan 2012 00:00:00 +0000
|
57
|
-
# "01/01/2012 23:59:59".to_datetime #=> Sun, 01 Jan 2012 23:59:59 +0000
|
58
|
-
# "2012-12-13 12:50".to_datetime #=> Thu, 13 Dec 2012 12:50:00 +0000
|
59
|
-
# "12/13/2012".to_datetime #=> ArgumentError: invalid date
|
60
|
-
def to_datetime
|
61
|
-
return nil if self.blank?
|
62
|
-
d = ::Date._parse(self, false).values_at(:year, :mon, :mday, :hour, :min, :sec, :zone, :sec_fraction).map { |arg| arg || 0 }
|
63
|
-
d[5] += d.pop
|
64
|
-
::DateTime.civil(*d)
|
65
|
-
end
|
66
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
class String
|
2
|
-
# The inverse of <tt>String#include?</tt>. Returns true if the string
|
3
|
-
# does not include the other string.
|
4
|
-
#
|
5
|
-
# "hello".exclude? "lo" #=> false
|
6
|
-
# "hello".exclude? "ol" #=> true
|
7
|
-
# "hello".exclude? ?h #=> false
|
8
|
-
def exclude?(string)
|
9
|
-
!include?(string)
|
10
|
-
end
|
11
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
require 'active_support/core_ext/string/multibyte'
|
2
|
-
|
3
|
-
class String
|
4
|
-
# Returns the string, first removing all whitespace on both ends of
|
5
|
-
# the string, and then changing remaining consecutive whitespace
|
6
|
-
# groups into one space each.
|
7
|
-
#
|
8
|
-
# Examples:
|
9
|
-
# %{ Multi-line
|
10
|
-
# string }.squish # => "Multi-line string"
|
11
|
-
# " foo bar \n \t boo".squish # => "foo bar boo"
|
12
|
-
def squish
|
13
|
-
dup.squish!
|
14
|
-
end
|
15
|
-
|
16
|
-
# Performs a destructive squish. See String#squish.
|
17
|
-
def squish!
|
18
|
-
strip!
|
19
|
-
gsub!(/\s+/, ' ')
|
20
|
-
self
|
21
|
-
end
|
22
|
-
|
23
|
-
# Truncates a given +text+ after a given <tt>length</tt> if +text+ is longer than <tt>length</tt>:
|
24
|
-
#
|
25
|
-
# "Once upon a time in a world far far away".truncate(27)
|
26
|
-
# # => "Once upon a time in a wo..."
|
27
|
-
#
|
28
|
-
# Pass a <tt>:separator</tt> to truncate +text+ at a natural break:
|
29
|
-
#
|
30
|
-
# "Once upon a time in a world far far away".truncate(27, :separator => ' ')
|
31
|
-
# # => "Once upon a time in a..."
|
32
|
-
#
|
33
|
-
# The last characters will be replaced with the <tt>:omission</tt> string (defaults to "...")
|
34
|
-
# for a total length not exceeding <tt>:length</tt>:
|
35
|
-
#
|
36
|
-
# "And they found that many people were sleeping better.".truncate(25, :omission => "... (continued)")
|
37
|
-
# # => "And they f... (continued)"
|
38
|
-
def truncate(length, options = {})
|
39
|
-
text = self.dup
|
40
|
-
options[:omission] ||= "..."
|
41
|
-
|
42
|
-
length_with_room_for_omission = length - options[:omission].mb_chars.length
|
43
|
-
chars = text.mb_chars
|
44
|
-
stop = options[:separator] ?
|
45
|
-
(chars.rindex(options[:separator].mb_chars, length_with_room_for_omission) || length_with_room_for_omission) : length_with_room_for_omission
|
46
|
-
|
47
|
-
(chars.length > length ? chars[0...stop] + options[:omission] : text).to_s
|
48
|
-
end
|
49
|
-
end
|
data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/inflections.rb
DELETED
@@ -1,202 +0,0 @@
|
|
1
|
-
require 'active_support/inflector/methods'
|
2
|
-
require 'active_support/inflector/transliterate'
|
3
|
-
|
4
|
-
# String inflections define new methods on the String class to transform names for different purposes.
|
5
|
-
# For instance, you can figure out the name of a table from the name of a class.
|
6
|
-
#
|
7
|
-
# "ScaleScore".tableize # => "scale_scores"
|
8
|
-
#
|
9
|
-
class String
|
10
|
-
# Returns the plural form of the word in the string.
|
11
|
-
#
|
12
|
-
# If the optional parameter +count+ is specified,
|
13
|
-
# the singular form will be returned if <tt>count == 1</tt>.
|
14
|
-
# For any other value of +count+ the plural will be returned.
|
15
|
-
#
|
16
|
-
# ==== Examples
|
17
|
-
# "post".pluralize # => "posts"
|
18
|
-
# "octopus".pluralize # => "octopi"
|
19
|
-
# "sheep".pluralize # => "sheep"
|
20
|
-
# "words".pluralize # => "words"
|
21
|
-
# "the blue mailman".pluralize # => "the blue mailmen"
|
22
|
-
# "CamelOctopus".pluralize # => "CamelOctopi"
|
23
|
-
# "apple".pluralize(1) # => "apple"
|
24
|
-
# "apple".pluralize(2) # => "apples"
|
25
|
-
def pluralize(count = nil)
|
26
|
-
if count == 1
|
27
|
-
self
|
28
|
-
else
|
29
|
-
ActiveSupport::Inflector.pluralize(self)
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
# The reverse of +pluralize+, returns the singular form of a word in a string.
|
34
|
-
#
|
35
|
-
# "posts".singularize # => "post"
|
36
|
-
# "octopi".singularize # => "octopus"
|
37
|
-
# "sheep".singularize # => "sheep"
|
38
|
-
# "word".singularize # => "word"
|
39
|
-
# "the blue mailmen".singularize # => "the blue mailman"
|
40
|
-
# "CamelOctopi".singularize # => "CamelOctopus"
|
41
|
-
def singularize
|
42
|
-
ActiveSupport::Inflector.singularize(self)
|
43
|
-
end
|
44
|
-
|
45
|
-
# +constantize+ tries to find a declared constant with the name specified
|
46
|
-
# in the string. It raises a NameError when the name is not in CamelCase
|
47
|
-
# or is not initialized. See ActiveSupport::Inflector.constantize
|
48
|
-
#
|
49
|
-
# Examples
|
50
|
-
# "Module".constantize # => Module
|
51
|
-
# "Class".constantize # => Class
|
52
|
-
# "blargle".constantize # => NameError: wrong constant name blargle
|
53
|
-
def constantize
|
54
|
-
ActiveSupport::Inflector.constantize(self)
|
55
|
-
end
|
56
|
-
|
57
|
-
# +safe_constantize+ tries to find a declared constant with the name specified
|
58
|
-
# in the string. It returns nil when the name is not in CamelCase
|
59
|
-
# or is not initialized. See ActiveSupport::Inflector.safe_constantize
|
60
|
-
#
|
61
|
-
# Examples
|
62
|
-
# "Module".safe_constantize # => Module
|
63
|
-
# "Class".safe_constantize # => Class
|
64
|
-
# "blargle".safe_constantize # => nil
|
65
|
-
def safe_constantize
|
66
|
-
ActiveSupport::Inflector.safe_constantize(self)
|
67
|
-
end
|
68
|
-
|
69
|
-
# By default, +camelize+ converts strings to UpperCamelCase. If the argument to camelize
|
70
|
-
# is set to <tt>:lower</tt> then camelize produces lowerCamelCase.
|
71
|
-
#
|
72
|
-
# +camelize+ will also convert '/' to '::' which is useful for converting paths to namespaces.
|
73
|
-
#
|
74
|
-
# "active_record".camelize # => "ActiveRecord"
|
75
|
-
# "active_record".camelize(:lower) # => "activeRecord"
|
76
|
-
# "active_record/errors".camelize # => "ActiveRecord::Errors"
|
77
|
-
# "active_record/errors".camelize(:lower) # => "activeRecord::Errors"
|
78
|
-
def camelize(first_letter = :upper)
|
79
|
-
case first_letter
|
80
|
-
when :upper then ActiveSupport::Inflector.camelize(self, true)
|
81
|
-
when :lower then ActiveSupport::Inflector.camelize(self, false)
|
82
|
-
end
|
83
|
-
end
|
84
|
-
alias_method :camelcase, :camelize
|
85
|
-
|
86
|
-
# Capitalizes all the words and replaces some characters in the string to create
|
87
|
-
# a nicer looking title. +titleize+ is meant for creating pretty output. It is not
|
88
|
-
# used in the Rails internals.
|
89
|
-
#
|
90
|
-
# +titleize+ is also aliased as +titlecase+.
|
91
|
-
#
|
92
|
-
# "man from the boondocks".titleize # => "Man From The Boondocks"
|
93
|
-
# "x-men: the last stand".titleize # => "X Men: The Last Stand"
|
94
|
-
def titleize
|
95
|
-
ActiveSupport::Inflector.titleize(self)
|
96
|
-
end
|
97
|
-
alias_method :titlecase, :titleize
|
98
|
-
|
99
|
-
# The reverse of +camelize+. Makes an underscored, lowercase form from the expression in the string.
|
100
|
-
#
|
101
|
-
# +underscore+ will also change '::' to '/' to convert namespaces to paths.
|
102
|
-
#
|
103
|
-
# "ActiveModel".underscore # => "active_model"
|
104
|
-
# "ActiveModel::Errors".underscore # => "active_model/errors"
|
105
|
-
def underscore
|
106
|
-
ActiveSupport::Inflector.underscore(self)
|
107
|
-
end
|
108
|
-
|
109
|
-
# Replaces underscores with dashes in the string.
|
110
|
-
#
|
111
|
-
# "puni_puni" # => "puni-puni"
|
112
|
-
def dasherize
|
113
|
-
ActiveSupport::Inflector.dasherize(self)
|
114
|
-
end
|
115
|
-
|
116
|
-
# Removes the module part from the constant expression in the string.
|
117
|
-
#
|
118
|
-
# "ActiveRecord::CoreExtensions::String::Inflections".demodulize # => "Inflections"
|
119
|
-
# "Inflections".demodulize # => "Inflections"
|
120
|
-
#
|
121
|
-
# See also +deconstantize+.
|
122
|
-
def demodulize
|
123
|
-
ActiveSupport::Inflector.demodulize(self)
|
124
|
-
end
|
125
|
-
|
126
|
-
# Removes the rightmost segment from the constant expression in the string.
|
127
|
-
#
|
128
|
-
# "Net::HTTP".deconstantize # => "Net"
|
129
|
-
# "::Net::HTTP".deconstantize # => "::Net"
|
130
|
-
# "String".deconstantize # => ""
|
131
|
-
# "::String".deconstantize # => ""
|
132
|
-
# "".deconstantize # => ""
|
133
|
-
#
|
134
|
-
# See also +demodulize+.
|
135
|
-
def deconstantize
|
136
|
-
ActiveSupport::Inflector.deconstantize(self)
|
137
|
-
end
|
138
|
-
|
139
|
-
# Replaces special characters in a string so that it may be used as part of a 'pretty' URL.
|
140
|
-
#
|
141
|
-
# ==== Examples
|
142
|
-
#
|
143
|
-
# class Person
|
144
|
-
# def to_param
|
145
|
-
# "#{id}-#{name.parameterize}"
|
146
|
-
# end
|
147
|
-
# end
|
148
|
-
#
|
149
|
-
# @person = Person.find(1)
|
150
|
-
# # => #<Person id: 1, name: "Donald E. Knuth">
|
151
|
-
#
|
152
|
-
# <%= link_to(@person.name, person_path) %>
|
153
|
-
# # => <a href="/person/1-donald-e-knuth">Donald E. Knuth</a>
|
154
|
-
def parameterize(sep = '-')
|
155
|
-
ActiveSupport::Inflector.parameterize(self, sep)
|
156
|
-
end
|
157
|
-
|
158
|
-
# Creates the name of a table like Rails does for models to table names. This method
|
159
|
-
# uses the +pluralize+ method on the last word in the string.
|
160
|
-
#
|
161
|
-
# "RawScaledScorer".tableize # => "raw_scaled_scorers"
|
162
|
-
# "egg_and_ham".tableize # => "egg_and_hams"
|
163
|
-
# "fancyCategory".tableize # => "fancy_categories"
|
164
|
-
def tableize
|
165
|
-
ActiveSupport::Inflector.tableize(self)
|
166
|
-
end
|
167
|
-
|
168
|
-
# Create a class name from a plural table name like Rails does for table names to models.
|
169
|
-
# Note that this returns a string and not a class. (To convert to an actual class
|
170
|
-
# follow +classify+ with +constantize+.)
|
171
|
-
#
|
172
|
-
# "egg_and_hams".classify # => "EggAndHam"
|
173
|
-
# "posts".classify # => "Post"
|
174
|
-
#
|
175
|
-
# Singular names are not handled correctly.
|
176
|
-
#
|
177
|
-
# "business".classify # => "Busines"
|
178
|
-
def classify
|
179
|
-
ActiveSupport::Inflector.classify(self)
|
180
|
-
end
|
181
|
-
|
182
|
-
# Capitalizes the first word, turns underscores into spaces, and strips '_id'.
|
183
|
-
# Like +titleize+, this is meant for creating pretty output.
|
184
|
-
#
|
185
|
-
# "employee_salary" # => "Employee salary"
|
186
|
-
# "author_id" # => "Author"
|
187
|
-
def humanize
|
188
|
-
ActiveSupport::Inflector.humanize(self)
|
189
|
-
end
|
190
|
-
|
191
|
-
# Creates a foreign key name from a class name.
|
192
|
-
# +separate_class_name_and_id_with_underscore+ sets whether
|
193
|
-
# the method should put '_' between the name and 'id'.
|
194
|
-
#
|
195
|
-
# Examples
|
196
|
-
# "Message".foreign_key # => "message_id"
|
197
|
-
# "Message".foreign_key(false) # => "messageid"
|
198
|
-
# "Admin::Post".foreign_key # => "post_id"
|
199
|
-
def foreign_key(separate_class_name_and_id_with_underscore = true)
|
200
|
-
ActiveSupport::Inflector.foreign_key(self, separate_class_name_and_id_with_underscore)
|
201
|
-
end
|
202
|
-
end
|