sidekiq-statsd 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/.pryrc +11 -0
- data/.travis.yml +18 -0
- data/.yardopts +3 -0
- data/CHANGELOG.md +0 -0
- data/Gemfile +4 -0
- data/Guardfile +16 -0
- data/LICENSE.txt +22 -0
- data/README.md +51 -0
- data/Rakefile +18 -0
- data/lib/sidekiq-statsd.rb +7 -0
- data/lib/sidekiq/statsd/client.rb +35 -0
- data/lib/sidekiq/statsd/server_middleware.rb +36 -0
- data/lib/sidekiq/statsd/version.rb +6 -0
- data/sidekiq-statsd.gemspec +41 -0
- data/spec/sidekiq/statsd/client_spec.rb +53 -0
- data/spec/sidekiq/statsd/server_middleware_spec.rb +35 -0
- data/spec/spec.opts +2 -0
- data/spec/spec_helper.rb +35 -0
- data/spec/support/sidekiq.rb +20 -0
- data/vendor/ruby/1.9.1/bin/autospec +23 -0
- data/vendor/ruby/1.9.1/bin/coderay +23 -0
- data/vendor/ruby/1.9.1/bin/guard +23 -0
- data/vendor/ruby/1.9.1/bin/htmldiff +25 -0
- data/vendor/ruby/1.9.1/bin/ldiff +25 -0
- data/vendor/ruby/1.9.1/bin/pry +23 -0
- data/vendor/ruby/1.9.1/bin/rake +23 -0
- data/vendor/ruby/1.9.1/bin/redcarpet +23 -0
- data/vendor/ruby/1.9.1/bin/rspec +23 -0
- data/vendor/ruby/1.9.1/bin/sidekiq +23 -0
- data/vendor/ruby/1.9.1/bin/sidekiqctl +23 -0
- data/vendor/ruby/1.9.1/bin/thor +23 -0
- data/vendor/ruby/1.9.1/bin/yard +23 -0
- data/vendor/ruby/1.9.1/bin/yardoc +23 -0
- data/vendor/ruby/1.9.1/bin/yri +23 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/CHANGELOG.md +204 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/MIT-LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/README.rdoc +33 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support.rb +82 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/all.rb +3 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/backtrace_cleaner.rb +99 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/base64.rb +54 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/basic_object.rb +21 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/benchmarkable.rb +55 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/buffered_logger.rb +125 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/builder.rb +6 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/cache.rb +638 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/cache/file_store.rb +178 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/cache/mem_cache_store.rb +206 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/cache/memory_store.rb +159 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/cache/null_store.rb +44 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/cache/strategy/local_cache.rb +169 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb +626 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/concern.rb +133 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/configurable.rb +90 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext.rb +3 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/array.rb +8 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/array/access.rb +46 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/array/conversions.rb +164 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/array/extract_options.rb +29 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/array/grouping.rb +100 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/array/prepend_and_append.rb +7 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/array/random_access.rb +30 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/array/uniq_by.rb +16 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/array/wrap.rb +48 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/benchmark.rb +7 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/big_decimal.rb +1 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/big_decimal/conversions.rb +45 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/class.rb +4 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/class/attribute.rb +115 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/class/attribute_accessors.rb +168 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/class/delegating_attributes.rb +44 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/class/subclasses.rb +36 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/date/acts_like.rb +8 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/date/calculations.rb +276 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/date/conversions.rb +106 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/date/freeze.rb +33 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/date/zones.rb +14 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/date_time/acts_like.rb +13 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/date_time/calculations.rb +143 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/date_time/conversions.rb +103 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/date_time/zones.rb +21 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/enumerable.rb +127 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/exception.rb +3 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/file.rb +2 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/file/atomic.rb +47 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/file/path.rb +5 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/float.rb +1 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/float/rounding.rb +19 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/hash.rb +9 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/hash/conversions.rb +175 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/hash/deep_dup.rb +18 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/hash/deep_merge.rb +21 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/hash/diff.rb +13 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/hash/except.rb +23 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/hash/indifferent_access.rb +23 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/hash/keys.rb +54 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/hash/reverse_merge.rb +23 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/hash/slice.rb +40 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/integer.rb +3 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/integer/inflections.rb +17 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/integer/multiple.rb +10 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/integer/time.rb +39 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/io.rb +15 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/kernel.rb +4 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/kernel/agnostics.rb +11 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/kernel/debugger.rb +10 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/kernel/reporting.rb +95 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/kernel/singleton_class.rb +13 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/load_error.rb +23 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/logger.rb +83 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/module.rb +12 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/module/aliasing.rb +70 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/module/anonymous.rb +24 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/module/attr_internal.rb +39 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/module/attribute_accessors.rb +64 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/module/delegation.rb +153 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/module/deprecation.rb +9 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/module/introspection.rb +88 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/module/method_names.rb +14 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/module/qualified_const.rb +64 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/module/reachable.rb +8 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/module/remove_method.rb +16 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/module/synchronization.rb +45 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/name_error.rb +18 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/numeric.rb +2 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/numeric/bytes.rb +44 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/numeric/time.rb +79 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/object.rb +13 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/object/acts_like.rb +10 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/object/blank.rb +121 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/object/conversions.rb +4 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/object/duplicable.rb +119 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/object/inclusion.rb +25 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/object/instance_variables.rb +33 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/object/to_json.rb +19 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/object/to_param.rb +55 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/object/to_query.rb +27 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/object/try.rb +57 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/object/with_options.rb +43 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/proc.rb +14 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/process.rb +1 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/process/daemon.rb +23 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/range.rb +5 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/range/blockless_step.rb +29 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/range/conversions.rb +21 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/range/cover.rb +3 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/range/include_range.rb +21 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/range/overlaps.rb +8 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/regexp.rb +5 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/rexml.rb +46 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string.rb +14 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string/access.rb +99 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string/behavior.rb +6 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string/conversions.rb +66 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string/encoding.rb +11 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string/exclude.rb +11 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string/filters.rb +49 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string/inflections.rb +202 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string/inquiry.rb +13 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string/interpolation.rb +2 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string/multibyte.rb +72 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string/output_safety.rb +186 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string/starts_ends_with.rb +4 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string/strip.rb +26 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/string/xchar.rb +18 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/time/acts_like.rb +8 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/time/calculations.rb +356 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/time/conversions.rb +87 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/time/marshal.rb +57 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/time/publicize_conversion_methods.rb +10 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/time/zones.rb +86 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/uri.rb +30 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb +703 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies/autoload.rb +50 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/deprecation.rb +18 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/deprecation/behaviors.rb +49 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/deprecation/method_wrappers.rb +29 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/deprecation/proxy_wrappers.rb +81 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/deprecation/reporting.rb +65 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/descendants_tracker.rb +45 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/duration.rb +110 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/file_update_checker.rb +121 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/file_watcher.rb +36 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/gzip.rb +30 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/hash_with_indifferent_access.rb +178 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/i18n.rb +9 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/i18n_railtie.rb +102 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/inflections.rb +63 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/inflector.rb +7 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/inflector/inflections.rb +174 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb +321 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/inflector/transliterate.rb +98 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/json.rb +2 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/json/decoding.rb +79 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/json/encoding.rb +278 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/json/variable.rb +9 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb +46 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/locale/en.yml +36 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/log_subscriber.rb +122 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/log_subscriber/test_helper.rb +101 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/memoizable.rb +116 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/message_encryptor.rb +103 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/message_verifier.rb +74 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/multibyte.rb +44 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/multibyte/chars.rb +476 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/multibyte/exceptions.rb +8 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/multibyte/unicode.rb +393 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/multibyte/utils.rb +60 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications.rb +154 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications/fanout.rb +61 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb +53 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/option_merger.rb +25 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/ordered_hash.rb +222 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/ordered_options.rb +61 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/railtie.rb +59 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/rescuable.rb +115 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/ruby/shim.rb +22 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/string_inquirer.rb +21 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/tagged_logging.rb +80 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/test_case.rb +34 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/assertions.rb +97 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/declarative.rb +40 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/deprecation.rb +55 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/isolation.rb +165 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/mochaing.rb +7 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/pending.rb +52 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/performance.rb +317 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/performance/jruby.rb +115 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/performance/rubinius.rb +113 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/performance/ruby.rb +152 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/performance/ruby/mri.rb +57 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/performance/ruby/yarv.rb +57 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/setup_and_teardown.rb +121 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/time.rb +35 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/time/autoload.rb +5 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/time_with_zone.rb +368 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/values/time_zone.rb +397 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/values/unicode_tables.dat +0 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/version.rb +10 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/whiny_nil.rb +24 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/xml_mini.rb +168 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/xml_mini/jdom.rb +181 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/xml_mini/libxml.rb +80 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/xml_mini/libxmlsax.rb +86 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/xml_mini/nokogiri.rb +84 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/xml_mini/nokogirisax.rb +88 -0
- data/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/xml_mini/rexml.rb +130 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/README.md +145 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid.rb +537 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/actor.rb +428 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/autostart.rb +3 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/calls.rb +154 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/condition.rb +70 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/core_ext.rb +9 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/cpu_counter.rb +24 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/evented_mailbox.rb +82 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/fiber.rb +32 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/fsm.rb +186 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/future.rb +118 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/internal_pool.rb +83 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/legacy.rb +47 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/links.rb +36 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/logger.rb +63 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/logging.rb +5 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/logging/incident.rb +21 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/logging/incident_logger.rb +129 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/logging/incident_reporter.rb +48 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/logging/log_event.rb +20 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/logging/ring_buffer.rb +65 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/mailbox.rb +145 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/method.rb +24 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/notifications.rb +83 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/pool_manager.rb +128 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/proxies/abstract_proxy.rb +17 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/proxies/actor_proxy.rb +99 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/proxies/async_proxy.rb +35 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/proxies/block_proxy.rb +29 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/proxies/future_proxy.rb +25 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/proxies/sync_proxy.rb +31 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/receivers.rb +71 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/registry.rb +64 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/responses.rb +44 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/rspec.rb +8 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/signals.rb +51 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/stack_dump.rb +97 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/supervision_group.rb +156 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/supervisor.rb +22 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/system_events.rb +65 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/tasks.rb +120 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/tasks/task_fiber.rb +33 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/tasks/task_thread.rb +52 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/thread.rb +92 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/thread_handle.rb +49 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/uuid.rb +38 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/version.rb +4 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/spec/support/actor_examples.rb +895 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/spec/support/example_actor_class.rb +101 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/spec/support/mailbox_examples.rb +66 -0
- data/vendor/ruby/1.9.1/gems/celluloid-0.14.0/spec/support/task_examples.rb +47 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/README_INDEX.rdoc +123 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/Rakefile +35 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/bin/coderay +215 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay.rb +285 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/duo.rb +81 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoder.rb +201 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/_map.rb +17 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/comment_filter.rb +25 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/count.rb +39 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/debug.rb +61 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/div.rb +23 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/filter.rb +58 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/html.rb +327 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/html/css.rb +65 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/html/numbering.rb +103 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/html/output.rb +166 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/json.rb +83 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/lines_of_code.rb +45 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/null.rb +18 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/page.rb +24 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/span.rb +23 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/statistic.rb +96 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/terminal.rb +179 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/text.rb +46 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/token_kind_filter.rb +111 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/xml.rb +72 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/yaml.rb +50 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/for_redcloth.rb +95 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/helpers/file_type.rb +143 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/helpers/gzip.rb +41 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/helpers/plugin.rb +283 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/helpers/word_list.rb +72 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanner.rb +323 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/_map.rb +24 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/c.rb +189 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/clojure.rb +217 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/cpp.rb +215 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/css.rb +199 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/debug.rb +65 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/delphi.rb +144 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/diff.rb +199 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/erb.rb +81 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/groovy.rb +255 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/haml.rb +168 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/html.rb +253 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/java.rb +174 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/java/builtin_types.rb +421 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/java_script.rb +213 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/json.rb +95 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/php.rb +509 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/python.rb +287 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/raydebug.rb +66 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/ruby.rb +470 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/ruby/patterns.rb +175 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/ruby/string_state.rb +71 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/sql.rb +174 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/text.rb +26 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/xml.rb +17 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/yaml.rb +140 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/style.rb +23 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/styles/_map.rb +7 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/styles/alpha.rb +142 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/token_kinds.rb +90 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/tokens.rb +215 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/tokens_proxy.rb +55 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/test/functional/basic.rb +320 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/test/functional/examples.rb +129 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/test/functional/for_redcloth.rb +84 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/test/functional/suite.rb +15 -0
- data/vendor/ruby/1.9.1/gems/connection_pool-1.0.0/.gitignore +4 -0
- data/vendor/ruby/1.9.1/gems/connection_pool-1.0.0/Changes.md +46 -0
- data/vendor/ruby/1.9.1/gems/connection_pool-1.0.0/Gemfile +7 -0
- data/vendor/ruby/1.9.1/gems/connection_pool-1.0.0/LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/connection_pool-1.0.0/README.md +72 -0
- data/vendor/ruby/1.9.1/gems/connection_pool-1.0.0/Rakefile +14 -0
- data/vendor/ruby/1.9.1/gems/connection_pool-1.0.0/connection_pool.gemspec +17 -0
- data/vendor/ruby/1.9.1/gems/connection_pool-1.0.0/lib/connection_pool.rb +101 -0
- data/vendor/ruby/1.9.1/gems/connection_pool-1.0.0/lib/connection_pool/timed_stack.rb +42 -0
- data/vendor/ruby/1.9.1/gems/connection_pool-1.0.0/lib/connection_pool/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/connection_pool-1.0.0/test/helper.rb +19 -0
- data/vendor/ruby/1.9.1/gems/connection_pool-1.0.0/test/test_connection_pool.rb +150 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/.autotest +3 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/.gemtest +0 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/.hoerc +2 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/.travis.yml +22 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/Contributing.rdoc +64 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/Gemfile +20 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/History.rdoc +146 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/License.rdoc +39 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/Manifest.txt +38 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/README.rdoc +85 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/Rakefile +39 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/autotest/discover.rb +1 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/bin/htmldiff +32 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/bin/ldiff +6 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/docs/COPYING.txt +339 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/docs/artistic.txt +127 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff-lcs.rb +3 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs.rb +805 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/array.rb +7 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/block.rb +37 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/callbacks.rb +322 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/change.rb +177 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/htmldiff.rb +149 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/hunk.rb +276 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/internals.rb +301 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/ldiff.rb +195 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/string.rb +5 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/change_spec.rb +65 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/diff_spec.rb +47 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/hunk_spec.rb +72 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/issues_spec.rb +24 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/lcs_spec.rb +54 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/patch_spec.rb +414 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/sdiff_spec.rb +202 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/spec_helper.rb +290 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/traverse_balanced_spec.rb +310 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/traverse_sequences_spec.rb +139 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/COPYING +674 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/COPYING.LESSER +165 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/History.txt +1 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/LICENSE +14 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/README.md +109 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/Rakefile +219 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/AbstractMemory.c +1021 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/AbstractMemory.h +166 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/AbstractMemory.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/ArrayType.c +153 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/ArrayType.h +50 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/ArrayType.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Buffer.c +355 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Buffer.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Call.c +456 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Call.h +84 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Call.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/ClosurePool.c +274 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/ClosurePool.h +48 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/ClosurePool.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/DataConverter.c +91 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/DataConverter.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/DynamicLibrary.c +324 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/DynamicLibrary.h +40 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/DynamicLibrary.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Function.c +990 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Function.h +78 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Function.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/FunctionInfo.c +261 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/FunctionInfo.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/LastError.c +174 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/LastError.h +38 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/LastError.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/LongDouble.c +63 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/LongDouble.h +42 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/LongDouble.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Makefile +218 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/MappedType.c +159 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/MappedType.h +50 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/MappedType.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/MemoryPointer.c +188 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/MemoryPointer.h +44 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/MemoryPointer.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/MethodHandle.c +351 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/MethodHandle.h +46 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/MethodHandle.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Platform.c +112 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Platform.h +36 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Platform.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Pointer.c +499 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Pointer.h +54 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Pointer.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Struct.c +819 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Struct.h +97 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Struct.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/StructByReference.c +190 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/StructByReference.h +50 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/StructByReference.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/StructByValue.c +141 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/StructByValue.h +46 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/StructByValue.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/StructLayout.c +689 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/StructLayout.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Thread.c +343 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Thread.h +86 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Thread.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Type.c +386 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Type.h +47 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Type.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Types.c +130 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Types.h +80 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Types.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Variadic.c +266 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Variadic.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/compat.h +74 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/cruby-ext.iml +12 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/extconf.h +8 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/extconf.rb +65 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/ffi.c +88 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/ffi.o +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/ffi_c.bundle +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi.bsd.mk +34 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi.darwin.mk +95 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi.gnu.mk +31 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi.mk +13 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi.vc.mk +26 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi.vc64.mk +26 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/ChangeLog +4600 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/ChangeLog.libffi +584 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/ChangeLog.libgcj +40 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/ChangeLog.v1 +764 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/LICENSE +21 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/Makefile.am +196 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/Makefile.in +1820 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/Makefile.vc +141 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/Makefile.vc64 +141 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/README +342 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/acinclude.m4 +92 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/aclocal.m4 +1873 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/build-ios.sh +67 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/compile +143 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/config.guess +1501 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/config.sub +1705 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/configure +17191 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/configure.ac +496 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/configure.host +11 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/depcomp +630 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/fficonfig.h.in +199 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/fficonfig.hw +57 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/include/Makefile.am +9 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/include/Makefile.in +487 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/include/ffi.h.in +427 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/include/ffi.h.vc +427 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/include/ffi.h.vc64 +427 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/include/ffi_common.h +126 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/install-sh +520 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/libffi.pc.in +10 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/libtool-version +29 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/ltmain.sh +9636 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +176 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +195 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/m4/ax_check_compiler_flags.m4 +76 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +63 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/m4/ax_configure_args.m4 +70 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/m4/ax_enable_builddir.m4 +300 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +215 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/m4/ax_gcc_x86_cpuid.m4 +79 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/m4/libtool.m4 +7831 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/m4/ltoptions.m4 +369 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/m4/ltsugar.m4 +123 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/m4/ltversion.m4 +23 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/m4/lt~obsolete.m4 +98 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/man/Makefile.am +8 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/man/Makefile.in +466 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/man/ffi.3 +31 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/man/ffi_call.3 +103 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/man/ffi_prep_cif.3 +66 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/mdate-sh +201 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/missing +376 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/msvcc.sh +197 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/alpha/ffi.c +284 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/alpha/ffitarget.h +48 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/alpha/osf.S +387 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/arm/ffi.c +728 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/arm/ffitarget.h +65 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/arm/gentramp.sh +118 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/arm/sysv.S +497 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/arm/trampoline.S +4450 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/avr32/ffi.c +423 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/avr32/ffitarget.h +50 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/avr32/sysv.S +208 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/closures.c +615 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/cris/ffi.c +383 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/cris/ffitarget.h +51 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/cris/sysv.S +215 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/debug.c +59 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/dlmalloc.c +5161 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/frv/eabi.S +128 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/frv/ffi.c +292 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/frv/ffitarget.h +57 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/ia64/ffi.c +582 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/ia64/ffitarget.h +50 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/ia64/ia64_flags.h +40 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/ia64/unix.S +560 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/java_raw_api.c +356 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/m32r/ffi.c +232 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/m32r/ffitarget.h +48 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/m32r/sysv.S +121 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/m68k/ffi.c +288 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/m68k/ffitarget.h +49 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/m68k/sysv.S +270 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/mips/ffi.c +1036 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/mips/ffitarget.h +242 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/mips/n32.S +591 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/mips/o32.S +381 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/moxie/eabi.S +128 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/moxie/ffi.c +276 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/pa/ffi.c +719 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/pa/ffitarget.h +78 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/pa/hpux32.S +368 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/pa/linux.S +357 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/powerpc/aix.S +328 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/powerpc/aix_closure.S +445 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/powerpc/asm.h +125 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/powerpc/darwin.S +383 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/powerpc/darwin_closure.S +575 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/powerpc/ffi.c +1448 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +1359 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/powerpc/ffitarget.h +139 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/powerpc/linux64.S +187 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +236 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/powerpc/ppc_closure.S +327 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/powerpc/sysv.S +219 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/prep_cif.c +177 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/raw_api.c +254 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/s390/ffi.c +780 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/s390/ffitarget.h +62 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/s390/sysv.S +434 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/sh/ffi.c +716 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/sh/ffitarget.h +49 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/sh/sysv.S +850 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/sh64/ffi.c +468 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/sh64/ffitarget.h +53 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/sh64/sysv.S +539 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/sparc/ffi.c +669 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/sparc/ffitarget.h +68 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/sparc/v8.S +313 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/sparc/v9.S +307 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/types.c +77 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/x86/darwin.S +444 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/x86/darwin64.S +416 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/x86/ffi.c +644 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/x86/ffi64.c +635 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/x86/ffitarget.h +121 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/x86/freebsd.S +458 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/x86/sysv.S +468 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/x86/unix64.S +426 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/x86/win32.S +1065 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/src/x86/win64.S +468 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/Makefile.am +80 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/Makefile.in +500 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/config/default.exp +1 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/lib/libffi-dg.exp +300 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/lib/libffi.exp +350 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/lib/target-libpath.exp +263 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/lib/wrapper.exp +45 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +32 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn0.c +89 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn1.c +81 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn2.c +81 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn3.c +82 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn4.c +89 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn5.c +92 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn6.c +90 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/closure_loc_fn0.c +95 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/closure_stdcall.c +64 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_12byte.c +94 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_16byte.c +95 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_18byte.c +96 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_19byte.c +102 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_1_1byte.c +89 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_20byte.c +91 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_20byte1.c +93 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_24byte.c +113 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_2byte.c +90 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_3_1byte.c +95 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_3byte1.c +90 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_3byte2.c +90 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_4_1byte.c +98 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_4byte.c +90 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_5_1_byte.c +109 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_5byte.c +98 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_64byte.c +124 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_6_1_byte.c +113 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_6byte.c +99 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_7_1_byte.c +117 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_7byte.c +97 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_8byte.c +88 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_9byte1.c +90 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_9byte2.c +91 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_double.c +93 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_float.c +91 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble.c +92 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split.c +134 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split2.c +117 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_pointer.c +95 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint16.c +91 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint32.c +91 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint64.c +92 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint16.c +91 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint32.c +91 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint64.c +93 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_dbls_struct.c +66 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_double.c +43 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_double_va.c +60 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_float.c +42 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble.c +105 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble_va.c +60 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_schar.c +74 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_sshort.c +74 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_sshortchar.c +86 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_uchar.c +91 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_ushort.c +74 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_ushortchar.c +86 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer.c +74 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer_stack.c +140 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_schar.c +44 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_sint.c +42 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_sshort.c +42 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_uchar.c +42 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_uint.c +43 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_ulonglong.c +47 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/cls_ushort.c +43 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_abi.c +36 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c +26 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +153 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/float.c +59 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/float1.c +58 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +58 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/float3.c +72 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/float4.c +62 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/huge_struct.c +342 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/many.c +69 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/many_win32.c +63 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/negint.c +53 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c +152 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct1.c +161 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct10.c +133 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct2.c +110 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct3.c +111 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct4.c +111 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct5.c +112 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct6.c +131 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct7.c +111 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct8.c +131 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct9.c +131 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/problem1.c +90 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/promotion.c +59 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/pyobjc-tc.c +114 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl.c +35 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl1.c +43 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl2.c +42 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/return_fl.c +35 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/return_fl1.c +36 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/return_fl2.c +49 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/return_fl3.c +42 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/return_ldl.c +34 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c +41 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/return_ll1.c +43 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/return_sc.c +36 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/return_sl.c +38 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/return_uc.c +38 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/return_ul.c +38 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/stret_large.c +145 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/stret_large2.c +148 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/stret_medium.c +124 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/stret_medium2.c +125 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/strlen.c +44 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/strlen_win32.c +44 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/struct1.c +65 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/struct2.c +67 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/struct3.c +59 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/struct4.c +63 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/struct5.c +65 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/struct6.c +64 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/struct7.c +74 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/struct8.c +80 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/struct9.c +67 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.call/testclosure.c +70 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.special/ffitestcxx.h +96 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.special/special.exp +35 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.special/unwindtest.cc +124 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/testsuite/libffi.special/unwindtest_ffi_call.cc +53 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/libffi/texinfo.tex +7210 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/mkmf.log +254 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/rbffi.h +48 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/rbffi_endian.h +59 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/win32/stdbool.h +8 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/win32/stdint.h +201 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/ffi.gemspec +22 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/gen/Rakefile +30 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/gen/log +1 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi.rb +28 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/autopointer.rb +184 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/buffer.rb +4 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/callback.rb +4 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/enum.rb +162 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/errno.rb +33 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/ffi.iml +11 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/ffi.rb +33 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/io.rb +52 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/library.rb +489 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/managedstruct.rb +55 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/memorypointer.rb +1 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform.rb +139 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/arm-linux/types.conf +104 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/i386-cygwin/types.conf +3 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/i386-darwin/types.conf +100 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/i386-freebsd/types.conf +152 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/i386-linux/types.conf +103 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/i386-netbsd/types.conf +126 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/i386-openbsd/types.conf +126 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/i386-solaris/types.conf +122 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/i386-windows/types.conf +105 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/i486-gnu/types.conf +107 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/ia64-linux/types.conf +104 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/mips-linux/types.conf +102 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/mipsel-linux/types.conf +102 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/powerpc-aix/types.conf +180 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/powerpc-darwin/types.conf +100 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/powerpc-linux/types.conf +100 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/s390-linux/types.conf +102 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/s390x-linux/types.conf +102 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/sparc-linux/types.conf +102 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/sparc-solaris/types.conf +128 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/sparcv9-solaris/types.conf +128 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/x86_64-darwin/types.conf +100 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/x86_64-freebsd/types.conf +128 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/x86_64-linux/types.conf +102 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/x86_64-netbsd/types.conf +126 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/x86_64-openbsd/types.conf +126 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/x86_64-solaris/types.conf +122 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/platform/x86_64-windows/types.conf +27 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/pointer.rb +122 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/struct.rb +356 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/struct_layout_builder.rb +211 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/tools/const_generator.rb +229 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/tools/generator.rb +60 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/tools/generator_task.rb +36 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/tools/struct_generator.rb +194 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/tools/types_generator.rb +135 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/types.rb +177 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/union.rb +32 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/variadic.rb +65 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi/version.rb +4 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi_c.bundle +0 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/Benchmark.c +52 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/BoolTest.c +31 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/BufferTest.c +31 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/ClosureTest.c +190 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/EnumTest.c +34 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/FunctionTest.c +58 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/GNUmakefile +149 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/GlobalVariable.c +62 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/LastErrorTest.c +21 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/NumberTest.c +132 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/PointerTest.c +63 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/ReferenceTest.c +23 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/StringTest.c +34 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/StructTest.c +240 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/UnionTest.c +43 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/libtest/VariadicTest.c +62 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/async_callback_spec.rb +35 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/bool_spec.rb +29 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/buffer_spec.rb +251 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/callback_spec.rb +667 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/custom_param_type.rb +36 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/custom_type_spec.rb +74 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/dup_spec.rb +54 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/enum_spec.rb +220 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/errno_spec.rb +18 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/ffi_spec.rb +29 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/function_spec.rb +76 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/library_spec.rb +216 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/long_double.rb +30 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/managed_struct_spec.rb +57 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/number_spec.rb +236 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/pointer_spec.rb +265 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/rbx/attach_function_spec.rb +28 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/rbx/memory_pointer_spec.rb +123 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/rbx/spec_helper.rb +1 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/rbx/struct_spec.rb +13 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/spec.iml +12 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/spec_helper.rb +33 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/string_spec.rb +108 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/strptr_spec.rb +50 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/struct_by_ref_spec.rb +43 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/struct_callback_spec.rb +69 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/struct_initialize_spec.rb +35 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/struct_packed_spec.rb +51 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/struct_spec.rb +748 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/typedef_spec.rb +78 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/union_spec.rb +65 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/ffi/variadic_spec.rb +92 -0
- data/vendor/ruby/1.9.1/gems/ffi-1.8.1/spec/spec.opts +4 -0
- data/vendor/ruby/1.9.1/gems/formatador-0.2.4/Gemfile +3 -0
- data/vendor/ruby/1.9.1/gems/formatador-0.2.4/README.rdoc +91 -0
- data/vendor/ruby/1.9.1/gems/formatador-0.2.4/Rakefile +143 -0
- data/vendor/ruby/1.9.1/gems/formatador-0.2.4/changelog.txt +13 -0
- data/vendor/ruby/1.9.1/gems/formatador-0.2.4/formatador.gemspec +80 -0
- data/vendor/ruby/1.9.1/gems/formatador-0.2.4/lib/formatador.rb +130 -0
- data/vendor/ruby/1.9.1/gems/formatador-0.2.4/lib/formatador/progressbar.rb +60 -0
- data/vendor/ruby/1.9.1/gems/formatador-0.2.4/lib/formatador/table.rb +98 -0
- data/vendor/ruby/1.9.1/gems/formatador-0.2.4/tests/basic_tests.rb +29 -0
- data/vendor/ruby/1.9.1/gems/formatador-0.2.4/tests/table_tests.rb +96 -0
- data/vendor/ruby/1.9.1/gems/formatador-0.2.4/tests/tests_helper.rb +15 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/History.rdoc +45 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/Manifest +20 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/README.rdoc +111 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/Rakefile +16 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/examples/growl.rb +19 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/growl.gemspec +30 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/lib/growl.rb +25 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/lib/growl/growl.rb +202 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/lib/growl/images/error.png +0 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/lib/growl/images/info.png +0 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/lib/growl/images/ok.png +0 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/lib/growl/images/warning.png +0 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/lib/growl/version.rb +4 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/spec/fixtures/icon.icns +0 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/spec/fixtures/image.png +0 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/spec/growl_spec.rb +119 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/spec/spec_helper.rb +6 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/tasks/docs.rake +13 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/tasks/gemspec.rake +3 -0
- data/vendor/ruby/1.9.1/gems/growl-1.0.3/tasks/spec.rake +25 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/CHANGELOG.md +858 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/README.md +1000 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/bin/fsevent_watch_guard +0 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/bin/guard +6 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/images/failed.png +0 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/images/guard.png +0 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/images/pending.png +0 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/images/success.png +0 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard.rb +523 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/cli.rb +205 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/commands/all.rb +34 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/commands/change.rb +34 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/commands/notification.rb +27 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/commands/pause.rb +28 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/commands/reload.rb +35 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/commands/scope.rb +32 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/commands/show.rb +27 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/dsl.rb +534 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/dsl_describer.rb +86 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/group.rb +44 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/guard.rb +167 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/guardfile.rb +94 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/hook.rb +120 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/interactor.rb +312 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/notifier.rb +269 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/notifiers/emacs.rb +87 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/notifiers/file_notifier.rb +55 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/notifiers/gntp.rb +119 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/notifiers/growl.rb +100 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/notifiers/growl_notify.rb +93 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/notifiers/libnotify.rb +97 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/notifiers/notifysend.rb +85 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/notifiers/rb_notifu.rb +103 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/notifiers/terminal_notifier.rb +67 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/notifiers/terminal_title.rb +31 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/notifiers/tmux.rb +192 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/runner.rb +238 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/templates/Guardfile +2 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/ui.rb +298 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/version.rb +4 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/lib/guard/watcher.rb +131 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/man/guard.1 +108 -0
- data/vendor/ruby/1.9.1/gems/guard-1.8.0/man/guard.1.html +194 -0
- data/vendor/ruby/1.9.1/gems/guard-bundler-1.0.0/LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/guard-bundler-1.0.0/README.md +62 -0
- data/vendor/ruby/1.9.1/gems/guard-bundler-1.0.0/lib/guard/bundler.rb +60 -0
- data/vendor/ruby/1.9.1/gems/guard-bundler-1.0.0/lib/guard/bundler/notifier.rb +35 -0
- data/vendor/ruby/1.9.1/gems/guard-bundler-1.0.0/lib/guard/bundler/templates/Guardfile +5 -0
- data/vendor/ruby/1.9.1/gems/guard-bundler-1.0.0/lib/guard/bundler/version.rb +6 -0
- data/vendor/ruby/1.9.1/gems/guard-rspec-3.0.0/LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/guard-rspec-3.0.0/README.md +230 -0
- data/vendor/ruby/1.9.1/gems/guard-rspec-3.0.0/lib/guard/rspec.rb +128 -0
- data/vendor/ruby/1.9.1/gems/guard-rspec-3.0.0/lib/guard/rspec/formatter.rb +68 -0
- data/vendor/ruby/1.9.1/gems/guard-rspec-3.0.0/lib/guard/rspec/inspector.rb +66 -0
- data/vendor/ruby/1.9.1/gems/guard-rspec-3.0.0/lib/guard/rspec/runner.rb +259 -0
- data/vendor/ruby/1.9.1/gems/guard-rspec-3.0.0/lib/guard/rspec/templates/Guardfile +21 -0
- data/vendor/ruby/1.9.1/gems/guard-rspec-3.0.0/lib/guard/rspec/version.rb +5 -0
- data/vendor/ruby/1.9.1/gems/guard-yard-2.1.0/LICENSE +19 -0
- data/vendor/ruby/1.9.1/gems/guard-yard-2.1.0/README.markdown +51 -0
- data/vendor/ruby/1.9.1/gems/guard-yard-2.1.0/lib/guard/yard.rb +73 -0
- data/vendor/ruby/1.9.1/gems/guard-yard-2.1.0/lib/guard/yard/server.rb +56 -0
- data/vendor/ruby/1.9.1/gems/guard-yard-2.1.0/lib/guard/yard/templates/Guardfile +5 -0
- data/vendor/ruby/1.9.1/gems/guard-yard-2.1.0/lib/guard/yard/version.rb +5 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/CHANGELOG.textile +152 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/MIT-LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/README.textile +105 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/ci/Gemfile.no-rails +5 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/ci/Gemfile.no-rails.lock +14 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/ci/Gemfile.rails-2.3.x +9 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/ci/Gemfile.rails-2.3.x.lock +23 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/ci/Gemfile.rails-3.x +9 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/ci/Gemfile.rails-3.x.lock +23 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n.rb +332 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend.rb +18 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend/base.rb +181 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend/cache.rb +96 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend/cascade.rb +54 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend/chain.rb +78 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend/fallbacks.rb +65 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend/flatten.rb +113 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend/gettext.rb +72 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend/interpolation_compiler.rb +121 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend/key_value.rb +101 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend/memoize.rb +46 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend/metadata.rb +65 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend/pluralization.rb +53 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend/simple.rb +87 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/backend/transliterator.rb +98 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/config.rb +86 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/core_ext/hash.rb +29 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/core_ext/kernel/surpress_warnings.rb +9 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/core_ext/string/interpolate.rb +105 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/exceptions.rb +106 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/gettext.rb +25 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/gettext/helpers.rb +64 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/gettext/po_parser.rb +329 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/interpolate/ruby.rb +31 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/locale.rb +6 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/locale/fallbacks.rb +96 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/locale/tag.rb +28 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/locale/tag/parents.rb +22 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/locale/tag/rfc4646.rb +74 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/locale/tag/simple.rb +39 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/tests.rb +12 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/tests/basics.rb +54 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/tests/defaults.rb +40 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/tests/interpolation.rb +133 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/tests/link.rb +56 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/tests/localization.rb +19 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/tests/localization/date.rb +84 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/tests/localization/date_time.rb +77 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/tests/localization/procs.rb +116 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/tests/localization/time.rb +76 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/tests/lookup.rb +74 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/tests/pluralization.rb +35 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/tests/procs.rb +55 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/lib/i18n/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/all.rb +8 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/api/all_features_test.rb +58 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/api/cascade_test.rb +28 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/api/chain_test.rb +24 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/api/fallbacks_test.rb +30 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/api/key_value_test.rb +28 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/api/memoize_test.rb +60 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/api/override_test.rb +48 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/api/pluralization_test.rb +30 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/api/simple_test.rb +28 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/backend/cache_test.rb +85 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/backend/cascade_test.rb +85 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/backend/chain_test.rb +72 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/backend/exceptions_test.rb +30 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/backend/fallbacks_test.rb +125 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/backend/interpolation_compiler_test.rb +102 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/backend/key_value_test.rb +46 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/backend/memoize_test.rb +47 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/backend/metadata_test.rb +47 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/backend/pluralization_test.rb +44 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/backend/simple_test.rb +83 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/backend/transliterator_test.rb +81 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/core_ext/hash_test.rb +30 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/core_ext/string/interpolate_test.rb +99 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/gettext/api_test.rb +206 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/gettext/backend_test.rb +101 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/i18n/exceptions_test.rb +116 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/i18n/interpolate_test.rb +61 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/i18n/load_path_test.rb +26 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/i18n_test.rb +254 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/locale/fallbacks_test.rb +136 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/locale/tag/rfc4646_test.rb +142 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/locale/tag/simple_test.rb +32 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/run_all.rb +21 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/test_data/locales/de.po +82 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/test_data/locales/en.rb +3 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/test_data/locales/en.yml +3 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/test_data/locales/invalid/empty.yml +0 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/test_data/locales/plurals.rb +113 -0
- data/vendor/ruby/1.9.1/gems/i18n-0.6.1/test/test_helper.rb +56 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/CHANGELOG.md +285 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/README.md +332 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/lib/listen.rb +55 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/lib/listen/adapter.rb +312 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/lib/listen/adapters/bsd.rb +75 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/lib/listen/adapters/darwin.rb +48 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/lib/listen/adapters/linux.rb +81 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/lib/listen/adapters/polling.rb +58 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/lib/listen/adapters/windows.rb +91 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/lib/listen/directory_record.rb +401 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/lib/listen/listener.rb +299 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/lib/listen/multi_listener.rb +15 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/lib/listen/turnstile.rb +32 -0
- data/vendor/ruby/1.9.1/gems/listen-1.0.3/lib/listen/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/MIT_LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/README.rdoc +100 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/Rakefile +40 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/VERSION +1 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack.rb +38 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/device.rb +26 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/device/date_rolling_log_file.rb +58 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/device/log_file.rb +18 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/device/null.rb +15 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/device/rolling_log_file.rb +110 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/device/size_rolling_log_file.rb +60 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/device/writer.rb +129 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/formatter.rb +76 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/formatter/exception_formatter.rb +12 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/formatter/inspect_formatter.rb +10 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/formatter/pretty_print_formatter.rb +23 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/formatter/string_formatter.rb +10 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/log_entry.rb +36 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/logger.rb +302 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/rack.rb +5 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/rack/unit_of_work.rb +15 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/severity.rb +23 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/lib/lumberjack/template.rb +71 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/device/date_rolling_log_file_spec.rb +66 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/device/log_file_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/device/null_spec.rb +12 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/device/rolling_log_file_spec.rb +129 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/device/size_rolling_log_file_spec.rb +54 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/device/writer_spec.rb +118 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/formatter/exception_formatter_spec.rb +20 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/formatter/inspect_formatter_spec.rb +13 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/formatter/pretty_print_formatter_spec.rb +14 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/formatter/string_formatter_spec.rb +12 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/formatter_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/log_entry_spec.rb +69 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/logger_spec.rb +390 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/lumberjack_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/rack/unit_of_work_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/severity_spec.rb +23 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/spec_helper.rb +16 -0
- data/vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/template_spec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/.gemtest +0 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/.travis.yml +17 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/.yardopts +1 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/Gemfile +2 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/LICENSE +25 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/README.markdown +91 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/Rakefile +79 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/lib/method_source.rb +141 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/lib/method_source/code_helpers.rb +139 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/lib/method_source/source_location.rb +138 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/lib/method_source/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/method_source.gemspec +33 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/test/test.rb +138 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/test/test_code_helpers.rb +41 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/test/test_helper.rb +98 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/.document +5 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/.travis.yml +11 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/.yardopts +6 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/CHANGELOG.md +147 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/CONTRIBUTING.md +46 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/Gemfile +31 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/LICENSE.md +20 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/README.md +109 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/Rakefile +12 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json.rb +154 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json/adapter.rb +43 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json/adapters/gson.rb +19 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json/adapters/jr_jackson.rb +19 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json/adapters/json_common.rb +35 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json/adapters/json_gem.rb +15 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json/adapters/json_pure.rb +15 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json/adapters/nsjsonserialization.rb +34 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json/adapters/oj.rb +28 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json/adapters/ok_json.rb +22 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json/adapters/yajl.rb +19 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json/convertible_hash_keys.rb +43 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json/options.rb +39 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json/vendor/okjson.rb +600 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/lib/multi_json/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/multi_json.gemspec +22 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/spec/adapter_shared_example.rb +235 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/spec/has_options.rb +74 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/spec/helper.rb +32 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/spec/json_common_shared_example.rb +30 -0
- data/vendor/ruby/1.9.1/gems/multi_json-1.7.3/spec/multi_json_spec.rb +224 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/.document +2 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/.gitignore +16 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/.travis.yml +21 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/.yardopts +1 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/CHANGELOG +531 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/CONTRIBUTORS +55 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/Gemfile +9 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/Guardfile +62 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/LICENSE +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/README.markdown +400 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/Rakefile +140 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/TODO +117 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/bin/pry +16 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry.rb +271 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/cli.rb +202 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/code.rb +385 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/code/code_range.rb +70 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/code/loc.rb +92 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/code_object.rb +153 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/command.rb +689 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/command_set.rb +400 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands.rb +6 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/amend_line.rb +99 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/bang.rb +20 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/bang_pry.rb +17 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/cat.rb +53 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/cat/abstract_formatter.rb +27 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/cat/exception_formatter.rb +78 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/cat/file_formatter.rb +84 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/cat/input_expression_formatter.rb +43 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/cd.rb +30 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/code_collector.rb +165 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/disable_pry.rb +27 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/disabled_commands.rb +2 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/easter_eggs.rb +112 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/edit.rb +207 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/edit/exception_patcher.rb +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/edit/file_and_line_locator.rb +38 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/edit/method_patcher.rb +122 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/exit.rb +42 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/exit_all.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/exit_program.rb +24 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/find_method.rb +199 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/fix_indent.rb +19 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/gem_cd.rb +26 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/gem_install.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/gem_list.rb +33 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/gem_open.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/gist.rb +102 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/help.rb +164 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/hist.rb +161 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/import_set.rb +22 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/install_command.rb +51 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/jump_to.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/ls.rb +338 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/nesting.rb +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/play.rb +69 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/pry_backtrace.rb +26 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/pry_version.rb +17 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/raise_up.rb +32 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/reload_code.rb +46 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/reset.rb +18 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/ri.rb +56 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/save_file.rb +61 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/shell_command.rb +43 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/shell_mode.rb +27 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/show_doc.rb +78 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/show_info.rb +200 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/show_input.rb +17 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/show_source.rb +38 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/simple_prompt.rb +22 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/stat.rb +40 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/switch_to.rb +23 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/toggle_color.rb +20 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/whereami.rb +182 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/commands/wtf.rb +57 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/completion.rb +304 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/config.rb +244 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/core_extensions.rb +121 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/custom_completions.rb +6 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/editor.rb +129 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/helpers.rb +5 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/helpers/base_helpers.rb +200 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/helpers/command_helpers.rb +154 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/helpers/documentation_helpers.rb +76 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/helpers/options_helpers.rb +27 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/helpers/table.rb +109 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/helpers/text.rb +108 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/history.rb +122 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/history_array.rb +116 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/hooks.rb +250 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/indent.rb +406 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/method.rb +551 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/method/disowned.rb +53 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/method/weird_method_locator.rb +186 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/module_candidate.rb +146 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/pager.rb +90 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/plugins.rb +103 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/pry_class.rb +469 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/pry_instance.rb +763 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/rbx_method.rb +13 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/rbx_path.rb +22 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/repl_file_loader.rb +80 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/rubygem.rb +74 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/terminal.rb +78 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/test/helper.rb +185 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/lib/pry/wrapped_module.rb +383 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/man/pry.1 +195 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/man/pry.1.html +204 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/man/pry.1.ronn +141 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/pry.gemspec +30 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/Procfile +3 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/cli_spec.rb +78 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/code_object_spec.rb +277 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/code_spec.rb +219 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/command_helpers_spec.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/command_integration_spec.rb +644 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/command_set_spec.rb +627 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/command_spec.rb +821 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/amend_line_spec.rb +247 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/bang_spec.rb +19 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/cat_spec.rb +164 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/cd_spec.rb +250 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/disable_pry_spec.rb +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/edit_spec.rb +727 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/exit_all_spec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/exit_program_spec.rb +19 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/exit_spec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/find_method_spec.rb +70 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/gem_list_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/gist_spec.rb +79 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/help_spec.rb +56 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/hist_spec.rb +181 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/jump_to_spec.rb +15 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/ls_spec.rb +181 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/play_spec.rb +140 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/raise_up_spec.rb +56 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/save_file_spec.rb +177 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/show_doc_spec.rb +510 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/show_input_spec.rb +17 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/show_source_spec.rb +782 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/whereami_spec.rb +203 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/completion_spec.rb +239 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/control_d_handler_spec.rb +58 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/documentation_helper_spec.rb +73 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/editor_spec.rb +79 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/exception_whitelist_spec.rb +21 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/fixtures/candidate_helper1.rb +11 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/fixtures/candidate_helper2.rb +8 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/fixtures/example.erb +5 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/fixtures/example_nesting.rb +33 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/fixtures/show_source_doc_examples.rb +15 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/fixtures/testrc +2 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/fixtures/testrcbad +2 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/fixtures/whereami_helper.rb +6 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/helper.rb +34 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/helpers/bacon.rb +86 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/helpers/mock_pry.rb +43 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/helpers/table_spec.rb +105 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/history_array_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/hooks_spec.rb +522 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/indent_spec.rb +301 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/input_stack_spec.rb +90 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/method_spec.rb +482 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/prompt_spec.rb +60 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/pry_defaults_spec.rb +419 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/pry_history_spec.rb +99 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/pry_output_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/pry_spec.rb +504 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/run_command_spec.rb +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/sticky_locals_spec.rb +157 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/syntax_checking_spec.rb +81 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/wrapped_module_spec.rb +261 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/wiki/Customizing-pry.md +397 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.1/wiki/Home.md +4 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/.gemtest +0 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/CHANGES +530 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/MIT-LICENSE +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/README.rdoc +187 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/Rakefile +375 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/TODO +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/bin/rake +33 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/install.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake.rb +71 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/alt_system.rb +109 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb +681 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/backtrace.rb +19 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/clean.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/cloneable.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/compositepublisher.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/ftptools.rb +151 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/publisher.rb +73 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/rubyforgepublisher.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/sshpublisher.rb +50 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/sys.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/default_loader.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/dsl_definition.rb +156 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/early_time.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ext/core.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ext/module.rb +0 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ext/string.rb +168 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ext/time.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_creation_task.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_list.rb +410 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_task.rb +47 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_utils.rb +114 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_utils_ext.rb +143 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/gempackagetask.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/invocation_chain.rb +51 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/invocation_exception_mixin.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/loaders/makefile.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/multi_task.rb +13 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/name_space.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/packagetask.rb +185 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/pathmap.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/phony.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/private_reader.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/promise.rb +99 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/pseudo_status.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_module.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rdoctask.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ruby182_test_unit_fix.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/runtest.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb +368 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task_argument_error.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task_arguments.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task_manager.rb +296 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/tasklib.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/testtask.rb +198 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/thread_history_display.rb +48 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/thread_pool.rb +155 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/trace_output.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/version.rb +13 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/win32.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/file_creation.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/helper.rb +562 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_private_reader.rb +42 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_application.rb +515 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_application_options.rb +455 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_backtrace.rb +89 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_clean.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_definitions.rb +80 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_directory_task.rb +57 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_dsl.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_early_time.rb +31 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_extension.rb +59 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_creation_task.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_list.rb +628 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_list_path_map.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_task.rb +122 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_utils.rb +305 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_ftp_file.rb +59 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_functional.rb +496 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_invocation_chain.rb +52 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_makefile_loader.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_multi_task.rb +59 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_name_space.rb +43 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_package_task.rb +79 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_path_map.rb +157 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_path_map_explode.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_path_map_partial.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_pseudo_status.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_rake_test_loader.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_reduce_compat.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_require.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_rules.rb +327 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task.rb +340 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_argument_parsing.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_arguments.rb +88 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_lib.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_manager.rb +157 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_manager_argument_resolution.rb +19 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_with_arguments.rb +171 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_test_task.rb +120 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_thread_pool.rb +122 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_top_level_functions.rb +71 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_win32.rb +72 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_thread_history_display.rb +91 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_trace_output.rb +50 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/README.rdoc +258 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/bin/fsevent_watch +0 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/ext/LICENSE +21 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/ext/fsevent_watch/TSICTString.c +394 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/ext/fsevent_watch/TSICTString.h +74 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/ext/fsevent_watch/cli.c +158 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/ext/fsevent_watch/cli.h +44 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/ext/fsevent_watch/common.h +22 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/ext/fsevent_watch/compat.c +20 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/ext/fsevent_watch/compat.h +40 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/ext/fsevent_watch/defines.h +40 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/ext/fsevent_watch/main.c +509 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/ext/rakefile.rb +191 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/lib/rb-fsevent.rb +2 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/lib/rb-fsevent/fsevent.rb +111 -0
- data/vendor/ruby/1.9.1/gems/rb-fsevent-0.9.3/lib/rb-fsevent/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/rb-inotify-0.9.0/.yardopts +4 -0
- data/vendor/ruby/1.9.1/gems/rb-inotify-0.9.0/MIT-LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/rb-inotify-0.9.0/README.md +66 -0
- data/vendor/ruby/1.9.1/gems/rb-inotify-0.9.0/Rakefile +54 -0
- data/vendor/ruby/1.9.1/gems/rb-inotify-0.9.0/VERSION +1 -0
- data/vendor/ruby/1.9.1/gems/rb-inotify-0.9.0/lib/rb-inotify.rb +17 -0
- data/vendor/ruby/1.9.1/gems/rb-inotify-0.9.0/lib/rb-inotify/event.rb +139 -0
- data/vendor/ruby/1.9.1/gems/rb-inotify-0.9.0/lib/rb-inotify/native.rb +31 -0
- data/vendor/ruby/1.9.1/gems/rb-inotify-0.9.0/lib/rb-inotify/native/flags.rb +89 -0
- data/vendor/ruby/1.9.1/gems/rb-inotify-0.9.0/lib/rb-inotify/notifier.rb +311 -0
- data/vendor/ruby/1.9.1/gems/rb-inotify-0.9.0/lib/rb-inotify/watcher.rb +83 -0
- data/vendor/ruby/1.9.1/gems/rb-inotify-0.9.0/rb-inotify.gemspec +52 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/.gitignore +4 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/.yardopts +5 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/Gemfile +3 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/MIT-LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/README.md +44 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/Rakefile +11 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/VERSION +1 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/lib/rb-kqueue.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/lib/rb-kqueue/event.rb +83 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/lib/rb-kqueue/native.rb +42 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/lib/rb-kqueue/native/flags.rb +116 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/lib/rb-kqueue/queue.rb +365 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/lib/rb-kqueue/watcher.rb +124 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/lib/rb-kqueue/watcher/file.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/lib/rb-kqueue/watcher/process.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/lib/rb-kqueue/watcher/read_write.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/lib/rb-kqueue/watcher/signal.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/lib/rb-kqueue/watcher/socket_read_write.rb +43 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/lib/rb-kqueue/watcher/timer.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rb-kqueue-0.2.0/rb-kqueue.gemspec +29 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/COPYING +14 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/Gemfile +2 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/README.markdown +335 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/Rakefile +131 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/bin/redcarpet +38 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/Makefile +218 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/autolink.c +296 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/autolink.h +51 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/autolink.o +0 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/buffer.c +225 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/buffer.h +96 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/buffer.o +0 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/extconf.rb +4 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/houdini.h +37 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/houdini_href_e.c +108 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/houdini_href_e.o +0 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/houdini_html_e.c +84 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/houdini_html_e.o +0 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/html.c +635 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/html.h +77 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/html.o +0 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/html_blocks.h +206 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/html_smartypants.c +389 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/html_smartypants.o +0 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/markdown.c +2556 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/markdown.h +138 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/markdown.o +0 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/rc_markdown.c +149 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/rc_markdown.o +0 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/rc_render.c +463 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/rc_render.o +0 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/redcarpet.bundle +0 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/redcarpet.h +37 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/stack.c +81 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/stack.h +29 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/ext/redcarpet/stack.o +0 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/lib/redcarpet.bundle +0 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/lib/redcarpet.rb +124 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/lib/redcarpet/compat.rb +3 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/lib/redcarpet/render_man.rb +65 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/lib/redcarpet/render_strip.rb +33 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/redcarpet.gemspec +54 -0
- data/vendor/ruby/1.9.1/gems/redcarpet-2.2.2/test/redcarpet_test.rb +447 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/.gitignore +10 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/.order +170 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/.travis.yml +50 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/.travis/Gemfile +11 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/.yardopts +3 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/CHANGELOG.md +261 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/README.md +232 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/Rakefile +392 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/benchmarking/logging.rb +71 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/benchmarking/pipeline.rb +51 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/benchmarking/speed.rb +21 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/benchmarking/suite.rb +24 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/benchmarking/worker.rb +71 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/examples/basic.rb +15 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/examples/dist_redis.rb +43 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/examples/incr-decr.rb +17 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/examples/list.rb +26 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/examples/pubsub.rb +37 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/examples/sets.rb +36 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/examples/unicorn/config.ru +3 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/examples/unicorn/unicorn.rb +20 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/lib/redis.rb +2290 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/lib/redis/client.rb +409 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/lib/redis/connection.rb +9 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/lib/redis/connection/command_helper.rb +44 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/lib/redis/connection/hiredis.rb +63 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/lib/redis/connection/registry.rb +12 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/lib/redis/connection/ruby.rb +291 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/lib/redis/connection/synchrony.rb +124 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/lib/redis/distributed.rb +838 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/lib/redis/errors.rb +40 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/lib/redis/hash_ring.rb +131 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/lib/redis/pipeline.rb +138 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/lib/redis/subscribe.rb +82 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/lib/redis/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/redis.gemspec +41 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/blocking_commands_test.rb +42 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/command_map_test.rb +30 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/commands_on_hashes_test.rb +21 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/commands_on_lists_test.rb +20 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/commands_on_sets_test.rb +77 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/commands_on_sorted_sets_test.rb +109 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/commands_on_strings_test.rb +99 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/commands_on_value_types_test.rb +99 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/connection_handling_test.rb +189 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/db/.gitignore +1 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_blocking_commands_test.rb +46 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_commands_on_hashes_test.rb +10 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_commands_on_lists_test.rb +22 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_commands_on_sets_test.rb +83 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_commands_on_sorted_sets_test.rb +18 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_commands_on_strings_test.rb +59 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_commands_on_value_types_test.rb +87 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_commands_requiring_clustering_test.rb +164 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_connection_handling_test.rb +23 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_internals_test.rb +41 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_key_tags_test.rb +52 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_persistence_control_commands_test.rb +26 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_publish_subscribe_test.rb +92 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_remote_server_control_commands_test.rb +66 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_scripting_test.rb +102 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_sorting_test.rb +20 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_test.rb +58 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_transactions_test.rb +32 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/encoding_test.rb +18 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/error_replies_test.rb +59 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/helper.rb +194 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/helper_test.rb +24 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/internals_test.rb +301 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/lint/blocking_commands.rb +150 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/lint/hashes.rb +162 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/lint/lists.rb +143 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/lint/sets.rb +125 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/lint/sorted_sets.rb +238 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/lint/strings.rb +223 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/lint/value_types.rb +126 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/persistence_control_commands_test.rb +26 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/pipelining_commands_test.rb +207 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/publish_subscribe_test.rb +151 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/remote_server_control_commands_test.rb +117 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/scripting_test.rb +78 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/sorting_test.rb +59 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/support/connection/hiredis.rb +1 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/support/connection/ruby.rb +1 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/support/connection/synchrony.rb +17 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/support/redis_mock.rb +110 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/support/wire/synchrony.rb +24 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/support/wire/thread.rb +5 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/synchrony_driver.rb +88 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/test.conf +9 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/thread_safety_test.rb +32 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/transactions_test.rb +266 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/unknown_commands_test.rb +14 -0
- data/vendor/ruby/1.9.1/gems/redis-3.0.4/test/url_param_test.rb +132 -0
- data/vendor/ruby/1.9.1/gems/redis-namespace-1.3.0/LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/redis-namespace-1.3.0/README.md +38 -0
- data/vendor/ruby/1.9.1/gems/redis-namespace-1.3.0/Rakefile +13 -0
- data/vendor/ruby/1.9.1/gems/redis-namespace-1.3.0/lib/redis-namespace.rb +1 -0
- data/vendor/ruby/1.9.1/gems/redis-namespace-1.3.0/lib/redis/namespace.rb +357 -0
- data/vendor/ruby/1.9.1/gems/redis-namespace-1.3.0/spec/redis_spec.rb +434 -0
- data/vendor/ruby/1.9.1/gems/redis-namespace-1.3.0/spec/spec_helper.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.13.0/License.txt +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.13.0/README.md +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.13.0/lib/rspec.rb +4 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.13.0/lib/rspec/version.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/.document +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/.yardopts +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/Changelog.md +718 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/License.txt +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/README.md +261 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/exe/autospec +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/exe/rspec +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/Autotest.md +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/README.md +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/Upgrade.md +364 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/README.md +28 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/example_name_option.feature +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/exit_status.feature +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/format_option.feature +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/init.feature +18 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/line_number_appended_to_path.feature +140 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/line_number_option.feature +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/order.feature +29 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/pattern_option.feature +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/rake_task.feature +122 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/ruby.feature +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/tag.feature +98 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/alias_example_to.feature +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/backtrace_clean_patterns.feature +102 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/custom_settings.feature +84 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/default_path.feature +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/fail_fast.feature +77 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/failure_exit_code.feature +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/order_and_seed.feature +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/output_stream.feature +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/pattern.feature +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/profile.feature +163 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/read_options_from_file.feature +87 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/run_all_when_everything_filtered.feature +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/show_failures_in_pending_blocks.feature +61 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/treat_symbols_as_metadata_keys_with_true_values.feature +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/example_groups/basic_structure.feature +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/example_groups/shared_context.feature +74 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/example_groups/shared_examples.feature +222 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/expectation_framework_integration/configure_expectation_framework.feature +102 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/filtering/exclusion_filters.feature +138 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/filtering/if_and_unless.feature +168 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/filtering/inclusion_filters.feature +105 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/filtering/run_all_when_everything_filtered.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/configurable_colors.feature +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/custom_formatter.feature +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/json_formatter.feature +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/text_formatter.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/helper_methods/arbitrary_methods.feature +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/helper_methods/let.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/helper_methods/modules.feature +149 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/hooks/around_hooks.feature +343 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/hooks/before_and_after_hooks.feature +427 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/hooks/filtering.feature +234 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/metadata/current_example.feature +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/metadata/described_class.feature +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/metadata/user_defined.feature +113 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_any_framework.feature +106 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_flexmock.feature +96 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_mocha.feature +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_rr.feature +98 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_rspec.feature +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/pending/pending_examples.feature +229 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/spec_files/arbitrary_file_suffix.feature +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/step_definitions/additional_cli_steps.rb +49 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/subject/attribute_of_subject.feature +124 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/subject/explicit_subject.feature +101 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/subject/implicit_receiver.feature +29 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/subject/implicit_subject.feature +63 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/support/env.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/autotest/discover.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/autotest/rspec2.rb +73 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/autorun.rb +2 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core.rb +146 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/backward_compatibility.rb +65 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb +1087 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/configuration_options.rb +144 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/deprecation.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/drb_command_line.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/drb_options.rb +87 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/dsl.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/example.rb +331 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb +478 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/extensions/instance_eval_with_args.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/extensions/kernel.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/extensions/module_eval_with_args.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/extensions/ordered.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/filter_manager.rb +203 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/base_formatter.rb +237 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/base_text_formatter.rb +292 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/documentation_formatter.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/helpers.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/html_formatter.rb +154 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/html_printer.rb +407 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/json_formatter.rb +73 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/snippet_extractor.rb +92 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/text_mate_formatter.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/hooks.rb +489 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/load_path.rb +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/memoized_helpers.rb +501 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/metadata.rb +297 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/metadata_hash_builder.rb +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_flexmock.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_mocha.rb +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_rr.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_rspec.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/option_parser.rb +208 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/pending.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/project_initializer.rb +86 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb +202 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/reporter.rb +102 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/ruby_project.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb +87 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/shared_context.rb +49 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/shared_example_group.rb +144 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/version.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/world.rb +128 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/autotest/discover_spec.rb +19 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/autotest/failed_results_re_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/autotest/rspec_spec.rb +133 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/command_line/order_spec.rb +204 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/command_line_spec.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/configuration_options_spec.rb +398 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/configuration_spec.rb +1376 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/deprecations_spec.rb +75 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/drb_command_line_spec.rb +102 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/drb_options_spec.rb +193 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/dsl_spec.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/example_group_spec.rb +1176 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/example_spec.rb +418 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/filter_manager_spec.rb +246 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/base_formatter_spec.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/base_text_formatter_spec.rb +429 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/documentation_formatter_spec.rb +88 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/helpers_spec.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +398 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.8.7-rbx.html +577 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.8.7.html +409 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.9.2.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.9.3-jruby.html +410 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.9.3-rbx.html +577 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.9.3.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-2.0.0.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatter_spec.rb +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/json_formatter_spec.rb +110 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/progress_formatter_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/snippet_extractor_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +398 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7-rbx.html +577 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +409 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.9.3-jruby.html +398 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.9.3-rbx.html +577 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.9.3.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-2.0.0.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatter_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/hooks_filtering_spec.rb +227 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/hooks_spec.rb +267 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/kernel_extensions_spec.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/memoized_helpers_spec.rb +642 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/metadata_spec.rb +486 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/option_parser_spec.rb +208 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/pending_example_spec.rb +220 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/project_initializer_spec.rb +130 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/rake_task_spec.rb +181 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/reporter_spec.rb +120 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/a_bar.rb +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/a_foo.rb +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/a_spec.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/formatter_specs.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/utf8_encoded.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/rspec_matchers_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/ruby_project_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/runner_spec.rb +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/shared_context_spec.rb +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/shared_example_group_spec.rb +96 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/world_spec.rb +144 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core_spec.rb +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/spec_helper.rb +132 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/config_options_helper.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/helper_methods.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/isolated_directory.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/isolated_home_directory.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/matchers.rb +65 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/shared_example_groups.rb +41 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/spec_files.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/.document +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/.yardopts +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/Changelog.md +328 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/License.txt +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/README.md +228 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/README.md +49 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/Upgrade.md +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/README.md +90 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/be.feature +175 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/be_within.feature +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/cover.feature +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/end_with.feature +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/equality.feature +139 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/exist.feature +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/expect_change.feature +59 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/expect_error.feature +144 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/have.feature +109 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/include.feature +174 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/match.feature +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/operators.feature +227 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/predicates.feature +137 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/respond_to.feature +84 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/satisfy.feature +33 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/start_with.feature +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/throw_symbol.feature +91 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/types.feature +116 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/yield.feature +146 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/access_running_example.feature +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/define_diffable_matcher.feature +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/define_matcher.feature +368 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/customized_message.feature +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/diffing.feature +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/implicit_docstrings.feature +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/step_definitions/additional_cli_steps.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/support/env.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/syntax_configuration.feature +68 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/test_frameworks/test_unit.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec-expectations.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations.rb +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/deprecation.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/differ.rb +115 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/errors.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/expectation_target.rb +88 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/extensions.rb +2 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/extensions/array.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/extensions/object.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/fail_with.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/handler.rb +63 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/syntax.rb +164 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/version.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers.rb +699 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/be_close.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/base_matcher.rb +68 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/be.rb +189 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/be_instance_of.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/be_kind_of.rb +11 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/be_within.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/change.rb +133 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/cover.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/eq.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/eql.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/equal.rb +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/exist.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/has.rb +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/have.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/include.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/match.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/match_array.rb +51 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/raise_error.rb +107 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/respond_to.rb +74 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/satisfy.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/start_and_end_with.rb +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/throw_symbol.rb +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/yield.rb +221 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/compatibility.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/configuration.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/dsl.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/generated_descriptions.rb +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/matcher.rb +300 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/method_missing.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/operator_matcher.rb +109 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/pretty.rb +64 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/differ_spec.rb +170 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/expectation_target_spec.rb +75 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/extensions/kernel_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/fail_with_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/handler_spec.rb +206 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/syntax_spec.rb +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/base_matcher_spec.rb +62 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_close_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_instance_of_spec.rb +63 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_kind_of_spec.rb +41 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_spec.rb +516 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_within_spec.rb +129 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/change_spec.rb +542 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/configuration_spec.rb +238 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/cover_spec.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/description_generation_spec.rb +176 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/dsl_spec.rb +57 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/eq_spec.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/eql_spec.rb +41 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/equal_spec.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/exist_spec.rb +124 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/has_spec.rb +122 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/have_spec.rb +445 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/include_matcher_integration_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/include_spec.rb +531 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/match_array_spec.rb +194 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/match_spec.rb +61 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/matcher_spec.rb +471 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/matchers_spec.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/method_missing_spec.rb +28 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/operator_matcher_spec.rb +223 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/raise_error_spec.rb +395 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/respond_to_spec.rb +292 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/satisfy_spec.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/start_with_end_with_spec.rb +186 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/throw_symbol_spec.rb +116 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/yield_spec.rb +437 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/spec_helper.rb +54 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/classes.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/in_sub_process.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/matchers.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/ruby_version.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/shared_examples.rb +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/.document +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/.yardopts +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/Changelog.md +306 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/License.txt +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/README.md +315 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/README.md +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/Scope.md +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/Upgrade.md +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/argument_matchers/README.md +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/argument_matchers/explicit.feature +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/argument_matchers/general_matchers.feature +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/argument_matchers/type_matchers.feature +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/README.md +73 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/any_instance.feature +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/block_local_expectations.feature.pending +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/call_original.feature +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/expect_message.feature +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/receive_counts.feature +209 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/README.md +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/any_instance.feature +132 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/as_null_object.feature +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/simple_return_value.feature +64 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/stub_chain.feature +51 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/stub_implementation.feature +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/to_ary.feature +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/mutating_constants/README.md +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/mutating_constants/hiding_defined_constant.feature +64 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/mutating_constants/stub_defined_constant.feature +79 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/mutating_constants/stub_undefined_constant.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/outside_rspec/configuration.feature +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/outside_rspec/standalone.feature +33 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/step_definitions/additional_cli_steps.rb +4 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/support/env.rb +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks.rb +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance.rb +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/chain.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/expectation_chain.rb +66 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/message_chains.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/recorder.rb +204 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/stub_chain.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/argument_list_matcher.rb +93 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/argument_matchers.rb +238 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/configuration.rb +28 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/error_generator.rb +120 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/errors.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/example_methods.rb +120 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/extensions/instance_exec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/extensions/marshal.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/extensions/psych.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/framework.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/instance_method_stasher.rb +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/message_expectation.rb +567 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/method_double.rb +267 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/methods.rb +155 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/mock.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/mutate_const.rb +415 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/order_group.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/proxy.rb +205 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/serialization.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/space.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/test_double.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/version.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/spec/mocks.rb +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/and_call_original_spec.rb +235 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/and_yield_spec.rb +127 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/any_instance/message_chains_spec.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/any_instance_spec.rb +925 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/any_number_of_times_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/argument_expectation_spec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/at_least_spec.rb +142 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/at_most_spec.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/block_return_value_spec.rb +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_10263_spec.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_7611_spec.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/combining_implementation_instructions_spec.rb +197 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/configuration_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/double_spec.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/failing_argument_matchers_spec.rb +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/hash_excluding_matcher_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/instance_method_stasher_spec.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/mock_ordering_spec.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/mock_space_spec.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/mock_spec.rb +734 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/multiple_return_value_spec.rb +132 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/mutate_const_spec.rb +481 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/nil_expectation_warning_spec.rb +62 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/null_object_mock_spec.rb +107 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/once_counts_spec.rb +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/options_hash_spec.rb +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/partial_mock_spec.rb +196 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/passing_argument_matchers_spec.rb +142 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/precise_counts_spec.rb +68 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/record_messages_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/serialization_spec.rb +110 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stash_spec.rb +54 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stub_chain_spec.rb +154 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stub_implementation_spec.rb +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stub_spec.rb +279 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stubbed_message_expectations_spec.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/test_double_spec.rb +57 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/to_ary_spec.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/twice_counts_spec.rb +66 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/spec_helper.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-redis_helper-0.1.2/.gitignore +2 -0
- data/vendor/ruby/1.9.1/gems/rspec-redis_helper-0.1.2/Gemfile +4 -0
- data/vendor/ruby/1.9.1/gems/rspec-redis_helper-0.1.2/LICENSE +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-redis_helper-0.1.2/README.md +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-redis_helper-0.1.2/Rakefile +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-redis_helper-0.1.2/lib/rspec-redis_helper.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-redis_helper-0.1.2/lib/rspec-redis_helper/version.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-redis_helper-0.1.2/rspec-redis_helper.gemspec +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-redis_helper-0.1.2/spec/helper.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rspec-redis_helper-0.1.2/spec/redis_helper_spec.rb +42 -0
- data/vendor/ruby/1.9.1/gems/rspec-redis_helper-0.1.2/spec/redis_spec.rb +10 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/.gitignore +9 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/.travis.yml +19 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/COMM-LICENSE +83 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/Changes.md +595 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/Gemfile +17 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/LICENSE +9 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/README.md +87 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/Rakefile +9 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/bin/sidekiq +14 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/bin/sidekiqctl +78 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/config.ru +18 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq.rb +118 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/api.rb +407 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/capistrano.rb +50 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/cli.rb +345 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/client.rb +138 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/core_ext.rb +91 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/exception_handler.rb +39 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/extensions/action_mailer.rb +37 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/extensions/active_record.rb +36 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/extensions/class_methods.rb +36 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/extensions/generic_proxy.rb +22 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/fetch.rb +119 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/launcher.rb +30 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/logging.rb +47 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/manager.rb +169 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/middleware/chain.rb +130 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/middleware/i18n.rb +35 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/middleware/server/active_record.rb +13 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/middleware/server/logging.rb +31 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/middleware/server/retry_jobs.rb +117 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/paginator.rb +31 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/processor.rb +119 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/rails.rb +19 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/redis_connection.rb +51 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/scheduled.rb +78 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/testing.rb +110 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/testing/inline.rb +41 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/util.rb +36 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/web.rb +271 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/worker.rb +73 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/lib/sidekiq/yaml_patch.rb +21 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/sidekiq.gemspec +29 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/config.yml +11 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/env_based_config.yml +11 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/fake_env.rb +0 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/helper.rb +28 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_api.rb +346 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_cli.rb +326 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_client.rb +186 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_exception_handler.rb +128 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_extensions.rb +105 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_fetch.rb +44 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_middleware.rb +126 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_processor.rb +128 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_redis_connection.rb +67 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_retry.rb +202 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_scheduled.rb +48 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_scheduling.rb +39 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_sidekiq.rb +37 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_testing.rb +220 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_testing_inline.rb +95 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/test/test_web.rb +300 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/assets/images/bootstrap/glyphicons-halflings-white.png +0 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/assets/images/bootstrap/glyphicons-halflings.png +0 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/assets/images/logo.png +0 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/assets/images/status-sd8051fd480.png +0 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/assets/images/status/active.png +0 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/assets/images/status/idle.png +0 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/assets/javascripts/application.js +44 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/assets/javascripts/dashboard.js +156 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/assets/stylesheets/application.css +810 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/assets/stylesheets/bootstrap.css +20 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/locales/da.yml +59 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/locales/de.yml +59 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/locales/en.yml +62 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/locales/es.yml +59 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/locales/fr.yml +59 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/locales/it.yml +59 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/locales/ja.yml +62 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/locales/nl.yml +62 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/locales/no.yml +62 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/locales/pl.yml +59 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/locales/pt-br.yml +59 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/locales/pt.yml +59 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/locales/ru.yml +59 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/views/_nav.slim +17 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/views/_paging.slim +15 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/views/_status.slim +3 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/views/_summary.slim +19 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/views/_workers.slim +21 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/views/dashboard.slim +46 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/views/index.slim +10 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/views/layout.slim +48 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/views/queue.slim +27 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/views/queues.slim +15 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/views/retries.slim +40 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/views/retry.slim +55 -0
- data/vendor/ruby/1.9.1/gems/sidekiq-2.11.2/web/views/scheduled.slim +30 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/.gitignore +32 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/.travis.yml +21 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/.yardopts +1 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/Appraisals +8 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/CHANGELOG.md +173 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/CONTRIBUTING.md +20 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/Gemfile +5 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/README.md +498 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/Rakefile +27 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/cucumber.yml +13 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/config_adapters.feature +44 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/config_autoload.feature +46 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/config_command_name.feature +33 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/config_coverage_dir.feature +20 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/config_deactivate_merging.feature +42 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/config_formatters.feature +52 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/config_merge_timeout.feature +39 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/config_nocov_token.feature +79 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/config_project_name.feature +27 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/config_styles.feature +93 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/cucumber_basic.feature +29 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/maximum_coverage_drop.feature +36 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/merging_test_unit_and_rspec.feature +44 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/minimum_coverage.feature +59 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/refuse_coverage_drop.feature +35 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/rspec_basic.feature +31 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/rspec_fails_on_initialization.feature +14 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/rspec_groups_and_filters_basic.feature +29 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/rspec_groups_and_filters_complex.feature +35 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/rspec_groups_using_filter_class.feature +40 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/rspec_without_simplecov.feature +20 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/skipping_code_blocks_manually.feature +70 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/step_definitions/html_steps.rb +45 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/step_definitions/simplecov_steps.rb +66 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/step_definitions/transformers.rb +13 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/step_definitions/web_steps.rb +64 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/support/env.rb +26 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/test_unit_basic.feature +34 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/test_unit_groups_and_filters_basic.feature +29 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/test_unit_groups_and_filters_complex.feature +35 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/test_unit_groups_using_filter_class.feature +40 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/test_unit_without_simplecov.feature +20 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/unicode_compatiblity.feature +67 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/gemfiles/multi_json-legacy.gemfile +7 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/gemfiles/multi_json-new.gemfile +7 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov.rb +134 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/adapters.rb +29 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/command_guesser.rb +49 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/configuration.rb +243 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/defaults.rb +86 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/exit_codes.rb +5 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/file_list.rb +44 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/filter.rb +44 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/formatter.rb +8 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/formatter/multi_formatter.rb +25 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/formatter/simple_formatter.rb +19 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/json.rb +27 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/last_run.rb +20 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/merge_helpers.rb +39 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/railtie.rb +7 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/railties/tasks.rake +11 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/result.rb +126 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/result_merger.rb +74 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/source_file.rb +188 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/simplecov.gemspec +29 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/Gemfile +6 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/Rakefile +8 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/cucumber.yml +13 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/features/step_definitions/my_steps.rb +23 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/features/support/env.rb +12 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/features/test_stuff.feature +6 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/lib/faked_project.rb +11 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/lib/faked_project/framework_specific.rb +18 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/lib/faked_project/meta_magic.rb +24 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/lib/faked_project/some_class.rb +29 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/spec/faked_spec.rb +11 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/spec/meta_magic_spec.rb +10 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/spec/some_class_spec.rb +10 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/spec/spec_helper.rb +15 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/test/faked_test.rb +11 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/test/meta_magic_test.rb +13 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/test/some_class_test.rb +15 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/faked_project/test/test_helper.rb +16 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/fixtures/app/controllers/sample_controller.rb +10 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/fixtures/app/models/user.rb +10 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/fixtures/deleted_source_sample.rb +15 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/fixtures/frameworks/rspec_bad.rb +9 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/fixtures/frameworks/rspec_good.rb +9 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/fixtures/frameworks/testunit_bad.rb +9 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/fixtures/frameworks/testunit_good.rb +9 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/fixtures/iso-8859.rb +3 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/fixtures/resultset1.rb +4 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/fixtures/resultset2.rb +5 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/fixtures/sample.rb +16 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/fixtures/utf-8.rb +3 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/helper.rb +35 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/shoulda_macros.rb +29 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb +33 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/test_command_guesser.rb +21 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/test_deleted_source.rb +16 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/test_file_list.rb +24 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/test_filters.rb +80 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/test_merge_helpers.rb +107 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/test_result.rb +162 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/test_return_codes.rb +39 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/test_source_file.rb +95 -0
- data/vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/test_source_file_line.rb +110 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/.document +5 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/.gitignore +26 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/Gemfile +15 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/Guardfile +12 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/README.md +30 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/Rakefile +32 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/assets/javascripts/application.js +92 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/assets/javascripts/libraries/jquery-1.6.2.min.js +18 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/assets/javascripts/plugins/highlight.pack.js +1 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/assets/javascripts/plugins/jquery.dataTables.min.js +152 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/assets/javascripts/plugins/jquery.fancybox-1.3.1.pack.js +44 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/assets/javascripts/plugins/jquery.timeago.js +141 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/assets/javascripts/plugins/jquery.url.js +174 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/assets/stylesheets/application.css +3 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/assets/stylesheets/plugins/highlight.css +129 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/assets/stylesheets/plugins/jquery-ui-1.8.4.custom.css +295 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/assets/stylesheets/plugins/jquery.fancybox-1.3.1.css +363 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/assets/stylesheets/reset.css +103 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/assets/stylesheets/screen.css.sass +220 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/lib/simplecov-html.rb +100 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/lib/simplecov-html/version.rb +7 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/application.css +1110 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/application.js +626 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/blank.gif +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_close.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_loading.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_nav_left.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_nav_right.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_shadow_e.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_shadow_n.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_shadow_ne.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_shadow_nw.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_shadow_s.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_shadow_se.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_shadow_sw.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_shadow_w.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_title_left.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_title_main.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_title_over.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancy_title_right.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancybox-x.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancybox-y.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/fancybox/fancybox.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/favicon_green.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/favicon_red.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/favicon_yellow.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/loading.gif +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/magnify.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/public/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/simplecov-html.gemspec +25 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/test/helper.rb +9 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/test/test_simple_cov-html.rb +8 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/views/file_list.erb +45 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/views/layout.erb +41 -0
- data/vendor/ruby/1.9.1/gems/simplecov-html-0.7.1/views/source_file.erb +23 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/.gitignore +7 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/.travis.yml +12 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/CHANGES.md +285 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/Gemfile +3 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/README.md +182 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/Rakefile +29 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/lib/slop.rb +682 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/lib/slop/commands.rb +196 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/lib/slop/option.rb +208 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/slop.gemspec +17 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/test/commands_test.rb +26 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/test/helper.rb +15 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/test/option_test.rb +134 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.4/test/slop_test.rb +482 -0
- data/vendor/ruby/1.9.1/gems/statsd-ruby-1.2.0/.document +5 -0
- data/vendor/ruby/1.9.1/gems/statsd-ruby-1.2.0/.gitignore +43 -0
- data/vendor/ruby/1.9.1/gems/statsd-ruby-1.2.0/.travis.yml +6 -0
- data/vendor/ruby/1.9.1/gems/statsd-ruby-1.2.0/Gemfile +2 -0
- data/vendor/ruby/1.9.1/gems/statsd-ruby-1.2.0/LICENSE.txt +20 -0
- data/vendor/ruby/1.9.1/gems/statsd-ruby-1.2.0/README.rdoc +75 -0
- data/vendor/ruby/1.9.1/gems/statsd-ruby-1.2.0/Rakefile +15 -0
- data/vendor/ruby/1.9.1/gems/statsd-ruby-1.2.0/lib/statsd.rb +275 -0
- data/vendor/ruby/1.9.1/gems/statsd-ruby-1.2.0/spec/helper.rb +34 -0
- data/vendor/ruby/1.9.1/gems/statsd-ruby-1.2.0/spec/statsd_spec.rb +384 -0
- data/vendor/ruby/1.9.1/gems/statsd-ruby-1.2.0/statsd-ruby.gemspec +25 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/.document +5 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/CHANGELOG.md +139 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/LICENSE.md +20 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/README.md +35 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/Thorfile +30 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/bin/thor +6 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor.rb +473 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/actions.rb +318 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/actions/create_file.rb +105 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/actions/create_link.rb +60 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/actions/directory.rb +119 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb +137 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/actions/file_manipulation.rb +314 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/actions/inject_into_file.rb +109 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/base.rb +652 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/command.rb +136 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/core_ext/hash_with_indifferent_access.rb +80 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/core_ext/io_binary_read.rb +12 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/core_ext/ordered_hash.rb +100 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/error.rb +28 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/group.rb +282 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/invocation.rb +172 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/parser.rb +4 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/parser/argument.rb +74 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/parser/arguments.rb +171 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/parser/option.rb +121 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/parser/options.rb +218 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/rake_compat.rb +72 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/runner.rb +322 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/shell.rb +88 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/shell/basic.rb +393 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/shell/color.rb +148 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/shell/html.rb +127 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/util.rb +270 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/lib/thor/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/actions/create_file_spec.rb +170 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/actions/create_link_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/actions/directory_spec.rb +169 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/actions/empty_directory_spec.rb +129 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/actions/file_manipulation_spec.rb +382 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/actions/inject_into_file_spec.rb +135 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/actions_spec.rb +331 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/base_spec.rb +291 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/command_spec.rb +80 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/core_ext/hash_with_indifferent_access_spec.rb +48 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/core_ext/ordered_hash_spec.rb +115 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/exit_condition_spec.rb +19 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/fixtures/application.rb +2 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/fixtures/app{1}/README +3 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/fixtures/bundle/execute.rb +6 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/fixtures/bundle/main.thor +1 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/fixtures/command.thor +10 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/fixtures/enum.thor +10 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/fixtures/group.thor +128 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/fixtures/invoke.thor +112 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/fixtures/path with spaces b/data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/fixtures/path with → spaces +0 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/fixtures/preserve/script.sh +3 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/fixtures/script.thor +220 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/fixtures/subcommand.thor +17 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/group_spec.rb +216 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/helper.rb +67 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/invocation_spec.rb +100 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/parser/argument_spec.rb +53 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/parser/arguments_spec.rb +66 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/parser/option_spec.rb +202 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/parser/options_spec.rb +400 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/rake_compat_spec.rb +72 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/register_spec.rb +197 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/runner_spec.rb +241 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/shell/basic_spec.rb +311 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/shell/color_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/shell/html_spec.rb +32 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/shell_spec.rb +47 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/subcommand_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/thor_spec.rb +491 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/spec/util_spec.rb +196 -0
- data/vendor/ruby/1.9.1/gems/thor-0.18.1/thor.gemspec +24 -0
- data/vendor/ruby/1.9.1/gems/timecop-0.6.1/LICENSE +22 -0
- data/vendor/ruby/1.9.1/gems/timecop-0.6.1/README.markdown +138 -0
- data/vendor/ruby/1.9.1/gems/timecop-0.6.1/Rakefile +28 -0
- data/vendor/ruby/1.9.1/gems/timecop-0.6.1/lib/timecop.rb +2 -0
- data/vendor/ruby/1.9.1/gems/timecop-0.6.1/lib/timecop/time_extensions.rb +81 -0
- data/vendor/ruby/1.9.1/gems/timecop-0.6.1/lib/timecop/time_stack_item.rb +158 -0
- data/vendor/ruby/1.9.1/gems/timecop-0.6.1/lib/timecop/timecop.rb +160 -0
- data/vendor/ruby/1.9.1/gems/timecop-0.6.1/lib/timecop/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/timecop-0.6.1/test/run_tests.sh +6 -0
- data/vendor/ruby/1.9.1/gems/timecop-0.6.1/test/test_helper.rb +54 -0
- data/vendor/ruby/1.9.1/gems/timecop-0.6.1/test/time_stack_item_test.rb +275 -0
- data/vendor/ruby/1.9.1/gems/timecop-0.6.1/test/timecop_test.rb +438 -0
- data/vendor/ruby/1.9.1/gems/timecop-0.6.1/test/timecop_without_date_but_with_time_test.rb +12 -0
- data/vendor/ruby/1.9.1/gems/timecop-0.6.1/test/timecop_without_date_test.rb +119 -0
- data/vendor/ruby/1.9.1/gems/timers-1.1.0/.gitignore +17 -0
- data/vendor/ruby/1.9.1/gems/timers-1.1.0/.travis.yml +10 -0
- data/vendor/ruby/1.9.1/gems/timers-1.1.0/CHANGES.md +15 -0
- data/vendor/ruby/1.9.1/gems/timers-1.1.0/Gemfile +4 -0
- data/vendor/ruby/1.9.1/gems/timers-1.1.0/LICENSE +22 -0
- data/vendor/ruby/1.9.1/gems/timers-1.1.0/README.md +73 -0
- data/vendor/ruby/1.9.1/gems/timers-1.1.0/Rakefile +7 -0
- data/vendor/ruby/1.9.1/gems/timers-1.1.0/lib/timers.rb +122 -0
- data/vendor/ruby/1.9.1/gems/timers-1.1.0/lib/timers/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/timers-1.1.0/spec/spec_helper.rb +2 -0
- data/vendor/ruby/1.9.1/gems/timers-1.1.0/spec/timers_spec.rb +77 -0
- data/vendor/ruby/1.9.1/gems/timers-1.1.0/timers.gemspec +20 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/.yardopts +25 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/LEGAL +66 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/LICENSE +22 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/README.md +601 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/Rakefile +61 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/builtins_vs_eval.rb +23 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/concat_vs_join.rb +12 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/erb_vs_erubis.rb +53 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/format_args.rb +46 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/generation.rb +37 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/marshal_vs_dbm.rb +63 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/parsing.rb +46 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/pathname_vs_string.rb +50 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/rdoc_vs_yardoc.rb +10 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/registry_store_types.rb +48 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/ri_vs_yri.rb +18 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/ripper_parser.rb +12 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/splat_vs_flatten.rb +12 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/template_erb.rb +22 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/template_format.rb +6 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/template_profile.rb +17 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/benchmarks/yri_cache.rb +19 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/bin/yard +12 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/bin/yardoc +12 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/bin/yri +12 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/CodeObjects.md +115 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/GettingStarted.md +592 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/Handlers.md +152 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/Overview.md +61 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/Parser.md +191 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/Tags.md +282 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/TagsArch.md +123 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/Templates.md +496 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/WhatsNew.md +1244 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/images/code-objects-class-diagram.png +0 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/images/handlers-class-diagram.png +0 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/images/overview-class-diagram.png +0 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/images/parser-class-diagram.png +0 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/images/tags-class-diagram.png +0 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/templates/default/fulldoc/html/full_list_tag.erb +7 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/templates/default/fulldoc/html/setup.rb +6 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/templates/default/layout/html/setup.rb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/templates/default/layout/html/tag_list.erb +11 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/templates/default/yard_tags/html/list.erb +18 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/templates/default/yard_tags/html/setup.rb +27 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/docs/templates/plugin.rb +65 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/rubygems_plugin.rb +4 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard.rb +71 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/autoload.rb +290 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/command.rb +84 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/command_parser.rb +92 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/config.rb +136 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/diff.rb +270 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/display.rb +68 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/gems.rb +83 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/graph.rb +125 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/help.rb +18 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/i18n.rb +69 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/list.rb +22 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/markup_types.rb +33 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/server.rb +253 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/stats.rb +213 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/yardoc.rb +731 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/yardopts_command.rb +109 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/cli/yri.rb +214 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/code_objects/base.rb +585 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/code_objects/class_object.rb +143 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/code_objects/class_variable_object.rb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/code_objects/constant_object.rb +13 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/code_objects/extended_method_object.rb +23 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/code_objects/extra_file_object.rb +128 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/code_objects/macro_object.rb +172 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/code_objects/method_object.rb +191 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/code_objects/module_object.rb +18 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/code_objects/namespace_object.rb +200 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/code_objects/proxy.rb +258 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/code_objects/root_object.rb +17 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/config.rb +269 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/core_ext/array.rb +15 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/core_ext/file.rb +65 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/core_ext/hash.rb +15 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/core_ext/insertion.rb +60 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/core_ext/module.rb +19 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/core_ext/string.rb +67 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/core_ext/symbol_hash.rb +73 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/docstring.rb +364 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/docstring_parser.rb +321 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/globals.rb +18 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/base.rb +597 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/c/alias_handler.rb +15 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/c/attribute_handler.rb +13 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/c/base.rb +110 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/c/class_handler.rb +26 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/c/constant_handler.rb +12 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/c/handler_methods.rb +166 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/c/init_handler.rb +18 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/c/method_handler.rb +35 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/c/mixin_handler.rb +13 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/c/module_handler.rb +16 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/c/override_comment_handler.rb +30 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/c/path_handler.rb +10 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/c/struct_handler.rb +12 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/c/symbol_handler.rb +7 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/processor.rb +201 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/alias_handler.rb +41 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/attribute_handler.rb +82 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/base.rb +164 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/class_condition_handler.rb +86 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/class_handler.rb +121 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/class_variable_handler.rb +16 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/comment_handler.rb +9 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/constant_handler.rb +45 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/dsl_handler.rb +14 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/dsl_handler_methods.rb +77 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/exception_handler.rb +26 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/extend_handler.rb +21 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/alias_handler.rb +34 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/attribute_handler.rb +60 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/base.rb +250 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/class_condition_handler.rb +83 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/class_handler.rb +111 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/class_variable_handler.rb +14 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/comment_handler.rb +9 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/constant_handler.rb +28 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/dsl_handler.rb +16 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/exception_handler.rb +12 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/extend_handler.rb +20 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/method_handler.rb +85 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/mixin_handler.rb +39 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/module_function_handler.rb +18 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/module_handler.rb +11 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/private_constant_handler.rb +21 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/visibility_handler.rb +16 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/yield_handler.rb +28 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/method_condition_handler.rb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/method_handler.rb +92 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/mixin_handler.rb +36 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/module_function_handler.rb +26 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/module_handler.rb +11 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/private_constant_handler.rb +36 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/struct_handler_methods.rb +141 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/visibility_handler.rb +24 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/handlers/ruby/yield_handler.rb +30 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/i18n/locale.rb +74 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/i18n/message.rb +56 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/i18n/messages.rb +55 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/i18n/pot_generator.rb +280 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/i18n/text.rb +173 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/logging.rb +190 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/options.rb +216 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/parser/base.rb +56 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/parser/c/c_parser.rb +225 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/parser/c/comment_parser.rb +131 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/parser/c/statement.rb +63 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/parser/ruby/ast_node.rb +496 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/parser/ruby/legacy/ruby_lex.rb +1377 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/parser/ruby/legacy/ruby_parser.rb +31 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/parser/ruby/legacy/statement.rb +65 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/parser/ruby/legacy/statement_list.rb +384 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/parser/ruby/legacy/token_list.rb +71 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/parser/ruby/ruby_parser.rb +625 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/parser/source_parser.rb +517 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/rake/yardoc_task.rb +74 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/registry.rb +438 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/registry_store.rb +319 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/rubygems/backports.rb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/rubygems/backports/LICENSE.txt +57 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/rubygems/backports/MIT.txt +20 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/rubygems/backports/gem.rb +9 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/rubygems/backports/source_index.rb +370 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/rubygems/doc_manager.rb +88 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/rubygems/specification.rb +41 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/serializers/base.rb +80 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/serializers/file_system_serializer.rb +90 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/serializers/process_serializer.rb +24 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/serializers/stdout_serializer.rb +32 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/serializers/yardoc_serializer.rb +124 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server.rb +11 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/adapter.rb +100 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/commands/base.rb +192 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/commands/display_file_command.rb +24 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/commands/display_object_command.rb +58 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/commands/frames_command.rb +15 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/commands/library_command.rb +148 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/commands/library_index_command.rb +24 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/commands/list_command.rb +24 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/commands/search_command.rb +78 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/commands/static_file_command.rb +57 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/doc_server_helper.rb +76 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/doc_server_serializer.rb +33 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/library_version.rb +227 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/rack_adapter.rb +88 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/router.rb +176 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/static_caching.rb +45 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/default/fulldoc/html/css/custom.css +78 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/default/fulldoc/html/images/processing.gif +0 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/default/fulldoc/html/js/autocomplete.js +12 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/default/layout/html/breadcrumb.erb +46 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/default/layout/html/script_setup.erb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/default/layout/html/setup.rb +7 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/default/method_details/html/permalink.erb +4 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/default/method_details/html/setup.rb +4 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/library_list/html/contents.erb +13 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/library_list/html/headers.erb +26 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/library_list/html/library_list.erb +12 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/library_list/html/setup.rb +3 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/library_list/html/title.erb +2 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/processing/html/processing.erb +51 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/processing/html/setup.rb +3 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/search/html/search.erb +18 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/search/html/setup.rb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/server/webrick_adapter.rb +43 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/engine.rb +185 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/erb_cache.rb +22 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/helpers/base_helper.rb +212 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/helpers/filter_helper.rb +26 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/helpers/html_helper.rb +599 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/helpers/html_syntax_highlight_helper.rb +59 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/helpers/markup/rdoc_markdown.rb +22 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/helpers/markup/rdoc_markup.rb +106 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/helpers/markup_helper.rb +169 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/helpers/method_helper.rb +74 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/helpers/module_helper.rb +19 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/helpers/text_helper.rb +95 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/helpers/uml_helper.rb +46 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/section.rb +106 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/template.rb +407 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/templates/template_options.rb +88 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/verifier.rb +148 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/lib/yard/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/command_parser_spec.rb +43 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/command_spec.rb +36 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/config_spec.rb +92 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/diff_spec.rb +260 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/display_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/gems_spec.rb +81 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/graph_spec.rb +17 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/help_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/i18n_spec.rb +111 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/list_spec.rb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/markup_types_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/server_spec.rb +327 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/stats_spec.rb +90 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/yardoc_spec.rb +777 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/cli/yri_spec.rb +99 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/code_objects/base_spec.rb +438 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/code_objects/class_object_spec.rb +225 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/code_objects/code_object_list_spec.rb +33 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/code_objects/constants_spec.rb +82 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/code_objects/extra_file_object_spec.rb +147 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/code_objects/macro_object_spec.rb +148 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/code_objects/method_object_spec.rb +175 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/code_objects/module_object_spec.rb +141 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/code_objects/namespace_object_spec.rb +170 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/code_objects/proxy_spec.rb +140 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/code_objects/spec_helper.rb +3 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/config_spec.rb +176 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/core_ext/array_spec.rb +14 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/core_ext/file_spec.rb +68 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/core_ext/hash_spec.rb +14 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/core_ext/insertion_spec.rb +37 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/core_ext/module_spec.rb +15 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/core_ext/string_spec.rb +42 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/core_ext/symbol_hash_spec.rb +86 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/docstring_parser_spec.rb +228 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/docstring_spec.rb +325 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/alias_handler_spec.rb +80 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/attribute_handler_spec.rb +94 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/base_spec.rb +206 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/c/alias_handler_spec.rb +33 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/c/attribute_handler_spec.rb +40 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/c/class_handler_spec.rb +63 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/c/constant_handler_spec.rb +68 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/c/init_handler_spec.rb +47 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/c/method_handler_spec.rb +229 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/c/mixin_handler_spec.rb +27 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/c/module_handler_spec.rb +38 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/c/override_comment_handler_spec.rb +46 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/c/path_handler_spec.rb +35 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/c/spec_helper.rb +13 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/c/struct_handler_spec.rb +15 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/class_condition_handler_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/class_handler_spec.rb +246 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/class_variable_handler_spec.rb +11 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/constant_handler_spec.rb +64 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/dsl_handler_spec.rb +197 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/alias_handler_001.rb.txt +44 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/attribute_handler_001.rb.txt +32 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/class_condition_handler_001.rb.txt +69 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/class_handler_001.rb.txt +120 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/class_variable_handler_001.rb.txt +10 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/constant_handler_001.rb.txt +25 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/dsl_handler_001.rb.txt +125 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/exception_handler_001.rb.txt +59 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/extend_handler_001.rb.txt +16 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/method_condition_handler_001.rb.txt +10 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/method_handler_001.rb.txt +126 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/mixin_handler_001.rb.txt +37 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/module_handler_001.rb.txt +29 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/private_constant_handler_001.rb.txt +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/process_handler_001.rb.txt +11 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/visibility_handler_001.rb.txt +32 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/yield_handler_001.rb.txt +54 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/exception_handler_spec.rb +48 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/extend_handler_spec.rb +23 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/legacy_base_spec.rb +128 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/method_condition_handler_spec.rb +14 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/method_handler_spec.rb +184 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/mixin_handler_spec.rb +55 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/module_function_handler_spec.rb +105 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/module_handler_spec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/private_constant_handler_spec.rb +24 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/processor_spec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/ruby/base_spec.rb +94 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/ruby/legacy/base_spec.rb +82 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/spec_helper.rb +33 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/visibility_handler_spec.rb +39 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/yield_handler_spec.rb +51 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/i18n/locale_spec.rb +68 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/i18n/message_spec.rb +52 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/i18n/messages_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/i18n/pot_generator_spec.rb +262 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/i18n/text_spec.rb +180 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/logging_spec.rb +35 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/options_spec.rb +171 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/base_spec.rb +24 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/c_parser_spec.rb +166 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/examples/array.c.txt +3887 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/examples/example1.rb.txt +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/examples/extrafile.c.txt +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/examples/multifile.c.txt +6 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/examples/override.c.txt +424 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/examples/parse_in_order_001.rb.txt +2 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/examples/parse_in_order_002.rb.txt +2 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/examples/tag_handler_001.rb.txt +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/ruby/ast_node_spec.rb +33 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/ruby/legacy/statement_list_spec.rb +299 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/ruby/legacy/token_list_spec.rb +77 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/ruby/ruby_parser_spec.rb +334 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/source_parser_spec.rb +717 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/parser/tag_parsing_spec.rb +18 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/rake/yardoc_task_spec.rb +101 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/registry_spec.rb +393 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/registry_store_spec.rb +315 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/rubygems/doc_manager_spec.rb +112 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/serializers/data/serialized_yardoc/checksums +1 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/serializers/data/serialized_yardoc/objects/Foo.dat +0 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/serializers/data/serialized_yardoc/objects/Foo/bar_i.dat +0 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/serializers/data/serialized_yardoc/objects/Foo/baz_i.dat +0 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/serializers/data/serialized_yardoc/objects/root.dat +0 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/serializers/data/serialized_yardoc/proxy_types +2 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/serializers/file_system_serializer_spec.rb +124 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/serializers/spec_helper.rb +2 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/serializers/yardoc_serializer_spec.rb +46 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/server/adapter_spec.rb +38 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/server/commands/base_spec.rb +87 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/server/commands/library_command_spec.rb +39 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/server/commands/static_file_command_spec.rb +84 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/server/doc_server_helper_spec.rb +53 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/server/doc_server_serializer_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/server/rack_adapter_spec.rb +20 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/server/router_spec.rb +122 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/server/spec_helper.rb +17 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/server/static_caching_spec.rb +39 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/server/webrick_servlet_spec.rb +20 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/server_spec.rb +10 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/spec_helper.rb +128 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/class_spec.rb +44 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/constant_spec.rb +40 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/engine_spec.rb +121 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/class001.html +280 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/class001.txt +36 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/class002.html +35 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/constant001.txt +25 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/constant002.txt +7 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/constant003.txt +11 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/method001.html +130 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/method001.txt +35 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/method002.html +86 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/method002.txt +20 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/method003.html +159 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/method003.txt +45 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/method004.html +44 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/method004.txt +10 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/method005.html +99 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/method005.txt +33 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/module001.dot +33 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/module001.html +791 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/module001.txt +33 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/module002.html +318 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/module003.html +185 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/module004.html +387 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/examples/tag001.txt +82 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/helpers/base_helper_spec.rb +175 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/helpers/html_helper_spec.rb +612 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/helpers/html_syntax_highlight_helper_spec.rb +48 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/helpers/markup/rdoc_markup_spec.rb +84 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/helpers/markup_helper_spec.rb +135 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/helpers/method_helper_spec.rb +82 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/helpers/shared_signature_examples.rb +123 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/helpers/text_helper_spec.rb +44 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/method_spec.rb +102 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/module_spec.rb +181 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/onefile_spec.rb +64 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/section_spec.rb +146 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/spec_helper.rb +73 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/tag_spec.rb +51 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/templates/template_spec.rb +409 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/verifier_spec.rb +106 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/class/dot/setup.rb +6 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/class/dot/superklass.erb +3 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/class/html/constructor_details.erb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/class/html/setup.rb +1 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/class/html/subclasses.erb +4 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/class/setup.rb +36 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/class/text/setup.rb +11 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/class/text/subclasses.erb +5 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/constant/text/header.erb +11 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/constant/text/setup.rb +3 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/html/abstract.erb +4 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/html/deprecated.erb +1 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/html/index.erb +5 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/html/note.erb +6 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/html/private.erb +4 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/html/returns_void.erb +1 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/html/text.erb +1 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/html/todo.erb +6 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/setup.rb +49 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/text/abstract.erb +2 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/text/deprecated.erb +2 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/text/index.erb +2 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/text/note.erb +4 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/text/private.erb +2 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/text/returns_void.erb +1 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/text/text.erb +1 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/docstring/text/todo.erb +4 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/fulldoc/html/css/common.css +1 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/fulldoc/html/css/full_list.css +57 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/fulldoc/html/css/style.css +338 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/fulldoc/html/frames.erb +28 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/fulldoc/html/full_list.erb +39 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/fulldoc/html/full_list_class.erb +2 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/fulldoc/html/full_list_file.erb +5 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/fulldoc/html/full_list_method.erb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/fulldoc/html/js/app.js +214 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/fulldoc/html/js/full_list.js +178 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/fulldoc/html/js/jquery.js +4 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/fulldoc/html/setup.rb +199 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/layout/dot/header.erb +6 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/layout/dot/setup.rb +14 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/layout/html/breadcrumb.erb +13 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/layout/html/files.erb +11 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/layout/html/footer.erb +5 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/layout/html/headers.erb +14 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/layout/html/index.erb +2 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/layout/html/layout.erb +20 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/layout/html/listing.erb +4 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/layout/html/objects.erb +32 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/layout/html/script_setup.erb +5 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/layout/html/search.erb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/layout/html/setup.rb +71 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/method/html/header.erb +16 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/method/setup.rb +3 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/method/text/header.erb +1 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/method_details/html/header.erb +3 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/method_details/html/method_signature.erb +25 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/method_details/html/source.erb +10 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/method_details/setup.rb +10 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/method_details/text/header.erb +10 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/method_details/text/method_signature.erb +12 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/method_details/text/setup.rb +10 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/dot/child.erb +1 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/dot/dependencies.erb +3 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/dot/header.erb +6 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/dot/info.erb +14 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/dot/setup.rb +14 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/attribute_details.erb +10 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/attribute_summary.erb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/box_info.erb +37 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/children.erb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/constant_summary.erb +13 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/defines.erb +3 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/header.erb +5 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/inherited_attributes.erb +14 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/inherited_constants.erb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/inherited_methods.erb +19 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/item_summary.erb +40 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/method_details_list.erb +9 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/method_summary.erb +14 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/methodmissing.erb +12 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/html/pre_docstring.erb +1 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/setup.rb +164 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/text/children.erb +10 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/text/class_meths_list.erb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/text/extends.erb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/text/header.erb +7 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/text/includes.erb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/text/instance_meths_list.erb +8 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/module/text/setup.rb +12 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/onefile/html/files.erb +5 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/onefile/html/headers.erb +6 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/onefile/html/layout.erb +17 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/onefile/html/readme.erb +3 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/onefile/html/setup.rb +61 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/root/dot/child.erb +3 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/root/dot/setup.rb +5 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/default/root/html/setup.rb +1 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/class/html/setup.rb +1 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/docstring/html/setup.rb +1 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/fulldoc/html/css/style.css +108 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/fulldoc/html/js/app.js +33 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/fulldoc/html/setup.rb +73 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/layout/html/layout.erb +81 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/layout/html/setup.rb +28 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/method/html/header.erb +18 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/method/html/setup.rb +21 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/module/html/header.erb +7 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/module/html/method_list.erb +5 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/module/html/setup.rb +26 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/onefile/html/files.erb +4 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/onefile/html/setup.rb +5 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/templates/guide/onefile/html/toc.erb +3 -0
- data/vendor/ruby/1.9.1/gems/yard-0.8.6.1/yard.gemspec +25 -0
- data/vendor/ruby/1.9.1/specifications/activesupport-3.2.13.gemspec +33 -0
- data/vendor/ruby/1.9.1/specifications/celluloid-0.14.0.gemspec +42 -0
- data/vendor/ruby/1.9.1/specifications/coderay-1.0.9.gemspec +32 -0
- data/vendor/ruby/1.9.1/specifications/connection_pool-1.0.0.gemspec +25 -0
- data/vendor/ruby/1.9.1/specifications/diff-lcs-1.2.4.gemspec +64 -0
- data/vendor/ruby/1.9.1/specifications/ffi-1.8.1.gemspec +42 -0
- data/vendor/ruby/1.9.1/specifications/formatador-0.2.4.gemspec +35 -0
- data/vendor/ruby/1.9.1/specifications/growl-1.0.3.gemspec +29 -0
- data/vendor/ruby/1.9.1/specifications/guard-1.8.0.gemspec +49 -0
- data/vendor/ruby/1.9.1/specifications/guard-bundler-1.0.0.gemspec +39 -0
- data/vendor/ruby/1.9.1/specifications/guard-rspec-3.0.0.gemspec +35 -0
- data/vendor/ruby/1.9.1/specifications/guard-yard-2.1.0.gemspec +33 -0
- data/vendor/ruby/1.9.1/specifications/i18n-0.6.1.gemspec +38 -0
- data/vendor/ruby/1.9.1/specifications/listen-1.0.3.gemspec +41 -0
- data/vendor/ruby/1.9.1/specifications/lumberjack-1.0.3.gemspec +28 -0
- data/vendor/ruby/1.9.1/specifications/method_source-0.8.1.gemspec +31 -0
- data/vendor/ruby/1.9.1/specifications/multi_json-1.7.3.gemspec +30 -0
- data/vendor/ruby/1.9.1/specifications/pry-0.9.12.1.gemspec +54 -0
- data/vendor/ruby/1.9.1/specifications/rake-10.0.4.gemspec +35 -0
- data/vendor/ruby/1.9.1/specifications/rb-fsevent-0.9.3.gemspec +35 -0
- data/vendor/ruby/1.9.1/specifications/rb-inotify-0.9.0.gemspec +33 -0
- data/vendor/ruby/1.9.1/specifications/rb-kqueue-0.2.0.gemspec +34 -0
- data/vendor/ruby/1.9.1/specifications/redcarpet-2.2.2.gemspec +35 -0
- data/vendor/ruby/1.9.1/specifications/redis-3.0.4.gemspec +28 -0
- data/vendor/ruby/1.9.1/specifications/redis-namespace-1.3.0.gemspec +34 -0
- data/vendor/ruby/1.9.1/specifications/rspec-2.13.0.gemspec +39 -0
- data/vendor/ruby/1.9.1/specifications/rspec-core-2.13.1.gemspec +58 -0
- data/vendor/ruby/1.9.1/specifications/rspec-expectations-2.13.0.gemspec +40 -0
- data/vendor/ruby/1.9.1/specifications/rspec-mocks-2.13.1.gemspec +37 -0
- data/vendor/ruby/1.9.1/specifications/rspec-redis_helper-0.1.2.gemspec +34 -0
- data/vendor/ruby/1.9.1/specifications/sidekiq-2.11.2.gemspec +64 -0
- data/vendor/ruby/1.9.1/specifications/simplecov-0.7.1.gemspec +52 -0
- data/vendor/ruby/1.9.1/specifications/simplecov-html-0.7.1.gemspec +35 -0
- data/vendor/ruby/1.9.1/specifications/slop-3.4.4.gemspec +33 -0
- data/vendor/ruby/1.9.1/specifications/statsd-ruby-1.2.0.gemspec +40 -0
- data/vendor/ruby/1.9.1/specifications/thor-0.18.1.gemspec +31 -0
- data/vendor/ruby/1.9.1/specifications/timecop-0.6.1.gemspec +30 -0
- data/vendor/ruby/1.9.1/specifications/timers-1.1.0.gemspec +31 -0
- data/vendor/ruby/1.9.1/specifications/yard-0.8.6.1.gemspec +29 -0
- metadata +3424 -0
@@ -0,0 +1,171 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/spec_helper'
|
2
|
+
|
3
|
+
describe YARD::Options do
|
4
|
+
class FooOptions < YARD::Options
|
5
|
+
attr_accessor :foo
|
6
|
+
def initialize; self.foo = "abc" end
|
7
|
+
end
|
8
|
+
|
9
|
+
describe '.default_attr' do
|
10
|
+
it "should allow default attributes to be defined with symbols" do
|
11
|
+
class DefaultOptions1 < YARD::Options
|
12
|
+
default_attr :foo, 'HELLO'
|
13
|
+
end
|
14
|
+
o = DefaultOptions1.new
|
15
|
+
o.reset_defaults
|
16
|
+
o.foo.should == 'HELLO'
|
17
|
+
end
|
18
|
+
|
19
|
+
it "should call lambda if value is a Proc" do
|
20
|
+
class DefaultOptions2 < YARD::Options
|
21
|
+
default_attr :foo, lambda { 100 }
|
22
|
+
end
|
23
|
+
o = DefaultOptions2.new
|
24
|
+
o.reset_defaults
|
25
|
+
o.foo.should == 100
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe '#reset_defaults' do
|
30
|
+
it "should not define defaults until reset is called" do
|
31
|
+
class ResetDefaultOptions1 < YARD::Options
|
32
|
+
default_attr :foo, 'FOO'
|
33
|
+
end
|
34
|
+
ResetDefaultOptions1.new.foo.should be_nil
|
35
|
+
o = ResetDefaultOptions1.new
|
36
|
+
o.reset_defaults
|
37
|
+
o.foo.should == 'FOO'
|
38
|
+
end
|
39
|
+
|
40
|
+
it "should use defaults from superclass as well" do
|
41
|
+
class ResetDefaultOptions2 < YARD::Options
|
42
|
+
default_attr :foo, 'FOO'
|
43
|
+
end
|
44
|
+
class ResetDefaultOptions3 < ResetDefaultOptions2
|
45
|
+
end
|
46
|
+
o = ResetDefaultOptions3.new
|
47
|
+
o.reset_defaults
|
48
|
+
o.foo.should == 'FOO'
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe '#delete' do
|
53
|
+
it "should delete an option" do
|
54
|
+
o = FooOptions.new
|
55
|
+
o.delete(:foo)
|
56
|
+
o.to_hash.should == {}
|
57
|
+
end
|
58
|
+
|
59
|
+
it "should not error if an option is deleted that does not exist" do
|
60
|
+
o = FooOptions.new
|
61
|
+
o.delete(:foo)
|
62
|
+
o.delete(:foo)
|
63
|
+
o.to_hash.should == {}
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
describe '#[]' do
|
68
|
+
it "should handle getting option values using hash syntax" do
|
69
|
+
FooOptions.new[:foo].should == "abc"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
describe '#[]=' do
|
74
|
+
it "should handle setting options using hash syntax" do
|
75
|
+
o = FooOptions.new
|
76
|
+
o[:foo] = "xyz"
|
77
|
+
o[:foo].should == "xyz"
|
78
|
+
end
|
79
|
+
|
80
|
+
it "should allow setting of unregistered keys" do
|
81
|
+
o = FooOptions.new
|
82
|
+
o[:bar] = "foo"
|
83
|
+
o[:bar].should == "foo"
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
describe '#method_missing' do
|
88
|
+
it "should allow setting of unregistered keys" do
|
89
|
+
o = FooOptions.new
|
90
|
+
o.bar = 'foo'
|
91
|
+
o.bar.should == 'foo'
|
92
|
+
end
|
93
|
+
|
94
|
+
it "should allow getting values of unregistered keys (return nil)" do
|
95
|
+
FooOptions.new.bar.should be_nil
|
96
|
+
end
|
97
|
+
|
98
|
+
it "should print debugging messages about unregistered keys" do
|
99
|
+
log.should_receive(:debug).with("Attempting to access unregistered key bar on FooOptions")
|
100
|
+
FooOptions.new.bar
|
101
|
+
log.should_receive(:debug).with("Attempting to set unregistered key bar on FooOptions")
|
102
|
+
FooOptions.new.bar = 1
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
describe '#update' do
|
107
|
+
it "should allow updating of options" do
|
108
|
+
FooOptions.new.update(:foo => "xyz").foo.should == "xyz"
|
109
|
+
end
|
110
|
+
|
111
|
+
it "should not ignore keys with no setter (OpenStruct behaviour)" do
|
112
|
+
o = FooOptions.new
|
113
|
+
o.update(:bar => "xyz")
|
114
|
+
o.to_hash.should == {:foo => "abc", :bar => "xyz"}
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
describe '#merge' do
|
119
|
+
it "should update a new object" do
|
120
|
+
o = FooOptions.new
|
121
|
+
o.merge(:foo => "xyz").object_id.should_not == o.object_id
|
122
|
+
o.merge(:foo => "xyz").to_hash.should == {:foo => "xyz"}
|
123
|
+
end
|
124
|
+
|
125
|
+
it "should add in values from original object" do
|
126
|
+
o = FooOptions.new
|
127
|
+
o.update(:bar => "foo")
|
128
|
+
o.merge(:baz => 1).to_hash.should == {:foo => "abc", :bar => "foo", :baz => 1}
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
describe '#to_hash' do
|
133
|
+
it "should convert all instance variables and symbolized keys" do
|
134
|
+
class ToHashOptions1 < YARD::Options
|
135
|
+
attr_accessor :foo, :bar, :baz
|
136
|
+
def initialize; @foo = 1; @bar = 2; @baz = "hello" end
|
137
|
+
end
|
138
|
+
o = ToHashOptions1.new
|
139
|
+
hash = o.to_hash
|
140
|
+
hash.keys.should include(:foo, :bar, :baz)
|
141
|
+
hash[:foo].should == 1
|
142
|
+
hash[:bar].should == 2
|
143
|
+
hash[:baz].should == "hello"
|
144
|
+
end
|
145
|
+
|
146
|
+
it "should use accessor when converting values to hash" do
|
147
|
+
class ToHashOptions2 < YARD::Options
|
148
|
+
def initialize; @foo = 1 end
|
149
|
+
def foo; "HELLO#{@foo}" end
|
150
|
+
end
|
151
|
+
o = ToHashOptions2.new
|
152
|
+
o.to_hash.should == {:foo => "HELLO1"}
|
153
|
+
end
|
154
|
+
|
155
|
+
it "should ignore ivars with no accessor" do
|
156
|
+
class ToHashOptions3 < YARD::Options
|
157
|
+
attr_accessor :foo
|
158
|
+
def initialize; @foo = 1; @bar = "NOIGNORE" end
|
159
|
+
end
|
160
|
+
o = ToHashOptions3.new
|
161
|
+
o.to_hash.should == {:foo => 1, :bar => "NOIGNORE"}
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
describe '#tap' do
|
166
|
+
it "should support #tap(&block) (even in 1.8.6)" do
|
167
|
+
o = FooOptions.new.tap {|o| o.foo = :BAR }
|
168
|
+
o.to_hash.should == {:foo => :BAR}
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
|
2
|
+
|
3
|
+
describe YARD::Parser::Base do
|
4
|
+
describe '#initialize' do
|
5
|
+
class MyParser < Parser::Base; def initialize(a, b) end end
|
6
|
+
|
7
|
+
it "should take 2 arguments" do
|
8
|
+
lambda { YARD::Parser::Base.new }.should raise_error(ArgumentError,
|
9
|
+
/wrong (number|#) of arguments|given 0, expected 2/)
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should raise NotImplementedError on #initialize" do
|
13
|
+
lambda { YARD::Parser::Base.new('a', 'b') }.should raise_error(NotImplementedError)
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should raise NotImplementedError on #parse" do
|
17
|
+
lambda { MyParser.new('a', 'b').parse }.should raise_error(NotImplementedError)
|
18
|
+
end
|
19
|
+
|
20
|
+
it "should raise NotImplementedError on #tokenize" do
|
21
|
+
lambda { MyParser.new('a', 'b').tokenize }.should raise_error(NotImplementedError)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,166 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
|
2
|
+
|
3
|
+
describe YARD::Parser::C::CParser do
|
4
|
+
describe '#parse' do
|
5
|
+
def parse(contents)
|
6
|
+
Registry.clear
|
7
|
+
YARD.parse_string(contents, :c)
|
8
|
+
end
|
9
|
+
|
10
|
+
describe 'Array class' do
|
11
|
+
before(:all) do
|
12
|
+
file = File.join(File.dirname(__FILE__), 'examples', 'array.c.txt')
|
13
|
+
parse(File.read(file))
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should parse Array class" do
|
17
|
+
obj = YARD::Registry.at('Array')
|
18
|
+
obj.should_not be_nil
|
19
|
+
obj.docstring.should_not be_blank
|
20
|
+
end
|
21
|
+
|
22
|
+
it "should parse method" do
|
23
|
+
obj = YARD::Registry.at('Array#initialize')
|
24
|
+
obj.docstring.should_not be_blank
|
25
|
+
obj.tags(:overload).size.should > 1
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'Source located in extra files' do
|
30
|
+
before(:all) do
|
31
|
+
@multifile = File.join(File.dirname(__FILE__), 'examples', 'multifile.c.txt')
|
32
|
+
@extrafile = File.join(File.dirname(__FILE__), 'examples', 'extrafile.c.txt')
|
33
|
+
@contents = File.read(@multifile)
|
34
|
+
end
|
35
|
+
|
36
|
+
it "should look for methods in extra files (if 'in' comment is found)" do
|
37
|
+
extra_contents = File.read(@extrafile)
|
38
|
+
File.should_receive(:read).with('extra.c').and_return(extra_contents)
|
39
|
+
parse(@contents)
|
40
|
+
Registry.at('Multifile#extra').docstring.should == 'foo'
|
41
|
+
end
|
42
|
+
|
43
|
+
it "should stop searching for extra source file gracefully if file is not found" do
|
44
|
+
File.should_receive(:read).with('extra.c').and_raise(Errno::ENOENT)
|
45
|
+
log.should_receive(:warn).with("Missing source file `extra.c' when parsing Multifile#extra")
|
46
|
+
parse(@contents)
|
47
|
+
Registry.at('Multifile#extra').docstring.should == ''
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
describe 'Foo class' do
|
52
|
+
it 'should not include comments in docstring source' do
|
53
|
+
parse <<-eof
|
54
|
+
/*
|
55
|
+
* Hello world
|
56
|
+
*/
|
57
|
+
VALUE foo(VALUE x) {
|
58
|
+
int value = x;
|
59
|
+
}
|
60
|
+
|
61
|
+
void Init_Foo() {
|
62
|
+
rb_define_method(rb_cFoo, "foo", foo, 1);
|
63
|
+
}
|
64
|
+
eof
|
65
|
+
Registry.at('Foo#foo').source.gsub(/\s\s+/, ' ').should ==
|
66
|
+
"VALUE foo(VALUE x) { int value = x;\n}"
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'Constant' do
|
71
|
+
it 'should not truncate docstring' do
|
72
|
+
parse <<-eof
|
73
|
+
#define MSK_DEADBEEF 0xdeadbeef
|
74
|
+
void
|
75
|
+
Init_Mask(void)
|
76
|
+
{
|
77
|
+
rb_cMask = rb_define_class("Mask", rb_cObject);
|
78
|
+
/* 0xdeadbeef: This constant is frequently used to indicate a
|
79
|
+
* software crash or deadlock in embedded systems. */
|
80
|
+
rb_define_const(rb_cMask, "DEADBEEF", INT2FIX(MSK_DEADBEEF));
|
81
|
+
}
|
82
|
+
eof
|
83
|
+
constant = Registry.at('Mask::DEADBEEF')
|
84
|
+
constant.value.should == '0xdeadbeef'
|
85
|
+
constant.docstring.should == "This constant is frequently used to indicate a\nsoftware crash or deadlock in embedded systems."
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe 'Macros' do
|
90
|
+
it "should handle param## inside of macros" do
|
91
|
+
thr = Thread.new do
|
92
|
+
parse <<-eof
|
93
|
+
void
|
94
|
+
Init_gobject_gparamspecs(void)
|
95
|
+
{
|
96
|
+
VALUE cParamSpec = GTYPE2CLASS(G_TYPE_PARAM);
|
97
|
+
VALUE c;
|
98
|
+
|
99
|
+
#define DEF_NUMERIC_PSPEC_METHODS(c, typename) \
|
100
|
+
G_STMT_START {\
|
101
|
+
rbg_define_method(c, "initialize", typename##_initialize, 7); \
|
102
|
+
rbg_define_method(c, "minimum", typename##_minimum, 0); \
|
103
|
+
rbg_define_method(c, "maximum", typename##_maximum, 0); \
|
104
|
+
rbg_define_method(c, "range", typename##_range, 0); \
|
105
|
+
} G_STMT_END
|
106
|
+
|
107
|
+
#if 0
|
108
|
+
rbg_define_method(c, "default_value", typename##_default_value, 0); \
|
109
|
+
rb_define_alias(c, "default", "default_value"); \
|
110
|
+
|
111
|
+
#endif
|
112
|
+
|
113
|
+
c = G_DEF_CLASS(G_TYPE_PARAM_CHAR, "Char", cParamSpec);
|
114
|
+
DEF_NUMERIC_PSPEC_METHODS(c, char);
|
115
|
+
eof
|
116
|
+
end
|
117
|
+
thr.join(5)
|
118
|
+
if thr.alive?
|
119
|
+
fail "Did not parse in time"
|
120
|
+
thr.kill
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
describe 'Override comments' do
|
127
|
+
before(:all) do
|
128
|
+
Registry.clear
|
129
|
+
override_file = File.join(File.dirname(__FILE__), 'examples', 'override.c.txt')
|
130
|
+
@override_parser = YARD.parse_string(File.read(override_file), :c)
|
131
|
+
end
|
132
|
+
|
133
|
+
it "should parse GMP::Z class" do
|
134
|
+
z = YARD::Registry.at('GMP::Z')
|
135
|
+
z.should_not be_nil
|
136
|
+
z.docstring.should_not be_blank
|
137
|
+
end
|
138
|
+
|
139
|
+
it "should parse GMP::Z methods w/ bodies" do
|
140
|
+
add = YARD::Registry.at('GMP::Z#+')
|
141
|
+
add.docstring.should_not be_blank
|
142
|
+
add.source.should_not be_nil
|
143
|
+
add.source.should_not be_empty
|
144
|
+
|
145
|
+
add_self = YARD::Registry.at('GMP::Z#+')
|
146
|
+
add_self.docstring.should_not be_blank
|
147
|
+
add_self.source.should_not be_nil
|
148
|
+
add_self.source.should_not be_empty
|
149
|
+
|
150
|
+
sqrtrem = YARD::Registry.at('GMP::Z#+')
|
151
|
+
sqrtrem.docstring.should_not be_blank
|
152
|
+
sqrtrem.source.should_not be_nil
|
153
|
+
sqrtrem.source.should_not be_empty
|
154
|
+
end
|
155
|
+
|
156
|
+
it "should parse GMP::Z methods w/o bodies" do
|
157
|
+
neg = YARD::Registry.at('GMP::Z#neg')
|
158
|
+
neg.docstring.should_not be_blank
|
159
|
+
neg.source.should be_nil
|
160
|
+
|
161
|
+
neg_self = YARD::Registry.at('GMP::Z#neg')
|
162
|
+
neg_self.docstring.should_not be_blank
|
163
|
+
neg_self.source.should be_nil
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
@@ -0,0 +1,3887 @@
|
|
1
|
+
/**********************************************************************
|
2
|
+
|
3
|
+
array.c -
|
4
|
+
|
5
|
+
$Author: yugui $
|
6
|
+
created at: Fri Aug 6 09:46:12 JST 1993
|
7
|
+
|
8
|
+
Copyright (C) 1993-2007 Yukihiro Matsumoto
|
9
|
+
Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
|
10
|
+
Copyright (C) 2000 Information-technology Promotion Agency, Japan
|
11
|
+
|
12
|
+
**********************************************************************/
|
13
|
+
|
14
|
+
#include "ruby/ruby.h"
|
15
|
+
#include "ruby/util.h"
|
16
|
+
#include "ruby/st.h"
|
17
|
+
|
18
|
+
#ifndef ARRAY_DEBUG
|
19
|
+
# define NDEBUG
|
20
|
+
#endif
|
21
|
+
#include <assert.h>
|
22
|
+
|
23
|
+
VALUE rb_cArray;
|
24
|
+
|
25
|
+
static ID id_cmp;
|
26
|
+
|
27
|
+
#define ARY_DEFAULT_SIZE 16
|
28
|
+
#define ARY_MAX_SIZE (LONG_MAX / sizeof(VALUE))
|
29
|
+
|
30
|
+
void
|
31
|
+
rb_mem_clear(register VALUE *mem, register long size)
|
32
|
+
{
|
33
|
+
while (size--) {
|
34
|
+
*mem++ = Qnil;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
static inline void
|
39
|
+
memfill(register VALUE *mem, register long size, register VALUE val)
|
40
|
+
{
|
41
|
+
while (size--) {
|
42
|
+
*mem++ = val;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
# define ARY_SHARED_P(ary) \
|
47
|
+
(assert(!FL_TEST(ary, ELTS_SHARED) || !FL_TEST(ary, RARRAY_EMBED_FLAG)), \
|
48
|
+
FL_TEST(ary,ELTS_SHARED))
|
49
|
+
# define ARY_EMBED_P(ary) \
|
50
|
+
(assert(!FL_TEST(ary, ELTS_SHARED) || !FL_TEST(ary, RARRAY_EMBED_FLAG)), \
|
51
|
+
FL_TEST(ary, RARRAY_EMBED_FLAG))
|
52
|
+
|
53
|
+
#define ARY_HEAP_PTR(a) (assert(!ARY_EMBED_P(a)), RARRAY(a)->as.heap.ptr)
|
54
|
+
#define ARY_HEAP_LEN(a) (assert(!ARY_EMBED_P(a)), RARRAY(a)->as.heap.len)
|
55
|
+
#define ARY_EMBED_PTR(a) (assert(ARY_EMBED_P(a)), RARRAY(a)->as.ary)
|
56
|
+
#define ARY_EMBED_LEN(a) \
|
57
|
+
(assert(ARY_EMBED_P(a)), \
|
58
|
+
(long)((RBASIC(a)->flags >> RARRAY_EMBED_LEN_SHIFT) & \
|
59
|
+
(RARRAY_EMBED_LEN_MASK >> RARRAY_EMBED_LEN_SHIFT)))
|
60
|
+
|
61
|
+
#define ARY_OWNS_HEAP_P(a) (!FL_TEST(a, ELTS_SHARED|RARRAY_EMBED_FLAG))
|
62
|
+
#define FL_SET_EMBED(a) do { \
|
63
|
+
assert(!ARY_SHARED_P(a)); \
|
64
|
+
assert(!OBJ_FROZEN(a)); \
|
65
|
+
FL_SET(a, RARRAY_EMBED_FLAG); \
|
66
|
+
} while (0)
|
67
|
+
#define FL_UNSET_EMBED(ary) FL_UNSET(ary, RARRAY_EMBED_FLAG|RARRAY_EMBED_LEN_MASK)
|
68
|
+
#define FL_SET_SHARED(ary) do { \
|
69
|
+
assert(!ARY_EMBED_P(ary)); \
|
70
|
+
FL_SET(ary, ELTS_SHARED); \
|
71
|
+
} while (0)
|
72
|
+
#define FL_UNSET_SHARED(ary) FL_UNSET(ary, ELTS_SHARED)
|
73
|
+
|
74
|
+
#define ARY_SET_PTR(ary, p) do { \
|
75
|
+
assert(!ARY_EMBED_P(ary)); \
|
76
|
+
assert(!OBJ_FROZEN(ary)); \
|
77
|
+
RARRAY(ary)->as.heap.ptr = (p); \
|
78
|
+
} while (0)
|
79
|
+
#define ARY_SET_EMBED_LEN(ary, n) do { \
|
80
|
+
long tmp_n = n; \
|
81
|
+
assert(ARY_EMBED_P(ary)); \
|
82
|
+
assert(!OBJ_FROZEN(ary)); \
|
83
|
+
RBASIC(ary)->flags &= ~RARRAY_EMBED_LEN_MASK; \
|
84
|
+
RBASIC(ary)->flags |= (tmp_n) << RARRAY_EMBED_LEN_SHIFT; \
|
85
|
+
} while (0)
|
86
|
+
#define ARY_SET_HEAP_LEN(ary, n) do { \
|
87
|
+
assert(!ARY_EMBED_P(ary)); \
|
88
|
+
RARRAY(ary)->as.heap.len = n; \
|
89
|
+
} while (0)
|
90
|
+
#define ARY_SET_LEN(ary, n) do { \
|
91
|
+
if (ARY_EMBED_P(ary)) { \
|
92
|
+
ARY_SET_EMBED_LEN(ary, n); \
|
93
|
+
} \
|
94
|
+
else { \
|
95
|
+
ARY_SET_HEAP_LEN(ary, n); \
|
96
|
+
} \
|
97
|
+
assert(RARRAY_LEN(ary) == n); \
|
98
|
+
} while (0)
|
99
|
+
#define ARY_INCREASE_PTR(ary, n) do { \
|
100
|
+
assert(!ARY_EMBED_P(ary)); \
|
101
|
+
assert(!OBJ_FROZEN(ary)); \
|
102
|
+
RARRAY(ary)->as.heap.ptr += n; \
|
103
|
+
} while (0)
|
104
|
+
#define ARY_INCREASE_LEN(ary, n) do { \
|
105
|
+
assert(!OBJ_FROZEN(ary)); \
|
106
|
+
if (ARY_EMBED_P(ary)) { \
|
107
|
+
ARY_SET_EMBED_LEN(ary, RARRAY_LEN(ary)+n); \
|
108
|
+
} \
|
109
|
+
else { \
|
110
|
+
RARRAY(ary)->as.heap.len += n; \
|
111
|
+
} \
|
112
|
+
} while (0)
|
113
|
+
|
114
|
+
#define ARY_CAPA(ary) (ARY_EMBED_P(ary) ? RARRAY_EMBED_LEN_MAX : \
|
115
|
+
ARY_SHARED_ROOT_P(ary) ? RARRAY_LEN(ary) : RARRAY(ary)->as.heap.aux.capa)
|
116
|
+
#define ARY_SET_CAPA(ary, n) do { \
|
117
|
+
assert(!ARY_EMBED_P(ary)); \
|
118
|
+
assert(!ARY_SHARED_P(ary)); \
|
119
|
+
assert(!OBJ_FROZEN(ary)); \
|
120
|
+
RARRAY(ary)->as.heap.aux.capa = (n); \
|
121
|
+
} while (0)
|
122
|
+
|
123
|
+
#define ARY_SHARED(ary) (assert(ARY_SHARED_P(ary)), RARRAY(ary)->as.heap.aux.shared)
|
124
|
+
#define ARY_SET_SHARED(ary, value) do { \
|
125
|
+
assert(!ARY_EMBED_P(ary)); \
|
126
|
+
assert(ARY_SHARED_P(ary)); \
|
127
|
+
assert(ARY_SHARED_ROOT_P(value)); \
|
128
|
+
RARRAY(ary)->as.heap.aux.shared = (value); \
|
129
|
+
} while (0)
|
130
|
+
#define RARRAY_SHARED_ROOT_FLAG FL_USER5
|
131
|
+
#define ARY_SHARED_ROOT_P(ary) (FL_TEST(ary, RARRAY_SHARED_ROOT_FLAG))
|
132
|
+
#define ARY_SHARED_NUM(ary) \
|
133
|
+
(assert(ARY_SHARED_ROOT_P(ary)), RARRAY(ary)->as.heap.aux.capa)
|
134
|
+
#define ARY_SET_SHARED_NUM(ary, value) do { \
|
135
|
+
assert(ARY_SHARED_ROOT_P(ary)); \
|
136
|
+
RARRAY(ary)->as.heap.aux.capa = (value); \
|
137
|
+
} while (0)
|
138
|
+
#define FL_SET_SHARED_ROOT(ary) do { \
|
139
|
+
assert(!ARY_EMBED_P(ary)); \
|
140
|
+
FL_SET(ary, RARRAY_SHARED_ROOT_FLAG); \
|
141
|
+
} while (0)
|
142
|
+
|
143
|
+
static void
|
144
|
+
ary_resize_capa(VALUE ary, long capacity)
|
145
|
+
{
|
146
|
+
assert(RARRAY_LEN(ary) <= capacity);
|
147
|
+
assert(!OBJ_FROZEN(ary));
|
148
|
+
assert(!ARY_SHARED_P(ary));
|
149
|
+
if (capacity > RARRAY_EMBED_LEN_MAX) {
|
150
|
+
if (ARY_EMBED_P(ary)) {
|
151
|
+
long len = ARY_EMBED_LEN(ary);
|
152
|
+
VALUE *ptr = ALLOC_N(VALUE, (capacity));
|
153
|
+
MEMCPY(ptr, ARY_EMBED_PTR(ary), VALUE, len);
|
154
|
+
FL_UNSET_EMBED(ary);
|
155
|
+
ARY_SET_PTR(ary, ptr);
|
156
|
+
ARY_SET_HEAP_LEN(ary, len);
|
157
|
+
}
|
158
|
+
else {
|
159
|
+
REALLOC_N(RARRAY(ary)->as.heap.ptr, VALUE, (capacity));
|
160
|
+
}
|
161
|
+
ARY_SET_CAPA(ary, (capacity));
|
162
|
+
}
|
163
|
+
else {
|
164
|
+
if (!ARY_EMBED_P(ary)) {
|
165
|
+
long len = RARRAY_LEN(ary);
|
166
|
+
VALUE *ptr = RARRAY_PTR(ary);
|
167
|
+
MEMCPY(RARRAY(ary)->as.ary, ptr, VALUE, len);
|
168
|
+
FL_SET_EMBED(ary);
|
169
|
+
ARY_SET_LEN(ary, len);
|
170
|
+
xfree(ptr);
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
static void
|
176
|
+
rb_ary_decrement_share(VALUE shared)
|
177
|
+
{
|
178
|
+
if (shared) {
|
179
|
+
int num = ARY_SHARED_NUM(shared) - 1;
|
180
|
+
if (num == 0) {
|
181
|
+
rb_ary_free(shared);
|
182
|
+
rb_gc_force_recycle(shared);
|
183
|
+
}
|
184
|
+
else if (num > 0) {
|
185
|
+
ARY_SET_SHARED_NUM(shared, num);
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
static void
|
191
|
+
rb_ary_unshare(VALUE ary)
|
192
|
+
{
|
193
|
+
VALUE shared = RARRAY(ary)->as.heap.aux.shared;
|
194
|
+
rb_ary_decrement_share(shared);
|
195
|
+
FL_UNSET_SHARED(ary);
|
196
|
+
}
|
197
|
+
|
198
|
+
static inline void
|
199
|
+
rb_ary_unshare_safe(VALUE ary) {
|
200
|
+
if (ARY_SHARED_P(ary) && !ARY_EMBED_P(ary)) {
|
201
|
+
rb_ary_unshare(ary);
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
static VALUE
|
206
|
+
rb_ary_increment_share(VALUE shared) {
|
207
|
+
int num = ARY_SHARED_NUM(shared);
|
208
|
+
if (num >= 0) {
|
209
|
+
ARY_SET_SHARED_NUM(shared, num + 1);
|
210
|
+
}
|
211
|
+
return shared;
|
212
|
+
}
|
213
|
+
|
214
|
+
static void
|
215
|
+
rb_ary_set_shared(VALUE ary, VALUE shared)
|
216
|
+
{
|
217
|
+
rb_ary_increment_share(shared);
|
218
|
+
FL_SET_SHARED(ary);
|
219
|
+
ARY_SET_SHARED(ary, shared);
|
220
|
+
}
|
221
|
+
|
222
|
+
static inline void
|
223
|
+
rb_ary_modify_check(VALUE ary)
|
224
|
+
{
|
225
|
+
if (OBJ_FROZEN(ary)) rb_error_frozen("array");
|
226
|
+
if (!OBJ_UNTRUSTED(ary) && rb_safe_level() >= 4)
|
227
|
+
rb_raise(rb_eSecurityError, "Insecure: can't modify array");
|
228
|
+
}
|
229
|
+
|
230
|
+
static void
|
231
|
+
rb_ary_modify(VALUE ary)
|
232
|
+
{
|
233
|
+
rb_ary_modify_check(ary);
|
234
|
+
if (ARY_SHARED_P(ary)) {
|
235
|
+
long len = RARRAY_LEN(ary);
|
236
|
+
if (len <= RARRAY_EMBED_LEN_MAX) {
|
237
|
+
VALUE *ptr = ARY_HEAP_PTR(ary);
|
238
|
+
VALUE shared = ARY_SHARED(ary);
|
239
|
+
FL_UNSET_SHARED(ary);
|
240
|
+
FL_SET_EMBED(ary);
|
241
|
+
MEMCPY(ARY_EMBED_PTR(ary), ptr, VALUE, len);
|
242
|
+
rb_ary_decrement_share(shared);
|
243
|
+
ARY_SET_EMBED_LEN(ary, len);
|
244
|
+
}
|
245
|
+
else {
|
246
|
+
VALUE *ptr = ALLOC_N(VALUE, len);
|
247
|
+
MEMCPY(ptr, RARRAY_PTR(ary), VALUE, len);
|
248
|
+
rb_ary_unshare(ary);
|
249
|
+
ARY_SET_CAPA(ary, len);
|
250
|
+
ARY_SET_PTR(ary, ptr);
|
251
|
+
}
|
252
|
+
}
|
253
|
+
}
|
254
|
+
|
255
|
+
VALUE
|
256
|
+
rb_ary_freeze(VALUE ary)
|
257
|
+
{
|
258
|
+
return rb_obj_freeze(ary);
|
259
|
+
}
|
260
|
+
|
261
|
+
/*
|
262
|
+
* call-seq:
|
263
|
+
* array.frozen? -> true or false
|
264
|
+
*
|
265
|
+
* Return <code>true</code> if this array is frozen (or temporarily frozen
|
266
|
+
* while being sorted).
|
267
|
+
*/
|
268
|
+
|
269
|
+
static VALUE
|
270
|
+
rb_ary_frozen_p(VALUE ary)
|
271
|
+
{
|
272
|
+
if (OBJ_FROZEN(ary)) return Qtrue;
|
273
|
+
return Qfalse;
|
274
|
+
}
|
275
|
+
|
276
|
+
static VALUE
|
277
|
+
ary_alloc(VALUE klass)
|
278
|
+
{
|
279
|
+
NEWOBJ(ary, struct RArray);
|
280
|
+
OBJSETUP(ary, klass, T_ARRAY);
|
281
|
+
FL_SET_EMBED((VALUE)ary);
|
282
|
+
ARY_SET_EMBED_LEN((VALUE)ary, 0);
|
283
|
+
|
284
|
+
return (VALUE)ary;
|
285
|
+
}
|
286
|
+
|
287
|
+
static VALUE
|
288
|
+
ary_new(VALUE klass, long len)
|
289
|
+
{
|
290
|
+
VALUE ary;
|
291
|
+
|
292
|
+
if (len < 0) {
|
293
|
+
rb_raise(rb_eArgError, "negative array size (or size too big)");
|
294
|
+
}
|
295
|
+
if (len > ARY_MAX_SIZE) {
|
296
|
+
rb_raise(rb_eArgError, "array size too big");
|
297
|
+
}
|
298
|
+
ary = ary_alloc(klass);
|
299
|
+
if (len > RARRAY_EMBED_LEN_MAX) {
|
300
|
+
FL_UNSET_EMBED(ary);
|
301
|
+
ARY_SET_PTR(ary, ALLOC_N(VALUE, len));
|
302
|
+
ARY_SET_CAPA(ary, len);
|
303
|
+
ARY_SET_HEAP_LEN(ary, 0);
|
304
|
+
}
|
305
|
+
|
306
|
+
return ary;
|
307
|
+
}
|
308
|
+
|
309
|
+
VALUE
|
310
|
+
rb_ary_new2(long len)
|
311
|
+
{
|
312
|
+
return ary_new(rb_cArray, len);
|
313
|
+
}
|
314
|
+
|
315
|
+
|
316
|
+
VALUE
|
317
|
+
rb_ary_new(void)
|
318
|
+
{
|
319
|
+
return rb_ary_new2(RARRAY_EMBED_LEN_MAX);
|
320
|
+
}
|
321
|
+
|
322
|
+
#include <stdarg.h>
|
323
|
+
|
324
|
+
VALUE
|
325
|
+
rb_ary_new3(long n, ...)
|
326
|
+
{
|
327
|
+
va_list ar;
|
328
|
+
VALUE ary;
|
329
|
+
long i;
|
330
|
+
|
331
|
+
ary = rb_ary_new2(n);
|
332
|
+
|
333
|
+
va_start(ar, n);
|
334
|
+
for (i=0; i<n; i++) {
|
335
|
+
RARRAY_PTR(ary)[i] = va_arg(ar, VALUE);
|
336
|
+
}
|
337
|
+
va_end(ar);
|
338
|
+
|
339
|
+
ARY_SET_LEN(ary, n);
|
340
|
+
return ary;
|
341
|
+
}
|
342
|
+
|
343
|
+
VALUE
|
344
|
+
rb_ary_new4(long n, const VALUE *elts)
|
345
|
+
{
|
346
|
+
VALUE ary;
|
347
|
+
|
348
|
+
ary = rb_ary_new2(n);
|
349
|
+
if (n > 0 && elts) {
|
350
|
+
MEMCPY(RARRAY_PTR(ary), elts, VALUE, n);
|
351
|
+
ARY_SET_LEN(ary, n);
|
352
|
+
}
|
353
|
+
|
354
|
+
return ary;
|
355
|
+
}
|
356
|
+
|
357
|
+
VALUE
|
358
|
+
rb_ary_tmp_new(long len)
|
359
|
+
{
|
360
|
+
return ary_new(0, len);
|
361
|
+
}
|
362
|
+
|
363
|
+
void
|
364
|
+
rb_ary_free(VALUE ary)
|
365
|
+
{
|
366
|
+
if (ARY_OWNS_HEAP_P(ary)) {
|
367
|
+
xfree(RARRAY_PTR(ary));
|
368
|
+
}
|
369
|
+
}
|
370
|
+
|
371
|
+
static VALUE
|
372
|
+
ary_make_shared(VALUE ary)
|
373
|
+
{
|
374
|
+
assert(!ARY_EMBED_P(ary));
|
375
|
+
if (ARY_SHARED_P(ary)) {
|
376
|
+
return ARY_SHARED(ary);
|
377
|
+
}
|
378
|
+
else {
|
379
|
+
NEWOBJ(shared, struct RArray);
|
380
|
+
OBJSETUP(shared, 0, T_ARRAY);
|
381
|
+
FL_UNSET_EMBED(shared);
|
382
|
+
|
383
|
+
ARY_SET_LEN((VALUE)shared, RARRAY_LEN(ary));
|
384
|
+
ARY_SET_PTR((VALUE)shared, RARRAY_PTR(ary));
|
385
|
+
FL_SET_SHARED_ROOT(shared);
|
386
|
+
ARY_SET_SHARED_NUM((VALUE)shared, 1);
|
387
|
+
FL_SET_SHARED(ary);
|
388
|
+
ARY_SET_SHARED(ary, (VALUE)shared);
|
389
|
+
OBJ_FREEZE(shared);
|
390
|
+
return (VALUE)shared;
|
391
|
+
}
|
392
|
+
}
|
393
|
+
|
394
|
+
|
395
|
+
static VALUE
|
396
|
+
ary_make_substitution(VALUE ary)
|
397
|
+
{
|
398
|
+
if (RARRAY_LEN(ary) <= RARRAY_EMBED_LEN_MAX) {
|
399
|
+
VALUE subst = rb_ary_new2(RARRAY_LEN(ary));
|
400
|
+
MEMCPY(ARY_EMBED_PTR(subst), RARRAY_PTR(ary), VALUE, RARRAY_LEN(ary));
|
401
|
+
ARY_SET_EMBED_LEN(subst, RARRAY_LEN(ary));
|
402
|
+
return subst;
|
403
|
+
}
|
404
|
+
else {
|
405
|
+
return rb_ary_increment_share(ary_make_shared(ary));
|
406
|
+
}
|
407
|
+
}
|
408
|
+
|
409
|
+
VALUE
|
410
|
+
rb_assoc_new(VALUE car, VALUE cdr)
|
411
|
+
{
|
412
|
+
return rb_ary_new3(2, car, cdr);
|
413
|
+
}
|
414
|
+
|
415
|
+
static VALUE
|
416
|
+
to_ary(VALUE ary)
|
417
|
+
{
|
418
|
+
return rb_convert_type(ary, T_ARRAY, "Array", "to_ary");
|
419
|
+
}
|
420
|
+
|
421
|
+
VALUE
|
422
|
+
rb_check_array_type(VALUE ary)
|
423
|
+
{
|
424
|
+
return rb_check_convert_type(ary, T_ARRAY, "Array", "to_ary");
|
425
|
+
}
|
426
|
+
|
427
|
+
/*
|
428
|
+
* call-seq:
|
429
|
+
* Array.try_convert(obj) -> array or nil
|
430
|
+
*
|
431
|
+
* Try to convert <i>obj</i> into an array, using to_ary method.
|
432
|
+
* Returns converted array or nil if <i>obj</i> cannot be converted
|
433
|
+
* for any reason. This method is to check if an argument is an
|
434
|
+
* array.
|
435
|
+
*
|
436
|
+
* Array.try_convert([1]) # => [1]
|
437
|
+
* Array.try_convert("1") # => nil
|
438
|
+
*
|
439
|
+
* if tmp = Array.try_convert(arg)
|
440
|
+
* # the argument is an array
|
441
|
+
* elsif tmp = String.try_convert(arg)
|
442
|
+
* # the argument is a string
|
443
|
+
* end
|
444
|
+
*
|
445
|
+
*/
|
446
|
+
|
447
|
+
static VALUE
|
448
|
+
rb_ary_s_try_convert(VALUE dummy, VALUE ary)
|
449
|
+
{
|
450
|
+
return rb_check_array_type(ary);
|
451
|
+
}
|
452
|
+
|
453
|
+
/*
|
454
|
+
* call-seq:
|
455
|
+
* Array.new(size=0, obj=nil)
|
456
|
+
* Array.new(array)
|
457
|
+
* Array.new(size) {|index| block }
|
458
|
+
*
|
459
|
+
* Returns a new array. In the first form, the new array is
|
460
|
+
* empty. In the second it is created with _size_ copies of _obj_
|
461
|
+
* (that is, _size_ references to the same
|
462
|
+
* _obj_). The third form creates a copy of the array
|
463
|
+
* passed as a parameter (the array is generated by calling
|
464
|
+
* to_ary on the parameter). In the last form, an array
|
465
|
+
* of the given size is created. Each element in this array is
|
466
|
+
* calculated by passing the element's index to the given block and
|
467
|
+
* storing the return value.
|
468
|
+
*
|
469
|
+
* Array.new
|
470
|
+
* Array.new(2)
|
471
|
+
* Array.new(5, "A")
|
472
|
+
*
|
473
|
+
* # only one copy of the object is created
|
474
|
+
* a = Array.new(2, Hash.new)
|
475
|
+
* a[0]['cat'] = 'feline'
|
476
|
+
* a
|
477
|
+
* a[1]['cat'] = 'Felix'
|
478
|
+
* a
|
479
|
+
*
|
480
|
+
* # here multiple copies are created
|
481
|
+
* a = Array.new(2) { Hash.new }
|
482
|
+
* a[0]['cat'] = 'feline'
|
483
|
+
* a
|
484
|
+
*
|
485
|
+
* squares = Array.new(5) {|i| i*i}
|
486
|
+
* squares
|
487
|
+
*
|
488
|
+
* copy = Array.new(squares)
|
489
|
+
*/
|
490
|
+
|
491
|
+
static VALUE
|
492
|
+
rb_ary_initialize(int argc, VALUE *argv, VALUE ary)
|
493
|
+
{
|
494
|
+
long len;
|
495
|
+
VALUE size, val;
|
496
|
+
|
497
|
+
rb_ary_modify(ary);
|
498
|
+
if (argc == 0) {
|
499
|
+
if (ARY_OWNS_HEAP_P(ary) && RARRAY_PTR(ary)) {
|
500
|
+
xfree(RARRAY_PTR(ary));
|
501
|
+
}
|
502
|
+
rb_ary_unshare_safe(ary);
|
503
|
+
FL_SET_EMBED(ary);
|
504
|
+
ARY_SET_EMBED_LEN(ary, 0);
|
505
|
+
if (rb_block_given_p()) {
|
506
|
+
rb_warning("given block not used");
|
507
|
+
}
|
508
|
+
return ary;
|
509
|
+
}
|
510
|
+
rb_scan_args(argc, argv, "02", &size, &val);
|
511
|
+
if (argc == 1 && !FIXNUM_P(size)) {
|
512
|
+
val = rb_check_array_type(size);
|
513
|
+
if (!NIL_P(val)) {
|
514
|
+
rb_ary_replace(ary, val);
|
515
|
+
return ary;
|
516
|
+
}
|
517
|
+
}
|
518
|
+
|
519
|
+
len = NUM2LONG(size);
|
520
|
+
if (len < 0) {
|
521
|
+
rb_raise(rb_eArgError, "negative array size");
|
522
|
+
}
|
523
|
+
if (len > ARY_MAX_SIZE) {
|
524
|
+
rb_raise(rb_eArgError, "array size too big");
|
525
|
+
}
|
526
|
+
rb_ary_modify(ary);
|
527
|
+
ary_resize_capa(ary, len);
|
528
|
+
if (rb_block_given_p()) {
|
529
|
+
long i;
|
530
|
+
|
531
|
+
if (argc == 2) {
|
532
|
+
rb_warn("block supersedes default value argument");
|
533
|
+
}
|
534
|
+
for (i=0; i<len; i++) {
|
535
|
+
rb_ary_store(ary, i, rb_yield(LONG2NUM(i)));
|
536
|
+
ARY_SET_LEN(ary, i + 1);
|
537
|
+
}
|
538
|
+
}
|
539
|
+
else {
|
540
|
+
memfill(RARRAY_PTR(ary), len, val);
|
541
|
+
ARY_SET_LEN(ary, len);
|
542
|
+
}
|
543
|
+
return ary;
|
544
|
+
}
|
545
|
+
|
546
|
+
|
547
|
+
/*
|
548
|
+
* Returns a new array populated with the given objects.
|
549
|
+
*
|
550
|
+
* Array.[]( 1, 'a', /^A/ )
|
551
|
+
* Array[ 1, 'a', /^A/ ]
|
552
|
+
* [ 1, 'a', /^A/ ]
|
553
|
+
*/
|
554
|
+
|
555
|
+
static VALUE
|
556
|
+
rb_ary_s_create(int argc, VALUE *argv, VALUE klass)
|
557
|
+
{
|
558
|
+
VALUE ary = ary_new(klass, argc);
|
559
|
+
if (argc > 0 && argv) {
|
560
|
+
MEMCPY(RARRAY_PTR(ary), argv, VALUE, argc);
|
561
|
+
ARY_SET_LEN(ary, argc);
|
562
|
+
}
|
563
|
+
|
564
|
+
return ary;
|
565
|
+
}
|
566
|
+
|
567
|
+
void
|
568
|
+
rb_ary_store(VALUE ary, long idx, VALUE val)
|
569
|
+
{
|
570
|
+
if (idx < 0) {
|
571
|
+
idx += RARRAY_LEN(ary);
|
572
|
+
if (idx < 0) {
|
573
|
+
rb_raise(rb_eIndexError, "index %ld out of array",
|
574
|
+
idx - RARRAY_LEN(ary));
|
575
|
+
}
|
576
|
+
}
|
577
|
+
else if (idx >= ARY_MAX_SIZE) {
|
578
|
+
rb_raise(rb_eIndexError, "index %ld too big", idx);
|
579
|
+
}
|
580
|
+
|
581
|
+
rb_ary_modify(ary);
|
582
|
+
if (idx >= ARY_CAPA(ary)) {
|
583
|
+
long new_capa = ARY_CAPA(ary) / 2;
|
584
|
+
|
585
|
+
if (new_capa < ARY_DEFAULT_SIZE) {
|
586
|
+
new_capa = ARY_DEFAULT_SIZE;
|
587
|
+
}
|
588
|
+
if (new_capa >= ARY_MAX_SIZE - idx) {
|
589
|
+
new_capa = (ARY_MAX_SIZE - idx) / 2;
|
590
|
+
}
|
591
|
+
new_capa += idx;
|
592
|
+
ary_resize_capa(ary, new_capa);
|
593
|
+
}
|
594
|
+
if (idx > RARRAY_LEN(ary)) {
|
595
|
+
rb_mem_clear(RARRAY_PTR(ary) + RARRAY_LEN(ary),
|
596
|
+
idx-RARRAY_LEN(ary) + 1);
|
597
|
+
}
|
598
|
+
|
599
|
+
if (idx >= RARRAY_LEN(ary)) {
|
600
|
+
ARY_SET_LEN(ary, idx + 1);
|
601
|
+
}
|
602
|
+
RARRAY_PTR(ary)[idx] = val;
|
603
|
+
}
|
604
|
+
|
605
|
+
static VALUE
|
606
|
+
ary_make_partial(VALUE ary, VALUE klass, long offset, long len)
|
607
|
+
{
|
608
|
+
assert(offset >= 0);
|
609
|
+
assert(len >= 0);
|
610
|
+
assert(offset+len <= RARRAY_LEN(ary));
|
611
|
+
|
612
|
+
if (len <= RARRAY_EMBED_LEN_MAX) {
|
613
|
+
VALUE result = ary_alloc(klass);
|
614
|
+
MEMCPY(ARY_EMBED_PTR(result), RARRAY_PTR(ary) + offset, VALUE, len);
|
615
|
+
ARY_SET_EMBED_LEN(result, len);
|
616
|
+
return result;
|
617
|
+
}
|
618
|
+
else {
|
619
|
+
VALUE shared, result = ary_alloc(klass);
|
620
|
+
FL_UNSET_EMBED(result);
|
621
|
+
|
622
|
+
shared = ary_make_shared(ary);
|
623
|
+
ARY_SET_PTR(result, RARRAY_PTR(ary));
|
624
|
+
ARY_SET_LEN(result, RARRAY_LEN(ary));
|
625
|
+
rb_ary_set_shared(result, shared);
|
626
|
+
|
627
|
+
ARY_INCREASE_PTR(result, offset);
|
628
|
+
ARY_SET_LEN(result, len);
|
629
|
+
return result;
|
630
|
+
}
|
631
|
+
}
|
632
|
+
|
633
|
+
static VALUE
|
634
|
+
ary_make_shared_copy(VALUE ary)
|
635
|
+
{
|
636
|
+
return ary_make_partial(ary, rb_obj_class(ary), 0, RARRAY_LEN(ary));
|
637
|
+
}
|
638
|
+
|
639
|
+
enum ary_take_pos_flags
|
640
|
+
{
|
641
|
+
ARY_TAKE_FIRST = 0,
|
642
|
+
ARY_TAKE_LAST = 1
|
643
|
+
};
|
644
|
+
|
645
|
+
static VALUE
|
646
|
+
ary_take_first_or_last(int argc, VALUE *argv, VALUE ary, enum ary_take_pos_flags last)
|
647
|
+
{
|
648
|
+
VALUE nv;
|
649
|
+
long n;
|
650
|
+
long offset = 0;
|
651
|
+
|
652
|
+
rb_scan_args(argc, argv, "1", &nv);
|
653
|
+
n = NUM2LONG(nv);
|
654
|
+
if (n > RARRAY_LEN(ary)) {
|
655
|
+
n = RARRAY_LEN(ary);
|
656
|
+
}
|
657
|
+
else if (n < 0) {
|
658
|
+
rb_raise(rb_eArgError, "negative array size");
|
659
|
+
}
|
660
|
+
if (last) {
|
661
|
+
offset = RARRAY_LEN(ary) - n;
|
662
|
+
}
|
663
|
+
return ary_make_partial(ary, rb_cArray, offset, n);
|
664
|
+
}
|
665
|
+
|
666
|
+
/*
|
667
|
+
* call-seq:
|
668
|
+
* array << obj -> array
|
669
|
+
*
|
670
|
+
* Append---Pushes the given object on to the end of this array. This
|
671
|
+
* expression returns the array itself, so several appends
|
672
|
+
* may be chained together.
|
673
|
+
*
|
674
|
+
* [ 1, 2 ] << "c" << "d" << [ 3, 4 ]
|
675
|
+
* #=> [ 1, 2, "c", "d", [ 3, 4 ] ]
|
676
|
+
*
|
677
|
+
*/
|
678
|
+
|
679
|
+
VALUE
|
680
|
+
rb_ary_push(VALUE ary, VALUE item)
|
681
|
+
{
|
682
|
+
rb_ary_store(ary, RARRAY_LEN(ary), item);
|
683
|
+
return ary;
|
684
|
+
}
|
685
|
+
|
686
|
+
/*
|
687
|
+
* call-seq:
|
688
|
+
* array.push(obj, ... ) -> array
|
689
|
+
*
|
690
|
+
* Append---Pushes the given object(s) on to the end of this array. This
|
691
|
+
* expression returns the array itself, so several appends
|
692
|
+
* may be chained together.
|
693
|
+
*
|
694
|
+
* a = [ "a", "b", "c" ]
|
695
|
+
* a.push("d", "e", "f")
|
696
|
+
* #=> ["a", "b", "c", "d", "e", "f"]
|
697
|
+
*/
|
698
|
+
|
699
|
+
static VALUE
|
700
|
+
rb_ary_push_m(int argc, VALUE *argv, VALUE ary)
|
701
|
+
{
|
702
|
+
rb_ary_modify_check(ary);
|
703
|
+
while (argc--) {
|
704
|
+
rb_ary_push(ary, *argv++);
|
705
|
+
}
|
706
|
+
return ary;
|
707
|
+
}
|
708
|
+
|
709
|
+
VALUE
|
710
|
+
rb_ary_pop(VALUE ary)
|
711
|
+
{
|
712
|
+
long n;
|
713
|
+
rb_ary_modify_check(ary);
|
714
|
+
if (RARRAY_LEN(ary) == 0) return Qnil;
|
715
|
+
if (ARY_OWNS_HEAP_P(ary) &&
|
716
|
+
RARRAY_LEN(ary) * 3 < ARY_CAPA(ary) &&
|
717
|
+
ARY_CAPA(ary) > ARY_DEFAULT_SIZE)
|
718
|
+
{
|
719
|
+
ary_resize_capa(ary, RARRAY_LEN(ary) * 2);
|
720
|
+
}
|
721
|
+
n = RARRAY_LEN(ary)-1;
|
722
|
+
ARY_SET_LEN(ary, n);
|
723
|
+
return RARRAY_PTR(ary)[n];
|
724
|
+
}
|
725
|
+
|
726
|
+
/*
|
727
|
+
* call-seq:
|
728
|
+
* array.pop -> obj or nil
|
729
|
+
* array.pop(n) -> array
|
730
|
+
*
|
731
|
+
* Removes the last element from <i>self</i> and returns it, or
|
732
|
+
* <code>nil</code> if the array is empty.
|
733
|
+
*
|
734
|
+
* If a number _n_ is given, returns an array of the last n elements
|
735
|
+
* (or less) just like <code>array.slice!(-n, n)</code> does.
|
736
|
+
*
|
737
|
+
* a = [ "a", "b", "c", "d" ]
|
738
|
+
* a.pop #=> "d"
|
739
|
+
* a.pop(2) #=> ["b", "c"]
|
740
|
+
* a #=> ["a"]
|
741
|
+
*/
|
742
|
+
|
743
|
+
static VALUE
|
744
|
+
rb_ary_pop_m(int argc, VALUE *argv, VALUE ary)
|
745
|
+
{
|
746
|
+
VALUE result;
|
747
|
+
|
748
|
+
if (argc == 0) {
|
749
|
+
return rb_ary_pop(ary);
|
750
|
+
}
|
751
|
+
|
752
|
+
rb_ary_modify_check(ary);
|
753
|
+
result = ary_take_first_or_last(argc, argv, ary, ARY_TAKE_LAST);
|
754
|
+
ARY_INCREASE_LEN(ary, -RARRAY_LEN(result));
|
755
|
+
return result;
|
756
|
+
}
|
757
|
+
|
758
|
+
VALUE
|
759
|
+
rb_ary_shift(VALUE ary)
|
760
|
+
{
|
761
|
+
VALUE top;
|
762
|
+
|
763
|
+
rb_ary_modify_check(ary);
|
764
|
+
if (RARRAY_LEN(ary) == 0) return Qnil;
|
765
|
+
top = RARRAY_PTR(ary)[0];
|
766
|
+
if (!ARY_SHARED_P(ary)) {
|
767
|
+
if (RARRAY_LEN(ary) < ARY_DEFAULT_SIZE) {
|
768
|
+
MEMMOVE(RARRAY_PTR(ary), RARRAY_PTR(ary)+1, VALUE, RARRAY_LEN(ary)-1);
|
769
|
+
ARY_INCREASE_LEN(ary, -1);
|
770
|
+
return top;
|
771
|
+
}
|
772
|
+
assert(!ARY_EMBED_P(ary)); /* ARY_EMBED_LEN_MAX < ARY_DEFAULT_SIZE */
|
773
|
+
|
774
|
+
RARRAY_PTR(ary)[0] = Qnil;
|
775
|
+
ary_make_shared(ary);
|
776
|
+
}
|
777
|
+
ARY_INCREASE_PTR(ary, 1); /* shift ptr */
|
778
|
+
ARY_INCREASE_LEN(ary, -1);
|
779
|
+
|
780
|
+
return top;
|
781
|
+
}
|
782
|
+
|
783
|
+
/*
|
784
|
+
* call-seq:
|
785
|
+
* array.shift -> obj or nil
|
786
|
+
* array.shift(n) -> array
|
787
|
+
*
|
788
|
+
* Returns the first element of <i>self</i> and removes it (shifting all
|
789
|
+
* other elements down by one). Returns <code>nil</code> if the array
|
790
|
+
* is empty.
|
791
|
+
*
|
792
|
+
* If a number _n_ is given, returns an array of the first n elements
|
793
|
+
* (or less) just like <code>array.slice!(0, n)</code> does.
|
794
|
+
*
|
795
|
+
* args = [ "-m", "-q", "filename" ]
|
796
|
+
* args.shift #=> "-m"
|
797
|
+
* args #=> ["-q", "filename"]
|
798
|
+
*
|
799
|
+
* args = [ "-m", "-q", "filename" ]
|
800
|
+
* args.shift(2) #=> ["-m", "-q"]
|
801
|
+
* args #=> ["filename"]
|
802
|
+
*/
|
803
|
+
|
804
|
+
static VALUE
|
805
|
+
rb_ary_shift_m(int argc, VALUE *argv, VALUE ary)
|
806
|
+
{
|
807
|
+
VALUE result;
|
808
|
+
long n;
|
809
|
+
|
810
|
+
if (argc == 0) {
|
811
|
+
return rb_ary_shift(ary);
|
812
|
+
}
|
813
|
+
|
814
|
+
rb_ary_modify_check(ary);
|
815
|
+
result = ary_take_first_or_last(argc, argv, ary, ARY_TAKE_FIRST);
|
816
|
+
n = RARRAY_LEN(result);
|
817
|
+
if (ARY_SHARED_P(ary)) {
|
818
|
+
ARY_INCREASE_PTR(ary, n);
|
819
|
+
}
|
820
|
+
else {
|
821
|
+
MEMMOVE(RARRAY_PTR(ary), RARRAY_PTR(ary)+n, VALUE, RARRAY_LEN(ary)-n);
|
822
|
+
}
|
823
|
+
ARY_INCREASE_LEN(ary, -n);
|
824
|
+
|
825
|
+
return result;
|
826
|
+
}
|
827
|
+
|
828
|
+
/*
|
829
|
+
* call-seq:
|
830
|
+
* array.unshift(obj, ...) -> array
|
831
|
+
*
|
832
|
+
* Prepends objects to the front of <i>array</i>.
|
833
|
+
* other elements up one.
|
834
|
+
*
|
835
|
+
* a = [ "b", "c", "d" ]
|
836
|
+
* a.unshift("a") #=> ["a", "b", "c", "d"]
|
837
|
+
* a.unshift(1, 2) #=> [ 1, 2, "a", "b", "c", "d"]
|
838
|
+
*/
|
839
|
+
|
840
|
+
static VALUE
|
841
|
+
rb_ary_unshift_m(int argc, VALUE *argv, VALUE ary)
|
842
|
+
{
|
843
|
+
long len;
|
844
|
+
|
845
|
+
if (argc == 0) return ary;
|
846
|
+
rb_ary_modify(ary);
|
847
|
+
if (ARY_CAPA(ary) <= (len = RARRAY_LEN(ary)) + argc) {
|
848
|
+
ary_resize_capa(ary, len + argc + ARY_DEFAULT_SIZE);
|
849
|
+
}
|
850
|
+
|
851
|
+
/* sliding items */
|
852
|
+
MEMMOVE(RARRAY_PTR(ary) + argc, RARRAY_PTR(ary), VALUE, len);
|
853
|
+
MEMCPY(RARRAY_PTR(ary), argv, VALUE, argc);
|
854
|
+
ARY_INCREASE_LEN(ary, argc);
|
855
|
+
|
856
|
+
return ary;
|
857
|
+
}
|
858
|
+
|
859
|
+
VALUE
|
860
|
+
rb_ary_unshift(VALUE ary, VALUE item)
|
861
|
+
{
|
862
|
+
return rb_ary_unshift_m(1,&item,ary);
|
863
|
+
}
|
864
|
+
|
865
|
+
/* faster version - use this if you don't need to treat negative offset */
|
866
|
+
static inline VALUE
|
867
|
+
rb_ary_elt(VALUE ary, long offset)
|
868
|
+
{
|
869
|
+
if (RARRAY_LEN(ary) == 0) return Qnil;
|
870
|
+
if (offset < 0 || RARRAY_LEN(ary) <= offset) {
|
871
|
+
return Qnil;
|
872
|
+
}
|
873
|
+
return RARRAY_PTR(ary)[offset];
|
874
|
+
}
|
875
|
+
|
876
|
+
VALUE
|
877
|
+
rb_ary_entry(VALUE ary, long offset)
|
878
|
+
{
|
879
|
+
if (offset < 0) {
|
880
|
+
offset += RARRAY_LEN(ary);
|
881
|
+
}
|
882
|
+
return rb_ary_elt(ary, offset);
|
883
|
+
}
|
884
|
+
|
885
|
+
VALUE
|
886
|
+
rb_ary_subseq(VALUE ary, long beg, long len)
|
887
|
+
{
|
888
|
+
VALUE klass;
|
889
|
+
|
890
|
+
if (beg > RARRAY_LEN(ary)) return Qnil;
|
891
|
+
if (beg < 0 || len < 0) return Qnil;
|
892
|
+
|
893
|
+
if (RARRAY_LEN(ary) < len || RARRAY_LEN(ary) < beg + len) {
|
894
|
+
len = RARRAY_LEN(ary) - beg;
|
895
|
+
}
|
896
|
+
klass = rb_obj_class(ary);
|
897
|
+
if (len == 0) return ary_new(klass, 0);
|
898
|
+
|
899
|
+
return ary_make_partial(ary, klass, beg, len);
|
900
|
+
}
|
901
|
+
|
902
|
+
/*
|
903
|
+
* call-seq:
|
904
|
+
* array[index] -> obj or nil
|
905
|
+
* array[start, length] -> an_array or nil
|
906
|
+
* array[range] -> an_array or nil
|
907
|
+
* array.slice(index) -> obj or nil
|
908
|
+
* array.slice(start, length) -> an_array or nil
|
909
|
+
* array.slice(range) -> an_array or nil
|
910
|
+
*
|
911
|
+
* Element Reference---Returns the element at _index_,
|
912
|
+
* or returns a subarray starting at _start_ and
|
913
|
+
* continuing for _length_ elements, or returns a subarray
|
914
|
+
* specified by _range_.
|
915
|
+
* Negative indices count backward from the end of the
|
916
|
+
* array (-1 is the last element). Returns nil if the index
|
917
|
+
* (or starting index) are out of range.
|
918
|
+
*
|
919
|
+
* a = [ "a", "b", "c", "d", "e" ]
|
920
|
+
* a[2] + a[0] + a[1] #=> "cab"
|
921
|
+
* a[6] #=> nil
|
922
|
+
* a[1, 2] #=> [ "b", "c" ]
|
923
|
+
* a[1..3] #=> [ "b", "c", "d" ]
|
924
|
+
* a[4..7] #=> [ "e" ]
|
925
|
+
* a[6..10] #=> nil
|
926
|
+
* a[-3, 3] #=> [ "c", "d", "e" ]
|
927
|
+
* # special cases
|
928
|
+
* a[5] #=> nil
|
929
|
+
* a[5, 1] #=> []
|
930
|
+
* a[5..10] #=> []
|
931
|
+
*
|
932
|
+
*/
|
933
|
+
|
934
|
+
VALUE
|
935
|
+
rb_ary_aref(int argc, VALUE *argv, VALUE ary)
|
936
|
+
{
|
937
|
+
VALUE arg;
|
938
|
+
long beg, len;
|
939
|
+
|
940
|
+
if (argc == 2) {
|
941
|
+
beg = NUM2LONG(argv[0]);
|
942
|
+
len = NUM2LONG(argv[1]);
|
943
|
+
if (beg < 0) {
|
944
|
+
beg += RARRAY_LEN(ary);
|
945
|
+
}
|
946
|
+
return rb_ary_subseq(ary, beg, len);
|
947
|
+
}
|
948
|
+
if (argc != 1) {
|
949
|
+
rb_scan_args(argc, argv, "11", 0, 0);
|
950
|
+
}
|
951
|
+
arg = argv[0];
|
952
|
+
/* special case - speeding up */
|
953
|
+
if (FIXNUM_P(arg)) {
|
954
|
+
return rb_ary_entry(ary, FIX2LONG(arg));
|
955
|
+
}
|
956
|
+
/* check if idx is Range */
|
957
|
+
switch (rb_range_beg_len(arg, &beg, &len, RARRAY_LEN(ary), 0)) {
|
958
|
+
case Qfalse:
|
959
|
+
break;
|
960
|
+
case Qnil:
|
961
|
+
return Qnil;
|
962
|
+
default:
|
963
|
+
return rb_ary_subseq(ary, beg, len);
|
964
|
+
}
|
965
|
+
return rb_ary_entry(ary, NUM2LONG(arg));
|
966
|
+
}
|
967
|
+
|
968
|
+
/*
|
969
|
+
* call-seq:
|
970
|
+
* array.at(index) -> obj or nil
|
971
|
+
*
|
972
|
+
* Returns the element at _index_. A
|
973
|
+
* negative index counts from the end of _self_. Returns +nil+
|
974
|
+
* if the index is out of range. See also <code>Array#[]</code>.
|
975
|
+
*
|
976
|
+
* a = [ "a", "b", "c", "d", "e" ]
|
977
|
+
* a.at(0) #=> "a"
|
978
|
+
* a.at(-1) #=> "e"
|
979
|
+
*/
|
980
|
+
|
981
|
+
static VALUE
|
982
|
+
rb_ary_at(VALUE ary, VALUE pos)
|
983
|
+
{
|
984
|
+
return rb_ary_entry(ary, NUM2LONG(pos));
|
985
|
+
}
|
986
|
+
|
987
|
+
/*
|
988
|
+
* call-seq:
|
989
|
+
* array.first -> obj or nil
|
990
|
+
* array.first(n) -> an_array
|
991
|
+
*
|
992
|
+
* Returns the first element, or the first +n+ elements, of the array.
|
993
|
+
* If the array is empty, the first form returns <code>nil</code>, and the
|
994
|
+
* second form returns an empty array.
|
995
|
+
*
|
996
|
+
* a = [ "q", "r", "s", "t" ]
|
997
|
+
* a.first #=> "q"
|
998
|
+
* a.first(2) #=> ["q", "r"]
|
999
|
+
*/
|
1000
|
+
|
1001
|
+
static VALUE
|
1002
|
+
rb_ary_first(int argc, VALUE *argv, VALUE ary)
|
1003
|
+
{
|
1004
|
+
if (argc == 0) {
|
1005
|
+
if (RARRAY_LEN(ary) == 0) return Qnil;
|
1006
|
+
return RARRAY_PTR(ary)[0];
|
1007
|
+
}
|
1008
|
+
else {
|
1009
|
+
return ary_take_first_or_last(argc, argv, ary, ARY_TAKE_FIRST);
|
1010
|
+
}
|
1011
|
+
}
|
1012
|
+
|
1013
|
+
/*
|
1014
|
+
* call-seq:
|
1015
|
+
* array.last -> obj or nil
|
1016
|
+
* array.last(n) -> an_array
|
1017
|
+
*
|
1018
|
+
* Returns the last element(s) of <i>self</i>. If the array is empty,
|
1019
|
+
* the first form returns <code>nil</code>.
|
1020
|
+
*
|
1021
|
+
* a = [ "w", "x", "y", "z" ]
|
1022
|
+
* a.last #=> "z"
|
1023
|
+
* a.last(2) #=> ["y", "z"]
|
1024
|
+
*/
|
1025
|
+
|
1026
|
+
VALUE
|
1027
|
+
rb_ary_last(int argc, VALUE *argv, VALUE ary)
|
1028
|
+
{
|
1029
|
+
if (argc == 0) {
|
1030
|
+
if (RARRAY_LEN(ary) == 0) return Qnil;
|
1031
|
+
return RARRAY_PTR(ary)[RARRAY_LEN(ary)-1];
|
1032
|
+
}
|
1033
|
+
else {
|
1034
|
+
return ary_take_first_or_last(argc, argv, ary, ARY_TAKE_LAST);
|
1035
|
+
}
|
1036
|
+
}
|
1037
|
+
|
1038
|
+
/*
|
1039
|
+
* call-seq:
|
1040
|
+
* array.fetch(index) -> obj
|
1041
|
+
* array.fetch(index, default ) -> obj
|
1042
|
+
* array.fetch(index) {|index| block } -> obj
|
1043
|
+
*
|
1044
|
+
* Tries to return the element at position <i>index</i>. If the index
|
1045
|
+
* lies outside the array, the first form throws an
|
1046
|
+
* <code>IndexError</code> exception, the second form returns
|
1047
|
+
* <i>default</i>, and the third form returns the value of invoking
|
1048
|
+
* the block, passing in the index. Negative values of <i>index</i>
|
1049
|
+
* count from the end of the array.
|
1050
|
+
*
|
1051
|
+
* a = [ 11, 22, 33, 44 ]
|
1052
|
+
* a.fetch(1) #=> 22
|
1053
|
+
* a.fetch(-1) #=> 44
|
1054
|
+
* a.fetch(4, 'cat') #=> "cat"
|
1055
|
+
* a.fetch(4) { |i| i*i } #=> 16
|
1056
|
+
*/
|
1057
|
+
|
1058
|
+
static VALUE
|
1059
|
+
rb_ary_fetch(int argc, VALUE *argv, VALUE ary)
|
1060
|
+
{
|
1061
|
+
VALUE pos, ifnone;
|
1062
|
+
long block_given;
|
1063
|
+
long idx;
|
1064
|
+
|
1065
|
+
rb_scan_args(argc, argv, "11", &pos, &ifnone);
|
1066
|
+
block_given = rb_block_given_p();
|
1067
|
+
if (block_given && argc == 2) {
|
1068
|
+
rb_warn("block supersedes default value argument");
|
1069
|
+
}
|
1070
|
+
idx = NUM2LONG(pos);
|
1071
|
+
|
1072
|
+
if (idx < 0) {
|
1073
|
+
idx += RARRAY_LEN(ary);
|
1074
|
+
}
|
1075
|
+
if (idx < 0 || RARRAY_LEN(ary) <= idx) {
|
1076
|
+
if (block_given) return rb_yield(pos);
|
1077
|
+
if (argc == 1) {
|
1078
|
+
rb_raise(rb_eIndexError, "index %ld out of array", idx);
|
1079
|
+
}
|
1080
|
+
return ifnone;
|
1081
|
+
}
|
1082
|
+
return RARRAY_PTR(ary)[idx];
|
1083
|
+
}
|
1084
|
+
|
1085
|
+
/*
|
1086
|
+
* call-seq:
|
1087
|
+
* array.index(obj) -> int or nil
|
1088
|
+
* array.index {|item| block} -> int or nil
|
1089
|
+
*
|
1090
|
+
* Returns the index of the first object in <i>self</i> such that is
|
1091
|
+
* <code>==</code> to <i>obj</i>. If a block is given instead of an
|
1092
|
+
* argument, returns first object for which <em>block</em> is true.
|
1093
|
+
* Returns <code>nil</code> if no match is found.
|
1094
|
+
*
|
1095
|
+
* a = [ "a", "b", "c" ]
|
1096
|
+
* a.index("b") #=> 1
|
1097
|
+
* a.index("z") #=> nil
|
1098
|
+
* a.index{|x|x=="b"} #=> 1
|
1099
|
+
*
|
1100
|
+
* This is an alias of <code>#find_index</code>.
|
1101
|
+
*/
|
1102
|
+
|
1103
|
+
static VALUE
|
1104
|
+
rb_ary_index(int argc, VALUE *argv, VALUE ary)
|
1105
|
+
{
|
1106
|
+
VALUE val;
|
1107
|
+
long i;
|
1108
|
+
|
1109
|
+
if (argc == 0) {
|
1110
|
+
RETURN_ENUMERATOR(ary, 0, 0);
|
1111
|
+
for (i=0; i<RARRAY_LEN(ary); i++) {
|
1112
|
+
if (RTEST(rb_yield(RARRAY_PTR(ary)[i]))) {
|
1113
|
+
return LONG2NUM(i);
|
1114
|
+
}
|
1115
|
+
}
|
1116
|
+
return Qnil;
|
1117
|
+
}
|
1118
|
+
rb_scan_args(argc, argv, "01", &val);
|
1119
|
+
for (i=0; i<RARRAY_LEN(ary); i++) {
|
1120
|
+
if (rb_equal(RARRAY_PTR(ary)[i], val))
|
1121
|
+
return LONG2NUM(i);
|
1122
|
+
}
|
1123
|
+
return Qnil;
|
1124
|
+
}
|
1125
|
+
|
1126
|
+
/*
|
1127
|
+
* call-seq:
|
1128
|
+
* array.rindex(obj) -> int or nil
|
1129
|
+
*
|
1130
|
+
* Returns the index of the last object in <i>array</i>
|
1131
|
+
* <code>==</code> to <i>obj</i>. If a block is given instead of an
|
1132
|
+
* argument, returns first object for which <em>block</em> is
|
1133
|
+
* true. Returns <code>nil</code> if no match is found.
|
1134
|
+
*
|
1135
|
+
* a = [ "a", "b", "b", "b", "c" ]
|
1136
|
+
* a.rindex("b") #=> 3
|
1137
|
+
* a.rindex("z") #=> nil
|
1138
|
+
* a.rindex{|x|x=="b"} #=> 3
|
1139
|
+
*/
|
1140
|
+
|
1141
|
+
static VALUE
|
1142
|
+
rb_ary_rindex(int argc, VALUE *argv, VALUE ary)
|
1143
|
+
{
|
1144
|
+
VALUE val;
|
1145
|
+
long i = RARRAY_LEN(ary);
|
1146
|
+
|
1147
|
+
if (argc == 0) {
|
1148
|
+
RETURN_ENUMERATOR(ary, 0, 0);
|
1149
|
+
while (i--) {
|
1150
|
+
if (RTEST(rb_yield(RARRAY_PTR(ary)[i])))
|
1151
|
+
return LONG2NUM(i);
|
1152
|
+
if (i > RARRAY_LEN(ary)) {
|
1153
|
+
i = RARRAY_LEN(ary);
|
1154
|
+
}
|
1155
|
+
}
|
1156
|
+
return Qnil;
|
1157
|
+
}
|
1158
|
+
rb_scan_args(argc, argv, "01", &val);
|
1159
|
+
while (i--) {
|
1160
|
+
if (rb_equal(RARRAY_PTR(ary)[i], val))
|
1161
|
+
return LONG2NUM(i);
|
1162
|
+
if (i > RARRAY_LEN(ary)) {
|
1163
|
+
i = RARRAY_LEN(ary);
|
1164
|
+
}
|
1165
|
+
}
|
1166
|
+
return Qnil;
|
1167
|
+
}
|
1168
|
+
|
1169
|
+
VALUE
|
1170
|
+
rb_ary_to_ary(VALUE obj)
|
1171
|
+
{
|
1172
|
+
if (TYPE(obj) == T_ARRAY) {
|
1173
|
+
return obj;
|
1174
|
+
}
|
1175
|
+
if (rb_respond_to(obj, rb_intern("to_ary"))) {
|
1176
|
+
return to_ary(obj);
|
1177
|
+
}
|
1178
|
+
return rb_ary_new3(1, obj);
|
1179
|
+
}
|
1180
|
+
|
1181
|
+
static void
|
1182
|
+
rb_ary_splice(VALUE ary, long beg, long len, VALUE rpl)
|
1183
|
+
{
|
1184
|
+
long rlen;
|
1185
|
+
|
1186
|
+
if (len < 0) rb_raise(rb_eIndexError, "negative length (%ld)", len);
|
1187
|
+
if (beg < 0) {
|
1188
|
+
beg += RARRAY_LEN(ary);
|
1189
|
+
if (beg < 0) {
|
1190
|
+
beg -= RARRAY_LEN(ary);
|
1191
|
+
rb_raise(rb_eIndexError, "index %ld out of array", beg);
|
1192
|
+
}
|
1193
|
+
}
|
1194
|
+
if (RARRAY_LEN(ary) < len || RARRAY_LEN(ary) < beg + len) {
|
1195
|
+
len = RARRAY_LEN(ary) - beg;
|
1196
|
+
}
|
1197
|
+
|
1198
|
+
if (rpl == Qundef) {
|
1199
|
+
rlen = 0;
|
1200
|
+
}
|
1201
|
+
else {
|
1202
|
+
rpl = rb_ary_to_ary(rpl);
|
1203
|
+
rlen = RARRAY_LEN(rpl);
|
1204
|
+
}
|
1205
|
+
rb_ary_modify(ary);
|
1206
|
+
if (beg >= RARRAY_LEN(ary)) {
|
1207
|
+
if (beg > ARY_MAX_SIZE - rlen) {
|
1208
|
+
rb_raise(rb_eIndexError, "index %ld too big", beg);
|
1209
|
+
}
|
1210
|
+
len = beg + rlen;
|
1211
|
+
if (len >= ARY_CAPA(ary)) {
|
1212
|
+
ary_resize_capa(ary, len);
|
1213
|
+
}
|
1214
|
+
rb_mem_clear(RARRAY_PTR(ary) + RARRAY_LEN(ary), beg - RARRAY_LEN(ary));
|
1215
|
+
if (rlen > 0) {
|
1216
|
+
MEMCPY(RARRAY_PTR(ary) + beg, RARRAY_PTR(rpl), VALUE, rlen);
|
1217
|
+
}
|
1218
|
+
ARY_SET_LEN(ary, len);
|
1219
|
+
}
|
1220
|
+
else {
|
1221
|
+
long alen;
|
1222
|
+
|
1223
|
+
alen = RARRAY_LEN(ary) + rlen - len;
|
1224
|
+
if (alen >= ARY_CAPA(ary)) {
|
1225
|
+
ary_resize_capa(ary, alen);
|
1226
|
+
}
|
1227
|
+
|
1228
|
+
if (len != rlen) {
|
1229
|
+
MEMMOVE(RARRAY_PTR(ary) + beg + rlen, RARRAY_PTR(ary) + beg + len,
|
1230
|
+
VALUE, RARRAY_LEN(ary) - (beg + len));
|
1231
|
+
ARY_SET_LEN(ary, alen);
|
1232
|
+
}
|
1233
|
+
if (rlen > 0) {
|
1234
|
+
MEMMOVE(RARRAY_PTR(ary) + beg, RARRAY_PTR(rpl), VALUE, rlen);
|
1235
|
+
}
|
1236
|
+
}
|
1237
|
+
}
|
1238
|
+
|
1239
|
+
/*
|
1240
|
+
* call-seq:
|
1241
|
+
* array[index] = obj -> obj
|
1242
|
+
* array[start, length] = obj or an_array or nil -> obj or an_array or nil
|
1243
|
+
* array[range] = obj or an_array or nil -> obj or an_array or nil
|
1244
|
+
*
|
1245
|
+
* Element Assignment---Sets the element at _index_,
|
1246
|
+
* or replaces a subarray starting at _start_ and
|
1247
|
+
* continuing for _length_ elements, or replaces a subarray
|
1248
|
+
* specified by _range_. If indices are greater than
|
1249
|
+
* the current capacity of the array, the array grows
|
1250
|
+
* automatically. A negative indices will count backward
|
1251
|
+
* from the end of the array. Inserts elements if _length_ is
|
1252
|
+
* zero. An +IndexError+ is raised if a negative index points
|
1253
|
+
* past the beginning of the array. See also
|
1254
|
+
* <code>Array#push</code>, and <code>Array#unshift</code>.
|
1255
|
+
*
|
1256
|
+
* a = Array.new
|
1257
|
+
* a[4] = "4"; #=> [nil, nil, nil, nil, "4"]
|
1258
|
+
* a[0, 3] = [ 'a', 'b', 'c' ] #=> ["a", "b", "c", nil, "4"]
|
1259
|
+
* a[1..2] = [ 1, 2 ] #=> ["a", 1, 2, nil, "4"]
|
1260
|
+
* a[0, 2] = "?" #=> ["?", 2, nil, "4"]
|
1261
|
+
* a[0..2] = "A" #=> ["A", "4"]
|
1262
|
+
* a[-1] = "Z" #=> ["A", "Z"]
|
1263
|
+
* a[1..-1] = nil #=> ["A", nil]
|
1264
|
+
* a[1..-1] = [] #=> ["A"]
|
1265
|
+
*/
|
1266
|
+
|
1267
|
+
static VALUE
|
1268
|
+
rb_ary_aset(int argc, VALUE *argv, VALUE ary)
|
1269
|
+
{
|
1270
|
+
long offset, beg, len;
|
1271
|
+
|
1272
|
+
if (argc == 3) {
|
1273
|
+
beg = NUM2LONG(argv[0]);
|
1274
|
+
len = NUM2LONG(argv[1]);
|
1275
|
+
rb_ary_splice(ary, beg, len, argv[2]);
|
1276
|
+
return argv[2];
|
1277
|
+
}
|
1278
|
+
if (argc != 2) {
|
1279
|
+
rb_raise(rb_eArgError, "wrong number of arguments (%d for 2)", argc);
|
1280
|
+
}
|
1281
|
+
if (FIXNUM_P(argv[0])) {
|
1282
|
+
offset = FIX2LONG(argv[0]);
|
1283
|
+
goto fixnum;
|
1284
|
+
}
|
1285
|
+
if (rb_range_beg_len(argv[0], &beg, &len, RARRAY_LEN(ary), 1)) {
|
1286
|
+
/* check if idx is Range */
|
1287
|
+
rb_ary_splice(ary, beg, len, argv[1]);
|
1288
|
+
return argv[1];
|
1289
|
+
}
|
1290
|
+
|
1291
|
+
offset = NUM2LONG(argv[0]);
|
1292
|
+
fixnum:
|
1293
|
+
rb_ary_store(ary, offset, argv[1]);
|
1294
|
+
return argv[1];
|
1295
|
+
}
|
1296
|
+
|
1297
|
+
/*
|
1298
|
+
* call-seq:
|
1299
|
+
* array.insert(index, obj...) -> array
|
1300
|
+
*
|
1301
|
+
* Inserts the given values before the element with the given index
|
1302
|
+
* (which may be negative).
|
1303
|
+
*
|
1304
|
+
* a = %w{ a b c d }
|
1305
|
+
* a.insert(2, 99) #=> ["a", "b", 99, "c", "d"]
|
1306
|
+
* a.insert(-2, 1, 2, 3) #=> ["a", "b", 99, "c", 1, 2, 3, "d"]
|
1307
|
+
*/
|
1308
|
+
|
1309
|
+
static VALUE
|
1310
|
+
rb_ary_insert(int argc, VALUE *argv, VALUE ary)
|
1311
|
+
{
|
1312
|
+
long pos;
|
1313
|
+
|
1314
|
+
if (argc == 1) return ary;
|
1315
|
+
if (argc < 1) {
|
1316
|
+
rb_raise(rb_eArgError, "wrong number of arguments (at least 1)");
|
1317
|
+
}
|
1318
|
+
pos = NUM2LONG(argv[0]);
|
1319
|
+
if (pos == -1) {
|
1320
|
+
pos = RARRAY_LEN(ary);
|
1321
|
+
}
|
1322
|
+
if (pos < 0) {
|
1323
|
+
pos++;
|
1324
|
+
}
|
1325
|
+
rb_ary_splice(ary, pos, 0, rb_ary_new4(argc - 1, argv + 1));
|
1326
|
+
return ary;
|
1327
|
+
}
|
1328
|
+
|
1329
|
+
/*
|
1330
|
+
* call-seq:
|
1331
|
+
* array.each {|item| block } -> array
|
1332
|
+
*
|
1333
|
+
* Calls <i>block</i> once for each element in <i>self</i>, passing that
|
1334
|
+
* element as a parameter.
|
1335
|
+
*
|
1336
|
+
* a = [ "a", "b", "c" ]
|
1337
|
+
* a.each {|x| print x, " -- " }
|
1338
|
+
*
|
1339
|
+
* produces:
|
1340
|
+
*
|
1341
|
+
* a -- b -- c --
|
1342
|
+
*/
|
1343
|
+
|
1344
|
+
VALUE
|
1345
|
+
rb_ary_each(VALUE ary)
|
1346
|
+
{
|
1347
|
+
long i;
|
1348
|
+
|
1349
|
+
RETURN_ENUMERATOR(ary, 0, 0);
|
1350
|
+
for (i=0; i<RARRAY_LEN(ary); i++) {
|
1351
|
+
rb_yield(RARRAY_PTR(ary)[i]);
|
1352
|
+
}
|
1353
|
+
return ary;
|
1354
|
+
}
|
1355
|
+
|
1356
|
+
/*
|
1357
|
+
* call-seq:
|
1358
|
+
* array.each_index {|index| block } -> array
|
1359
|
+
*
|
1360
|
+
* Same as <code>Array#each</code>, but passes the index of the element
|
1361
|
+
* instead of the element itself.
|
1362
|
+
*
|
1363
|
+
* a = [ "a", "b", "c" ]
|
1364
|
+
* a.each_index {|x| print x, " -- " }
|
1365
|
+
*
|
1366
|
+
* produces:
|
1367
|
+
*
|
1368
|
+
* 0 -- 1 -- 2 --
|
1369
|
+
*/
|
1370
|
+
|
1371
|
+
static VALUE
|
1372
|
+
rb_ary_each_index(VALUE ary)
|
1373
|
+
{
|
1374
|
+
long i;
|
1375
|
+
RETURN_ENUMERATOR(ary, 0, 0);
|
1376
|
+
|
1377
|
+
for (i=0; i<RARRAY_LEN(ary); i++) {
|
1378
|
+
rb_yield(LONG2NUM(i));
|
1379
|
+
}
|
1380
|
+
return ary;
|
1381
|
+
}
|
1382
|
+
|
1383
|
+
/*
|
1384
|
+
* call-seq:
|
1385
|
+
* array.reverse_each {|item| block }
|
1386
|
+
*
|
1387
|
+
* Same as <code>Array#each</code>, but traverses <i>self</i> in reverse
|
1388
|
+
* order.
|
1389
|
+
*
|
1390
|
+
* a = [ "a", "b", "c" ]
|
1391
|
+
* a.reverse_each {|x| print x, " " }
|
1392
|
+
*
|
1393
|
+
* produces:
|
1394
|
+
*
|
1395
|
+
* c b a
|
1396
|
+
*/
|
1397
|
+
|
1398
|
+
static VALUE
|
1399
|
+
rb_ary_reverse_each(VALUE ary)
|
1400
|
+
{
|
1401
|
+
long len;
|
1402
|
+
|
1403
|
+
RETURN_ENUMERATOR(ary, 0, 0);
|
1404
|
+
len = RARRAY_LEN(ary);
|
1405
|
+
while (len--) {
|
1406
|
+
rb_yield(RARRAY_PTR(ary)[len]);
|
1407
|
+
if (RARRAY_LEN(ary) < len) {
|
1408
|
+
len = RARRAY_LEN(ary);
|
1409
|
+
}
|
1410
|
+
}
|
1411
|
+
return ary;
|
1412
|
+
}
|
1413
|
+
|
1414
|
+
/*
|
1415
|
+
* call-seq:
|
1416
|
+
* array.length -> int
|
1417
|
+
*
|
1418
|
+
* Returns the number of elements in <i>self</i>. May be zero.
|
1419
|
+
*
|
1420
|
+
* [ 1, 2, 3, 4, 5 ].length #=> 5
|
1421
|
+
*/
|
1422
|
+
|
1423
|
+
static VALUE
|
1424
|
+
rb_ary_length(VALUE ary)
|
1425
|
+
{
|
1426
|
+
long len = RARRAY_LEN(ary);
|
1427
|
+
return LONG2NUM(len);
|
1428
|
+
}
|
1429
|
+
|
1430
|
+
/*
|
1431
|
+
* call-seq:
|
1432
|
+
* array.empty? -> true or false
|
1433
|
+
*
|
1434
|
+
* Returns <code>true</code> if <i>self</i> array contains no elements.
|
1435
|
+
*
|
1436
|
+
* [].empty? #=> true
|
1437
|
+
*/
|
1438
|
+
|
1439
|
+
static VALUE
|
1440
|
+
rb_ary_empty_p(VALUE ary)
|
1441
|
+
{
|
1442
|
+
if (RARRAY_LEN(ary) == 0)
|
1443
|
+
return Qtrue;
|
1444
|
+
return Qfalse;
|
1445
|
+
}
|
1446
|
+
|
1447
|
+
VALUE
|
1448
|
+
rb_ary_dup(VALUE ary)
|
1449
|
+
{
|
1450
|
+
VALUE dup = rb_ary_new2(RARRAY_LEN(ary));
|
1451
|
+
int is_embed = ARY_EMBED_P(dup);
|
1452
|
+
DUPSETUP(dup, ary);
|
1453
|
+
if (is_embed) FL_SET_EMBED(dup);
|
1454
|
+
MEMCPY(RARRAY_PTR(dup), RARRAY_PTR(ary), VALUE, RARRAY_LEN(ary));
|
1455
|
+
ARY_SET_LEN(dup, RARRAY_LEN(ary));
|
1456
|
+
|
1457
|
+
return dup;
|
1458
|
+
}
|
1459
|
+
|
1460
|
+
extern VALUE rb_output_fs;
|
1461
|
+
|
1462
|
+
static VALUE
|
1463
|
+
recursive_join(VALUE ary, VALUE argp, int recur)
|
1464
|
+
{
|
1465
|
+
VALUE *arg = (VALUE *)argp;
|
1466
|
+
if (recur) {
|
1467
|
+
return rb_usascii_str_new2("[...]");
|
1468
|
+
}
|
1469
|
+
return rb_ary_join(arg[0], arg[1]);
|
1470
|
+
}
|
1471
|
+
|
1472
|
+
VALUE
|
1473
|
+
rb_ary_join(VALUE ary, VALUE sep)
|
1474
|
+
{
|
1475
|
+
long len = 1, i;
|
1476
|
+
int taint = Qfalse;
|
1477
|
+
int untrust = Qfalse;
|
1478
|
+
VALUE result, tmp;
|
1479
|
+
|
1480
|
+
if (RARRAY_LEN(ary) == 0) return rb_str_new(0, 0);
|
1481
|
+
if (OBJ_TAINTED(ary) || OBJ_TAINTED(sep)) taint = Qtrue;
|
1482
|
+
if (OBJ_UNTRUSTED(ary) || OBJ_UNTRUSTED(sep)) untrust = Qtrue;
|
1483
|
+
|
1484
|
+
for (i=0; i<RARRAY_LEN(ary); i++) {
|
1485
|
+
tmp = rb_check_string_type(RARRAY_PTR(ary)[i]);
|
1486
|
+
len += NIL_P(tmp) ? 10 : RSTRING_LEN(tmp);
|
1487
|
+
}
|
1488
|
+
if (!NIL_P(sep)) {
|
1489
|
+
StringValue(sep);
|
1490
|
+
len += RSTRING_LEN(sep) * (RARRAY_LEN(ary) - 1);
|
1491
|
+
}
|
1492
|
+
result = rb_str_buf_new(len);
|
1493
|
+
for (i=0; i<RARRAY_LEN(ary); i++) {
|
1494
|
+
tmp = RARRAY_PTR(ary)[i];
|
1495
|
+
switch (TYPE(tmp)) {
|
1496
|
+
case T_STRING:
|
1497
|
+
break;
|
1498
|
+
case T_ARRAY:
|
1499
|
+
if (tmp == ary) {
|
1500
|
+
tmp = rb_usascii_str_new2("[...]");
|
1501
|
+
}
|
1502
|
+
else {
|
1503
|
+
VALUE args[2];
|
1504
|
+
|
1505
|
+
args[0] = tmp;
|
1506
|
+
args[1] = sep;
|
1507
|
+
tmp = rb_exec_recursive(recursive_join, ary, (VALUE)args);
|
1508
|
+
}
|
1509
|
+
break;
|
1510
|
+
default:
|
1511
|
+
tmp = rb_obj_as_string(tmp);
|
1512
|
+
}
|
1513
|
+
if (i > 0 && !NIL_P(sep))
|
1514
|
+
rb_str_buf_append(result, sep);
|
1515
|
+
rb_str_buf_append(result, tmp);
|
1516
|
+
if (OBJ_TAINTED(tmp)) taint = Qtrue;
|
1517
|
+
if (OBJ_UNTRUSTED(tmp)) untrust = Qtrue;
|
1518
|
+
}
|
1519
|
+
|
1520
|
+
if (taint) OBJ_TAINT(result);
|
1521
|
+
if (untrust) OBJ_UNTRUST(result);
|
1522
|
+
return result;
|
1523
|
+
}
|
1524
|
+
|
1525
|
+
/*
|
1526
|
+
* call-seq:
|
1527
|
+
* array.join(sep=$,) -> str
|
1528
|
+
*
|
1529
|
+
* Returns a string created by converting each element of the array to
|
1530
|
+
* a string, separated by <i>sep</i>.
|
1531
|
+
*
|
1532
|
+
* [ "a", "b", "c" ].join #=> "abc"
|
1533
|
+
* [ "a", "b", "c" ].join("-") #=> "a-b-c"
|
1534
|
+
*/
|
1535
|
+
|
1536
|
+
static VALUE
|
1537
|
+
rb_ary_join_m(int argc, VALUE *argv, VALUE ary)
|
1538
|
+
{
|
1539
|
+
VALUE sep;
|
1540
|
+
|
1541
|
+
rb_scan_args(argc, argv, "01", &sep);
|
1542
|
+
if (NIL_P(sep)) sep = rb_output_fs;
|
1543
|
+
|
1544
|
+
return rb_ary_join(ary, sep);
|
1545
|
+
}
|
1546
|
+
|
1547
|
+
static VALUE
|
1548
|
+
inspect_ary(VALUE ary, VALUE dummy, int recur)
|
1549
|
+
{
|
1550
|
+
int tainted = OBJ_TAINTED(ary);
|
1551
|
+
int untrust = OBJ_UNTRUSTED(ary);
|
1552
|
+
long i;
|
1553
|
+
VALUE s, str;
|
1554
|
+
|
1555
|
+
if (recur) return rb_tainted_str_new2("[...]");
|
1556
|
+
str = rb_str_buf_new2("[");
|
1557
|
+
for (i=0; i<RARRAY_LEN(ary); i++) {
|
1558
|
+
s = rb_inspect(RARRAY_PTR(ary)[i]);
|
1559
|
+
if (OBJ_TAINTED(s)) tainted = Qtrue;
|
1560
|
+
if (OBJ_UNTRUSTED(s)) untrust = Qtrue;
|
1561
|
+
if (i > 0) rb_str_buf_cat2(str, ", ");
|
1562
|
+
rb_str_buf_append(str, s);
|
1563
|
+
}
|
1564
|
+
rb_str_buf_cat2(str, "]");
|
1565
|
+
if (tainted) OBJ_TAINT(str);
|
1566
|
+
if (untrust) OBJ_UNTRUST(str);
|
1567
|
+
return str;
|
1568
|
+
}
|
1569
|
+
|
1570
|
+
/*
|
1571
|
+
* call-seq:
|
1572
|
+
* array.to_s -> string
|
1573
|
+
* array.inspect -> string
|
1574
|
+
*
|
1575
|
+
* Create a printable version of <i>array</i>.
|
1576
|
+
*/
|
1577
|
+
|
1578
|
+
static VALUE
|
1579
|
+
rb_ary_inspect(VALUE ary)
|
1580
|
+
{
|
1581
|
+
if (RARRAY_LEN(ary) == 0) return rb_usascii_str_new2("[]");
|
1582
|
+
return rb_exec_recursive(inspect_ary, ary, 0);
|
1583
|
+
}
|
1584
|
+
|
1585
|
+
VALUE
|
1586
|
+
rb_ary_to_s(VALUE ary)
|
1587
|
+
{
|
1588
|
+
return rb_ary_inspect(ary);
|
1589
|
+
}
|
1590
|
+
|
1591
|
+
/*
|
1592
|
+
* call-seq:
|
1593
|
+
* array.to_a -> array
|
1594
|
+
*
|
1595
|
+
* Returns _self_. If called on a subclass of Array, converts
|
1596
|
+
* the receiver to an Array object.
|
1597
|
+
*/
|
1598
|
+
|
1599
|
+
static VALUE
|
1600
|
+
rb_ary_to_a(VALUE ary)
|
1601
|
+
{
|
1602
|
+
if (rb_obj_class(ary) != rb_cArray) {
|
1603
|
+
VALUE dup = rb_ary_new2(RARRAY_LEN(ary));
|
1604
|
+
rb_ary_replace(dup, ary);
|
1605
|
+
return dup;
|
1606
|
+
}
|
1607
|
+
return ary;
|
1608
|
+
}
|
1609
|
+
|
1610
|
+
/*
|
1611
|
+
* call-seq:
|
1612
|
+
* array.to_ary -> array
|
1613
|
+
*
|
1614
|
+
* Returns _self_.
|
1615
|
+
*/
|
1616
|
+
|
1617
|
+
static VALUE
|
1618
|
+
rb_ary_to_ary_m(VALUE ary)
|
1619
|
+
{
|
1620
|
+
return ary;
|
1621
|
+
}
|
1622
|
+
|
1623
|
+
VALUE
|
1624
|
+
rb_ary_reverse(VALUE ary)
|
1625
|
+
{
|
1626
|
+
VALUE *p1, *p2;
|
1627
|
+
VALUE tmp;
|
1628
|
+
|
1629
|
+
rb_ary_modify(ary);
|
1630
|
+
if (RARRAY_LEN(ary) > 1) {
|
1631
|
+
p1 = RARRAY_PTR(ary);
|
1632
|
+
p2 = p1 + RARRAY_LEN(ary) - 1; /* points last item */
|
1633
|
+
|
1634
|
+
while (p1 < p2) {
|
1635
|
+
tmp = *p1;
|
1636
|
+
*p1++ = *p2;
|
1637
|
+
*p2-- = tmp;
|
1638
|
+
}
|
1639
|
+
}
|
1640
|
+
return ary;
|
1641
|
+
}
|
1642
|
+
|
1643
|
+
/*
|
1644
|
+
* call-seq:
|
1645
|
+
* array.reverse! -> array
|
1646
|
+
*
|
1647
|
+
* Reverses _self_ in place.
|
1648
|
+
*
|
1649
|
+
* a = [ "a", "b", "c" ]
|
1650
|
+
* a.reverse! #=> ["c", "b", "a"]
|
1651
|
+
* a #=> ["c", "b", "a"]
|
1652
|
+
*/
|
1653
|
+
|
1654
|
+
static VALUE
|
1655
|
+
rb_ary_reverse_bang(VALUE ary)
|
1656
|
+
{
|
1657
|
+
return rb_ary_reverse(ary);
|
1658
|
+
}
|
1659
|
+
|
1660
|
+
/*
|
1661
|
+
* call-seq:
|
1662
|
+
* array.reverse -> an_array
|
1663
|
+
*
|
1664
|
+
* Returns a new array containing <i>self</i>'s elements in reverse order.
|
1665
|
+
*
|
1666
|
+
* [ "a", "b", "c" ].reverse #=> ["c", "b", "a"]
|
1667
|
+
* [ 1 ].reverse #=> [1]
|
1668
|
+
*/
|
1669
|
+
|
1670
|
+
static VALUE
|
1671
|
+
rb_ary_reverse_m(VALUE ary)
|
1672
|
+
{
|
1673
|
+
return rb_ary_reverse(rb_ary_dup(ary));
|
1674
|
+
}
|
1675
|
+
|
1676
|
+
struct ary_sort_data {
|
1677
|
+
VALUE ary;
|
1678
|
+
int opt_methods;
|
1679
|
+
int opt_inited;
|
1680
|
+
};
|
1681
|
+
|
1682
|
+
enum {
|
1683
|
+
sort_opt_Fixnum,
|
1684
|
+
sort_opt_String,
|
1685
|
+
sort_optimizable_count
|
1686
|
+
};
|
1687
|
+
|
1688
|
+
#define STRING_P(s) (TYPE(s) == T_STRING && CLASS_OF(s) == rb_cString)
|
1689
|
+
|
1690
|
+
#define SORT_OPTIMIZABLE_BIT(type) (1U << TOKEN_PASTE(sort_opt_,type))
|
1691
|
+
#define SORT_OPTIMIZABLE(data, type) \
|
1692
|
+
((data->opt_inited & SORT_OPTIMIZABLE_BIT(type)) ? \
|
1693
|
+
(data->opt_methods & SORT_OPTIMIZABLE_BIT(type)) : \
|
1694
|
+
((data->opt_inited |= SORT_OPTIMIZABLE_BIT(type)), \
|
1695
|
+
rb_method_basic_definition_p(TOKEN_PASTE(rb_c,type), id_cmp) && \
|
1696
|
+
(data->opt_methods |= SORT_OPTIMIZABLE_BIT(type))))
|
1697
|
+
|
1698
|
+
static VALUE
|
1699
|
+
sort_reentered(VALUE ary)
|
1700
|
+
{
|
1701
|
+
if (RBASIC(ary)->klass) {
|
1702
|
+
rb_raise(rb_eRuntimeError, "sort reentered");
|
1703
|
+
}
|
1704
|
+
return Qnil;
|
1705
|
+
}
|
1706
|
+
|
1707
|
+
static int
|
1708
|
+
sort_1(const void *ap, const void *bp, void *dummy)
|
1709
|
+
{
|
1710
|
+
struct ary_sort_data *data = dummy;
|
1711
|
+
VALUE retval = sort_reentered(data->ary);
|
1712
|
+
VALUE a = *(const VALUE *)ap, b = *(const VALUE *)bp;
|
1713
|
+
int n;
|
1714
|
+
|
1715
|
+
retval = rb_yield_values(2, a, b);
|
1716
|
+
n = rb_cmpint(retval, a, b);
|
1717
|
+
sort_reentered(data->ary);
|
1718
|
+
return n;
|
1719
|
+
}
|
1720
|
+
|
1721
|
+
static int
|
1722
|
+
sort_2(const void *ap, const void *bp, void *dummy)
|
1723
|
+
{
|
1724
|
+
struct ary_sort_data *data = dummy;
|
1725
|
+
VALUE retval = sort_reentered(data->ary);
|
1726
|
+
VALUE a = *(const VALUE *)ap, b = *(const VALUE *)bp;
|
1727
|
+
int n;
|
1728
|
+
|
1729
|
+
if (FIXNUM_P(a) && FIXNUM_P(b) && SORT_OPTIMIZABLE(data, Fixnum)) {
|
1730
|
+
if ((long)a > (long)b) return 1;
|
1731
|
+
if ((long)a < (long)b) return -1;
|
1732
|
+
return 0;
|
1733
|
+
}
|
1734
|
+
if (STRING_P(a) && STRING_P(b) && SORT_OPTIMIZABLE(data, String)) {
|
1735
|
+
return rb_str_cmp(a, b);
|
1736
|
+
}
|
1737
|
+
|
1738
|
+
retval = rb_funcall(a, id_cmp, 1, b);
|
1739
|
+
n = rb_cmpint(retval, a, b);
|
1740
|
+
sort_reentered(data->ary);
|
1741
|
+
|
1742
|
+
return n;
|
1743
|
+
}
|
1744
|
+
|
1745
|
+
/*
|
1746
|
+
* call-seq:
|
1747
|
+
* array.sort! -> array
|
1748
|
+
* array.sort! {| a,b | block } -> array
|
1749
|
+
*
|
1750
|
+
* Sorts _self_. Comparisons for
|
1751
|
+
* the sort will be done using the <code><=></code> operator or using
|
1752
|
+
* an optional code block. The block implements a comparison between
|
1753
|
+
* <i>a</i> and <i>b</i>, returning -1, 0, or +1. See also
|
1754
|
+
* <code>Enumerable#sort_by</code>.
|
1755
|
+
*
|
1756
|
+
* a = [ "d", "a", "e", "c", "b" ]
|
1757
|
+
* a.sort #=> ["a", "b", "c", "d", "e"]
|
1758
|
+
* a.sort {|x,y| y <=> x } #=> ["e", "d", "c", "b", "a"]
|
1759
|
+
*/
|
1760
|
+
|
1761
|
+
VALUE
|
1762
|
+
rb_ary_sort_bang(VALUE ary)
|
1763
|
+
{
|
1764
|
+
rb_ary_modify(ary);
|
1765
|
+
assert(!ARY_SHARED_P(ary));
|
1766
|
+
if (RARRAY_LEN(ary) > 1) {
|
1767
|
+
VALUE tmp = ary_make_substitution(ary); /* only ary refers tmp */
|
1768
|
+
struct ary_sort_data data;
|
1769
|
+
|
1770
|
+
RBASIC(tmp)->klass = 0;
|
1771
|
+
data.ary = tmp;
|
1772
|
+
data.opt_methods = 0;
|
1773
|
+
data.opt_inited = 0;
|
1774
|
+
ruby_qsort(RARRAY_PTR(tmp), RARRAY_LEN(tmp), sizeof(VALUE),
|
1775
|
+
rb_block_given_p()?sort_1:sort_2, &data);
|
1776
|
+
|
1777
|
+
if (ARY_EMBED_P(tmp)) {
|
1778
|
+
assert(ARY_EMBED_P(tmp));
|
1779
|
+
if (ARY_SHARED_P(ary)) { /* ary might be destructively operated in the given block */
|
1780
|
+
rb_ary_unshare(ary);
|
1781
|
+
}
|
1782
|
+
FL_SET_EMBED(ary);
|
1783
|
+
MEMCPY(RARRAY_PTR(ary), ARY_EMBED_PTR(tmp), VALUE, ARY_EMBED_LEN(tmp));
|
1784
|
+
ARY_SET_LEN(ary, ARY_EMBED_LEN(tmp));
|
1785
|
+
}
|
1786
|
+
else {
|
1787
|
+
assert(!ARY_EMBED_P(tmp));
|
1788
|
+
if (ARY_HEAP_PTR(ary) == ARY_HEAP_PTR(tmp)) {
|
1789
|
+
assert(!ARY_EMBED_P(ary));
|
1790
|
+
FL_UNSET_SHARED(ary);
|
1791
|
+
ARY_SET_CAPA(ary, ARY_CAPA(tmp));
|
1792
|
+
}
|
1793
|
+
else {
|
1794
|
+
assert(!ARY_SHARED_P(tmp));
|
1795
|
+
if (ARY_EMBED_P(ary)) {
|
1796
|
+
FL_UNSET_EMBED(ary);
|
1797
|
+
}
|
1798
|
+
else if (ARY_SHARED_P(ary)) {
|
1799
|
+
/* ary might be destructively operated in the given block */
|
1800
|
+
rb_ary_unshare(ary);
|
1801
|
+
}
|
1802
|
+
else {
|
1803
|
+
xfree(ARY_HEAP_PTR(ary));
|
1804
|
+
}
|
1805
|
+
ARY_SET_PTR(ary, RARRAY_PTR(tmp));
|
1806
|
+
ARY_SET_HEAP_LEN(ary, RARRAY_LEN(tmp));
|
1807
|
+
ARY_SET_CAPA(ary, ARY_CAPA(tmp));
|
1808
|
+
}
|
1809
|
+
/* tmp was lost ownership for the ptr */
|
1810
|
+
FL_UNSET(tmp, FL_FREEZE);
|
1811
|
+
FL_SET_EMBED(tmp);
|
1812
|
+
ARY_SET_EMBED_LEN(tmp, 0);
|
1813
|
+
FL_SET(tmp, FL_FREEZE);
|
1814
|
+
}
|
1815
|
+
/* tmp will be GC'ed. */
|
1816
|
+
RBASIC(tmp)->klass = rb_cArray;
|
1817
|
+
}
|
1818
|
+
return ary;
|
1819
|
+
}
|
1820
|
+
|
1821
|
+
/*
|
1822
|
+
* call-seq:
|
1823
|
+
* array.sort -> an_array
|
1824
|
+
* array.sort {| a,b | block } -> an_array
|
1825
|
+
*
|
1826
|
+
* Returns a new array created by sorting <i>self</i>. Comparisons for
|
1827
|
+
* the sort will be done using the <code><=></code> operator or using
|
1828
|
+
* an optional code block. The block implements a comparison between
|
1829
|
+
* <i>a</i> and <i>b</i>, returning -1, 0, or +1. See also
|
1830
|
+
* <code>Enumerable#sort_by</code>.
|
1831
|
+
*
|
1832
|
+
* a = [ "d", "a", "e", "c", "b" ]
|
1833
|
+
* a.sort #=> ["a", "b", "c", "d", "e"]
|
1834
|
+
* a.sort {|x,y| y <=> x } #=> ["e", "d", "c", "b", "a"]
|
1835
|
+
*/
|
1836
|
+
|
1837
|
+
VALUE
|
1838
|
+
rb_ary_sort(VALUE ary)
|
1839
|
+
{
|
1840
|
+
ary = rb_ary_dup(ary);
|
1841
|
+
rb_ary_sort_bang(ary);
|
1842
|
+
return ary;
|
1843
|
+
}
|
1844
|
+
|
1845
|
+
|
1846
|
+
/*
|
1847
|
+
* call-seq:
|
1848
|
+
* array.collect {|item| block } -> an_array
|
1849
|
+
* array.map {|item| block } -> an_array
|
1850
|
+
*
|
1851
|
+
* Invokes <i>block</i> once for each element of <i>self</i>. Creates a
|
1852
|
+
* new array containing the values returned by the block.
|
1853
|
+
* See also <code>Enumerable#collect</code>.
|
1854
|
+
*
|
1855
|
+
* a = [ "a", "b", "c", "d" ]
|
1856
|
+
* a.collect {|x| x + "!" } #=> ["a!", "b!", "c!", "d!"]
|
1857
|
+
* a #=> ["a", "b", "c", "d"]
|
1858
|
+
*/
|
1859
|
+
|
1860
|
+
static VALUE
|
1861
|
+
rb_ary_collect(VALUE ary)
|
1862
|
+
{
|
1863
|
+
long i;
|
1864
|
+
VALUE collect;
|
1865
|
+
|
1866
|
+
RETURN_ENUMERATOR(ary, 0, 0);
|
1867
|
+
collect = rb_ary_new2(RARRAY_LEN(ary));
|
1868
|
+
for (i = 0; i < RARRAY_LEN(ary); i++) {
|
1869
|
+
rb_ary_push(collect, rb_yield(RARRAY_PTR(ary)[i]));
|
1870
|
+
}
|
1871
|
+
return collect;
|
1872
|
+
}
|
1873
|
+
|
1874
|
+
|
1875
|
+
/*
|
1876
|
+
* call-seq:
|
1877
|
+
* array.collect! {|item| block } -> array
|
1878
|
+
* array.map! {|item| block } -> array
|
1879
|
+
*
|
1880
|
+
* Invokes the block once for each element of _self_, replacing the
|
1881
|
+
* element with the value returned by _block_.
|
1882
|
+
* See also <code>Enumerable#collect</code>.
|
1883
|
+
*
|
1884
|
+
* a = [ "a", "b", "c", "d" ]
|
1885
|
+
* a.collect! {|x| x + "!" }
|
1886
|
+
* a #=> [ "a!", "b!", "c!", "d!" ]
|
1887
|
+
*/
|
1888
|
+
|
1889
|
+
static VALUE
|
1890
|
+
rb_ary_collect_bang(VALUE ary)
|
1891
|
+
{
|
1892
|
+
long i;
|
1893
|
+
|
1894
|
+
RETURN_ENUMERATOR(ary, 0, 0);
|
1895
|
+
rb_ary_modify(ary);
|
1896
|
+
for (i = 0; i < RARRAY_LEN(ary); i++) {
|
1897
|
+
rb_ary_store(ary, i, rb_yield(RARRAY_PTR(ary)[i]));
|
1898
|
+
}
|
1899
|
+
return ary;
|
1900
|
+
}
|
1901
|
+
|
1902
|
+
VALUE
|
1903
|
+
rb_get_values_at(VALUE obj, long olen, int argc, VALUE *argv, VALUE (*func) (VALUE, long))
|
1904
|
+
{
|
1905
|
+
VALUE result = rb_ary_new2(argc);
|
1906
|
+
long beg, len, i, j;
|
1907
|
+
|
1908
|
+
for (i=0; i<argc; i++) {
|
1909
|
+
if (FIXNUM_P(argv[i])) {
|
1910
|
+
rb_ary_push(result, (*func)(obj, FIX2LONG(argv[i])));
|
1911
|
+
continue;
|
1912
|
+
}
|
1913
|
+
/* check if idx is Range */
|
1914
|
+
switch (rb_range_beg_len(argv[i], &beg, &len, olen, 0)) {
|
1915
|
+
case Qfalse:
|
1916
|
+
break;
|
1917
|
+
case Qnil:
|
1918
|
+
continue;
|
1919
|
+
default:
|
1920
|
+
for (j=0; j<len; j++) {
|
1921
|
+
rb_ary_push(result, (*func)(obj, j+beg));
|
1922
|
+
}
|
1923
|
+
continue;
|
1924
|
+
}
|
1925
|
+
rb_ary_push(result, (*func)(obj, NUM2LONG(argv[i])));
|
1926
|
+
}
|
1927
|
+
return result;
|
1928
|
+
}
|
1929
|
+
|
1930
|
+
/*
|
1931
|
+
* call-seq:
|
1932
|
+
* array.values_at(selector,... ) -> an_array
|
1933
|
+
*
|
1934
|
+
* Returns an array containing the elements in
|
1935
|
+
* _self_ corresponding to the given selector(s). The selectors
|
1936
|
+
* may be either integer indices or ranges.
|
1937
|
+
* See also <code>Array#select</code>.
|
1938
|
+
*
|
1939
|
+
* a = %w{ a b c d e f }
|
1940
|
+
* a.values_at(1, 3, 5)
|
1941
|
+
* a.values_at(1, 3, 5, 7)
|
1942
|
+
* a.values_at(-1, -3, -5, -7)
|
1943
|
+
* a.values_at(1..3, 2...5)
|
1944
|
+
*/
|
1945
|
+
|
1946
|
+
static VALUE
|
1947
|
+
rb_ary_values_at(int argc, VALUE *argv, VALUE ary)
|
1948
|
+
{
|
1949
|
+
return rb_get_values_at(ary, RARRAY_LEN(ary), argc, argv, rb_ary_entry);
|
1950
|
+
}
|
1951
|
+
|
1952
|
+
|
1953
|
+
/*
|
1954
|
+
* call-seq:
|
1955
|
+
* array.select {|item| block } -> an_array
|
1956
|
+
*
|
1957
|
+
* Invokes the block passing in successive elements from <i>array</i>,
|
1958
|
+
* returning an array containing those elements for which the block
|
1959
|
+
* returns a true value (equivalent to <code>Enumerable#select</code>).
|
1960
|
+
*
|
1961
|
+
* a = %w{ a b c d e f }
|
1962
|
+
* a.select {|v| v =~ /[aeiou]/} #=> ["a", "e"]
|
1963
|
+
*/
|
1964
|
+
|
1965
|
+
static VALUE
|
1966
|
+
rb_ary_select(VALUE ary)
|
1967
|
+
{
|
1968
|
+
VALUE result;
|
1969
|
+
long i;
|
1970
|
+
|
1971
|
+
RETURN_ENUMERATOR(ary, 0, 0);
|
1972
|
+
result = rb_ary_new2(RARRAY_LEN(ary));
|
1973
|
+
for (i = 0; i < RARRAY_LEN(ary); i++) {
|
1974
|
+
if (RTEST(rb_yield(RARRAY_PTR(ary)[i]))) {
|
1975
|
+
rb_ary_push(result, rb_ary_elt(ary, i));
|
1976
|
+
}
|
1977
|
+
}
|
1978
|
+
return result;
|
1979
|
+
}
|
1980
|
+
|
1981
|
+
/*
|
1982
|
+
* call-seq:
|
1983
|
+
* array.delete(obj) -> obj or nil
|
1984
|
+
* array.delete(obj) { block } -> obj or nil
|
1985
|
+
*
|
1986
|
+
* Deletes items from <i>self</i> that are equal to <i>obj</i>. If
|
1987
|
+
* the item is not found, returns <code>nil</code>. If the optional
|
1988
|
+
* code block is given, returns the result of <i>block</i> if the item
|
1989
|
+
* is not found.
|
1990
|
+
*
|
1991
|
+
* a = [ "a", "b", "b", "b", "c" ]
|
1992
|
+
* a.delete("b") #=> "b"
|
1993
|
+
* a #=> ["a", "c"]
|
1994
|
+
* a.delete("z") #=> nil
|
1995
|
+
* a.delete("z") { "not found" } #=> "not found"
|
1996
|
+
*/
|
1997
|
+
|
1998
|
+
VALUE
|
1999
|
+
rb_ary_delete(VALUE ary, VALUE item)
|
2000
|
+
{
|
2001
|
+
VALUE v = item;
|
2002
|
+
long i1, i2;
|
2003
|
+
|
2004
|
+
for (i1 = i2 = 0; i1 < RARRAY_LEN(ary); i1++) {
|
2005
|
+
VALUE e = RARRAY_PTR(ary)[i1];
|
2006
|
+
|
2007
|
+
if (rb_equal(e, item)) {
|
2008
|
+
v = e;
|
2009
|
+
continue;
|
2010
|
+
}
|
2011
|
+
if (i1 != i2) {
|
2012
|
+
rb_ary_store(ary, i2, e);
|
2013
|
+
}
|
2014
|
+
i2++;
|
2015
|
+
}
|
2016
|
+
if (RARRAY_LEN(ary) == i2) {
|
2017
|
+
if (rb_block_given_p()) {
|
2018
|
+
return rb_yield(item);
|
2019
|
+
}
|
2020
|
+
return Qnil;
|
2021
|
+
}
|
2022
|
+
|
2023
|
+
rb_ary_modify(ary);
|
2024
|
+
if (RARRAY_LEN(ary) > i2) {
|
2025
|
+
ARY_SET_LEN(ary, i2);
|
2026
|
+
if (i2 * 2 < ARY_CAPA(ary) &&
|
2027
|
+
ARY_CAPA(ary) > ARY_DEFAULT_SIZE) {
|
2028
|
+
ary_resize_capa(ary, i2*2);
|
2029
|
+
}
|
2030
|
+
}
|
2031
|
+
|
2032
|
+
return v;
|
2033
|
+
}
|
2034
|
+
|
2035
|
+
VALUE
|
2036
|
+
rb_ary_delete_at(VALUE ary, long pos)
|
2037
|
+
{
|
2038
|
+
long len = RARRAY_LEN(ary);
|
2039
|
+
VALUE del;
|
2040
|
+
|
2041
|
+
if (pos >= len) return Qnil;
|
2042
|
+
if (pos < 0) {
|
2043
|
+
pos += len;
|
2044
|
+
if (pos < 0) return Qnil;
|
2045
|
+
}
|
2046
|
+
|
2047
|
+
rb_ary_modify(ary);
|
2048
|
+
del = RARRAY_PTR(ary)[pos];
|
2049
|
+
MEMMOVE(RARRAY_PTR(ary)+pos, RARRAY_PTR(ary)+pos+1, VALUE,
|
2050
|
+
RARRAY_LEN(ary)-pos-1);
|
2051
|
+
ARY_INCREASE_LEN(ary, -1);
|
2052
|
+
|
2053
|
+
return del;
|
2054
|
+
}
|
2055
|
+
|
2056
|
+
/*
|
2057
|
+
* call-seq:
|
2058
|
+
* array.delete_at(index) -> obj or nil
|
2059
|
+
*
|
2060
|
+
* Deletes the element at the specified index, returning that element,
|
2061
|
+
* or <code>nil</code> if the index is out of range. See also
|
2062
|
+
* <code>Array#slice!</code>.
|
2063
|
+
*
|
2064
|
+
* a = %w( ant bat cat dog )
|
2065
|
+
* a.delete_at(2) #=> "cat"
|
2066
|
+
* a #=> ["ant", "bat", "dog"]
|
2067
|
+
* a.delete_at(99) #=> nil
|
2068
|
+
*/
|
2069
|
+
|
2070
|
+
static VALUE
|
2071
|
+
rb_ary_delete_at_m(VALUE ary, VALUE pos)
|
2072
|
+
{
|
2073
|
+
return rb_ary_delete_at(ary, NUM2LONG(pos));
|
2074
|
+
}
|
2075
|
+
|
2076
|
+
/*
|
2077
|
+
* call-seq:
|
2078
|
+
* array.slice!(index) -> obj or nil
|
2079
|
+
* array.slice!(start, length) -> sub_array or nil
|
2080
|
+
* array.slice!(range) -> sub_array or nil
|
2081
|
+
*
|
2082
|
+
* Deletes the element(s) given by an index (optionally with a length)
|
2083
|
+
* or by a range. Returns the deleted object, subarray, or
|
2084
|
+
* <code>nil</code> if the index is out of range.
|
2085
|
+
*
|
2086
|
+
* a = [ "a", "b", "c" ]
|
2087
|
+
* a.slice!(1) #=> "b"
|
2088
|
+
* a #=> ["a", "c"]
|
2089
|
+
* a.slice!(-1) #=> "c"
|
2090
|
+
* a #=> ["a"]
|
2091
|
+
* a.slice!(100) #=> nil
|
2092
|
+
* a #=> ["a"]
|
2093
|
+
*/
|
2094
|
+
|
2095
|
+
static VALUE
|
2096
|
+
rb_ary_slice_bang(int argc, VALUE *argv, VALUE ary)
|
2097
|
+
{
|
2098
|
+
VALUE arg1, arg2;
|
2099
|
+
long pos, len, orig_len;
|
2100
|
+
|
2101
|
+
rb_ary_modify_check(ary);
|
2102
|
+
if (rb_scan_args(argc, argv, "11", &arg1, &arg2) == 2) {
|
2103
|
+
pos = NUM2LONG(arg1);
|
2104
|
+
len = NUM2LONG(arg2);
|
2105
|
+
delete_pos_len:
|
2106
|
+
if (len < 0) return Qnil;
|
2107
|
+
orig_len = RARRAY_LEN(ary);
|
2108
|
+
if (pos < 0) {
|
2109
|
+
pos += orig_len;
|
2110
|
+
if (pos < 0) return Qnil;
|
2111
|
+
}
|
2112
|
+
else if (orig_len < pos) return Qnil;
|
2113
|
+
if (orig_len < pos + len) {
|
2114
|
+
len = orig_len - pos;
|
2115
|
+
}
|
2116
|
+
if (len == 0) return rb_ary_new2(0);
|
2117
|
+
arg2 = rb_ary_new4(len, RARRAY_PTR(ary)+pos);
|
2118
|
+
RBASIC(arg2)->klass = rb_obj_class(ary);
|
2119
|
+
rb_ary_splice(ary, pos, len, Qundef);
|
2120
|
+
return arg2;
|
2121
|
+
}
|
2122
|
+
|
2123
|
+
if (!FIXNUM_P(arg1)) {
|
2124
|
+
switch (rb_range_beg_len(arg1, &pos, &len, RARRAY_LEN(ary), 0)) {
|
2125
|
+
case Qtrue:
|
2126
|
+
/* valid range */
|
2127
|
+
goto delete_pos_len;
|
2128
|
+
case Qnil:
|
2129
|
+
/* invalid range */
|
2130
|
+
return Qnil;
|
2131
|
+
default:
|
2132
|
+
/* not a range */
|
2133
|
+
break;
|
2134
|
+
}
|
2135
|
+
}
|
2136
|
+
|
2137
|
+
return rb_ary_delete_at(ary, NUM2LONG(arg1));
|
2138
|
+
}
|
2139
|
+
|
2140
|
+
/*
|
2141
|
+
* call-seq:
|
2142
|
+
* array.reject! {|item| block } -> array or nil
|
2143
|
+
*
|
2144
|
+
* Equivalent to <code>Array#delete_if</code>, deleting elements from
|
2145
|
+
* _self_ for which the block evaluates to true, but returns
|
2146
|
+
* <code>nil</code> if no changes were made. Also see
|
2147
|
+
* <code>Enumerable#reject</code>.
|
2148
|
+
*/
|
2149
|
+
|
2150
|
+
static VALUE
|
2151
|
+
rb_ary_reject_bang(VALUE ary)
|
2152
|
+
{
|
2153
|
+
long i1, i2;
|
2154
|
+
|
2155
|
+
RETURN_ENUMERATOR(ary, 0, 0);
|
2156
|
+
rb_ary_modify(ary);
|
2157
|
+
for (i1 = i2 = 0; i1 < RARRAY_LEN(ary); i1++) {
|
2158
|
+
VALUE v = RARRAY_PTR(ary)[i1];
|
2159
|
+
if (RTEST(rb_yield(v))) continue;
|
2160
|
+
if (i1 != i2) {
|
2161
|
+
rb_ary_store(ary, i2, v);
|
2162
|
+
}
|
2163
|
+
i2++;
|
2164
|
+
}
|
2165
|
+
|
2166
|
+
if (RARRAY_LEN(ary) == i2) return Qnil;
|
2167
|
+
if (i2 < RARRAY_LEN(ary))
|
2168
|
+
ARY_SET_LEN(ary, i2);
|
2169
|
+
return ary;
|
2170
|
+
}
|
2171
|
+
|
2172
|
+
/*
|
2173
|
+
* call-seq:
|
2174
|
+
* array.reject {|item| block } -> an_array
|
2175
|
+
*
|
2176
|
+
* Returns a new array containing the items in _self_
|
2177
|
+
* for which the block is not true.
|
2178
|
+
*/
|
2179
|
+
|
2180
|
+
static VALUE
|
2181
|
+
rb_ary_reject(VALUE ary)
|
2182
|
+
{
|
2183
|
+
RETURN_ENUMERATOR(ary, 0, 0);
|
2184
|
+
ary = rb_ary_dup(ary);
|
2185
|
+
rb_ary_reject_bang(ary);
|
2186
|
+
return ary;
|
2187
|
+
}
|
2188
|
+
|
2189
|
+
/*
|
2190
|
+
* call-seq:
|
2191
|
+
* array.delete_if {|item| block } -> array
|
2192
|
+
*
|
2193
|
+
* Deletes every element of <i>self</i> for which <i>block</i> evaluates
|
2194
|
+
* to <code>true</code>.
|
2195
|
+
*
|
2196
|
+
* a = [ "a", "b", "c" ]
|
2197
|
+
* a.delete_if {|x| x >= "b" } #=> ["a"]
|
2198
|
+
*/
|
2199
|
+
|
2200
|
+
static VALUE
|
2201
|
+
rb_ary_delete_if(VALUE ary)
|
2202
|
+
{
|
2203
|
+
RETURN_ENUMERATOR(ary, 0, 0);
|
2204
|
+
rb_ary_reject_bang(ary);
|
2205
|
+
return ary;
|
2206
|
+
}
|
2207
|
+
|
2208
|
+
static VALUE
|
2209
|
+
take_i(VALUE val, VALUE *args, int argc, VALUE *argv)
|
2210
|
+
{
|
2211
|
+
if (args[1]-- == 0) rb_iter_break();
|
2212
|
+
if (argc > 1) val = rb_ary_new4(argc, argv);
|
2213
|
+
rb_ary_push(args[0], val);
|
2214
|
+
return Qnil;
|
2215
|
+
}
|
2216
|
+
|
2217
|
+
static VALUE
|
2218
|
+
take_items(VALUE obj, long n)
|
2219
|
+
{
|
2220
|
+
VALUE result = rb_check_array_type(obj);
|
2221
|
+
VALUE args[2];
|
2222
|
+
|
2223
|
+
if (!NIL_P(result)) return rb_ary_subseq(result, 0, n);
|
2224
|
+
result = rb_ary_new2(n);
|
2225
|
+
args[0] = result; args[1] = (VALUE)n;
|
2226
|
+
rb_block_call(obj, rb_intern("each"), 0, 0, take_i, (VALUE)args);
|
2227
|
+
return result;
|
2228
|
+
}
|
2229
|
+
|
2230
|
+
|
2231
|
+
/*
|
2232
|
+
* call-seq:
|
2233
|
+
* array.zip(arg, ...) -> an_array
|
2234
|
+
* array.zip(arg, ...) {| arr | block } -> nil
|
2235
|
+
*
|
2236
|
+
* Converts any arguments to arrays, then merges elements of
|
2237
|
+
* <i>self</i> with corresponding elements from each argument. This
|
2238
|
+
* generates a sequence of <code>self.size</code> <em>n</em>-element
|
2239
|
+
* arrays, where <em>n</em> is one more that the count of arguments. If
|
2240
|
+
* the size of any argument is less than <code>enumObj.size</code>,
|
2241
|
+
* <code>nil</code> values are supplied. If a block given, it is
|
2242
|
+
* invoked for each output array, otherwise an array of arrays is
|
2243
|
+
* returned.
|
2244
|
+
*
|
2245
|
+
* a = [ 4, 5, 6 ]
|
2246
|
+
* b = [ 7, 8, 9 ]
|
2247
|
+
* [1,2,3].zip(a, b) #=> [[1, 4, 7], [2, 5, 8], [3, 6, 9]]
|
2248
|
+
* [1,2].zip(a,b) #=> [[1, 4, 7], [2, 5, 8]]
|
2249
|
+
* a.zip([1,2],[8]) #=> [[4,1,8], [5,2,nil], [6,nil,nil]]
|
2250
|
+
*/
|
2251
|
+
|
2252
|
+
static VALUE
|
2253
|
+
rb_ary_zip(int argc, VALUE *argv, VALUE ary)
|
2254
|
+
{
|
2255
|
+
int i, j;
|
2256
|
+
long len;
|
2257
|
+
VALUE result = Qnil;
|
2258
|
+
|
2259
|
+
len = RARRAY_LEN(ary);
|
2260
|
+
for (i=0; i<argc; i++) {
|
2261
|
+
argv[i] = take_items(argv[i], len);
|
2262
|
+
}
|
2263
|
+
if (!rb_block_given_p()) {
|
2264
|
+
result = rb_ary_new2(len);
|
2265
|
+
}
|
2266
|
+
|
2267
|
+
for (i=0; i<RARRAY_LEN(ary); i++) {
|
2268
|
+
VALUE tmp = rb_ary_new2(argc+1);
|
2269
|
+
|
2270
|
+
rb_ary_push(tmp, rb_ary_elt(ary, i));
|
2271
|
+
for (j=0; j<argc; j++) {
|
2272
|
+
rb_ary_push(tmp, rb_ary_elt(argv[j], i));
|
2273
|
+
}
|
2274
|
+
if (NIL_P(result)) {
|
2275
|
+
rb_yield(tmp);
|
2276
|
+
}
|
2277
|
+
else {
|
2278
|
+
rb_ary_push(result, tmp);
|
2279
|
+
}
|
2280
|
+
}
|
2281
|
+
return result;
|
2282
|
+
}
|
2283
|
+
|
2284
|
+
/*
|
2285
|
+
* call-seq:
|
2286
|
+
* array.transpose -> an_array
|
2287
|
+
*
|
2288
|
+
* Assumes that <i>self</i> is an array of arrays and transposes the
|
2289
|
+
* rows and columns.
|
2290
|
+
*
|
2291
|
+
* a = [[1,2], [3,4], [5,6]]
|
2292
|
+
* a.transpose #=> [[1, 3, 5], [2, 4, 6]]
|
2293
|
+
*/
|
2294
|
+
|
2295
|
+
static VALUE
|
2296
|
+
rb_ary_transpose(VALUE ary)
|
2297
|
+
{
|
2298
|
+
long elen = -1, alen, i, j;
|
2299
|
+
VALUE tmp, result = 0;
|
2300
|
+
|
2301
|
+
alen = RARRAY_LEN(ary);
|
2302
|
+
if (alen == 0) return rb_ary_dup(ary);
|
2303
|
+
for (i=0; i<alen; i++) {
|
2304
|
+
tmp = to_ary(rb_ary_elt(ary, i));
|
2305
|
+
if (elen < 0) { /* first element */
|
2306
|
+
elen = RARRAY_LEN(tmp);
|
2307
|
+
result = rb_ary_new2(elen);
|
2308
|
+
for (j=0; j<elen; j++) {
|
2309
|
+
rb_ary_store(result, j, rb_ary_new2(alen));
|
2310
|
+
}
|
2311
|
+
}
|
2312
|
+
else if (elen != RARRAY_LEN(tmp)) {
|
2313
|
+
rb_raise(rb_eIndexError, "element size differs (%ld should be %ld)",
|
2314
|
+
RARRAY_LEN(tmp), elen);
|
2315
|
+
}
|
2316
|
+
for (j=0; j<elen; j++) {
|
2317
|
+
rb_ary_store(rb_ary_elt(result, j), i, rb_ary_elt(tmp, j));
|
2318
|
+
}
|
2319
|
+
}
|
2320
|
+
return result;
|
2321
|
+
}
|
2322
|
+
|
2323
|
+
/*
|
2324
|
+
* call-seq:
|
2325
|
+
* array.replace(other_array) -> array
|
2326
|
+
*
|
2327
|
+
* Replaces the contents of <i>self</i> with the contents of
|
2328
|
+
* <i>other_array</i>, truncating or expanding if necessary.
|
2329
|
+
*
|
2330
|
+
* a = [ "a", "b", "c", "d", "e" ]
|
2331
|
+
* a.replace([ "x", "y", "z" ]) #=> ["x", "y", "z"]
|
2332
|
+
* a #=> ["x", "y", "z"]
|
2333
|
+
*/
|
2334
|
+
|
2335
|
+
VALUE
|
2336
|
+
rb_ary_replace(VALUE copy, VALUE orig)
|
2337
|
+
{
|
2338
|
+
orig = to_ary(orig);
|
2339
|
+
rb_ary_modify_check(copy);
|
2340
|
+
if (copy == orig) return copy;
|
2341
|
+
|
2342
|
+
if (RARRAY_LEN(orig) <= RARRAY_EMBED_LEN_MAX) {
|
2343
|
+
VALUE *ptr;
|
2344
|
+
VALUE shared = 0;
|
2345
|
+
|
2346
|
+
if (ARY_OWNS_HEAP_P(copy)) {
|
2347
|
+
xfree(RARRAY_PTR(copy));
|
2348
|
+
}
|
2349
|
+
else if (ARY_SHARED_P(copy)) {
|
2350
|
+
shared = ARY_SHARED(copy);
|
2351
|
+
FL_UNSET_SHARED(copy);
|
2352
|
+
}
|
2353
|
+
FL_SET_EMBED(copy);
|
2354
|
+
ptr = RARRAY_PTR(orig);
|
2355
|
+
MEMCPY(RARRAY_PTR(copy), ptr, VALUE, RARRAY_LEN(orig));
|
2356
|
+
if (shared) {
|
2357
|
+
rb_ary_decrement_share(shared);
|
2358
|
+
}
|
2359
|
+
ARY_SET_LEN(copy, RARRAY_LEN(orig));
|
2360
|
+
}
|
2361
|
+
else {
|
2362
|
+
VALUE shared = ary_make_shared(orig);
|
2363
|
+
if (ARY_OWNS_HEAP_P(copy)) {
|
2364
|
+
xfree(RARRAY_PTR(copy));
|
2365
|
+
} else {
|
2366
|
+
rb_ary_unshare_safe(copy);
|
2367
|
+
}
|
2368
|
+
FL_UNSET_EMBED(copy);
|
2369
|
+
ARY_SET_PTR(copy, RARRAY_PTR(orig));
|
2370
|
+
ARY_SET_LEN(copy, RARRAY_LEN(orig));
|
2371
|
+
rb_ary_set_shared(copy, shared);
|
2372
|
+
}
|
2373
|
+
return copy;
|
2374
|
+
}
|
2375
|
+
|
2376
|
+
/*
|
2377
|
+
* call-seq:
|
2378
|
+
* array.clear -> array
|
2379
|
+
*
|
2380
|
+
* Removes all elements from _self_.
|
2381
|
+
*
|
2382
|
+
* a = [ "a", "b", "c", "d", "e" ]
|
2383
|
+
* a.clear #=> [ ]
|
2384
|
+
*/
|
2385
|
+
|
2386
|
+
VALUE
|
2387
|
+
rb_ary_clear(VALUE ary)
|
2388
|
+
{
|
2389
|
+
rb_ary_modify(ary);
|
2390
|
+
ARY_SET_LEN(ary, 0);
|
2391
|
+
if (ARY_DEFAULT_SIZE * 2 < ARY_CAPA(ary)) {
|
2392
|
+
ary_resize_capa(ary, ARY_DEFAULT_SIZE * 2);
|
2393
|
+
}
|
2394
|
+
return ary;
|
2395
|
+
}
|
2396
|
+
|
2397
|
+
/*
|
2398
|
+
* call-seq:
|
2399
|
+
* array.fill(obj) -> array
|
2400
|
+
* array.fill(obj, start [, length]) -> array
|
2401
|
+
* array.fill(obj, range ) -> array
|
2402
|
+
* array.fill {|index| block } -> array
|
2403
|
+
* array.fill(start [, length] ) {|index| block } -> array
|
2404
|
+
* array.fill(range) {|index| block } -> array
|
2405
|
+
*
|
2406
|
+
* The first three forms set the selected elements of <i>self</i> (which
|
2407
|
+
* may be the entire array) to <i>obj</i>. A <i>start</i> of
|
2408
|
+
* <code>nil</code> is equivalent to zero. A <i>length</i> of
|
2409
|
+
* <code>nil</code> is equivalent to <i>self.length</i>. The last three
|
2410
|
+
* forms fill the array with the value of the block. The block is
|
2411
|
+
* passed the absolute index of each element to be filled.
|
2412
|
+
*
|
2413
|
+
* a = [ "a", "b", "c", "d" ]
|
2414
|
+
* a.fill("x") #=> ["x", "x", "x", "x"]
|
2415
|
+
* a.fill("z", 2, 2) #=> ["x", "x", "z", "z"]
|
2416
|
+
* a.fill("y", 0..1) #=> ["y", "y", "z", "z"]
|
2417
|
+
* a.fill {|i| i*i} #=> [0, 1, 4, 9]
|
2418
|
+
* a.fill(-2) {|i| i*i*i} #=> [0, 1, 8, 27]
|
2419
|
+
*/
|
2420
|
+
|
2421
|
+
static VALUE
|
2422
|
+
rb_ary_fill(int argc, VALUE *argv, VALUE ary)
|
2423
|
+
{
|
2424
|
+
VALUE item, arg1, arg2;
|
2425
|
+
long beg = 0, end = 0, len = 0;
|
2426
|
+
VALUE *p, *pend;
|
2427
|
+
int block_p = Qfalse;
|
2428
|
+
|
2429
|
+
if (rb_block_given_p()) {
|
2430
|
+
block_p = Qtrue;
|
2431
|
+
rb_scan_args(argc, argv, "02", &arg1, &arg2);
|
2432
|
+
argc += 1; /* hackish */
|
2433
|
+
}
|
2434
|
+
else {
|
2435
|
+
rb_scan_args(argc, argv, "12", &item, &arg1, &arg2);
|
2436
|
+
}
|
2437
|
+
switch (argc) {
|
2438
|
+
case 1:
|
2439
|
+
beg = 0;
|
2440
|
+
len = RARRAY_LEN(ary);
|
2441
|
+
break;
|
2442
|
+
case 2:
|
2443
|
+
if (rb_range_beg_len(arg1, &beg, &len, RARRAY_LEN(ary), 1)) {
|
2444
|
+
break;
|
2445
|
+
}
|
2446
|
+
/* fall through */
|
2447
|
+
case 3:
|
2448
|
+
beg = NIL_P(arg1) ? 0 : NUM2LONG(arg1);
|
2449
|
+
if (beg < 0) {
|
2450
|
+
beg = RARRAY_LEN(ary) + beg;
|
2451
|
+
if (beg < 0) beg = 0;
|
2452
|
+
}
|
2453
|
+
len = NIL_P(arg2) ? RARRAY_LEN(ary) - beg : NUM2LONG(arg2);
|
2454
|
+
break;
|
2455
|
+
}
|
2456
|
+
rb_ary_modify(ary);
|
2457
|
+
if (len < 0) {
|
2458
|
+
return ary;
|
2459
|
+
}
|
2460
|
+
if (beg >= ARY_MAX_SIZE || len > ARY_MAX_SIZE - beg) {
|
2461
|
+
rb_raise(rb_eArgError, "argument too big");
|
2462
|
+
}
|
2463
|
+
end = beg + len;
|
2464
|
+
if (RARRAY_LEN(ary) < end) {
|
2465
|
+
if (end >= ARY_CAPA(ary)) {
|
2466
|
+
ary_resize_capa(ary, end);
|
2467
|
+
}
|
2468
|
+
rb_mem_clear(RARRAY_PTR(ary) + RARRAY_LEN(ary), end - RARRAY_LEN(ary));
|
2469
|
+
ARY_SET_LEN(ary, end);
|
2470
|
+
}
|
2471
|
+
|
2472
|
+
if (block_p) {
|
2473
|
+
VALUE v;
|
2474
|
+
long i;
|
2475
|
+
|
2476
|
+
for (i=beg; i<end; i++) {
|
2477
|
+
v = rb_yield(LONG2NUM(i));
|
2478
|
+
if (i>=RARRAY_LEN(ary)) break;
|
2479
|
+
RARRAY_PTR(ary)[i] = v;
|
2480
|
+
}
|
2481
|
+
}
|
2482
|
+
else {
|
2483
|
+
p = RARRAY_PTR(ary) + beg;
|
2484
|
+
pend = p + len;
|
2485
|
+
while (p < pend) {
|
2486
|
+
*p++ = item;
|
2487
|
+
}
|
2488
|
+
}
|
2489
|
+
return ary;
|
2490
|
+
}
|
2491
|
+
|
2492
|
+
/*
|
2493
|
+
* call-seq:
|
2494
|
+
* array + other_array -> an_array
|
2495
|
+
*
|
2496
|
+
* Concatenation---Returns a new array built by concatenating the
|
2497
|
+
* two arrays together to produce a third array.
|
2498
|
+
*
|
2499
|
+
* [ 1, 2, 3 ] + [ 4, 5 ] #=> [ 1, 2, 3, 4, 5 ]
|
2500
|
+
*/
|
2501
|
+
|
2502
|
+
VALUE
|
2503
|
+
rb_ary_plus(VALUE x, VALUE y)
|
2504
|
+
{
|
2505
|
+
VALUE z;
|
2506
|
+
long len;
|
2507
|
+
|
2508
|
+
y = to_ary(y);
|
2509
|
+
len = RARRAY_LEN(x) + RARRAY_LEN(y);
|
2510
|
+
z = rb_ary_new2(len);
|
2511
|
+
MEMCPY(RARRAY_PTR(z), RARRAY_PTR(x), VALUE, RARRAY_LEN(x));
|
2512
|
+
MEMCPY(RARRAY_PTR(z) + RARRAY_LEN(x), RARRAY_PTR(y), VALUE, RARRAY_LEN(y));
|
2513
|
+
ARY_SET_LEN(z, len);
|
2514
|
+
return z;
|
2515
|
+
}
|
2516
|
+
|
2517
|
+
/*
|
2518
|
+
* call-seq:
|
2519
|
+
* array.concat(other_array) -> array
|
2520
|
+
*
|
2521
|
+
* Appends the elements in other_array to _self_.
|
2522
|
+
*
|
2523
|
+
* [ "a", "b" ].concat( ["c", "d"] ) #=> [ "a", "b", "c", "d" ]
|
2524
|
+
*/
|
2525
|
+
|
2526
|
+
|
2527
|
+
VALUE
|
2528
|
+
rb_ary_concat(VALUE x, VALUE y)
|
2529
|
+
{
|
2530
|
+
y = to_ary(y);
|
2531
|
+
if (RARRAY_LEN(y) > 0) {
|
2532
|
+
rb_ary_splice(x, RARRAY_LEN(x), 0, y);
|
2533
|
+
}
|
2534
|
+
return x;
|
2535
|
+
}
|
2536
|
+
|
2537
|
+
|
2538
|
+
/*
|
2539
|
+
* call-seq:
|
2540
|
+
* array * int -> an_array
|
2541
|
+
* array * str -> a_string
|
2542
|
+
*
|
2543
|
+
* Repetition---With a String argument, equivalent to
|
2544
|
+
* self.join(str). Otherwise, returns a new array
|
2545
|
+
* built by concatenating the _int_ copies of _self_.
|
2546
|
+
*
|
2547
|
+
*
|
2548
|
+
* [ 1, 2, 3 ] * 3 #=> [ 1, 2, 3, 1, 2, 3, 1, 2, 3 ]
|
2549
|
+
* [ 1, 2, 3 ] * "," #=> "1,2,3"
|
2550
|
+
*
|
2551
|
+
*/
|
2552
|
+
|
2553
|
+
static VALUE
|
2554
|
+
rb_ary_times(VALUE ary, VALUE times)
|
2555
|
+
{
|
2556
|
+
VALUE ary2, tmp;
|
2557
|
+
long i, len;
|
2558
|
+
|
2559
|
+
tmp = rb_check_string_type(times);
|
2560
|
+
if (!NIL_P(tmp)) {
|
2561
|
+
return rb_ary_join(ary, tmp);
|
2562
|
+
}
|
2563
|
+
|
2564
|
+
len = NUM2LONG(times);
|
2565
|
+
if (len == 0) {
|
2566
|
+
ary2 = ary_new(rb_obj_class(ary), 0);
|
2567
|
+
goto out;
|
2568
|
+
}
|
2569
|
+
if (len < 0) {
|
2570
|
+
rb_raise(rb_eArgError, "negative argument");
|
2571
|
+
}
|
2572
|
+
if (ARY_MAX_SIZE/len < RARRAY_LEN(ary)) {
|
2573
|
+
rb_raise(rb_eArgError, "argument too big");
|
2574
|
+
}
|
2575
|
+
len *= RARRAY_LEN(ary);
|
2576
|
+
|
2577
|
+
ary2 = ary_new(rb_obj_class(ary), len);
|
2578
|
+
ARY_SET_LEN(ary2, len);
|
2579
|
+
|
2580
|
+
for (i=0; i<len; i+=RARRAY_LEN(ary)) {
|
2581
|
+
MEMCPY(RARRAY_PTR(ary2)+i, RARRAY_PTR(ary), VALUE, RARRAY_LEN(ary));
|
2582
|
+
}
|
2583
|
+
out:
|
2584
|
+
OBJ_INFECT(ary2, ary);
|
2585
|
+
|
2586
|
+
return ary2;
|
2587
|
+
}
|
2588
|
+
|
2589
|
+
/*
|
2590
|
+
* call-seq:
|
2591
|
+
* array.assoc(obj) -> an_array or nil
|
2592
|
+
*
|
2593
|
+
* Searches through an array whose elements are also arrays
|
2594
|
+
* comparing _obj_ with the first element of each contained array
|
2595
|
+
* using obj.==.
|
2596
|
+
* Returns the first contained array that matches (that
|
2597
|
+
* is, the first associated array),
|
2598
|
+
* or +nil+ if no match is found.
|
2599
|
+
* See also <code>Array#rassoc</code>.
|
2600
|
+
*
|
2601
|
+
* s1 = [ "colors", "red", "blue", "green" ]
|
2602
|
+
* s2 = [ "letters", "a", "b", "c" ]
|
2603
|
+
* s3 = "foo"
|
2604
|
+
* a = [ s1, s2, s3 ]
|
2605
|
+
* a.assoc("letters") #=> [ "letters", "a", "b", "c" ]
|
2606
|
+
* a.assoc("foo") #=> nil
|
2607
|
+
*/
|
2608
|
+
|
2609
|
+
VALUE
|
2610
|
+
rb_ary_assoc(VALUE ary, VALUE key)
|
2611
|
+
{
|
2612
|
+
long i;
|
2613
|
+
VALUE v;
|
2614
|
+
|
2615
|
+
for (i = 0; i < RARRAY_LEN(ary); ++i) {
|
2616
|
+
v = rb_check_array_type(RARRAY_PTR(ary)[i]);
|
2617
|
+
if (!NIL_P(v) && RARRAY_LEN(v) > 0 &&
|
2618
|
+
rb_equal(RARRAY_PTR(v)[0], key))
|
2619
|
+
return v;
|
2620
|
+
}
|
2621
|
+
return Qnil;
|
2622
|
+
}
|
2623
|
+
|
2624
|
+
/*
|
2625
|
+
* call-seq:
|
2626
|
+
* array.rassoc(obj) -> an_array or nil
|
2627
|
+
*
|
2628
|
+
* Searches through the array whose elements are also arrays. Compares
|
2629
|
+
* _obj_ with the second element of each contained array using
|
2630
|
+
* <code>==</code>. Returns the first contained array that matches. See
|
2631
|
+
* also <code>Array#assoc</code>.
|
2632
|
+
*
|
2633
|
+
* a = [ [ 1, "one"], [2, "two"], [3, "three"], ["ii", "two"] ]
|
2634
|
+
* a.rassoc("two") #=> [2, "two"]
|
2635
|
+
* a.rassoc("four") #=> nil
|
2636
|
+
*/
|
2637
|
+
|
2638
|
+
VALUE
|
2639
|
+
rb_ary_rassoc(VALUE ary, VALUE value)
|
2640
|
+
{
|
2641
|
+
long i;
|
2642
|
+
VALUE v;
|
2643
|
+
|
2644
|
+
for (i = 0; i < RARRAY_LEN(ary); ++i) {
|
2645
|
+
v = RARRAY_PTR(ary)[i];
|
2646
|
+
if (TYPE(v) == T_ARRAY &&
|
2647
|
+
RARRAY_LEN(v) > 1 &&
|
2648
|
+
rb_equal(RARRAY_PTR(v)[1], value))
|
2649
|
+
return v;
|
2650
|
+
}
|
2651
|
+
return Qnil;
|
2652
|
+
}
|
2653
|
+
|
2654
|
+
static VALUE
|
2655
|
+
recursive_equal(VALUE ary1, VALUE ary2, int recur)
|
2656
|
+
{
|
2657
|
+
long i;
|
2658
|
+
|
2659
|
+
if (recur) return Qtrue; /* Subtle! */
|
2660
|
+
for (i=0; i<RARRAY_LEN(ary1); i++) {
|
2661
|
+
if (!rb_equal(rb_ary_elt(ary1, i), rb_ary_elt(ary2, i)))
|
2662
|
+
return Qfalse;
|
2663
|
+
}
|
2664
|
+
return Qtrue;
|
2665
|
+
}
|
2666
|
+
|
2667
|
+
/*
|
2668
|
+
* call-seq:
|
2669
|
+
* array == other_array -> bool
|
2670
|
+
*
|
2671
|
+
* Equality---Two arrays are equal if they contain the same number
|
2672
|
+
* of elements and if each element is equal to (according to
|
2673
|
+
* Object.==) the corresponding element in the other array.
|
2674
|
+
*
|
2675
|
+
* [ "a", "c" ] == [ "a", "c", 7 ] #=> false
|
2676
|
+
* [ "a", "c", 7 ] == [ "a", "c", 7 ] #=> true
|
2677
|
+
* [ "a", "c", 7 ] == [ "a", "d", "f" ] #=> false
|
2678
|
+
*
|
2679
|
+
*/
|
2680
|
+
|
2681
|
+
static VALUE
|
2682
|
+
rb_ary_equal(VALUE ary1, VALUE ary2)
|
2683
|
+
{
|
2684
|
+
if (ary1 == ary2) return Qtrue;
|
2685
|
+
if (TYPE(ary2) != T_ARRAY) {
|
2686
|
+
if (!rb_respond_to(ary2, rb_intern("to_ary"))) {
|
2687
|
+
return Qfalse;
|
2688
|
+
}
|
2689
|
+
return rb_equal(ary2, ary1);
|
2690
|
+
}
|
2691
|
+
if (RARRAY_LEN(ary1) != RARRAY_LEN(ary2)) return Qfalse;
|
2692
|
+
return rb_exec_recursive_paired(recursive_equal, ary1, ary2, ary2);
|
2693
|
+
}
|
2694
|
+
|
2695
|
+
static VALUE
|
2696
|
+
recursive_eql(VALUE ary1, VALUE ary2, int recur)
|
2697
|
+
{
|
2698
|
+
long i;
|
2699
|
+
|
2700
|
+
if (recur) return Qtrue; /* Subtle! */
|
2701
|
+
for (i=0; i<RARRAY_LEN(ary1); i++) {
|
2702
|
+
if (!rb_eql(rb_ary_elt(ary1, i), rb_ary_elt(ary2, i)))
|
2703
|
+
return Qfalse;
|
2704
|
+
}
|
2705
|
+
return Qtrue;
|
2706
|
+
}
|
2707
|
+
|
2708
|
+
/*
|
2709
|
+
* call-seq:
|
2710
|
+
* array.eql?(other) -> true or false
|
2711
|
+
*
|
2712
|
+
* Returns <code>true</code> if _array_ and _other_ are the same object,
|
2713
|
+
* or are both arrays with the same content.
|
2714
|
+
*/
|
2715
|
+
|
2716
|
+
static VALUE
|
2717
|
+
rb_ary_eql(VALUE ary1, VALUE ary2)
|
2718
|
+
{
|
2719
|
+
if (ary1 == ary2) return Qtrue;
|
2720
|
+
if (TYPE(ary2) != T_ARRAY) return Qfalse;
|
2721
|
+
if (RARRAY_LEN(ary1) != RARRAY_LEN(ary2)) return Qfalse;
|
2722
|
+
return rb_exec_recursive_paired(recursive_eql, ary1, ary2, ary2);
|
2723
|
+
}
|
2724
|
+
|
2725
|
+
static VALUE
|
2726
|
+
recursive_hash(VALUE ary, VALUE dummy, int recur)
|
2727
|
+
{
|
2728
|
+
long i, h;
|
2729
|
+
VALUE n;
|
2730
|
+
|
2731
|
+
if (recur) {
|
2732
|
+
return LONG2FIX(0);
|
2733
|
+
}
|
2734
|
+
h = RARRAY_LEN(ary);
|
2735
|
+
for (i=0; i<RARRAY_LEN(ary); i++) {
|
2736
|
+
h = (h << 1) | (h<0 ? 1 : 0);
|
2737
|
+
n = rb_hash(RARRAY_PTR(ary)[i]);
|
2738
|
+
h ^= NUM2LONG(n);
|
2739
|
+
}
|
2740
|
+
return LONG2FIX(h);
|
2741
|
+
}
|
2742
|
+
|
2743
|
+
/*
|
2744
|
+
* call-seq:
|
2745
|
+
* array.hash -> fixnum
|
2746
|
+
*
|
2747
|
+
* Compute a hash-code for this array. Two arrays with the same content
|
2748
|
+
* will have the same hash code (and will compare using <code>eql?</code>).
|
2749
|
+
*/
|
2750
|
+
|
2751
|
+
static VALUE
|
2752
|
+
rb_ary_hash(VALUE ary)
|
2753
|
+
{
|
2754
|
+
return rb_exec_recursive(recursive_hash, ary, 0);
|
2755
|
+
}
|
2756
|
+
|
2757
|
+
/*
|
2758
|
+
* call-seq:
|
2759
|
+
* array.include?(obj) -> true or false
|
2760
|
+
*
|
2761
|
+
* Returns <code>true</code> if the given object is present in
|
2762
|
+
* <i>self</i> (that is, if any object <code>==</code> <i>anObject</i>),
|
2763
|
+
* <code>false</code> otherwise.
|
2764
|
+
*
|
2765
|
+
* a = [ "a", "b", "c" ]
|
2766
|
+
* a.include?("b") #=> true
|
2767
|
+
* a.include?("z") #=> false
|
2768
|
+
*/
|
2769
|
+
|
2770
|
+
VALUE
|
2771
|
+
rb_ary_includes(VALUE ary, VALUE item)
|
2772
|
+
{
|
2773
|
+
long i;
|
2774
|
+
|
2775
|
+
for (i=0; i<RARRAY_LEN(ary); i++) {
|
2776
|
+
if (rb_equal(RARRAY_PTR(ary)[i], item)) {
|
2777
|
+
return Qtrue;
|
2778
|
+
}
|
2779
|
+
}
|
2780
|
+
return Qfalse;
|
2781
|
+
}
|
2782
|
+
|
2783
|
+
|
2784
|
+
static VALUE
|
2785
|
+
recursive_cmp(VALUE ary1, VALUE ary2, int recur)
|
2786
|
+
{
|
2787
|
+
long i, len;
|
2788
|
+
|
2789
|
+
if (recur) return Qundef; /* Subtle! */
|
2790
|
+
len = RARRAY_LEN(ary1);
|
2791
|
+
if (len > RARRAY_LEN(ary2)) {
|
2792
|
+
len = RARRAY_LEN(ary2);
|
2793
|
+
}
|
2794
|
+
for (i=0; i<len; i++) {
|
2795
|
+
VALUE v = rb_funcall(rb_ary_elt(ary1, i), id_cmp, 1, rb_ary_elt(ary2, i));
|
2796
|
+
if (v != INT2FIX(0)) {
|
2797
|
+
return v;
|
2798
|
+
}
|
2799
|
+
}
|
2800
|
+
return Qundef;
|
2801
|
+
}
|
2802
|
+
|
2803
|
+
/*
|
2804
|
+
* call-seq:
|
2805
|
+
* array <=> other_array -> -1, 0, +1
|
2806
|
+
*
|
2807
|
+
* Comparison---Returns an integer (-1, 0,
|
2808
|
+
* or +1) if this array is less than, equal to, or greater than
|
2809
|
+
* other_array. Each object in each array is compared
|
2810
|
+
* (using <=>). If any value isn't
|
2811
|
+
* equal, then that inequality is the return value. If all the
|
2812
|
+
* values found are equal, then the return is based on a
|
2813
|
+
* comparison of the array lengths. Thus, two arrays are
|
2814
|
+
* ``equal'' according to <code>Array#<=></code> if and only if they have
|
2815
|
+
* the same length and the value of each element is equal to the
|
2816
|
+
* value of the corresponding element in the other array.
|
2817
|
+
*
|
2818
|
+
* [ "a", "a", "c" ] <=> [ "a", "b", "c" ] #=> -1
|
2819
|
+
* [ 1, 2, 3, 4, 5, 6 ] <=> [ 1, 2 ] #=> +1
|
2820
|
+
*
|
2821
|
+
*/
|
2822
|
+
|
2823
|
+
VALUE
|
2824
|
+
rb_ary_cmp(VALUE ary1, VALUE ary2)
|
2825
|
+
{
|
2826
|
+
long len;
|
2827
|
+
VALUE v;
|
2828
|
+
|
2829
|
+
ary2 = to_ary(ary2);
|
2830
|
+
if (ary1 == ary2) return INT2FIX(0);
|
2831
|
+
v = rb_exec_recursive_paired(recursive_cmp, ary1, ary2, ary2);
|
2832
|
+
if (v != Qundef) return v;
|
2833
|
+
len = RARRAY_LEN(ary1) - RARRAY_LEN(ary2);
|
2834
|
+
if (len == 0) return INT2FIX(0);
|
2835
|
+
if (len > 0) return INT2FIX(1);
|
2836
|
+
return INT2FIX(-1);
|
2837
|
+
}
|
2838
|
+
|
2839
|
+
static VALUE
|
2840
|
+
ary_make_hash(VALUE ary1, VALUE ary2)
|
2841
|
+
{
|
2842
|
+
VALUE hash = rb_hash_new();
|
2843
|
+
long i;
|
2844
|
+
|
2845
|
+
for (i=0; i<RARRAY_LEN(ary1); i++) {
|
2846
|
+
rb_hash_aset(hash, RARRAY_PTR(ary1)[i], Qtrue);
|
2847
|
+
}
|
2848
|
+
if (ary2) {
|
2849
|
+
for (i=0; i<RARRAY_LEN(ary2); i++) {
|
2850
|
+
rb_hash_aset(hash, RARRAY_PTR(ary2)[i], Qtrue);
|
2851
|
+
}
|
2852
|
+
}
|
2853
|
+
return hash;
|
2854
|
+
}
|
2855
|
+
|
2856
|
+
/*
|
2857
|
+
* call-seq:
|
2858
|
+
* array - other_array -> an_array
|
2859
|
+
*
|
2860
|
+
* Array Difference---Returns a new array that is a copy of
|
2861
|
+
* the original array, removing any items that also appear in
|
2862
|
+
* other_array. (If you need set-like behavior, see the
|
2863
|
+
* library class Set.)
|
2864
|
+
*
|
2865
|
+
* [ 1, 1, 2, 2, 3, 3, 4, 5 ] - [ 1, 2, 4 ] #=> [ 3, 3, 5 ]
|
2866
|
+
*/
|
2867
|
+
|
2868
|
+
static VALUE
|
2869
|
+
rb_ary_diff(VALUE ary1, VALUE ary2)
|
2870
|
+
{
|
2871
|
+
VALUE ary3;
|
2872
|
+
volatile VALUE hash;
|
2873
|
+
long i;
|
2874
|
+
|
2875
|
+
hash = ary_make_hash(to_ary(ary2), 0);
|
2876
|
+
ary3 = rb_ary_new();
|
2877
|
+
|
2878
|
+
for (i=0; i<RARRAY_LEN(ary1); i++) {
|
2879
|
+
if (st_lookup(RHASH_TBL(hash), RARRAY_PTR(ary1)[i], 0)) continue;
|
2880
|
+
rb_ary_push(ary3, rb_ary_elt(ary1, i));
|
2881
|
+
}
|
2882
|
+
return ary3;
|
2883
|
+
}
|
2884
|
+
|
2885
|
+
/*
|
2886
|
+
* call-seq:
|
2887
|
+
* array & other_array
|
2888
|
+
*
|
2889
|
+
* Set Intersection---Returns a new array
|
2890
|
+
* containing elements common to the two arrays, with no duplicates.
|
2891
|
+
*
|
2892
|
+
* [ 1, 1, 3, 5 ] & [ 1, 2, 3 ] #=> [ 1, 3 ]
|
2893
|
+
*/
|
2894
|
+
|
2895
|
+
|
2896
|
+
static VALUE
|
2897
|
+
rb_ary_and(VALUE ary1, VALUE ary2)
|
2898
|
+
{
|
2899
|
+
VALUE hash, ary3, v, vv;
|
2900
|
+
long i;
|
2901
|
+
|
2902
|
+
ary2 = to_ary(ary2);
|
2903
|
+
ary3 = rb_ary_new2(RARRAY_LEN(ary1) < RARRAY_LEN(ary2) ?
|
2904
|
+
RARRAY_LEN(ary1) : RARRAY_LEN(ary2));
|
2905
|
+
hash = ary_make_hash(ary2, 0);
|
2906
|
+
|
2907
|
+
if (RHASH_EMPTY_P(hash))
|
2908
|
+
return ary3;
|
2909
|
+
|
2910
|
+
for (i=0; i<RARRAY_LEN(ary1); i++) {
|
2911
|
+
v = vv = rb_ary_elt(ary1, i);
|
2912
|
+
if (st_delete(RHASH_TBL(hash), (st_data_t*)&vv, 0)) {
|
2913
|
+
rb_ary_push(ary3, v);
|
2914
|
+
}
|
2915
|
+
}
|
2916
|
+
|
2917
|
+
return ary3;
|
2918
|
+
}
|
2919
|
+
|
2920
|
+
/*
|
2921
|
+
* call-seq:
|
2922
|
+
* array | other_array -> an_array
|
2923
|
+
*
|
2924
|
+
* Set Union---Returns a new array by joining this array with
|
2925
|
+
* other_array, removing duplicates.
|
2926
|
+
*
|
2927
|
+
* [ "a", "b", "c" ] | [ "c", "d", "a" ]
|
2928
|
+
* #=> [ "a", "b", "c", "d" ]
|
2929
|
+
*/
|
2930
|
+
|
2931
|
+
static VALUE
|
2932
|
+
rb_ary_or(VALUE ary1, VALUE ary2)
|
2933
|
+
{
|
2934
|
+
VALUE hash, ary3;
|
2935
|
+
VALUE v, vv;
|
2936
|
+
long i;
|
2937
|
+
|
2938
|
+
ary2 = to_ary(ary2);
|
2939
|
+
ary3 = rb_ary_new2(RARRAY_LEN(ary1)+RARRAY_LEN(ary2));
|
2940
|
+
hash = ary_make_hash(ary1, ary2);
|
2941
|
+
|
2942
|
+
for (i=0; i<RARRAY_LEN(ary1); i++) {
|
2943
|
+
v = vv = rb_ary_elt(ary1, i);
|
2944
|
+
if (st_delete(RHASH_TBL(hash), (st_data_t*)&vv, 0)) {
|
2945
|
+
rb_ary_push(ary3, v);
|
2946
|
+
}
|
2947
|
+
}
|
2948
|
+
for (i=0; i<RARRAY_LEN(ary2); i++) {
|
2949
|
+
v = vv = rb_ary_elt(ary2, i);
|
2950
|
+
if (st_delete(RHASH_TBL(hash), (st_data_t*)&vv, 0)) {
|
2951
|
+
rb_ary_push(ary3, v);
|
2952
|
+
}
|
2953
|
+
}
|
2954
|
+
return ary3;
|
2955
|
+
}
|
2956
|
+
|
2957
|
+
/*
|
2958
|
+
* call-seq:
|
2959
|
+
* array.uniq! -> array or nil
|
2960
|
+
*
|
2961
|
+
* Removes duplicate elements from _self_.
|
2962
|
+
* Returns <code>nil</code> if no changes are made (that is, no
|
2963
|
+
* duplicates are found).
|
2964
|
+
*
|
2965
|
+
* a = [ "a", "a", "b", "b", "c" ]
|
2966
|
+
* a.uniq! #=> ["a", "b", "c"]
|
2967
|
+
* b = [ "a", "b", "c" ]
|
2968
|
+
* b.uniq! #=> nil
|
2969
|
+
*/
|
2970
|
+
|
2971
|
+
static VALUE
|
2972
|
+
rb_ary_uniq_bang(VALUE ary)
|
2973
|
+
{
|
2974
|
+
VALUE hash, v, vv;
|
2975
|
+
long i, j;
|
2976
|
+
|
2977
|
+
hash = ary_make_hash(ary, 0);
|
2978
|
+
|
2979
|
+
if (RARRAY_LEN(ary) == RHASH_SIZE(hash)) {
|
2980
|
+
return Qnil;
|
2981
|
+
}
|
2982
|
+
for (i=j=0; i<RARRAY_LEN(ary); i++) {
|
2983
|
+
v = vv = rb_ary_elt(ary, i);
|
2984
|
+
if (st_delete(RHASH_TBL(hash), (st_data_t*)&vv, 0)) {
|
2985
|
+
rb_ary_store(ary, j++, v);
|
2986
|
+
}
|
2987
|
+
}
|
2988
|
+
ARY_SET_LEN(ary, j);
|
2989
|
+
|
2990
|
+
return ary;
|
2991
|
+
}
|
2992
|
+
|
2993
|
+
/*
|
2994
|
+
* call-seq:
|
2995
|
+
* array.uniq -> an_array
|
2996
|
+
*
|
2997
|
+
* Returns a new array by removing duplicate values in <i>self</i>.
|
2998
|
+
*
|
2999
|
+
* a = [ "a", "a", "b", "b", "c" ]
|
3000
|
+
* a.uniq #=> ["a", "b", "c"]
|
3001
|
+
*/
|
3002
|
+
|
3003
|
+
static VALUE
|
3004
|
+
rb_ary_uniq(VALUE ary)
|
3005
|
+
{
|
3006
|
+
ary = rb_ary_dup(ary);
|
3007
|
+
rb_ary_uniq_bang(ary);
|
3008
|
+
return ary;
|
3009
|
+
}
|
3010
|
+
|
3011
|
+
/*
|
3012
|
+
* call-seq:
|
3013
|
+
* array.compact! -> array or nil
|
3014
|
+
*
|
3015
|
+
* Removes +nil+ elements from array.
|
3016
|
+
* Returns +nil+ if no changes were made.
|
3017
|
+
*
|
3018
|
+
* [ "a", nil, "b", nil, "c" ].compact! #=> [ "a", "b", "c" ]
|
3019
|
+
* [ "a", "b", "c" ].compact! #=> nil
|
3020
|
+
*/
|
3021
|
+
|
3022
|
+
static VALUE
|
3023
|
+
rb_ary_compact_bang(VALUE ary)
|
3024
|
+
{
|
3025
|
+
VALUE *p, *t, *end;
|
3026
|
+
long n;
|
3027
|
+
|
3028
|
+
rb_ary_modify(ary);
|
3029
|
+
p = t = RARRAY_PTR(ary);
|
3030
|
+
end = p + RARRAY_LEN(ary);
|
3031
|
+
|
3032
|
+
while (t < end) {
|
3033
|
+
if (NIL_P(*t)) t++;
|
3034
|
+
else *p++ = *t++;
|
3035
|
+
}
|
3036
|
+
n = p - RARRAY_PTR(ary);
|
3037
|
+
if (RARRAY_LEN(ary) == n) {
|
3038
|
+
return Qnil;
|
3039
|
+
}
|
3040
|
+
ARY_SET_LEN(ary, n);
|
3041
|
+
if (n * 2 < ARY_CAPA(ary) && ARY_DEFAULT_SIZE * 2 < ARY_CAPA(ary)) {
|
3042
|
+
ary_resize_capa(ary, n * 2);
|
3043
|
+
}
|
3044
|
+
|
3045
|
+
return ary;
|
3046
|
+
}
|
3047
|
+
|
3048
|
+
/*
|
3049
|
+
* call-seq:
|
3050
|
+
* array.compact -> an_array
|
3051
|
+
*
|
3052
|
+
* Returns a copy of _self_ with all +nil+ elements removed.
|
3053
|
+
*
|
3054
|
+
* [ "a", nil, "b", nil, "c", nil ].compact
|
3055
|
+
* #=> [ "a", "b", "c" ]
|
3056
|
+
*/
|
3057
|
+
|
3058
|
+
static VALUE
|
3059
|
+
rb_ary_compact(VALUE ary)
|
3060
|
+
{
|
3061
|
+
ary = rb_ary_dup(ary);
|
3062
|
+
rb_ary_compact_bang(ary);
|
3063
|
+
return ary;
|
3064
|
+
}
|
3065
|
+
|
3066
|
+
/*
|
3067
|
+
* call-seq:
|
3068
|
+
* array.count -> int
|
3069
|
+
* array.count(obj) -> int
|
3070
|
+
* array.count { |item| block } -> int
|
3071
|
+
*
|
3072
|
+
* Returns the number of elements. If an argument is given, counts
|
3073
|
+
* the number of elements which equals to <i>obj</i>. If a block is
|
3074
|
+
* given, counts the number of elements yielding a true value.
|
3075
|
+
*
|
3076
|
+
* ary = [1, 2, 4, 2]
|
3077
|
+
* ary.count # => 4
|
3078
|
+
* ary.count(2) # => 2
|
3079
|
+
* ary.count{|x|x%2==0} # => 3
|
3080
|
+
*
|
3081
|
+
*/
|
3082
|
+
|
3083
|
+
static VALUE
|
3084
|
+
rb_ary_count(int argc, VALUE *argv, VALUE ary)
|
3085
|
+
{
|
3086
|
+
long n = 0;
|
3087
|
+
|
3088
|
+
if (argc == 0) {
|
3089
|
+
VALUE *p, *pend;
|
3090
|
+
|
3091
|
+
if (!rb_block_given_p())
|
3092
|
+
return LONG2NUM(RARRAY_LEN(ary));
|
3093
|
+
|
3094
|
+
for (p = RARRAY_PTR(ary), pend = p + RARRAY_LEN(ary); p < pend; p++) {
|
3095
|
+
if (RTEST(rb_yield(*p))) n++;
|
3096
|
+
}
|
3097
|
+
}
|
3098
|
+
else {
|
3099
|
+
VALUE obj, *p, *pend;
|
3100
|
+
|
3101
|
+
rb_scan_args(argc, argv, "1", &obj);
|
3102
|
+
if (rb_block_given_p()) {
|
3103
|
+
rb_warn("given block not used");
|
3104
|
+
}
|
3105
|
+
for (p = RARRAY_PTR(ary), pend = p + RARRAY_LEN(ary); p < pend; p++) {
|
3106
|
+
if (rb_equal(*p, obj)) n++;
|
3107
|
+
}
|
3108
|
+
}
|
3109
|
+
|
3110
|
+
return LONG2NUM(n);
|
3111
|
+
}
|
3112
|
+
|
3113
|
+
static VALUE
|
3114
|
+
flatten(VALUE ary, int level, int *modified)
|
3115
|
+
{
|
3116
|
+
long i = 0;
|
3117
|
+
VALUE stack, result, tmp, elt;
|
3118
|
+
st_table *memo;
|
3119
|
+
st_data_t id;
|
3120
|
+
|
3121
|
+
stack = ary_new(0, ARY_DEFAULT_SIZE);
|
3122
|
+
result = ary_new(0, RARRAY_LEN(ary));
|
3123
|
+
memo = st_init_numtable();
|
3124
|
+
st_insert(memo, (st_data_t)ary, (st_data_t)Qtrue);
|
3125
|
+
*modified = 0;
|
3126
|
+
|
3127
|
+
while (1) {
|
3128
|
+
while (i < RARRAY_LEN(ary)) {
|
3129
|
+
elt = RARRAY_PTR(ary)[i++];
|
3130
|
+
tmp = rb_check_array_type(elt);
|
3131
|
+
if (RBASIC(result)->klass) {
|
3132
|
+
rb_raise(rb_eRuntimeError, "flatten reentered");
|
3133
|
+
}
|
3134
|
+
if (NIL_P(tmp) || (level >= 0 && RARRAY_LEN(stack) / 2 >= level)) {
|
3135
|
+
rb_ary_push(result, elt);
|
3136
|
+
}
|
3137
|
+
else {
|
3138
|
+
*modified = 1;
|
3139
|
+
id = (st_data_t)tmp;
|
3140
|
+
if (st_lookup(memo, id, 0)) {
|
3141
|
+
st_free_table(memo);
|
3142
|
+
rb_raise(rb_eArgError, "tried to flatten recursive array");
|
3143
|
+
}
|
3144
|
+
st_insert(memo, id, (st_data_t)Qtrue);
|
3145
|
+
rb_ary_push(stack, ary);
|
3146
|
+
rb_ary_push(stack, LONG2NUM(i));
|
3147
|
+
ary = tmp;
|
3148
|
+
i = 0;
|
3149
|
+
}
|
3150
|
+
}
|
3151
|
+
if (RARRAY_LEN(stack) == 0) {
|
3152
|
+
break;
|
3153
|
+
}
|
3154
|
+
id = (st_data_t)ary;
|
3155
|
+
st_delete(memo, &id, 0);
|
3156
|
+
tmp = rb_ary_pop(stack);
|
3157
|
+
i = NUM2LONG(tmp);
|
3158
|
+
ary = rb_ary_pop(stack);
|
3159
|
+
}
|
3160
|
+
|
3161
|
+
st_free_table(memo);
|
3162
|
+
|
3163
|
+
RBASIC(result)->klass = rb_class_of(ary);
|
3164
|
+
return result;
|
3165
|
+
}
|
3166
|
+
|
3167
|
+
/*
|
3168
|
+
* call-seq:
|
3169
|
+
* array.flatten! -> array or nil
|
3170
|
+
* array.flatten!(level) -> array or nil
|
3171
|
+
*
|
3172
|
+
* Flattens _self_ in place.
|
3173
|
+
* Returns <code>nil</code> if no modifications were made (i.e.,
|
3174
|
+
* <i>array</i> contains no subarrays.) If the optional <i>level</i>
|
3175
|
+
* argument determines the level of recursion to flatten.
|
3176
|
+
*
|
3177
|
+
* a = [ 1, 2, [3, [4, 5] ] ]
|
3178
|
+
* a.flatten! #=> [1, 2, 3, 4, 5]
|
3179
|
+
* a.flatten! #=> nil
|
3180
|
+
* a #=> [1, 2, 3, 4, 5]
|
3181
|
+
* a = [ 1, 2, [3, [4, 5] ] ]
|
3182
|
+
* a.flatten!(1) #=> [1, 2, 3, [4, 5]]
|
3183
|
+
*/
|
3184
|
+
|
3185
|
+
static VALUE
|
3186
|
+
rb_ary_flatten_bang(int argc, VALUE *argv, VALUE ary)
|
3187
|
+
{
|
3188
|
+
int mod = 0, level = -1;
|
3189
|
+
VALUE result, lv;
|
3190
|
+
|
3191
|
+
rb_scan_args(argc, argv, "01", &lv);
|
3192
|
+
if (!NIL_P(lv)) level = NUM2INT(lv);
|
3193
|
+
if (level == 0) return Qnil;
|
3194
|
+
|
3195
|
+
result = flatten(ary, level, &mod);
|
3196
|
+
if (mod == 0) return Qnil;
|
3197
|
+
rb_ary_replace(ary, result);
|
3198
|
+
|
3199
|
+
return ary;
|
3200
|
+
}
|
3201
|
+
|
3202
|
+
/*
|
3203
|
+
* call-seq:
|
3204
|
+
* array.flatten -> an_array
|
3205
|
+
* array.flatten(level) -> an_array
|
3206
|
+
*
|
3207
|
+
* Returns a new array that is a one-dimensional flattening of this
|
3208
|
+
* array (recursively). That is, for every element that is an array,
|
3209
|
+
* extract its elements into the new array. If the optional
|
3210
|
+
* <i>level</i> argument determines the level of recursion to flatten.
|
3211
|
+
*
|
3212
|
+
* s = [ 1, 2, 3 ] #=> [1, 2, 3]
|
3213
|
+
* t = [ 4, 5, 6, [7, 8] ] #=> [4, 5, 6, [7, 8]]
|
3214
|
+
* a = [ s, t, 9, 10 ] #=> [[1, 2, 3], [4, 5, 6, [7, 8]], 9, 10]
|
3215
|
+
* a.flatten #=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
3216
|
+
* a = [ 1, 2, [3, [4, 5] ] ]
|
3217
|
+
* a.flatten(1) #=> [1, 2, 3, [4, 5]]
|
3218
|
+
*/
|
3219
|
+
|
3220
|
+
static VALUE
|
3221
|
+
rb_ary_flatten(int argc, VALUE *argv, VALUE ary)
|
3222
|
+
{
|
3223
|
+
int mod = 0, level = -1;
|
3224
|
+
VALUE result, lv;
|
3225
|
+
|
3226
|
+
rb_scan_args(argc, argv, "01", &lv);
|
3227
|
+
if (!NIL_P(lv)) level = NUM2INT(lv);
|
3228
|
+
if (level == 0) return ary_make_shared_copy(ary);
|
3229
|
+
|
3230
|
+
result = flatten(ary, level, &mod);
|
3231
|
+
OBJ_INFECT(result, ary);
|
3232
|
+
|
3233
|
+
return result;
|
3234
|
+
}
|
3235
|
+
|
3236
|
+
/*
|
3237
|
+
* call-seq:
|
3238
|
+
* array.shuffle! -> array
|
3239
|
+
*
|
3240
|
+
* Shuffles elements in _self_ in place.
|
3241
|
+
*/
|
3242
|
+
|
3243
|
+
|
3244
|
+
static VALUE
|
3245
|
+
rb_ary_shuffle_bang(VALUE ary)
|
3246
|
+
{
|
3247
|
+
long i = RARRAY_LEN(ary);
|
3248
|
+
|
3249
|
+
rb_ary_modify(ary);
|
3250
|
+
while (i) {
|
3251
|
+
long j = rb_genrand_real()*i;
|
3252
|
+
VALUE tmp = RARRAY_PTR(ary)[--i];
|
3253
|
+
RARRAY_PTR(ary)[i] = RARRAY_PTR(ary)[j];
|
3254
|
+
RARRAY_PTR(ary)[j] = tmp;
|
3255
|
+
}
|
3256
|
+
return ary;
|
3257
|
+
}
|
3258
|
+
|
3259
|
+
|
3260
|
+
/*
|
3261
|
+
* call-seq:
|
3262
|
+
* array.shuffle -> an_array
|
3263
|
+
*
|
3264
|
+
* Returns a new array with elements of this array shuffled.
|
3265
|
+
*
|
3266
|
+
* a = [ 1, 2, 3 ] #=> [1, 2, 3]
|
3267
|
+
* a.shuffle #=> [2, 3, 1]
|
3268
|
+
*/
|
3269
|
+
|
3270
|
+
static VALUE
|
3271
|
+
rb_ary_shuffle(VALUE ary)
|
3272
|
+
{
|
3273
|
+
ary = rb_ary_dup(ary);
|
3274
|
+
rb_ary_shuffle_bang(ary);
|
3275
|
+
return ary;
|
3276
|
+
}
|
3277
|
+
|
3278
|
+
|
3279
|
+
/*
|
3280
|
+
* call-seq:
|
3281
|
+
* array.sample -> obj
|
3282
|
+
* array.sample(n) -> an_array
|
3283
|
+
*
|
3284
|
+
* Choose a random element, or the random +n+ elements, from the array.
|
3285
|
+
* If the array is empty, the first form returns <code>nil</code>, and the
|
3286
|
+
* second form returns an empty array.
|
3287
|
+
*
|
3288
|
+
*/
|
3289
|
+
|
3290
|
+
|
3291
|
+
static VALUE
|
3292
|
+
rb_ary_sample(int argc, VALUE *argv, VALUE ary)
|
3293
|
+
{
|
3294
|
+
VALUE nv, result, *ptr;
|
3295
|
+
long n, len, i, j, k, idx[10];
|
3296
|
+
|
3297
|
+
len = RARRAY_LEN(ary);
|
3298
|
+
if (argc == 0) {
|
3299
|
+
if (len == 0) return Qnil;
|
3300
|
+
i = len == 1 ? 0 : rb_genrand_real()*len;
|
3301
|
+
return RARRAY_PTR(ary)[i];
|
3302
|
+
}
|
3303
|
+
rb_scan_args(argc, argv, "1", &nv);
|
3304
|
+
n = NUM2LONG(nv);
|
3305
|
+
if (n < 0) rb_raise(rb_eArgError, "negative sample number");
|
3306
|
+
ptr = RARRAY_PTR(ary);
|
3307
|
+
len = RARRAY_LEN(ary);
|
3308
|
+
if (n > len) n = len;
|
3309
|
+
switch (n) {
|
3310
|
+
case 0: return rb_ary_new2(0);
|
3311
|
+
case 1:
|
3312
|
+
return rb_ary_new4(1, &ptr[(long)(rb_genrand_real()*len)]);
|
3313
|
+
case 2:
|
3314
|
+
i = rb_genrand_real()*len;
|
3315
|
+
j = rb_genrand_real()*(len-1);
|
3316
|
+
if (j >= i) j++;
|
3317
|
+
return rb_ary_new3(2, ptr[i], ptr[j]);
|
3318
|
+
case 3:
|
3319
|
+
i = rb_genrand_real()*len;
|
3320
|
+
j = rb_genrand_real()*(len-1);
|
3321
|
+
k = rb_genrand_real()*(len-2);
|
3322
|
+
{
|
3323
|
+
long l = j, g = i;
|
3324
|
+
if (j >= i) l = i, g = ++j;
|
3325
|
+
if (k >= l && (++k >= g)) ++k;
|
3326
|
+
}
|
3327
|
+
return rb_ary_new3(3, ptr[i], ptr[j], ptr[k]);
|
3328
|
+
}
|
3329
|
+
if (n < sizeof(idx)/sizeof(idx[0])) {
|
3330
|
+
long sorted[sizeof(idx)/sizeof(idx[0])];
|
3331
|
+
sorted[0] = idx[0] = rb_genrand_real()*len;
|
3332
|
+
for (i=1; i<n; i++) {
|
3333
|
+
k = rb_genrand_real()*--len;
|
3334
|
+
for (j = 0; j < i; ++j) {
|
3335
|
+
if (k < sorted[j]) break;
|
3336
|
+
++k;
|
3337
|
+
}
|
3338
|
+
memmove(&sorted[j+1], &sorted[j], sizeof(sorted[0])*(i-j));
|
3339
|
+
sorted[j] = idx[i] = k;
|
3340
|
+
}
|
3341
|
+
result = rb_ary_new2(n);
|
3342
|
+
for (i=0; i<n; i++) {
|
3343
|
+
RARRAY_PTR(result)[i] = RARRAY_PTR(ary)[idx[i]];
|
3344
|
+
}
|
3345
|
+
}
|
3346
|
+
else {
|
3347
|
+
result = rb_ary_new4(len, ptr);
|
3348
|
+
RB_GC_GUARD(ary);
|
3349
|
+
for (i=0; i<n; i++) {
|
3350
|
+
j = (long)(rb_genrand_real()*(len-i)) + i;
|
3351
|
+
nv = RARRAY_PTR(result)[j];
|
3352
|
+
RARRAY_PTR(result)[j] = RARRAY_PTR(result)[i];
|
3353
|
+
RARRAY_PTR(result)[i] = nv;
|
3354
|
+
}
|
3355
|
+
}
|
3356
|
+
ARY_SET_LEN(result, n);
|
3357
|
+
|
3358
|
+
return result;
|
3359
|
+
}
|
3360
|
+
|
3361
|
+
|
3362
|
+
/*
|
3363
|
+
* call-seq:
|
3364
|
+
* ary.cycle {|obj| block }
|
3365
|
+
* ary.cycle(n) {|obj| block }
|
3366
|
+
*
|
3367
|
+
* Calls <i>block</i> for each element repeatedly _n_ times or
|
3368
|
+
* forever if none or nil is given. If a non-positive number is
|
3369
|
+
* given or the array is empty, does nothing. Returns nil if the
|
3370
|
+
* loop has finished without getting interrupted.
|
3371
|
+
*
|
3372
|
+
* a = ["a", "b", "c"]
|
3373
|
+
* a.cycle {|x| puts x } # print, a, b, c, a, b, c,.. forever.
|
3374
|
+
* a.cycle(2) {|x| puts x } # print, a, b, c, a, b, c.
|
3375
|
+
*
|
3376
|
+
*/
|
3377
|
+
|
3378
|
+
static VALUE
|
3379
|
+
rb_ary_cycle(int argc, VALUE *argv, VALUE ary)
|
3380
|
+
{
|
3381
|
+
long n, i;
|
3382
|
+
VALUE nv = Qnil;
|
3383
|
+
|
3384
|
+
rb_scan_args(argc, argv, "01", &nv);
|
3385
|
+
|
3386
|
+
RETURN_ENUMERATOR(ary, argc, argv);
|
3387
|
+
if (NIL_P(nv)) {
|
3388
|
+
n = -1;
|
3389
|
+
}
|
3390
|
+
else {
|
3391
|
+
n = NUM2LONG(nv);
|
3392
|
+
if (n <= 0) return Qnil;
|
3393
|
+
}
|
3394
|
+
|
3395
|
+
while (RARRAY_LEN(ary) > 0 && (n < 0 || 0 < n--)) {
|
3396
|
+
for (i=0; i<RARRAY_LEN(ary); i++) {
|
3397
|
+
rb_yield(RARRAY_PTR(ary)[i]);
|
3398
|
+
}
|
3399
|
+
}
|
3400
|
+
return Qnil;
|
3401
|
+
}
|
3402
|
+
|
3403
|
+
#define tmpbuf(n, size) rb_str_tmp_new((n)*(size))
|
3404
|
+
|
3405
|
+
/*
|
3406
|
+
* Recursively compute permutations of r elements of the set [0..n-1].
|
3407
|
+
* When we have a complete permutation of array indexes, copy the values
|
3408
|
+
* at those indexes into a new array and yield that array.
|
3409
|
+
*
|
3410
|
+
* n: the size of the set
|
3411
|
+
* r: the number of elements in each permutation
|
3412
|
+
* p: the array (of size r) that we're filling in
|
3413
|
+
* index: what index we're filling in now
|
3414
|
+
* used: an array of booleans: whether a given index is already used
|
3415
|
+
* values: the Ruby array that holds the actual values to permute
|
3416
|
+
*/
|
3417
|
+
static void
|
3418
|
+
permute0(long n, long r, long *p, long index, int *used, VALUE values)
|
3419
|
+
{
|
3420
|
+
long i,j;
|
3421
|
+
for (i = 0; i < n; i++) {
|
3422
|
+
if (used[i] == 0) {
|
3423
|
+
p[index] = i;
|
3424
|
+
if (index < r-1) { /* if not done yet */
|
3425
|
+
used[i] = 1; /* mark index used */
|
3426
|
+
permute0(n, r, p, index+1, /* recurse */
|
3427
|
+
used, values);
|
3428
|
+
used[i] = 0; /* index unused */
|
3429
|
+
}
|
3430
|
+
else {
|
3431
|
+
/* We have a complete permutation of array indexes */
|
3432
|
+
/* Build a ruby array of the corresponding values */
|
3433
|
+
/* And yield it to the associated block */
|
3434
|
+
VALUE result = rb_ary_new2(r);
|
3435
|
+
VALUE *result_array = RARRAY_PTR(result);
|
3436
|
+
const VALUE *values_array = RARRAY_PTR(values);
|
3437
|
+
|
3438
|
+
for (j = 0; j < r; j++) result_array[j] = values_array[p[j]];
|
3439
|
+
ARY_SET_LEN(result, r);
|
3440
|
+
rb_yield(result);
|
3441
|
+
}
|
3442
|
+
}
|
3443
|
+
}
|
3444
|
+
}
|
3445
|
+
|
3446
|
+
/*
|
3447
|
+
* call-seq:
|
3448
|
+
* ary.permutation { |p| block } -> array
|
3449
|
+
* ary.permutation -> enumerator
|
3450
|
+
* ary.permutation(n) { |p| block } -> array
|
3451
|
+
* ary.permutation(n) -> enumerator
|
3452
|
+
*
|
3453
|
+
* When invoked with a block, yield all permutations of length <i>n</i>
|
3454
|
+
* of the elements of <i>ary</i>, then return the array itself.
|
3455
|
+
* If <i>n</i> is not specified, yield all permutations of all elements.
|
3456
|
+
* The implementation makes no guarantees about the order in which
|
3457
|
+
* the permutations are yielded.
|
3458
|
+
*
|
3459
|
+
* When invoked without a block, return an enumerator object instead.
|
3460
|
+
*
|
3461
|
+
* Examples:
|
3462
|
+
*
|
3463
|
+
* a = [1, 2, 3]
|
3464
|
+
* a.permutation.to_a #=> [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
|
3465
|
+
* a.permutation(1).to_a #=> [[1],[2],[3]]
|
3466
|
+
* a.permutation(2).to_a #=> [[1,2],[1,3],[2,1],[2,3],[3,1],[3,2]]
|
3467
|
+
* a.permutation(3).to_a #=> [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
|
3468
|
+
* a.permutation(0).to_a #=> [[]] # one permutation of length 0
|
3469
|
+
* a.permutation(4).to_a #=> [] # no permutations of length 4
|
3470
|
+
*/
|
3471
|
+
|
3472
|
+
static VALUE
|
3473
|
+
rb_ary_permutation(int argc, VALUE *argv, VALUE ary)
|
3474
|
+
{
|
3475
|
+
VALUE num;
|
3476
|
+
long r, n, i;
|
3477
|
+
|
3478
|
+
n = RARRAY_LEN(ary); /* Array length */
|
3479
|
+
RETURN_ENUMERATOR(ary, argc, argv); /* Return enumerator if no block */
|
3480
|
+
rb_scan_args(argc, argv, "01", &num);
|
3481
|
+
r = NIL_P(num) ? n : NUM2LONG(num); /* Permutation size from argument */
|
3482
|
+
|
3483
|
+
if (r < 0 || n < r) {
|
3484
|
+
/* no permutations: yield nothing */
|
3485
|
+
}
|
3486
|
+
else if (r == 0) { /* exactly one permutation: the zero-length array */
|
3487
|
+
rb_yield(rb_ary_new2(0));
|
3488
|
+
}
|
3489
|
+
else if (r == 1) { /* this is a special, easy case */
|
3490
|
+
for (i = 0; i < RARRAY_LEN(ary); i++) {
|
3491
|
+
rb_yield(rb_ary_new3(1, RARRAY_PTR(ary)[i]));
|
3492
|
+
}
|
3493
|
+
}
|
3494
|
+
else { /* this is the general case */
|
3495
|
+
volatile VALUE t0 = tmpbuf(n,sizeof(long));
|
3496
|
+
long *p = (long*)RSTRING_PTR(t0);
|
3497
|
+
volatile VALUE t1 = tmpbuf(n,sizeof(int));
|
3498
|
+
int *used = (int*)RSTRING_PTR(t1);
|
3499
|
+
VALUE ary0 = ary_make_substitution(ary); /* private defensive copy of ary */
|
3500
|
+
RBASIC(ary0)->klass = 0;
|
3501
|
+
|
3502
|
+
for (i = 0; i < n; i++) used[i] = 0; /* initialize array */
|
3503
|
+
|
3504
|
+
permute0(n, r, p, 0, used, ary0); /* compute and yield permutations */
|
3505
|
+
RB_GC_GUARD(t0);
|
3506
|
+
RB_GC_GUARD(t1);
|
3507
|
+
RBASIC(ary0)->klass = rb_cArray;
|
3508
|
+
}
|
3509
|
+
return ary;
|
3510
|
+
}
|
3511
|
+
|
3512
|
+
static long
|
3513
|
+
combi_len(long n, long k)
|
3514
|
+
{
|
3515
|
+
long i, val = 1;
|
3516
|
+
|
3517
|
+
if (k*2 > n) k = n-k;
|
3518
|
+
if (k == 0) return 1;
|
3519
|
+
if (k < 0) return 0;
|
3520
|
+
val = 1;
|
3521
|
+
for (i=1; i <= k; i++,n--) {
|
3522
|
+
long m = val;
|
3523
|
+
val *= n;
|
3524
|
+
if (val < m) {
|
3525
|
+
rb_raise(rb_eRangeError, "too big for combination");
|
3526
|
+
}
|
3527
|
+
val /= i;
|
3528
|
+
}
|
3529
|
+
return val;
|
3530
|
+
}
|
3531
|
+
|
3532
|
+
/*
|
3533
|
+
* call-seq:
|
3534
|
+
* ary.combination(n) { |c| block } -> ary
|
3535
|
+
* ary.combination(n) -> enumerator
|
3536
|
+
*
|
3537
|
+
* When invoked with a block, yields all combinations of length <i>n</i>
|
3538
|
+
* of elements from <i>ary</i> and then returns <i>ary</i> itself.
|
3539
|
+
* The implementation makes no guarantees about the order in which
|
3540
|
+
* the combinations are yielded.
|
3541
|
+
*
|
3542
|
+
* When invoked without a block, returns an enumerator object instead.
|
3543
|
+
*
|
3544
|
+
* Examples:
|
3545
|
+
*
|
3546
|
+
* a = [1, 2, 3, 4]
|
3547
|
+
* a.combination(1).to_a #=> [[1],[2],[3],[4]]
|
3548
|
+
* a.combination(2).to_a #=> [[1,2],[1,3],[1,4],[2,3],[2,4],[3,4]]
|
3549
|
+
* a.combination(3).to_a #=> [[1,2,3],[1,2,4],[1,3,4],[2,3,4]]
|
3550
|
+
* a.combination(4).to_a #=> [[1,2,3,4]]
|
3551
|
+
* a.combination(0).to_a #=> [[]] # one combination of length 0
|
3552
|
+
* a.combination(5).to_a #=> [] # no combinations of length 5
|
3553
|
+
*
|
3554
|
+
*/
|
3555
|
+
|
3556
|
+
static VALUE
|
3557
|
+
rb_ary_combination(VALUE ary, VALUE num)
|
3558
|
+
{
|
3559
|
+
long n, i, len;
|
3560
|
+
|
3561
|
+
n = NUM2LONG(num);
|
3562
|
+
RETURN_ENUMERATOR(ary, 1, &num);
|
3563
|
+
len = RARRAY_LEN(ary);
|
3564
|
+
if (n < 0 || len < n) {
|
3565
|
+
/* yield nothing */
|
3566
|
+
}
|
3567
|
+
else if (n == 0) {
|
3568
|
+
rb_yield(rb_ary_new2(0));
|
3569
|
+
}
|
3570
|
+
else if (n == 1) {
|
3571
|
+
for (i = 0; i < len; i++) {
|
3572
|
+
rb_yield(rb_ary_new3(1, RARRAY_PTR(ary)[i]));
|
3573
|
+
}
|
3574
|
+
}
|
3575
|
+
else {
|
3576
|
+
volatile VALUE t0 = tmpbuf(n+1, sizeof(long));
|
3577
|
+
long *stack = (long*)RSTRING_PTR(t0);
|
3578
|
+
long nlen = combi_len(len, n);
|
3579
|
+
volatile VALUE cc = rb_ary_new2(n);
|
3580
|
+
VALUE *chosen = RARRAY_PTR(cc);
|
3581
|
+
long lev = 0;
|
3582
|
+
|
3583
|
+
RBASIC(cc)->klass = 0;
|
3584
|
+
MEMZERO(stack, long, n);
|
3585
|
+
stack[0] = -1;
|
3586
|
+
for (i = 0; i < nlen; i++) {
|
3587
|
+
chosen[lev] = RARRAY_PTR(ary)[stack[lev+1]];
|
3588
|
+
for (lev++; lev < n; lev++) {
|
3589
|
+
chosen[lev] = RARRAY_PTR(ary)[stack[lev+1] = stack[lev]+1];
|
3590
|
+
}
|
3591
|
+
rb_yield(rb_ary_new4(n, chosen));
|
3592
|
+
do {
|
3593
|
+
stack[lev--]++;
|
3594
|
+
} while (lev && (stack[lev+1]+n == len+lev+1));
|
3595
|
+
}
|
3596
|
+
}
|
3597
|
+
return ary;
|
3598
|
+
}
|
3599
|
+
|
3600
|
+
/*
|
3601
|
+
* call-seq:
|
3602
|
+
* ary.product(other_ary, ...)
|
3603
|
+
*
|
3604
|
+
* Returns an array of all combinations of elements from all arrays.
|
3605
|
+
* The length of the returned array is the product of the length
|
3606
|
+
* of ary and the argument arrays
|
3607
|
+
*
|
3608
|
+
* [1,2,3].product([4,5]) # => [[1,4],[1,5],[2,4],[2,5],[3,4],[3,5]]
|
3609
|
+
* [1,2].product([1,2]) # => [[1,1],[1,2],[2,1],[2,2]]
|
3610
|
+
* [1,2].product([3,4],[5,6]) # => [[1,3,5],[1,3,6],[1,4,5],[1,4,6],
|
3611
|
+
* # [2,3,5],[2,3,6],[2,4,5],[2,4,6]]
|
3612
|
+
* [1,2].product() # => [[1],[2]]
|
3613
|
+
* [1,2].product([]) # => []
|
3614
|
+
*/
|
3615
|
+
|
3616
|
+
static VALUE
|
3617
|
+
rb_ary_product(int argc, VALUE *argv, VALUE ary)
|
3618
|
+
{
|
3619
|
+
int n = argc+1; /* How many arrays we're operating on */
|
3620
|
+
volatile VALUE t0 = tmpbuf(n, sizeof(VALUE));
|
3621
|
+
volatile VALUE t1 = tmpbuf(n, sizeof(int));
|
3622
|
+
VALUE *arrays = (VALUE*)RSTRING_PTR(t0); /* The arrays we're computing the product of */
|
3623
|
+
int *counters = (int*)RSTRING_PTR(t1); /* The current position in each one */
|
3624
|
+
VALUE result; /* The array we'll be returning */
|
3625
|
+
long i,j;
|
3626
|
+
long resultlen = 1;
|
3627
|
+
|
3628
|
+
RBASIC(t0)->klass = 0;
|
3629
|
+
RBASIC(t1)->klass = 0;
|
3630
|
+
|
3631
|
+
/* initialize the arrays of arrays */
|
3632
|
+
arrays[0] = ary;
|
3633
|
+
for (i = 1; i < n; i++) arrays[i] = to_ary(argv[i-1]);
|
3634
|
+
|
3635
|
+
/* initialize the counters for the arrays */
|
3636
|
+
for (i = 0; i < n; i++) counters[i] = 0;
|
3637
|
+
|
3638
|
+
/* Compute the length of the result array; return [] if any is empty */
|
3639
|
+
for (i = 0; i < n; i++) {
|
3640
|
+
long k = RARRAY_LEN(arrays[i]), l = resultlen;
|
3641
|
+
if (k == 0) return rb_ary_new2(0);
|
3642
|
+
resultlen *= k;
|
3643
|
+
if (resultlen < k || resultlen < l || resultlen / k != l) {
|
3644
|
+
rb_raise(rb_eRangeError, "too big to product");
|
3645
|
+
}
|
3646
|
+
}
|
3647
|
+
|
3648
|
+
/* Otherwise, allocate and fill in an array of results */
|
3649
|
+
result = rb_ary_new2(resultlen);
|
3650
|
+
for (i = 0; i < resultlen; i++) {
|
3651
|
+
int m;
|
3652
|
+
/* fill in one subarray */
|
3653
|
+
VALUE subarray = rb_ary_new2(n);
|
3654
|
+
for (j = 0; j < n; j++) {
|
3655
|
+
rb_ary_push(subarray, rb_ary_entry(arrays[j], counters[j]));
|
3656
|
+
}
|
3657
|
+
|
3658
|
+
/* put it on the result array */
|
3659
|
+
rb_ary_push(result, subarray);
|
3660
|
+
|
3661
|
+
/*
|
3662
|
+
* Increment the last counter. If it overflows, reset to 0
|
3663
|
+
* and increment the one before it.
|
3664
|
+
*/
|
3665
|
+
m = n-1;
|
3666
|
+
counters[m]++;
|
3667
|
+
while (m > 0 && counters[m] == RARRAY_LEN(arrays[m])) {
|
3668
|
+
counters[m] = 0;
|
3669
|
+
m--;
|
3670
|
+
counters[m]++;
|
3671
|
+
}
|
3672
|
+
}
|
3673
|
+
|
3674
|
+
return result;
|
3675
|
+
}
|
3676
|
+
|
3677
|
+
/*
|
3678
|
+
* call-seq:
|
3679
|
+
* ary.take(n) => array
|
3680
|
+
*
|
3681
|
+
* Returns first n elements from <i>ary</i>.
|
3682
|
+
*
|
3683
|
+
* a = [1, 2, 3, 4, 5, 0]
|
3684
|
+
* a.take(3) # => [1, 2, 3]
|
3685
|
+
*
|
3686
|
+
*/
|
3687
|
+
|
3688
|
+
static VALUE
|
3689
|
+
rb_ary_take(VALUE obj, VALUE n)
|
3690
|
+
{
|
3691
|
+
long len = NUM2LONG(n);
|
3692
|
+
if (len < 0) {
|
3693
|
+
rb_raise(rb_eArgError, "attempt to take negative size");
|
3694
|
+
}
|
3695
|
+
return rb_ary_subseq(obj, 0, len);
|
3696
|
+
}
|
3697
|
+
|
3698
|
+
/*
|
3699
|
+
* call-seq:
|
3700
|
+
* ary.take_while {|arr| block } => array
|
3701
|
+
*
|
3702
|
+
* Passes elements to the block until the block returns nil or false,
|
3703
|
+
* then stops iterating and returns an array of all prior elements.
|
3704
|
+
*
|
3705
|
+
* a = [1, 2, 3, 4, 5, 0]
|
3706
|
+
* a.take_while {|i| i < 3 } # => [1, 2]
|
3707
|
+
*
|
3708
|
+
*/
|
3709
|
+
|
3710
|
+
static VALUE
|
3711
|
+
rb_ary_take_while(VALUE ary)
|
3712
|
+
{
|
3713
|
+
long i;
|
3714
|
+
|
3715
|
+
RETURN_ENUMERATOR(ary, 0, 0);
|
3716
|
+
for (i = 0; i < RARRAY_LEN(ary); i++) {
|
3717
|
+
if (!RTEST(rb_yield(RARRAY_PTR(ary)[i]))) break;
|
3718
|
+
}
|
3719
|
+
return rb_ary_take(ary, LONG2FIX(i));
|
3720
|
+
}
|
3721
|
+
|
3722
|
+
/*
|
3723
|
+
* call-seq:
|
3724
|
+
* ary.drop(n) => array
|
3725
|
+
*
|
3726
|
+
* Drops first n elements from <i>ary</i>, and returns rest elements
|
3727
|
+
* in an array.
|
3728
|
+
*
|
3729
|
+
* a = [1, 2, 3, 4, 5, 0]
|
3730
|
+
* a.drop(3) # => [4, 5, 0]
|
3731
|
+
*
|
3732
|
+
*/
|
3733
|
+
|
3734
|
+
static VALUE
|
3735
|
+
rb_ary_drop(VALUE ary, VALUE n)
|
3736
|
+
{
|
3737
|
+
VALUE result;
|
3738
|
+
long pos = NUM2LONG(n);
|
3739
|
+
if (pos < 0) {
|
3740
|
+
rb_raise(rb_eArgError, "attempt to drop negative size");
|
3741
|
+
}
|
3742
|
+
|
3743
|
+
result = rb_ary_subseq(ary, pos, RARRAY_LEN(ary));
|
3744
|
+
if (result == Qnil) result = rb_ary_new();
|
3745
|
+
return result;
|
3746
|
+
}
|
3747
|
+
|
3748
|
+
/*
|
3749
|
+
* call-seq:
|
3750
|
+
* ary.drop_while {|arr| block } => array
|
3751
|
+
*
|
3752
|
+
* Drops elements up to, but not including, the first element for
|
3753
|
+
* which the block returns nil or false and returns an array
|
3754
|
+
* containing the remaining elements.
|
3755
|
+
*
|
3756
|
+
* a = [1, 2, 3, 4, 5, 0]
|
3757
|
+
* a.drop_while {|i| i < 3 } # => [3, 4, 5, 0]
|
3758
|
+
*
|
3759
|
+
*/
|
3760
|
+
|
3761
|
+
static VALUE
|
3762
|
+
rb_ary_drop_while(VALUE ary)
|
3763
|
+
{
|
3764
|
+
long i;
|
3765
|
+
|
3766
|
+
RETURN_ENUMERATOR(ary, 0, 0);
|
3767
|
+
for (i = 0; i < RARRAY_LEN(ary); i++) {
|
3768
|
+
if (!RTEST(rb_yield(RARRAY_PTR(ary)[i]))) break;
|
3769
|
+
}
|
3770
|
+
return rb_ary_drop(ary, LONG2FIX(i));
|
3771
|
+
}
|
3772
|
+
|
3773
|
+
|
3774
|
+
|
3775
|
+
/* Arrays are ordered, integer-indexed collections of any object.
|
3776
|
+
* Array indexing starts at 0, as in C or Java. A negative index is
|
3777
|
+
* assumed to be relative to the end of the array---that is, an index of -1
|
3778
|
+
* indicates the last element of the array, -2 is the next to last
|
3779
|
+
* element in the array, and so on.
|
3780
|
+
*/
|
3781
|
+
|
3782
|
+
void
|
3783
|
+
Init_Array(void)
|
3784
|
+
{
|
3785
|
+
#undef rb_intern
|
3786
|
+
#define rb_intern(str) rb_intern_const(str)
|
3787
|
+
|
3788
|
+
rb_cArray = rb_define_class("Array", rb_cObject);
|
3789
|
+
rb_include_module(rb_cArray, rb_mEnumerable);
|
3790
|
+
|
3791
|
+
rb_define_alloc_func(rb_cArray, ary_alloc);
|
3792
|
+
rb_define_singleton_method(rb_cArray, "[]", rb_ary_s_create, -1);
|
3793
|
+
rb_define_singleton_method(rb_cArray, "try_convert", rb_ary_s_try_convert, 1);
|
3794
|
+
rb_define_method(rb_cArray, "initialize", rb_ary_initialize, -1);
|
3795
|
+
rb_define_method(rb_cArray, "initialize_copy", rb_ary_replace, 1);
|
3796
|
+
|
3797
|
+
rb_define_method(rb_cArray, "to_s", rb_ary_inspect, 0);
|
3798
|
+
rb_define_method(rb_cArray, "inspect", rb_ary_inspect, 0);
|
3799
|
+
rb_define_method(rb_cArray, "to_a", rb_ary_to_a, 0);
|
3800
|
+
rb_define_method(rb_cArray, "to_ary", rb_ary_to_ary_m, 0);
|
3801
|
+
rb_define_method(rb_cArray, "frozen?", rb_ary_frozen_p, 0);
|
3802
|
+
|
3803
|
+
rb_define_method(rb_cArray, "==", rb_ary_equal, 1);
|
3804
|
+
rb_define_method(rb_cArray, "eql?", rb_ary_eql, 1);
|
3805
|
+
rb_define_method(rb_cArray, "hash", rb_ary_hash, 0);
|
3806
|
+
|
3807
|
+
rb_define_method(rb_cArray, "[]", rb_ary_aref, -1);
|
3808
|
+
rb_define_method(rb_cArray, "[]=", rb_ary_aset, -1);
|
3809
|
+
rb_define_method(rb_cArray, "at", rb_ary_at, 1);
|
3810
|
+
rb_define_method(rb_cArray, "fetch", rb_ary_fetch, -1);
|
3811
|
+
rb_define_method(rb_cArray, "first", rb_ary_first, -1);
|
3812
|
+
rb_define_method(rb_cArray, "last", rb_ary_last, -1);
|
3813
|
+
rb_define_method(rb_cArray, "concat", rb_ary_concat, 1);
|
3814
|
+
rb_define_method(rb_cArray, "<<", rb_ary_push, 1);
|
3815
|
+
rb_define_method(rb_cArray, "push", rb_ary_push_m, -1);
|
3816
|
+
rb_define_method(rb_cArray, "pop", rb_ary_pop_m, -1);
|
3817
|
+
rb_define_method(rb_cArray, "shift", rb_ary_shift_m, -1);
|
3818
|
+
rb_define_method(rb_cArray, "unshift", rb_ary_unshift_m, -1);
|
3819
|
+
rb_define_method(rb_cArray, "insert", rb_ary_insert, -1);
|
3820
|
+
rb_define_method(rb_cArray, "each", rb_ary_each, 0);
|
3821
|
+
rb_define_method(rb_cArray, "each_index", rb_ary_each_index, 0);
|
3822
|
+
rb_define_method(rb_cArray, "reverse_each", rb_ary_reverse_each, 0);
|
3823
|
+
rb_define_method(rb_cArray, "length", rb_ary_length, 0);
|
3824
|
+
rb_define_alias(rb_cArray, "size", "length");
|
3825
|
+
rb_define_method(rb_cArray, "empty?", rb_ary_empty_p, 0);
|
3826
|
+
rb_define_method(rb_cArray, "find_index", rb_ary_index, -1);
|
3827
|
+
rb_define_method(rb_cArray, "index", rb_ary_index, -1);
|
3828
|
+
rb_define_method(rb_cArray, "rindex", rb_ary_rindex, -1);
|
3829
|
+
rb_define_method(rb_cArray, "join", rb_ary_join_m, -1);
|
3830
|
+
rb_define_method(rb_cArray, "reverse", rb_ary_reverse_m, 0);
|
3831
|
+
rb_define_method(rb_cArray, "reverse!", rb_ary_reverse_bang, 0);
|
3832
|
+
rb_define_method(rb_cArray, "sort", rb_ary_sort, 0);
|
3833
|
+
rb_define_method(rb_cArray, "sort!", rb_ary_sort_bang, 0);
|
3834
|
+
rb_define_method(rb_cArray, "collect", rb_ary_collect, 0);
|
3835
|
+
rb_define_method(rb_cArray, "collect!", rb_ary_collect_bang, 0);
|
3836
|
+
rb_define_method(rb_cArray, "map", rb_ary_collect, 0);
|
3837
|
+
rb_define_method(rb_cArray, "map!", rb_ary_collect_bang, 0);
|
3838
|
+
rb_define_method(rb_cArray, "select", rb_ary_select, 0);
|
3839
|
+
rb_define_method(rb_cArray, "values_at", rb_ary_values_at, -1);
|
3840
|
+
rb_define_method(rb_cArray, "delete", rb_ary_delete, 1);
|
3841
|
+
rb_define_method(rb_cArray, "delete_at", rb_ary_delete_at_m, 1);
|
3842
|
+
rb_define_method(rb_cArray, "delete_if", rb_ary_delete_if, 0);
|
3843
|
+
rb_define_method(rb_cArray, "reject", rb_ary_reject, 0);
|
3844
|
+
rb_define_method(rb_cArray, "reject!", rb_ary_reject_bang, 0);
|
3845
|
+
rb_define_method(rb_cArray, "zip", rb_ary_zip, -1);
|
3846
|
+
rb_define_method(rb_cArray, "transpose", rb_ary_transpose, 0);
|
3847
|
+
rb_define_method(rb_cArray, "replace", rb_ary_replace, 1);
|
3848
|
+
rb_define_method(rb_cArray, "clear", rb_ary_clear, 0);
|
3849
|
+
rb_define_method(rb_cArray, "fill", rb_ary_fill, -1);
|
3850
|
+
rb_define_method(rb_cArray, "include?", rb_ary_includes, 1);
|
3851
|
+
rb_define_method(rb_cArray, "<=>", rb_ary_cmp, 1);
|
3852
|
+
|
3853
|
+
rb_define_method(rb_cArray, "slice", rb_ary_aref, -1);
|
3854
|
+
rb_define_method(rb_cArray, "slice!", rb_ary_slice_bang, -1);
|
3855
|
+
|
3856
|
+
rb_define_method(rb_cArray, "assoc", rb_ary_assoc, 1);
|
3857
|
+
rb_define_method(rb_cArray, "rassoc", rb_ary_rassoc, 1);
|
3858
|
+
|
3859
|
+
rb_define_method(rb_cArray, "+", rb_ary_plus, 1);
|
3860
|
+
rb_define_method(rb_cArray, "*", rb_ary_times, 1);
|
3861
|
+
|
3862
|
+
rb_define_method(rb_cArray, "-", rb_ary_diff, 1);
|
3863
|
+
rb_define_method(rb_cArray, "&", rb_ary_and, 1);
|
3864
|
+
rb_define_method(rb_cArray, "|", rb_ary_or, 1);
|
3865
|
+
|
3866
|
+
rb_define_method(rb_cArray, "uniq", rb_ary_uniq, 0);
|
3867
|
+
rb_define_method(rb_cArray, "uniq!", rb_ary_uniq_bang, 0);
|
3868
|
+
rb_define_method(rb_cArray, "compact", rb_ary_compact, 0);
|
3869
|
+
rb_define_method(rb_cArray, "compact!", rb_ary_compact_bang, 0);
|
3870
|
+
rb_define_method(rb_cArray, "flatten", rb_ary_flatten, -1);
|
3871
|
+
rb_define_method(rb_cArray, "flatten!", rb_ary_flatten_bang, -1);
|
3872
|
+
rb_define_method(rb_cArray, "count", rb_ary_count, -1);
|
3873
|
+
rb_define_method(rb_cArray, "shuffle!", rb_ary_shuffle_bang, 0);
|
3874
|
+
rb_define_method(rb_cArray, "shuffle", rb_ary_shuffle, 0);
|
3875
|
+
rb_define_method(rb_cArray, "sample", rb_ary_sample, -1);
|
3876
|
+
rb_define_method(rb_cArray, "cycle", rb_ary_cycle, -1);
|
3877
|
+
rb_define_method(rb_cArray, "permutation", rb_ary_permutation, -1);
|
3878
|
+
rb_define_method(rb_cArray, "combination", rb_ary_combination, 1);
|
3879
|
+
rb_define_method(rb_cArray, "product", rb_ary_product, -1);
|
3880
|
+
|
3881
|
+
rb_define_method(rb_cArray, "take", rb_ary_take, 1);
|
3882
|
+
rb_define_method(rb_cArray, "take_while", rb_ary_take_while, 0);
|
3883
|
+
rb_define_method(rb_cArray, "drop", rb_ary_drop, 1);
|
3884
|
+
rb_define_method(rb_cArray, "drop_while", rb_ary_drop_while, 0);
|
3885
|
+
|
3886
|
+
id_cmp = rb_intern("<=>");
|
3887
|
+
}
|