messagebus_ruby_api 0.4.0 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +40 -50
- data/lib/messagebus_ruby_api/client.rb +76 -54
- data/lib/messagebus_ruby_api/version.rb +1 -1
- data/spec/messagebus_ruby_api/client_spec.rb +66 -19
- data/spec/ruby/1.9.1/bin/autospec +19 -0
- data/spec/ruby/1.9.1/bin/htmldiff +19 -0
- data/spec/ruby/1.9.1/bin/ldiff +19 -0
- data/spec/ruby/1.9.1/bin/rspec +19 -0
- data/spec/ruby/1.9.1/cache/activesupport-3.0.9.gem +0 -0
- data/spec/ruby/1.9.1/cache/diff-lcs-1.1.2.gem +0 -0
- data/spec/ruby/1.9.1/cache/fakeweb-1.3.0.gem +0 -0
- data/spec/ruby/1.9.1/cache/rr-1.0.2.gem +0 -0
- data/spec/ruby/1.9.1/cache/rspec-2.5.0.gem +0 -0
- data/spec/ruby/1.9.1/cache/rspec-core-2.5.1.gem +0 -0
- data/spec/ruby/1.9.1/cache/rspec-expectations-2.5.0.gem +0 -0
- data/spec/ruby/1.9.1/cache/rspec-mocks-2.5.0.gem +0 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/CHANGELOG +1496 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/README.rdoc +33 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/all.rb +3 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/backtrace_cleaner.rb +94 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/base64.rb +42 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/basic_object.rb +21 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/benchmarkable.rb +60 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/buffered_logger.rb +139 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/builder.rb +6 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/compressed_mem_cache_store.rb +13 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/file_store.rb +188 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/mem_cache_store.rb +190 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/memory_store.rb +159 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/strategy/local_cache.rb +164 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/synchronized_memory_store.rb +11 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache.rb +638 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/callbacks.rb +601 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/concern.rb +64 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/configurable.rb +48 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/access.rb +46 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/conversions.rb +164 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/extract_options.rb +29 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/grouping.rb +100 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/random_access.rb +27 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/uniq_by.rb +17 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/wrap.rb +48 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array.rb +7 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/benchmark.rb +7 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/big_decimal/conversions.rb +44 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/big_decimal.rb +1 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +19 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/cgi.rb +1 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/attribute.rb +90 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/attribute_accessors.rb +79 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/delegating_attributes.rb +44 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/inheritable_attributes.rb +254 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/subclasses.rb +50 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class.rb +5 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/acts_like.rb +8 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/calculations.rb +241 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/conversions.rb +99 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/freeze.rb +31 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/zones.rb +14 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date_time/acts_like.rb +13 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date_time/calculations.rb +115 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date_time/conversions.rb +103 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date_time/zones.rb +21 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/enumerable.rb +120 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/exception.rb +3 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/file/atomic.rb +41 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/file/path.rb +5 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/file.rb +2 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/float/rounding.rb +19 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/float.rb +1 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/conversions.rb +151 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/deep_merge.rb +16 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/diff.rb +13 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/except.rb +23 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/indifferent_access.rb +12 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/keys.rb +45 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/reverse_merge.rb +28 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/slice.rb +38 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash.rb +8 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/integer/inflections.rb +14 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/integer/multiple.rb +6 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/integer/time.rb +39 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/integer.rb +3 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/agnostics.rb +11 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/debugger.rb +16 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/reporting.rb +62 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/requires.rb +26 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/singleton_class.rb +13 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel.rb +5 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/load_error.rb +23 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/logger.rb +108 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/aliasing.rb +70 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/anonymous.rb +24 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/attr_accessor_with_default.rb +31 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/attr_internal.rb +32 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/attribute_accessors.rb +60 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/delegation.rb +146 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/deprecation.rb +11 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/introspection.rb +88 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/method_names.rb +14 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/reachable.rb +10 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/remove_method.rb +11 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/synchronization.rb +43 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module.rb +12 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/name_error.rb +18 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/numeric/bytes.rb +44 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/numeric/time.rb +77 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/numeric.rb +2 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/acts_like.rb +10 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/blank.rb +76 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/conversions.rb +4 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/duplicable.rb +65 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/instance_variables.rb +67 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/returning.rb +43 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/to_json.rb +19 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/to_param.rb +50 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/to_query.rb +27 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/try.rb +36 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/with_options.rb +26 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object.rb +13 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/proc.rb +14 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/process/daemon.rb +23 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/process.rb +1 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range/blockless_step.rb +29 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range/conversions.rb +21 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range/include_range.rb +21 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range/overlaps.rb +8 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range.rb +4 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/regexp.rb +5 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/rexml.rb +46 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/access.rb +99 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/behavior.rb +7 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/conversions.rb +53 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/encoding.rb +11 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/exclude.rb +6 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/filters.rb +49 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/inflections.rb +164 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/interpolation.rb +2 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/multibyte.rb +72 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/output_safety.rb +135 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/starts_ends_with.rb +4 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/strip.rb +26 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/xchar.rb +18 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string.rb +13 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/acts_like.rb +8 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/calculations.rb +287 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/conversions.rb +85 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/marshal.rb +56 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/publicize_conversion_methods.rb +10 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/zones.rb +75 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/uri.rb +22 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext.rb +3 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies/autoload.rb +50 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb +668 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation/behaviors.rb +42 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation/method_wrappers.rb +29 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation/proxy_wrappers.rb +81 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation/reporting.rb +61 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation.rb +18 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/descendants_tracker.rb +43 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/duration.rb +105 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/file_update_checker.rb +36 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/gzip.rb +29 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/hash_with_indifferent_access.rb +152 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/i18n.rb +10 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/i18n_railtie.rb +96 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflections.rb +60 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector/inflections.rb +211 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector/methods.rb +151 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector/transliterate.rb +98 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector.rb +7 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/backends/jsongem.rb +47 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/backends/yajl.rb +44 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/backends/yaml.rb +107 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/decoding.rb +51 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/encoding.rb +279 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/variable.rb +9 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json.rb +2 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/lazy_load_hooks.rb +46 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/locale/en.yml +36 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/log_subscriber/test_helper.rb +99 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/log_subscriber.rb +122 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/memoizable.rb +105 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/message_encryptor.rb +71 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/message_verifier.rb +62 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte/chars.rb +476 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte/exceptions.rb +8 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte/unicode.rb +392 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte/utils.rb +60 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte.rb +44 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/notifications/fanout.rb +61 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/notifications/instrumenter.rb +54 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/notifications.rb +78 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/option_merger.rb +25 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/ordered_hash.rb +192 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/ordered_options.rb +27 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/railtie.rb +60 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/rescuable.rb +114 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/ruby/shim.rb +22 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/secure_random.rb +199 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/string_inquirer.rb +21 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/test_case.rb +42 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/assertions.rb +84 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/declarative.rb +40 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/default.rb +9 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/deprecation.rb +55 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/isolation.rb +157 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/pending.rb +48 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/performance.rb +425 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/setup_and_teardown.rb +111 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/time/autoload.rb +5 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/time.rb +35 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/time_with_zone.rb +348 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/values/time_zone.rb +379 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/values/unicode_tables.dat +0 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/version.rb +10 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/whiny_nil.rb +60 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/jdom.rb +175 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/libxml.rb +79 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/libxmlsax.rb +85 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/nokogiri.rb +83 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/nokogirisax.rb +87 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/rexml.rb +129 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini.rb +162 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support.rb +80 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/ChangeLog +46 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/Install +6 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/README +76 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/Rakefile +116 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/bin/htmldiff +112 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/bin/ldiff +45 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/array.rb +21 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/block.rb +51 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/callbacks.rb +322 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/change.rb +169 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/hunk.rb +257 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/ldiff.rb +226 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/string.rb +19 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs.rb +1105 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/tests/00test.rb +626 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/CHANGELOG +215 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/LICENSE.txt +19 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/README.rdoc +189 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/Rakefile +67 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/fakeweb.gemspec +126 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/ext/net_http.rb +72 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/registry.rb +127 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/responder.rb +122 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/response.rb +10 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/stub_socket.rb +15 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/utility.rb +87 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web.rb +215 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fakeweb.rb +2 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/google_response_from_curl +12 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/google_response_with_transfer_encoding +17 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/google_response_without_transfer_encoding +11 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/test_example.txt +1 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/test_txt_file +3 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_allow_net_connect.rb +168 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_deprecations.rb +54 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_fake_authentication.rb +92 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_fake_web.rb +590 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_fake_web_open_uri.rb +58 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_helper.rb +90 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_last_request.rb +29 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_missing_open_uri.rb +25 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_missing_pathname.rb +37 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_other_net_http_libraries.rb +36 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_precedence.rb +79 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_query_string.rb +45 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_regexes.rb +157 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_response_headers.rb +79 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_trailing_slashes.rb +53 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_utility.rb +83 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/History.txt +59 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/Manifest.txt +7 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/README.txt +54 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/Rakefile +103 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/lib/net_fix.rb +160 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/lib/right_http_connection.rb +435 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/setup.rb +1585 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/LICENSE +20 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/README.rdoc +70 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/Rakefile +62 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/VERSION +1 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/lib/samuel/net_http.rb +10 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/lib/samuel/request.rb +96 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/lib/samuel.rb +52 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/samuel.gemspec +69 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/test/request_test.rb +193 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/test/samuel_test.rb +42 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/test/test_helper.rb +66 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/test/thread_test.rb +32 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/CHANGES +260 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/Gemfile +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/LICENSE +22 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/README.rdoc +385 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/Rakefile +88 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/VERSION.yml +5 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/adapters/rr_methods.rb +146 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/adapters/rspec.rb +61 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/adapters/test_unit.rb +31 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/blank_slate.rb +17 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/class_instance_method_defined.rb +9 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double.rb +154 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/child_double_definition_create.rb +27 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_definition.rb +367 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_definition_create.rb +139 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_definition_create_blank_slate.rb +26 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_injections/any_instance_of.rb +28 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_injections/instance.rb +16 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/double_injection/any_instance_of.rb +30 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/double_injection/double_injection_strategy.rb +10 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/double_injection/instance.rb +17 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/implementation_strategy.rb +10 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/proxy.rb +60 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/reimplementation.rb +14 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/strongly_typed_reimplementation.rb +15 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/strategy.rb +43 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/strategy_methods.rb +53 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/dont_allow.rb +31 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/mock.rb +42 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/stub.rb +43 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/verification_strategy.rb +10 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_matches.rb +42 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/argument_equality_error.rb +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/double_definition_error.rb +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/double_not_found_error.rb +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/double_order_error.rb +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/rr_error.rb +20 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/spy_verification_errors/double_injection_not_found_error.rb +8 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/spy_verification_errors/invocation_count_error.rb +8 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/spy_verification_errors/spy_verification_error.rb +8 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/subject_does_not_implement_method_error.rb +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/subject_has_different_arity_error.rb +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/times_called_error.rb +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/expectations/any_argument_expectation.rb +21 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/expectations/argument_equality_expectation.rb +41 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/expectations/times_called_expectation.rb +57 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/hash_with_object_id_key.rb +46 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/injections/double_injection.rb +213 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/injections/injection.rb +33 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/injections/method_missing_injection.rb +68 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/injections/singleton_method_added_injection.rb +72 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/method_dispatches/base_method_dispatch.rb +84 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/method_dispatches/method_dispatch.rb +59 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/method_dispatches/method_missing_dispatch.rb +61 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/proc_from_block.rb +7 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/recorded_calls.rb +103 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/space.rb +112 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/spy_verification.rb +48 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/spy_verification_proxy.rb +13 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/any_times_matcher.rb +18 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/at_least_matcher.rb +15 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/at_most_matcher.rb +23 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/integer_matcher.rb +19 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/never_matcher.rb +23 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/non_terminal.rb +27 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/proc_matcher.rb +11 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/range_matcher.rb +21 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/terminal.rb +20 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/times_called_matcher.rb +44 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/anything.rb +18 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/boolean.rb +23 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/duck_type.rb +32 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/hash_including.rb +29 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/is_a.rb +25 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/numeric.rb +13 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/range.rb +7 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/regexp.rb +7 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/satisfy.rb +26 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers.rb +158 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr.rb +99 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/scratch.rb +118 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/any_instance_of/all_instances_of_spec.rb +12 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/any_instance_of/any_instance_of_spec.rb +47 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/any_instance_of/instance_of_spec.rb +12 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/dont_allow/dont_allow_after_stub_spec.rb +14 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/mock/mock_spec.rb +193 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/proxy/proxy_spec.rb +86 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/spy/spy_spec.rb +49 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/strong/strong_spec.rb +87 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/stub/stub_spec.rb +152 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/core_spec_suite.rb +19 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/environment_fixture_setup.rb +8 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/proc_from_block_spec.rb +14 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_argument_matcher_spec.rb +67 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_creator_spec.rb +137 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_space_spec.rb +98 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_spec_helper.rb +11 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_times_matcher_spec.rb +13 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_definitions/child_double_definition_creator_spec.rb +112 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_definitions/double_definition_create_blank_slate_spec.rb +91 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_definitions/double_definition_create_spec.rb +443 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_injection/double_injection_spec.rb +546 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_injection/double_injection_verify_spec.rb +29 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/errors/rr_error_spec.rb +67 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/any_argument_expectation_spec.rb +47 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/anything_argument_equality_expectation_spec.rb +14 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/argument_equality_expectation_spec.rb +135 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/boolean_argument_equality_expectation_spec.rb +34 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/hash_including_argument_equality_expectation_spec.rb +82 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/hash_including_spec.rb +17 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/satisfy_argument_equality_expectation_spec.rb +59 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/satisfy_spec.rb +14 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_any_times_spec.rb +22 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_at_least_spec.rb +37 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_at_most_spec.rb +43 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_helper.rb +15 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_integer_spec.rb +58 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_proc_spec.rb +35 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_range_spec.rb +39 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/invocation_matcher_spec.rb +279 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/rspec_adapter_spec.rb +63 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/rspec_backtrace_tweaking_spec.rb +31 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/rspec_backtrace_tweaking_spec_fixture.rb +11 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/rspec_usage_spec.rb +86 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/space/hash_with_object_id_key_spec.rb +88 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/space/space_spec.rb +587 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/test_unit/test_helper.rb +7 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/test_unit/test_unit_backtrace_test.rb +36 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/test_unit/test_unit_integration_test.rb +59 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/any_times_matcher_spec.rb +47 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/at_least_matcher_spec.rb +55 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/at_most_matcher_spec.rb +70 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/integer_matcher_spec.rb +70 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/proc_matcher_spec.rb +55 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/range_matcher_spec.rb +76 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/times_called_matcher_spec.rb +118 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/anything_spec.rb +24 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/boolean_spec.rb +36 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/duck_type_spec.rb +52 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/is_a_spec.rb +32 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/numeric_spec.rb +32 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/range_spec.rb +35 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/regexp_spec.rb +43 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr_spec.rb +28 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rspec_spec_suite.rb +17 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/spec_helper.rb +37 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/spec_suite.rb +48 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/spy_verification_spec.rb +129 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/test_unit_spec_suite.rb +21 -0
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/Gemfile +7 -0
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/License.txt +22 -0
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/README.markdown +47 -0
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/Rakefile +16 -0
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/lib/rspec/version.rb +5 -0
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/lib/rspec.rb +4 -0
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/rspec.gemspec +29 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/Gemfile +52 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/Guardfile +5 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/License.txt +23 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/README.md +103 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/Rakefile +72 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/bin/autospec +13 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/bin/rspec +25 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/cucumber.yml +2 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/Autotest.md +14 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/Changelog.md +226 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/README.md +17 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/Upgrade.md +287 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/README.md +6 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/configure.feature +22 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/example_name_option.feature +86 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/exit_status.feature +52 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/format_option.feature +73 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/line_number_appended_to_path.feature +106 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/line_number_option.feature +45 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/rake_task.feature +68 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/tag.feature +74 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/configuration/custom_settings.feature +84 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/configuration/fail_fast.feature +77 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/configuration/read_options_from_file.feature +87 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/example_groups/basic_structure.feature +59 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/example_groups/shared_example_group.feature +177 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/expectation_framework_integration/configure_expectation_framework.feature +62 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/filtering/exclusion_filters.feature +115 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/filtering/implicit_filters.feature +166 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/filtering/inclusion_filters.feature +83 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/filtering/run_all_when_everything_filtered.feature +46 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/formatters/custom_formatter.feature +36 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/helper_methods/arbitrary_methods.feature +40 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/helper_methods/let.feature +50 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/hooks/around_hooks.feature +336 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/hooks/before_and_after_hooks.feature +427 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/hooks/filtering.feature +191 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/metadata/described_class.feature +17 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_any_framework.feature +106 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_flexmock.feature +23 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_mocha.feature +23 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_rr.feature +23 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_rspec.feature +23 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/pending/pending_examples.feature +216 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/spec_files/arbitrary_file_suffix.feature +13 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/step_definitions/additional_cli_steps.rb +20 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/subject/attribute_of_subject.feature +102 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/subject/explicit_subject.feature +78 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/subject/implicit_receiver.feature +29 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/subject/implicit_subject.feature +30 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/support/env.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/autotest/discover.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/autotest/rspec2.rb +67 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/autorun.rb +2 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/backward_compatibility.rb +48 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/command_line.rb +35 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/command_line_configuration.rb +62 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb +470 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/configuration_options.rb +126 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/deprecation.rb +45 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/drb_command_line.rb +29 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/errors.rb +14 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/example.rb +167 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/example_group.rb +300 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/expecting/with_rspec.rb +11 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/expecting/with_stdlib.rb +9 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions/instance_eval_with_args.rb +39 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions/kernel.rb +5 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions/module_eval_with_args.rb +34 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions/object.rb +14 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions.rb +4 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/base_formatter.rb +162 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/base_text_formatter.rb +165 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/documentation_formatter.rb +71 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/helpers.rb +28 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/html_formatter.rb +456 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/snippet_extractor.rb +52 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/text_mate_formatter.rb +20 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/hooks.rb +149 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/let.rb +101 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/load_path.rb +3 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/metadata.rb +187 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_flexmock.rb +25 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_mocha.rb +21 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_rr.rb +25 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_rspec.rb +21 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/option_parser.rb +132 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/pending.rb +30 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb +196 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/reporter.rb +79 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/ruby_project.rb +44 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb +61 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/shared_context.rb +16 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/shared_example_group.rb +53 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/subject.rb +177 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/version.rb +7 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/world.rb +102 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core.rb +65 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/monkey/spork/test_framework/rspec.rb +7 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/monkey.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/rspec-core.gemspec +26 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/FullBuildRakeFile +63 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/console +8 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/cucumber +1 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/full_build +1 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/spec +1 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/autotest/discover_spec.rb +19 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/autotest/failed_results_re_spec.rb +37 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/autotest/rspec_spec.rb +123 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/command_line_configuration_spec.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/command_line_spec.rb +134 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/configuration_options_spec.rb +341 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/configuration_spec.rb +716 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/deprecations_spec.rb +45 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/drb_command_line_spec.rb +159 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/example_group_spec.rb +753 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/example_spec.rb +162 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/base_formatter_spec.rb +59 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/base_text_formatter_spec.rb +184 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/documentation_formatter_spec.rb +66 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/helpers_spec.rb +46 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.8.6.html +398 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +400 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.8.7.html +398 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.9.1.html +405 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.9.2.html +405 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatter_spec.rb +81 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/progress_formatter_spec.rb +31 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/snippet_extractor_spec.rb +18 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.8.6.html +398 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +400 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +398 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.9.1.html +405 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +405 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatter_spec.rb +84 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/hooks_filtering_spec.rb +227 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/hooks_spec.rb +57 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/kernel_extensions_spec.rb +9 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/let_spec.rb +42 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/metadata_spec.rb +298 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/option_parser_spec.rb +75 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/pending_example_spec.rb +226 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/rake_task_spec.rb +161 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/reporter_spec.rb +70 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/a_bar.rb +0 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/a_foo.rb +0 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/a_spec.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/formatter_specs.rb +54 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/utf8_encoded.rb +8 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/ruby_project_spec.rb +24 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/runner_spec.rb +47 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/shared_context_spec.rb +30 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/shared_example_group_spec.rb +152 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/subject_spec.rb +178 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/world_spec.rb +174 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core_spec.rb +31 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/ruby_forker.rb +13 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/spec_helper.rb +71 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/support/matchers.rb +44 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/Gemfile +38 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/Guardfile +5 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/License.txt +22 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/README.md +41 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/Rakefile +70 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/cucumber.yml +3 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/Changelog.md +84 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/README.markdown +42 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/Upgrade.md +53 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/be.feature +135 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/be_within.feature +43 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/equality.feature +142 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/exist.feature +49 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/expect_change.feature +59 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/expect_error.feature +105 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/have.feature +103 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/include.feature +121 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/match.feature +50 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/operators.feature +221 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/predicates.feature +128 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/respond_to.feature +78 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/satisfy.feature +31 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/throw_symbol.feature +85 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/types.feature +114 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/access_running_example.feature +53 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/define_diffable_matcher.feature +27 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/define_matcher.feature +311 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/customized_message.feature +22 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/diffing.feature +85 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/implicit_docstrings.feature +52 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/step_definitions/additional_cli_steps.rb +22 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/support/env.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/test_frameworks/test_unit.feature +46 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/backward_compatibility.rb +16 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/deprecation.rb +36 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/differ.rb +62 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/errors.rb +12 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/extensions/array.rb +7 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/extensions/kernel.rb +52 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/extensions.rb +2 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/fail_with.rb +51 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/handler.rb +50 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/version.rb +7 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations.rb +39 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be.rb +222 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be_close.rb +17 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be_instance_of.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be_kind_of.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be_within.rb +40 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/block_aliases.rb +19 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/change.rb +190 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/compatibility.rb +14 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/dsl.rb +21 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/eq.rb +50 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/eql.rb +45 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/equal.rb +53 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/errors.rb +5 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/exist.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/extensions/instance_exec.rb +31 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/generated_descriptions.rb +36 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/has.rb +35 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/have.rb +151 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/include.rb +54 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/match.rb +21 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/match_array.rb +71 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/matcher.rb +161 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/method_missing.rb +12 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/operator_matcher.rb +87 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/pretty.rb +37 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/raise_error.rb +130 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/respond_to.rb +85 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/satisfy.rb +51 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/throw_symbol.rb +121 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers.rb +196 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec-expectations.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/rspec-expectations.gemspec +27 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/expectations/differ_spec.rb +96 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/expectations/extensions/kernel_spec.rb +45 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/expectations/fail_with_spec.rb +70 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/expectations/handler_spec.rb +206 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_close_spec.rb +22 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_instance_of_spec.rb +36 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_kind_of_spec.rb +33 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_spec.rb +456 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_within_spec.rb +64 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/change_spec.rb +409 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/compatibility_spec.rb +28 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/description_generation_spec.rb +160 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/dsl_spec.rb +25 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/eq_spec.rb +38 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/eql_spec.rb +37 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/equal_spec.rb +57 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/exist_spec.rb +104 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/has_spec.rb +81 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/have_spec.rb +401 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/include_spec.rb +341 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/match_array_spec.rb +111 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/match_spec.rb +57 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/matcher_spec.rb +374 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/matchers_spec.rb +51 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/operator_matcher_spec.rb +215 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/raise_error_spec.rb +339 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/respond_to_spec.rb +292 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/satisfy_spec.rb +40 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/throw_symbol_spec.rb +113 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/spec_helper.rb +24 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/suite.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/support/classes.rb +45 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/support/matchers.rb +22 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/support/ruby_version.rb +10 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/specs.watchr +57 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/Gemfile +39 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/Guardfile +8 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/License.txt +22 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/README.md +57 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/Rakefile +75 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/autotest/discover.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/cucumber.yml +2 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/Changelog.md +68 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/README.markdown +27 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/Upgrade.md +14 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/message_expectations/README.md +58 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/message_expectations/block_local_expectations.feature.pending +55 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/message_expectations/expect_message.feature +94 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/method_stubs/README.md +39 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/method_stubs/simple_return_value.feature +55 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/method_stubs/stub_chain.feature +44 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/method_stubs/stub_implementation.feature +26 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/outside_rspec/configuration.feature +82 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/outside_rspec/standalone.feature +32 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/support/env.rb +2 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/argument_expectation.rb +53 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/argument_matchers.rb +233 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/error_generator.rb +97 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/errors.rb +10 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/extensions/instance_exec.rb +31 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/extensions/marshal.rb +27 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/framework.rb +17 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/message_expectation.rb +351 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/method_double.rb +165 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/methods.rb +100 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/mock.rb +79 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/order_group.rb +29 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/proxy.rb +158 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/serialization.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/space.rb +28 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/spec_methods.rb +53 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/standalone.rb +3 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/version.rb +7 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks.rb +196 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/spec/mocks.rb +2 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/rspec-mocks.gemspec +25 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/and_yield_spec.rb +114 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/any_number_of_times_spec.rb +36 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/argument_expectation_spec.rb +25 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/at_least_spec.rb +97 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/at_most_spec.rb +93 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/block_return_value_spec.rb +45 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_10263_spec.rb +27 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_7611_spec.rb +18 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_7805_spec.rb +22 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_8302_spec.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/double_spec.rb +12 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/failing_argument_matchers_spec.rb +96 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/hash_not_including_matcher_spec.rb +67 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/mock_ordering_spec.rb +94 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/mock_space_spec.rb +54 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/mock_spec.rb +696 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/multiple_return_value_spec.rb +191 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/nil_expectation_warning_spec.rb +63 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/null_object_mock_spec.rb +78 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/once_counts_spec.rb +53 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/options_hash_spec.rb +35 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/partial_mock_spec.rb +155 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +94 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/passing_argument_matchers_spec.rb +145 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/precise_counts_spec.rb +52 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/record_messages_spec.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/serialization_spec.rb +88 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stash_spec.rb +27 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stub_chain_spec.rb +114 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stub_implementation_spec.rb +68 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stub_spec.rb +232 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stubbed_message_expectations_spec.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/twice_counts_spec.rb +67 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks_spec.rb +51 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/spec_helper.rb +52 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/specs.watchr +57 -0
- data/spec/ruby/1.9.1/specifications/activesupport-3.0.9.gemspec +27 -0
- data/spec/ruby/1.9.1/specifications/diff-lcs-1.1.2.gemspec +32 -0
- data/spec/ruby/1.9.1/specifications/fakeweb-1.3.0.gemspec +32 -0
- data/spec/ruby/1.9.1/specifications/rr-1.0.2.gemspec +29 -0
- data/spec/ruby/1.9.1/specifications/rspec-2.5.0.gemspec +38 -0
- data/spec/ruby/1.9.1/specifications/rspec-core-2.5.1.gemspec +30 -0
- data/spec/ruby/1.9.1/specifications/rspec-expectations-2.5.0.gemspec +32 -0
- data/spec/ruby/1.9.1/specifications/rspec-mocks-2.5.0.gemspec +29 -0
- metadata +1633 -5
@@ -0,0 +1,476 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'active_support/core_ext/string/access'
|
3
|
+
require 'active_support/core_ext/string/behavior'
|
4
|
+
|
5
|
+
module ActiveSupport #:nodoc:
|
6
|
+
module Multibyte #:nodoc:
|
7
|
+
# Chars enables you to work transparently with UTF-8 encoding in the Ruby String class without having extensive
|
8
|
+
# knowledge about the encoding. A Chars object accepts a string upon initialization and proxies String methods in an
|
9
|
+
# encoding safe manner. All the normal String methods are also implemented on the proxy.
|
10
|
+
#
|
11
|
+
# String methods are proxied through the Chars object, and can be accessed through the +mb_chars+ method. Methods
|
12
|
+
# which would normally return a String object now return a Chars object so methods can be chained.
|
13
|
+
#
|
14
|
+
# "The Perfect String ".mb_chars.downcase.strip.normalize # => "the perfect string"
|
15
|
+
#
|
16
|
+
# Chars objects are perfectly interchangeable with String objects as long as no explicit class checks are made.
|
17
|
+
# If certain methods do explicitly check the class, call +to_s+ before you pass chars objects to them.
|
18
|
+
#
|
19
|
+
# bad.explicit_checking_method "T".mb_chars.downcase.to_s
|
20
|
+
#
|
21
|
+
# The default Chars implementation assumes that the encoding of the string is UTF-8, if you want to handle different
|
22
|
+
# encodings you can write your own multibyte string handler and configure it through
|
23
|
+
# ActiveSupport::Multibyte.proxy_class.
|
24
|
+
#
|
25
|
+
# class CharsForUTF32
|
26
|
+
# def size
|
27
|
+
# @wrapped_string.size / 4
|
28
|
+
# end
|
29
|
+
#
|
30
|
+
# def self.accepts?(string)
|
31
|
+
# string.length % 4 == 0
|
32
|
+
# end
|
33
|
+
# end
|
34
|
+
#
|
35
|
+
# ActiveSupport::Multibyte.proxy_class = CharsForUTF32
|
36
|
+
class Chars
|
37
|
+
attr_reader :wrapped_string
|
38
|
+
alias to_s wrapped_string
|
39
|
+
alias to_str wrapped_string
|
40
|
+
|
41
|
+
if RUBY_VERSION >= "1.9"
|
42
|
+
# Creates a new Chars instance by wrapping _string_.
|
43
|
+
def initialize(string)
|
44
|
+
@wrapped_string = string
|
45
|
+
@wrapped_string.force_encoding(Encoding::UTF_8) unless @wrapped_string.frozen?
|
46
|
+
end
|
47
|
+
else
|
48
|
+
def initialize(string) #:nodoc:
|
49
|
+
@wrapped_string = string
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# Forward all undefined methods to the wrapped string.
|
54
|
+
def method_missing(method, *args, &block)
|
55
|
+
if method.to_s =~ /!$/
|
56
|
+
@wrapped_string.__send__(method, *args, &block)
|
57
|
+
self
|
58
|
+
else
|
59
|
+
result = @wrapped_string.__send__(method, *args, &block)
|
60
|
+
result.kind_of?(String) ? chars(result) : result
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Returns +true+ if _obj_ responds to the given method. Private methods are included in the search
|
65
|
+
# only if the optional second parameter evaluates to +true+.
|
66
|
+
def respond_to?(method, include_private=false)
|
67
|
+
super || @wrapped_string.respond_to?(method, include_private) || false
|
68
|
+
end
|
69
|
+
|
70
|
+
# Enable more predictable duck-typing on String-like classes. See Object#acts_like?.
|
71
|
+
def acts_like_string?
|
72
|
+
true
|
73
|
+
end
|
74
|
+
|
75
|
+
# Returns +true+ when the proxy class can handle the string. Returns +false+ otherwise.
|
76
|
+
def self.consumes?(string)
|
77
|
+
# Unpack is a little bit faster than regular expressions.
|
78
|
+
string.unpack('U*')
|
79
|
+
true
|
80
|
+
rescue ArgumentError
|
81
|
+
false
|
82
|
+
end
|
83
|
+
|
84
|
+
include Comparable
|
85
|
+
|
86
|
+
# Returns -1, 0, or 1, depending on whether the Chars object is to be sorted before,
|
87
|
+
# equal or after the object on the right side of the operation. It accepts any object
|
88
|
+
# that implements +to_s+:
|
89
|
+
#
|
90
|
+
# 'é'.mb_chars <=> 'ü'.mb_chars # => -1
|
91
|
+
#
|
92
|
+
# See <tt>String#<=></tt> for more details.
|
93
|
+
def <=>(other)
|
94
|
+
@wrapped_string <=> other.to_s
|
95
|
+
end
|
96
|
+
|
97
|
+
if RUBY_VERSION < "1.9"
|
98
|
+
# Returns +true+ if the Chars class can and should act as a proxy for the string _string_. Returns
|
99
|
+
# +false+ otherwise.
|
100
|
+
def self.wants?(string)
|
101
|
+
$KCODE == 'UTF8' && consumes?(string)
|
102
|
+
end
|
103
|
+
|
104
|
+
# Returns a new Chars object containing the _other_ object concatenated to the string.
|
105
|
+
#
|
106
|
+
# Example:
|
107
|
+
# ('Café'.mb_chars + ' périferôl').to_s # => "Café périferôl"
|
108
|
+
def +(other)
|
109
|
+
chars(@wrapped_string + other)
|
110
|
+
end
|
111
|
+
|
112
|
+
# Like <tt>String#=~</tt> only it returns the character offset (in codepoints) instead of the byte offset.
|
113
|
+
#
|
114
|
+
# Example:
|
115
|
+
# 'Café périferôl'.mb_chars =~ /ô/ # => 12
|
116
|
+
def =~(other)
|
117
|
+
translate_offset(@wrapped_string =~ other)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Inserts the passed string at specified codepoint offsets.
|
121
|
+
#
|
122
|
+
# Example:
|
123
|
+
# 'Café'.mb_chars.insert(4, ' périferôl').to_s # => "Café périferôl"
|
124
|
+
def insert(offset, fragment)
|
125
|
+
unpacked = Unicode.u_unpack(@wrapped_string)
|
126
|
+
unless offset > unpacked.length
|
127
|
+
@wrapped_string.replace(
|
128
|
+
Unicode.u_unpack(@wrapped_string).insert(offset, *Unicode.u_unpack(fragment)).pack('U*')
|
129
|
+
)
|
130
|
+
else
|
131
|
+
raise IndexError, "index #{offset} out of string"
|
132
|
+
end
|
133
|
+
self
|
134
|
+
end
|
135
|
+
|
136
|
+
# Returns +true+ if contained string contains _other_. Returns +false+ otherwise.
|
137
|
+
#
|
138
|
+
# Example:
|
139
|
+
# 'Café'.mb_chars.include?('é') # => true
|
140
|
+
def include?(other)
|
141
|
+
# We have to redefine this method because Enumerable defines it.
|
142
|
+
@wrapped_string.include?(other)
|
143
|
+
end
|
144
|
+
|
145
|
+
# Returns the position _needle_ in the string, counting in codepoints. Returns +nil+ if _needle_ isn't found.
|
146
|
+
#
|
147
|
+
# Example:
|
148
|
+
# 'Café périferôl'.mb_chars.index('ô') # => 12
|
149
|
+
# 'Café périferôl'.mb_chars.index(/\w/u) # => 0
|
150
|
+
def index(needle, offset=0)
|
151
|
+
wrapped_offset = first(offset).wrapped_string.length
|
152
|
+
index = @wrapped_string.index(needle, wrapped_offset)
|
153
|
+
index ? (Unicode.u_unpack(@wrapped_string.slice(0...index)).size) : nil
|
154
|
+
end
|
155
|
+
|
156
|
+
# Returns the position _needle_ in the string, counting in
|
157
|
+
# codepoints, searching backward from _offset_ or the end of the
|
158
|
+
# string. Returns +nil+ if _needle_ isn't found.
|
159
|
+
#
|
160
|
+
# Example:
|
161
|
+
# 'Café périferôl'.mb_chars.rindex('é') # => 6
|
162
|
+
# 'Café périferôl'.mb_chars.rindex(/\w/u) # => 13
|
163
|
+
def rindex(needle, offset=nil)
|
164
|
+
offset ||= length
|
165
|
+
wrapped_offset = first(offset).wrapped_string.length
|
166
|
+
index = @wrapped_string.rindex(needle, wrapped_offset)
|
167
|
+
index ? (Unicode.u_unpack(@wrapped_string.slice(0...index)).size) : nil
|
168
|
+
end
|
169
|
+
|
170
|
+
# Returns the number of codepoints in the string
|
171
|
+
def size
|
172
|
+
Unicode.u_unpack(@wrapped_string).size
|
173
|
+
end
|
174
|
+
alias_method :length, :size
|
175
|
+
|
176
|
+
# Strips entire range of Unicode whitespace from the right of the string.
|
177
|
+
def rstrip
|
178
|
+
chars(@wrapped_string.gsub(Unicode::TRAILERS_PAT, ''))
|
179
|
+
end
|
180
|
+
|
181
|
+
# Strips entire range of Unicode whitespace from the left of the string.
|
182
|
+
def lstrip
|
183
|
+
chars(@wrapped_string.gsub(Unicode::LEADERS_PAT, ''))
|
184
|
+
end
|
185
|
+
|
186
|
+
# Strips entire range of Unicode whitespace from the right and left of the string.
|
187
|
+
def strip
|
188
|
+
rstrip.lstrip
|
189
|
+
end
|
190
|
+
|
191
|
+
# Returns the codepoint of the first character in the string.
|
192
|
+
#
|
193
|
+
# Example:
|
194
|
+
# 'こんにちは'.mb_chars.ord # => 12371
|
195
|
+
def ord
|
196
|
+
Unicode.u_unpack(@wrapped_string)[0]
|
197
|
+
end
|
198
|
+
|
199
|
+
# Works just like <tt>String#rjust</tt>, only integer specifies characters instead of bytes.
|
200
|
+
#
|
201
|
+
# Example:
|
202
|
+
#
|
203
|
+
# "¾ cup".mb_chars.rjust(8).to_s
|
204
|
+
# # => " ¾ cup"
|
205
|
+
#
|
206
|
+
# "¾ cup".mb_chars.rjust(8, " ").to_s # Use non-breaking whitespace
|
207
|
+
# # => " ¾ cup"
|
208
|
+
def rjust(integer, padstr=' ')
|
209
|
+
justify(integer, :right, padstr)
|
210
|
+
end
|
211
|
+
|
212
|
+
# Works just like <tt>String#ljust</tt>, only integer specifies characters instead of bytes.
|
213
|
+
#
|
214
|
+
# Example:
|
215
|
+
#
|
216
|
+
# "¾ cup".mb_chars.rjust(8).to_s
|
217
|
+
# # => "¾ cup "
|
218
|
+
#
|
219
|
+
# "¾ cup".mb_chars.rjust(8, " ").to_s # Use non-breaking whitespace
|
220
|
+
# # => "¾ cup "
|
221
|
+
def ljust(integer, padstr=' ')
|
222
|
+
justify(integer, :left, padstr)
|
223
|
+
end
|
224
|
+
|
225
|
+
# Works just like <tt>String#center</tt>, only integer specifies characters instead of bytes.
|
226
|
+
#
|
227
|
+
# Example:
|
228
|
+
#
|
229
|
+
# "¾ cup".mb_chars.center(8).to_s
|
230
|
+
# # => " ¾ cup "
|
231
|
+
#
|
232
|
+
# "¾ cup".mb_chars.center(8, " ").to_s # Use non-breaking whitespace
|
233
|
+
# # => " ¾ cup "
|
234
|
+
def center(integer, padstr=' ')
|
235
|
+
justify(integer, :center, padstr)
|
236
|
+
end
|
237
|
+
|
238
|
+
else
|
239
|
+
def =~(other)
|
240
|
+
@wrapped_string =~ other
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
244
|
+
# Works just like <tt>String#split</tt>, with the exception that the items in the resulting list are Chars
|
245
|
+
# instances instead of String. This makes chaining methods easier.
|
246
|
+
#
|
247
|
+
# Example:
|
248
|
+
# 'Café périferôl'.mb_chars.split(/é/).map { |part| part.upcase.to_s } # => ["CAF", " P", "RIFERÔL"]
|
249
|
+
def split(*args)
|
250
|
+
@wrapped_string.split(*args).map { |i| i.mb_chars }
|
251
|
+
end
|
252
|
+
|
253
|
+
# Like <tt>String#[]=</tt>, except instead of byte offsets you specify character offsets.
|
254
|
+
#
|
255
|
+
# Example:
|
256
|
+
#
|
257
|
+
# s = "Müller"
|
258
|
+
# s.mb_chars[2] = "e" # Replace character with offset 2
|
259
|
+
# s
|
260
|
+
# # => "Müeler"
|
261
|
+
#
|
262
|
+
# s = "Müller"
|
263
|
+
# s.mb_chars[1, 2] = "ö" # Replace 2 characters at character offset 1
|
264
|
+
# s
|
265
|
+
# # => "Möler"
|
266
|
+
def []=(*args)
|
267
|
+
replace_by = args.pop
|
268
|
+
# Indexed replace with regular expressions already works
|
269
|
+
if args.first.is_a?(Regexp)
|
270
|
+
@wrapped_string[*args] = replace_by
|
271
|
+
else
|
272
|
+
result = Unicode.u_unpack(@wrapped_string)
|
273
|
+
if args[0].is_a?(Fixnum)
|
274
|
+
raise IndexError, "index #{args[0]} out of string" if args[0] >= result.length
|
275
|
+
min = args[0]
|
276
|
+
max = args[1].nil? ? min : (min + args[1] - 1)
|
277
|
+
range = Range.new(min, max)
|
278
|
+
replace_by = [replace_by].pack('U') if replace_by.is_a?(Fixnum)
|
279
|
+
elsif args.first.is_a?(Range)
|
280
|
+
raise RangeError, "#{args[0]} out of range" if args[0].min >= result.length
|
281
|
+
range = args[0]
|
282
|
+
else
|
283
|
+
needle = args[0].to_s
|
284
|
+
min = index(needle)
|
285
|
+
max = min + Unicode.u_unpack(needle).length - 1
|
286
|
+
range = Range.new(min, max)
|
287
|
+
end
|
288
|
+
result[range] = Unicode.u_unpack(replace_by)
|
289
|
+
@wrapped_string.replace(result.pack('U*'))
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
# Reverses all characters in the string.
|
294
|
+
#
|
295
|
+
# Example:
|
296
|
+
# 'Café'.mb_chars.reverse.to_s # => 'éfaC'
|
297
|
+
def reverse
|
298
|
+
chars(Unicode.g_unpack(@wrapped_string).reverse.flatten.pack('U*'))
|
299
|
+
end
|
300
|
+
|
301
|
+
# Implements Unicode-aware slice with codepoints. Slicing on one point returns the codepoints for that
|
302
|
+
# character.
|
303
|
+
#
|
304
|
+
# Example:
|
305
|
+
# 'こんにちは'.mb_chars.slice(2..3).to_s # => "にち"
|
306
|
+
def slice(*args)
|
307
|
+
if args.size > 2
|
308
|
+
raise ArgumentError, "wrong number of arguments (#{args.size} for 1)" # Do as if we were native
|
309
|
+
elsif (args.size == 2 && !(args.first.is_a?(Numeric) || args.first.is_a?(Regexp)))
|
310
|
+
raise TypeError, "cannot convert #{args.first.class} into Integer" # Do as if we were native
|
311
|
+
elsif (args.size == 2 && !args[1].is_a?(Numeric))
|
312
|
+
raise TypeError, "cannot convert #{args[1].class} into Integer" # Do as if we were native
|
313
|
+
elsif args[0].kind_of? Range
|
314
|
+
cps = Unicode.u_unpack(@wrapped_string).slice(*args)
|
315
|
+
result = cps.nil? ? nil : cps.pack('U*')
|
316
|
+
elsif args[0].kind_of? Regexp
|
317
|
+
result = @wrapped_string.slice(*args)
|
318
|
+
elsif args.size == 1 && args[0].kind_of?(Numeric)
|
319
|
+
character = Unicode.u_unpack(@wrapped_string)[args[0]]
|
320
|
+
result = character && [character].pack('U')
|
321
|
+
else
|
322
|
+
cps = Unicode.u_unpack(@wrapped_string).slice(*args)
|
323
|
+
result = cps && cps.pack('U*')
|
324
|
+
end
|
325
|
+
result && chars(result)
|
326
|
+
end
|
327
|
+
alias_method :[], :slice
|
328
|
+
|
329
|
+
# Limit the byte size of the string to a number of bytes without breaking characters. Usable
|
330
|
+
# when the storage for a string is limited for some reason.
|
331
|
+
#
|
332
|
+
# Example:
|
333
|
+
# s = 'こんにちは'
|
334
|
+
# s.mb_chars.limit(7) # => "こに"
|
335
|
+
def limit(limit)
|
336
|
+
slice(0...translate_offset(limit))
|
337
|
+
end
|
338
|
+
|
339
|
+
# Convert characters in the string to uppercase.
|
340
|
+
#
|
341
|
+
# Example:
|
342
|
+
# 'Laurent, où sont les tests ?'.mb_chars.upcase.to_s # => "LAURENT, OÙ SONT LES TESTS ?"
|
343
|
+
def upcase
|
344
|
+
chars(Unicode.apply_mapping @wrapped_string, :uppercase_mapping)
|
345
|
+
end
|
346
|
+
|
347
|
+
# Convert characters in the string to lowercase.
|
348
|
+
#
|
349
|
+
# Example:
|
350
|
+
# 'VĚDA A VÝZKUM'.mb_chars.downcase.to_s # => "věda a výzkum"
|
351
|
+
def downcase
|
352
|
+
chars(Unicode.apply_mapping @wrapped_string, :lowercase_mapping)
|
353
|
+
end
|
354
|
+
|
355
|
+
# Converts the first character to uppercase and the remainder to lowercase.
|
356
|
+
#
|
357
|
+
# Example:
|
358
|
+
# 'über'.mb_chars.capitalize.to_s # => "Über"
|
359
|
+
def capitalize
|
360
|
+
(slice(0) || chars('')).upcase + (slice(1..-1) || chars('')).downcase
|
361
|
+
end
|
362
|
+
|
363
|
+
# Capitalizes the first letter of every word, when possible.
|
364
|
+
#
|
365
|
+
# Example:
|
366
|
+
# "ÉL QUE SE ENTERÓ".mb_chars.titleize # => "Él Que Se Enteró"
|
367
|
+
# "日本語".mb_chars.titleize # => "日本語"
|
368
|
+
def titleize
|
369
|
+
chars(downcase.to_s.gsub(/\b('?[\S])/u) { Unicode.apply_mapping $1, :uppercase_mapping })
|
370
|
+
end
|
371
|
+
alias_method :titlecase, :titleize
|
372
|
+
|
373
|
+
# Returns the KC normalization of the string by default. NFKC is considered the best normalization form for
|
374
|
+
# passing strings to databases and validations.
|
375
|
+
#
|
376
|
+
# * <tt>form</tt> - The form you want to normalize in. Should be one of the following:
|
377
|
+
# <tt>:c</tt>, <tt>:kc</tt>, <tt>:d</tt>, or <tt>:kd</tt>. Default is
|
378
|
+
# ActiveSupport::Multibyte::Unicode.default_normalization_form
|
379
|
+
def normalize(form = nil)
|
380
|
+
chars(Unicode.normalize(@wrapped_string, form))
|
381
|
+
end
|
382
|
+
|
383
|
+
# Performs canonical decomposition on all the characters.
|
384
|
+
#
|
385
|
+
# Example:
|
386
|
+
# 'é'.length # => 2
|
387
|
+
# 'é'.mb_chars.decompose.to_s.length # => 3
|
388
|
+
def decompose
|
389
|
+
chars(Unicode.decompose_codepoints(:canonical, Unicode.u_unpack(@wrapped_string)).pack('U*'))
|
390
|
+
end
|
391
|
+
|
392
|
+
# Performs composition on all the characters.
|
393
|
+
#
|
394
|
+
# Example:
|
395
|
+
# 'é'.length # => 3
|
396
|
+
# 'é'.mb_chars.compose.to_s.length # => 2
|
397
|
+
def compose
|
398
|
+
chars(Unicode.compose_codepoints(Unicode.u_unpack(@wrapped_string)).pack('U*'))
|
399
|
+
end
|
400
|
+
|
401
|
+
# Returns the number of grapheme clusters in the string.
|
402
|
+
#
|
403
|
+
# Example:
|
404
|
+
# 'क्षि'.mb_chars.length # => 4
|
405
|
+
# 'क्षि'.mb_chars.g_length # => 3
|
406
|
+
def g_length
|
407
|
+
Unicode.g_unpack(@wrapped_string).length
|
408
|
+
end
|
409
|
+
|
410
|
+
# Replaces all ISO-8859-1 or CP1252 characters by their UTF-8 equivalent resulting in a valid UTF-8 string.
|
411
|
+
#
|
412
|
+
# Passing +true+ will forcibly tidy all bytes, assuming that the string's encoding is entirely CP1252 or ISO-8859-1.
|
413
|
+
def tidy_bytes(force = false)
|
414
|
+
chars(Unicode.tidy_bytes(@wrapped_string, force))
|
415
|
+
end
|
416
|
+
|
417
|
+
%w(capitalize downcase lstrip reverse rstrip slice strip tidy_bytes upcase).each do |method|
|
418
|
+
# Only define a corresponding bang method for methods defined in the proxy; On 1.9 the proxy will
|
419
|
+
# exclude lstrip!, rstrip! and strip! because they are already work as expected on multibyte strings.
|
420
|
+
if public_method_defined?(method)
|
421
|
+
define_method("#{method}!") do |*args|
|
422
|
+
@wrapped_string = send(args.nil? ? method : method, *args).to_s
|
423
|
+
self
|
424
|
+
end
|
425
|
+
end
|
426
|
+
end
|
427
|
+
|
428
|
+
protected
|
429
|
+
|
430
|
+
def translate_offset(byte_offset) #:nodoc:
|
431
|
+
return nil if byte_offset.nil?
|
432
|
+
return 0 if @wrapped_string == ''
|
433
|
+
|
434
|
+
if @wrapped_string.respond_to?(:force_encoding)
|
435
|
+
@wrapped_string = @wrapped_string.dup.force_encoding(Encoding::ASCII_8BIT)
|
436
|
+
end
|
437
|
+
|
438
|
+
begin
|
439
|
+
@wrapped_string[0...byte_offset].unpack('U*').length
|
440
|
+
rescue ArgumentError => e
|
441
|
+
byte_offset -= 1
|
442
|
+
retry
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
446
|
+
def justify(integer, way, padstr=' ') #:nodoc:
|
447
|
+
raise ArgumentError, "zero width padding" if padstr.length == 0
|
448
|
+
padsize = integer - size
|
449
|
+
padsize = padsize > 0 ? padsize : 0
|
450
|
+
case way
|
451
|
+
when :right
|
452
|
+
result = @wrapped_string.dup.insert(0, padding(padsize, padstr))
|
453
|
+
when :left
|
454
|
+
result = @wrapped_string.dup.insert(-1, padding(padsize, padstr))
|
455
|
+
when :center
|
456
|
+
lpad = padding((padsize / 2.0).floor, padstr)
|
457
|
+
rpad = padding((padsize / 2.0).ceil, padstr)
|
458
|
+
result = @wrapped_string.dup.insert(0, lpad).insert(-1, rpad)
|
459
|
+
end
|
460
|
+
chars(result)
|
461
|
+
end
|
462
|
+
|
463
|
+
def padding(padsize, padstr=' ') #:nodoc:
|
464
|
+
if padsize != 0
|
465
|
+
chars(padstr * ((padsize / Unicode.u_unpack(padstr).size) + 1)).slice(0, padsize)
|
466
|
+
else
|
467
|
+
''
|
468
|
+
end
|
469
|
+
end
|
470
|
+
|
471
|
+
def chars(string) #:nodoc:
|
472
|
+
self.class.new(string)
|
473
|
+
end
|
474
|
+
end
|
475
|
+
end
|
476
|
+
end
|