messagebus_ruby_api 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/messagebus_ruby_api/client.rb +19 -10
- data/lib/messagebus_ruby_api/version.rb +1 -1
- data/spec/messagebus_ruby_api/client_spec.rb +36 -18
- metadata +2 -1632
- data/spec/ruby/1.9.1/bin/autospec +0 -19
- data/spec/ruby/1.9.1/bin/htmldiff +0 -19
- data/spec/ruby/1.9.1/bin/ldiff +0 -19
- data/spec/ruby/1.9.1/bin/rspec +0 -19
- 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 +0 -1496
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/README.rdoc +0 -33
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support.rb +0 -80
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/all.rb +0 -3
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/backtrace_cleaner.rb +0 -94
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/base64.rb +0 -42
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/basic_object.rb +0 -21
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/benchmarkable.rb +0 -60
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/buffered_logger.rb +0 -139
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/builder.rb +0 -6
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache.rb +0 -638
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/compressed_mem_cache_store.rb +0 -13
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/file_store.rb +0 -188
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/mem_cache_store.rb +0 -190
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/memory_store.rb +0 -159
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/strategy/local_cache.rb +0 -164
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/synchronized_memory_store.rb +0 -11
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/callbacks.rb +0 -601
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/concern.rb +0 -64
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/configurable.rb +0 -48
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext.rb +0 -3
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array.rb +0 -7
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/access.rb +0 -46
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/conversions.rb +0 -164
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/extract_options.rb +0 -29
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/grouping.rb +0 -100
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/random_access.rb +0 -27
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/uniq_by.rb +0 -17
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/wrap.rb +0 -48
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/benchmark.rb +0 -7
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/big_decimal.rb +0 -1
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/big_decimal/conversions.rb +0 -44
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/cgi.rb +0 -1
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +0 -19
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class.rb +0 -5
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/attribute.rb +0 -90
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/attribute_accessors.rb +0 -79
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/delegating_attributes.rb +0 -44
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/inheritable_attributes.rb +0 -254
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/subclasses.rb +0 -50
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/acts_like.rb +0 -8
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/calculations.rb +0 -241
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/conversions.rb +0 -99
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/freeze.rb +0 -31
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/zones.rb +0 -14
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date_time/acts_like.rb +0 -13
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date_time/calculations.rb +0 -115
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date_time/conversions.rb +0 -103
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date_time/zones.rb +0 -21
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/enumerable.rb +0 -120
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/exception.rb +0 -3
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/file.rb +0 -2
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/file/atomic.rb +0 -41
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/file/path.rb +0 -5
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/float.rb +0 -1
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/float/rounding.rb +0 -19
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash.rb +0 -8
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/conversions.rb +0 -151
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/deep_merge.rb +0 -16
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/diff.rb +0 -13
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/except.rb +0 -23
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/indifferent_access.rb +0 -12
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/keys.rb +0 -45
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/reverse_merge.rb +0 -28
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/slice.rb +0 -38
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/integer.rb +0 -3
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/integer/inflections.rb +0 -14
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/integer/multiple.rb +0 -6
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/integer/time.rb +0 -39
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel.rb +0 -5
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/agnostics.rb +0 -11
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/debugger.rb +0 -16
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/reporting.rb +0 -62
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/requires.rb +0 -26
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/singleton_class.rb +0 -13
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/load_error.rb +0 -23
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/logger.rb +0 -108
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module.rb +0 -12
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/aliasing.rb +0 -70
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/anonymous.rb +0 -24
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/attr_accessor_with_default.rb +0 -31
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/attr_internal.rb +0 -32
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/attribute_accessors.rb +0 -60
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/delegation.rb +0 -146
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/deprecation.rb +0 -11
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/introspection.rb +0 -88
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/method_names.rb +0 -14
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/reachable.rb +0 -10
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/remove_method.rb +0 -11
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/synchronization.rb +0 -43
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/name_error.rb +0 -18
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/numeric.rb +0 -2
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/numeric/bytes.rb +0 -44
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/numeric/time.rb +0 -77
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object.rb +0 -13
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/acts_like.rb +0 -10
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/blank.rb +0 -76
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/conversions.rb +0 -4
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/duplicable.rb +0 -65
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/instance_variables.rb +0 -67
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/returning.rb +0 -43
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/to_json.rb +0 -19
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/to_param.rb +0 -50
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/to_query.rb +0 -27
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/try.rb +0 -36
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/with_options.rb +0 -26
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/proc.rb +0 -14
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/process.rb +0 -1
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/process/daemon.rb +0 -23
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range.rb +0 -4
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range/blockless_step.rb +0 -29
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range/conversions.rb +0 -21
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range/include_range.rb +0 -21
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range/overlaps.rb +0 -8
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/regexp.rb +0 -5
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/rexml.rb +0 -46
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string.rb +0 -13
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/access.rb +0 -99
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/behavior.rb +0 -7
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/conversions.rb +0 -53
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/encoding.rb +0 -11
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/exclude.rb +0 -6
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/filters.rb +0 -49
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/inflections.rb +0 -164
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/interpolation.rb +0 -2
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/multibyte.rb +0 -72
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/output_safety.rb +0 -135
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/starts_ends_with.rb +0 -4
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/strip.rb +0 -26
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/xchar.rb +0 -18
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/acts_like.rb +0 -8
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/calculations.rb +0 -287
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/conversions.rb +0 -85
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/marshal.rb +0 -56
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/publicize_conversion_methods.rb +0 -10
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/zones.rb +0 -75
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/uri.rb +0 -22
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb +0 -668
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies/autoload.rb +0 -50
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation.rb +0 -18
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation/behaviors.rb +0 -42
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation/method_wrappers.rb +0 -29
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation/proxy_wrappers.rb +0 -81
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation/reporting.rb +0 -61
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/descendants_tracker.rb +0 -43
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/duration.rb +0 -105
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/file_update_checker.rb +0 -36
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/gzip.rb +0 -29
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/hash_with_indifferent_access.rb +0 -152
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/i18n.rb +0 -10
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/i18n_railtie.rb +0 -96
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflections.rb +0 -60
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector.rb +0 -7
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector/inflections.rb +0 -211
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector/methods.rb +0 -151
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector/transliterate.rb +0 -98
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json.rb +0 -2
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/backends/jsongem.rb +0 -47
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/backends/yajl.rb +0 -44
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/backends/yaml.rb +0 -107
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/decoding.rb +0 -51
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/encoding.rb +0 -279
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/variable.rb +0 -9
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/lazy_load_hooks.rb +0 -46
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/locale/en.yml +0 -36
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/log_subscriber.rb +0 -122
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/log_subscriber/test_helper.rb +0 -99
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/memoizable.rb +0 -105
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/message_encryptor.rb +0 -71
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/message_verifier.rb +0 -62
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte.rb +0 -44
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte/chars.rb +0 -476
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte/exceptions.rb +0 -8
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte/unicode.rb +0 -392
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte/utils.rb +0 -60
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/notifications.rb +0 -78
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/notifications/fanout.rb +0 -61
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/notifications/instrumenter.rb +0 -54
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/option_merger.rb +0 -25
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/ordered_hash.rb +0 -192
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/ordered_options.rb +0 -27
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/railtie.rb +0 -60
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/rescuable.rb +0 -114
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/ruby/shim.rb +0 -22
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/secure_random.rb +0 -199
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/string_inquirer.rb +0 -21
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/test_case.rb +0 -42
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/assertions.rb +0 -84
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/declarative.rb +0 -40
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/default.rb +0 -9
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/deprecation.rb +0 -55
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/isolation.rb +0 -157
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/pending.rb +0 -48
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/performance.rb +0 -425
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/setup_and_teardown.rb +0 -111
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/time.rb +0 -35
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/time/autoload.rb +0 -5
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/time_with_zone.rb +0 -348
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/values/time_zone.rb +0 -379
- 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 +0 -10
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/whiny_nil.rb +0 -60
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini.rb +0 -162
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/jdom.rb +0 -175
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/libxml.rb +0 -79
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/libxmlsax.rb +0 -85
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/nokogiri.rb +0 -83
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/nokogirisax.rb +0 -87
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/rexml.rb +0 -129
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/ChangeLog +0 -46
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/Install +0 -6
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/README +0 -76
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/Rakefile +0 -116
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/bin/htmldiff +0 -112
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/bin/ldiff +0 -45
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs.rb +0 -1105
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/array.rb +0 -21
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/block.rb +0 -51
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/callbacks.rb +0 -322
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/change.rb +0 -169
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/hunk.rb +0 -257
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/ldiff.rb +0 -226
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/string.rb +0 -19
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/tests/00test.rb +0 -626
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/CHANGELOG +0 -215
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/LICENSE.txt +0 -19
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/README.rdoc +0 -189
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/Rakefile +0 -67
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/fakeweb.gemspec +0 -126
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web.rb +0 -215
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/ext/net_http.rb +0 -72
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/registry.rb +0 -127
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/responder.rb +0 -122
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/response.rb +0 -10
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/stub_socket.rb +0 -15
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/utility.rb +0 -87
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fakeweb.rb +0 -2
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/google_response_from_curl +0 -12
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/google_response_with_transfer_encoding +0 -17
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/google_response_without_transfer_encoding +0 -11
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/test_example.txt +0 -1
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/test_txt_file +0 -3
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_allow_net_connect.rb +0 -168
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_deprecations.rb +0 -54
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_fake_authentication.rb +0 -92
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_fake_web.rb +0 -590
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_fake_web_open_uri.rb +0 -58
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_helper.rb +0 -90
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_last_request.rb +0 -29
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_missing_open_uri.rb +0 -25
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_missing_pathname.rb +0 -37
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_other_net_http_libraries.rb +0 -36
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_precedence.rb +0 -79
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_query_string.rb +0 -45
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_regexes.rb +0 -157
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_response_headers.rb +0 -79
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_trailing_slashes.rb +0 -53
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_utility.rb +0 -83
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/History.txt +0 -59
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/Manifest.txt +0 -7
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/README.txt +0 -54
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/Rakefile +0 -103
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/lib/net_fix.rb +0 -160
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/lib/right_http_connection.rb +0 -435
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/setup.rb +0 -1585
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/LICENSE +0 -20
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/README.rdoc +0 -70
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/Rakefile +0 -62
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/VERSION +0 -1
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/lib/samuel.rb +0 -52
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/lib/samuel/net_http.rb +0 -10
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/lib/samuel/request.rb +0 -96
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/samuel.gemspec +0 -69
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/test/request_test.rb +0 -193
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/test/samuel_test.rb +0 -42
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/test/test_helper.rb +0 -66
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/test/thread_test.rb +0 -32
- data/spec/ruby/1.9.1/gems/rr-1.0.2/CHANGES +0 -260
- data/spec/ruby/1.9.1/gems/rr-1.0.2/Gemfile +0 -6
- data/spec/ruby/1.9.1/gems/rr-1.0.2/LICENSE +0 -22
- data/spec/ruby/1.9.1/gems/rr-1.0.2/README.rdoc +0 -385
- data/spec/ruby/1.9.1/gems/rr-1.0.2/Rakefile +0 -88
- data/spec/ruby/1.9.1/gems/rr-1.0.2/VERSION.yml +0 -5
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr.rb +0 -99
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/adapters/rr_methods.rb +0 -146
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/adapters/rspec.rb +0 -61
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/adapters/test_unit.rb +0 -31
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/blank_slate.rb +0 -17
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/class_instance_method_defined.rb +0 -9
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double.rb +0 -154
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/child_double_definition_create.rb +0 -27
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_definition.rb +0 -367
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_definition_create.rb +0 -139
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_definition_create_blank_slate.rb +0 -26
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_injections/any_instance_of.rb +0 -28
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_injections/instance.rb +0 -16
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/double_injection/any_instance_of.rb +0 -30
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/double_injection/double_injection_strategy.rb +0 -10
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/double_injection/instance.rb +0 -17
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/implementation_strategy.rb +0 -10
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/proxy.rb +0 -60
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/reimplementation.rb +0 -14
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/strongly_typed_reimplementation.rb +0 -15
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/strategy.rb +0 -43
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/strategy_methods.rb +0 -53
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/dont_allow.rb +0 -31
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/mock.rb +0 -42
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/stub.rb +0 -43
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/verification_strategy.rb +0 -10
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_matches.rb +0 -42
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/argument_equality_error.rb +0 -6
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/double_definition_error.rb +0 -6
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/double_not_found_error.rb +0 -6
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/double_order_error.rb +0 -6
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/rr_error.rb +0 -20
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/spy_verification_errors/double_injection_not_found_error.rb +0 -8
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/spy_verification_errors/invocation_count_error.rb +0 -8
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/spy_verification_errors/spy_verification_error.rb +0 -8
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/subject_does_not_implement_method_error.rb +0 -6
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/subject_has_different_arity_error.rb +0 -6
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/times_called_error.rb +0 -6
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/expectations/any_argument_expectation.rb +0 -21
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/expectations/argument_equality_expectation.rb +0 -41
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/expectations/times_called_expectation.rb +0 -57
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/hash_with_object_id_key.rb +0 -46
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/injections/double_injection.rb +0 -213
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/injections/injection.rb +0 -33
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/injections/method_missing_injection.rb +0 -68
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/injections/singleton_method_added_injection.rb +0 -72
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/method_dispatches/base_method_dispatch.rb +0 -84
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/method_dispatches/method_dispatch.rb +0 -59
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/method_dispatches/method_missing_dispatch.rb +0 -61
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/proc_from_block.rb +0 -7
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/recorded_calls.rb +0 -103
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/space.rb +0 -112
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/spy_verification.rb +0 -48
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/spy_verification_proxy.rb +0 -13
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/any_times_matcher.rb +0 -18
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/at_least_matcher.rb +0 -15
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/at_most_matcher.rb +0 -23
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/integer_matcher.rb +0 -19
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/never_matcher.rb +0 -23
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/non_terminal.rb +0 -27
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/proc_matcher.rb +0 -11
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/range_matcher.rb +0 -21
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/terminal.rb +0 -20
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/times_called_matcher.rb +0 -44
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers.rb +0 -158
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/anything.rb +0 -18
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/boolean.rb +0 -23
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/duck_type.rb +0 -32
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/hash_including.rb +0 -29
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/is_a.rb +0 -25
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/numeric.rb +0 -13
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/range.rb +0 -7
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/regexp.rb +0 -7
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/satisfy.rb +0 -26
- data/spec/ruby/1.9.1/gems/rr-1.0.2/scratch.rb +0 -118
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/any_instance_of/all_instances_of_spec.rb +0 -12
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/any_instance_of/any_instance_of_spec.rb +0 -47
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/any_instance_of/instance_of_spec.rb +0 -12
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/dont_allow/dont_allow_after_stub_spec.rb +0 -14
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/mock/mock_spec.rb +0 -193
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/proxy/proxy_spec.rb +0 -86
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/spy/spy_spec.rb +0 -49
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/strong/strong_spec.rb +0 -87
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/stub/stub_spec.rb +0 -152
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/core_spec_suite.rb +0 -19
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/environment_fixture_setup.rb +0 -8
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/proc_from_block_spec.rb +0 -14
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_argument_matcher_spec.rb +0 -67
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_creator_spec.rb +0 -137
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_space_spec.rb +0 -98
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_spec_helper.rb +0 -11
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_times_matcher_spec.rb +0 -13
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_definitions/child_double_definition_creator_spec.rb +0 -112
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_definitions/double_definition_create_blank_slate_spec.rb +0 -91
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_definitions/double_definition_create_spec.rb +0 -443
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_injection/double_injection_spec.rb +0 -546
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_injection/double_injection_verify_spec.rb +0 -29
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/errors/rr_error_spec.rb +0 -67
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/any_argument_expectation_spec.rb +0 -47
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/anything_argument_equality_expectation_spec.rb +0 -14
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/argument_equality_expectation_spec.rb +0 -135
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/boolean_argument_equality_expectation_spec.rb +0 -34
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/hash_including_argument_equality_expectation_spec.rb +0 -82
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/hash_including_spec.rb +0 -17
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/satisfy_argument_equality_expectation_spec.rb +0 -59
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/satisfy_spec.rb +0 -14
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_any_times_spec.rb +0 -22
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_at_least_spec.rb +0 -37
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_at_most_spec.rb +0 -43
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_helper.rb +0 -15
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_integer_spec.rb +0 -58
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_proc_spec.rb +0 -35
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_range_spec.rb +0 -39
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/invocation_matcher_spec.rb +0 -279
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/rspec_adapter_spec.rb +0 -63
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/rspec_backtrace_tweaking_spec.rb +0 -31
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/rspec_backtrace_tweaking_spec_fixture.rb +0 -11
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/rspec_usage_spec.rb +0 -86
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/space/hash_with_object_id_key_spec.rb +0 -88
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/space/space_spec.rb +0 -587
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/test_unit/test_helper.rb +0 -7
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/test_unit/test_unit_backtrace_test.rb +0 -36
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/test_unit/test_unit_integration_test.rb +0 -59
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/any_times_matcher_spec.rb +0 -47
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/at_least_matcher_spec.rb +0 -55
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/at_most_matcher_spec.rb +0 -70
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/integer_matcher_spec.rb +0 -70
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/proc_matcher_spec.rb +0 -55
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/range_matcher_spec.rb +0 -76
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/times_called_matcher_spec.rb +0 -118
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/anything_spec.rb +0 -24
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/boolean_spec.rb +0 -36
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/duck_type_spec.rb +0 -52
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/is_a_spec.rb +0 -32
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/numeric_spec.rb +0 -32
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/range_spec.rb +0 -35
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/regexp_spec.rb +0 -43
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr_spec.rb +0 -28
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rspec_spec_suite.rb +0 -17
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/spec_helper.rb +0 -37
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/spec_suite.rb +0 -48
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/spy_verification_spec.rb +0 -129
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/test_unit_spec_suite.rb +0 -21
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/Gemfile +0 -7
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/License.txt +0 -22
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/README.markdown +0 -47
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/Rakefile +0 -16
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/lib/rspec.rb +0 -4
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/lib/rspec/version.rb +0 -5
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/rspec.gemspec +0 -29
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/Gemfile +0 -52
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/Guardfile +0 -5
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/License.txt +0 -23
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/README.md +0 -103
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/Rakefile +0 -72
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/bin/autospec +0 -13
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/bin/rspec +0 -25
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/cucumber.yml +0 -2
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/Autotest.md +0 -14
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/Changelog.md +0 -226
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/README.md +0 -17
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/Upgrade.md +0 -287
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/README.md +0 -6
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/configure.feature +0 -22
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/example_name_option.feature +0 -86
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/exit_status.feature +0 -52
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/format_option.feature +0 -73
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/line_number_appended_to_path.feature +0 -106
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/line_number_option.feature +0 -45
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/rake_task.feature +0 -68
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/tag.feature +0 -74
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/configuration/custom_settings.feature +0 -84
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/configuration/fail_fast.feature +0 -77
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/configuration/read_options_from_file.feature +0 -87
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/example_groups/basic_structure.feature +0 -59
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/example_groups/shared_example_group.feature +0 -177
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/expectation_framework_integration/configure_expectation_framework.feature +0 -62
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/filtering/exclusion_filters.feature +0 -115
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/filtering/implicit_filters.feature +0 -166
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/filtering/inclusion_filters.feature +0 -83
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/filtering/run_all_when_everything_filtered.feature +0 -46
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/formatters/custom_formatter.feature +0 -36
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/helper_methods/arbitrary_methods.feature +0 -40
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/helper_methods/let.feature +0 -50
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/hooks/around_hooks.feature +0 -336
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/hooks/before_and_after_hooks.feature +0 -427
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/hooks/filtering.feature +0 -191
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/metadata/described_class.feature +0 -17
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_any_framework.feature +0 -106
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_flexmock.feature +0 -23
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_mocha.feature +0 -23
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_rr.feature +0 -23
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_rspec.feature +0 -23
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/pending/pending_examples.feature +0 -216
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/spec_files/arbitrary_file_suffix.feature +0 -13
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/step_definitions/additional_cli_steps.rb +0 -20
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/subject/attribute_of_subject.feature +0 -102
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/subject/explicit_subject.feature +0 -78
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/subject/implicit_receiver.feature +0 -29
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/subject/implicit_subject.feature +0 -30
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/support/env.rb +0 -1
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/autotest/discover.rb +0 -1
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/autotest/rspec2.rb +0 -67
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/autorun.rb +0 -2
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core.rb +0 -65
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/backward_compatibility.rb +0 -48
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/command_line.rb +0 -35
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/command_line_configuration.rb +0 -62
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb +0 -470
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/configuration_options.rb +0 -126
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/deprecation.rb +0 -45
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/drb_command_line.rb +0 -29
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/errors.rb +0 -14
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/example.rb +0 -167
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/example_group.rb +0 -300
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/expecting/with_rspec.rb +0 -11
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/expecting/with_stdlib.rb +0 -9
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions.rb +0 -4
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions/instance_eval_with_args.rb +0 -39
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions/kernel.rb +0 -5
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions/module_eval_with_args.rb +0 -34
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions/object.rb +0 -14
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/base_formatter.rb +0 -162
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/base_text_formatter.rb +0 -165
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/documentation_formatter.rb +0 -71
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/helpers.rb +0 -28
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/html_formatter.rb +0 -456
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/progress_formatter.rb +0 -32
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/snippet_extractor.rb +0 -52
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/text_mate_formatter.rb +0 -20
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/hooks.rb +0 -149
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/let.rb +0 -101
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/load_path.rb +0 -3
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/metadata.rb +0 -187
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_absolutely_nothing.rb +0 -11
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_flexmock.rb +0 -25
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_mocha.rb +0 -21
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_rr.rb +0 -25
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_rspec.rb +0 -21
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/option_parser.rb +0 -132
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/pending.rb +0 -30
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb +0 -196
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/reporter.rb +0 -79
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/ruby_project.rb +0 -44
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb +0 -61
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/shared_context.rb +0 -16
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/shared_example_group.rb +0 -53
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/subject.rb +0 -177
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/version.rb +0 -7
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/world.rb +0 -102
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/monkey.rb +0 -1
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/monkey/spork/test_framework/rspec.rb +0 -7
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/rspec-core.gemspec +0 -26
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/FullBuildRakeFile +0 -63
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/console +0 -8
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/cucumber +0 -1
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/full_build +0 -1
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/spec +0 -1
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/autotest/discover_spec.rb +0 -19
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/autotest/failed_results_re_spec.rb +0 -37
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/autotest/rspec_spec.rb +0 -123
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/command_line_configuration_spec.rb +0 -26
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/command_line_spec.rb +0 -134
- 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 +0 -341
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/configuration_spec.rb +0 -716
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/deprecations_spec.rb +0 -45
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/drb_command_line_spec.rb +0 -159
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/example_group_spec.rb +0 -753
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/example_spec.rb +0 -162
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/base_formatter_spec.rb +0 -59
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/base_text_formatter_spec.rb +0 -184
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/documentation_formatter_spec.rb +0 -66
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/helpers_spec.rb +0 -46
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.8.6.html +0 -398
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +0 -400
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.8.7.html +0 -398
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.9.1.html +0 -405
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.9.2.html +0 -405
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatter_spec.rb +0 -81
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/progress_formatter_spec.rb +0 -31
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/snippet_extractor_spec.rb +0 -18
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.8.6.html +0 -398
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +0 -400
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +0 -398
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.9.1.html +0 -405
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +0 -405
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatter_spec.rb +0 -84
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/hooks_filtering_spec.rb +0 -227
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/hooks_spec.rb +0 -57
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/kernel_extensions_spec.rb +0 -9
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/let_spec.rb +0 -42
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/metadata_spec.rb +0 -298
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/option_parser_spec.rb +0 -75
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/pending_example_spec.rb +0 -226
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/rake_task_spec.rb +0 -161
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/reporter_spec.rb +0 -70
- 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 +0 -1
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/custom_example_group_runner.rb +0 -14
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/formatter_specs.rb +0 -54
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/utf8_encoded.rb +0 -8
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/ruby_project_spec.rb +0 -24
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/runner_spec.rb +0 -47
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/shared_context_spec.rb +0 -30
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/shared_example_group_spec.rb +0 -152
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/subject_spec.rb +0 -178
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/world_spec.rb +0 -174
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core_spec.rb +0 -31
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/ruby_forker.rb +0 -13
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/spec_helper.rb +0 -71
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/support/matchers.rb +0 -44
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/Gemfile +0 -38
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/Guardfile +0 -5
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/License.txt +0 -22
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/README.md +0 -41
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/Rakefile +0 -70
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/cucumber.yml +0 -3
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/Changelog.md +0 -84
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/README.markdown +0 -42
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/Upgrade.md +0 -53
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/be.feature +0 -135
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/be_within.feature +0 -43
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/equality.feature +0 -142
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/exist.feature +0 -49
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/expect_change.feature +0 -59
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/expect_error.feature +0 -105
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/have.feature +0 -103
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/include.feature +0 -121
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/match.feature +0 -50
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/operators.feature +0 -221
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/predicates.feature +0 -128
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/respond_to.feature +0 -78
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/satisfy.feature +0 -31
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/throw_symbol.feature +0 -85
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/types.feature +0 -114
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/access_running_example.feature +0 -53
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/define_diffable_matcher.feature +0 -27
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/define_matcher.feature +0 -311
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/define_matcher_outside_rspec.feature +0 -38
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/define_matcher_with_fluent_interface.feature +0 -24
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/customized_message.feature +0 -22
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/diffing.feature +0 -85
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/implicit_docstrings.feature +0 -52
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/step_definitions/additional_cli_steps.rb +0 -22
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/support/env.rb +0 -1
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/test_frameworks/test_unit.feature +0 -46
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec-expectations.rb +0 -1
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations.rb +0 -39
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/backward_compatibility.rb +0 -16
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/deprecation.rb +0 -36
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/differ.rb +0 -62
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/errors.rb +0 -12
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/extensions.rb +0 -2
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/extensions/array.rb +0 -7
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/extensions/kernel.rb +0 -52
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/fail_with.rb +0 -51
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/handler.rb +0 -50
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/version.rb +0 -7
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers.rb +0 -196
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be.rb +0 -222
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be_close.rb +0 -17
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be_instance_of.rb +0 -26
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be_kind_of.rb +0 -26
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be_within.rb +0 -40
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/block_aliases.rb +0 -19
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/change.rb +0 -190
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/compatibility.rb +0 -14
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/dsl.rb +0 -21
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/eq.rb +0 -50
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/eql.rb +0 -45
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/equal.rb +0 -53
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/errors.rb +0 -5
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/exist.rb +0 -26
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/extensions/instance_exec.rb +0 -31
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/generated_descriptions.rb +0 -36
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/has.rb +0 -35
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/have.rb +0 -151
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/include.rb +0 -54
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/match.rb +0 -21
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/match_array.rb +0 -71
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/matcher.rb +0 -161
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/method_missing.rb +0 -12
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/operator_matcher.rb +0 -87
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/pretty.rb +0 -37
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/raise_error.rb +0 -130
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/respond_to.rb +0 -85
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/satisfy.rb +0 -51
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/throw_symbol.rb +0 -121
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/rspec-expectations.gemspec +0 -27
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/expectations/differ_spec.rb +0 -96
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/expectations/extensions/kernel_spec.rb +0 -45
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/expectations/fail_with_spec.rb +0 -70
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/expectations/handler_spec.rb +0 -206
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_close_spec.rb +0 -22
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_instance_of_spec.rb +0 -36
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_kind_of_spec.rb +0 -33
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_spec.rb +0 -456
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_within_spec.rb +0 -64
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/change_spec.rb +0 -409
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/compatibility_spec.rb +0 -28
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/description_generation_spec.rb +0 -160
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/dsl_spec.rb +0 -25
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/eq_spec.rb +0 -38
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/eql_spec.rb +0 -37
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/equal_spec.rb +0 -57
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/exist_spec.rb +0 -104
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/has_spec.rb +0 -81
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/have_spec.rb +0 -401
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/include_spec.rb +0 -341
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/match_array_spec.rb +0 -111
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/match_spec.rb +0 -57
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/matcher_spec.rb +0 -374
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/matchers_spec.rb +0 -51
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/operator_matcher_spec.rb +0 -215
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/raise_error_spec.rb +0 -339
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/respond_to_spec.rb +0 -292
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/satisfy_spec.rb +0 -40
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/throw_symbol_spec.rb +0 -113
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/spec_helper.rb +0 -24
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/suite.rb +0 -1
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/support/classes.rb +0 -45
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/support/matchers.rb +0 -22
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/support/ruby_version.rb +0 -10
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/specs.watchr +0 -57
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/Gemfile +0 -39
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/Guardfile +0 -8
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/License.txt +0 -22
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/README.md +0 -57
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/Rakefile +0 -75
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/autotest/discover.rb +0 -1
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/cucumber.yml +0 -2
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/Changelog.md +0 -68
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/README.markdown +0 -27
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/Upgrade.md +0 -14
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/message_expectations/README.md +0 -58
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/message_expectations/block_local_expectations.feature.pending +0 -55
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/message_expectations/expect_message.feature +0 -94
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +0 -50
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/method_stubs/README.md +0 -39
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/method_stubs/simple_return_value.feature +0 -55
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/method_stubs/stub_chain.feature +0 -44
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/method_stubs/stub_implementation.feature +0 -26
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/outside_rspec/configuration.feature +0 -82
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/outside_rspec/standalone.feature +0 -32
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/support/env.rb +0 -2
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks.rb +0 -196
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/argument_expectation.rb +0 -53
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/argument_matchers.rb +0 -233
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/error_generator.rb +0 -97
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/errors.rb +0 -10
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/extensions/instance_exec.rb +0 -31
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/extensions/marshal.rb +0 -27
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/framework.rb +0 -17
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/message_expectation.rb +0 -351
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/method_double.rb +0 -165
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/methods.rb +0 -100
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/mock.rb +0 -79
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/order_group.rb +0 -29
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/proxy.rb +0 -158
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/serialization.rb +0 -26
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/space.rb +0 -28
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/spec_methods.rb +0 -53
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/standalone.rb +0 -3
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/version.rb +0 -7
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/spec/mocks.rb +0 -2
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/rspec-mocks.gemspec +0 -25
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/and_yield_spec.rb +0 -114
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/any_number_of_times_spec.rb +0 -36
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/argument_expectation_spec.rb +0 -25
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/at_least_spec.rb +0 -97
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/at_most_spec.rb +0 -93
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/block_return_value_spec.rb +0 -45
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_10260_spec.rb +0 -8
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_10263_spec.rb +0 -27
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_11545_spec.rb +0 -32
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_496_spec.rb +0 -17
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_600_spec.rb +0 -22
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_7611_spec.rb +0 -18
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_7805_spec.rb +0 -22
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_8165_spec.rb +0 -31
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_8302_spec.rb +0 -26
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_830_spec.rb +0 -21
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_957_spec.rb +0 -22
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/double_spec.rb +0 -12
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/failing_argument_matchers_spec.rb +0 -96
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/hash_including_matcher_spec.rb +0 -90
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/hash_not_including_matcher_spec.rb +0 -67
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/mock_ordering_spec.rb +0 -94
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/mock_space_spec.rb +0 -54
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/mock_spec.rb +0 -696
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/multiple_return_value_spec.rb +0 -191
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/nil_expectation_warning_spec.rb +0 -63
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/null_object_mock_spec.rb +0 -78
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/once_counts_spec.rb +0 -53
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/options_hash_spec.rb +0 -35
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/partial_mock_spec.rb +0 -155
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +0 -94
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/passing_argument_matchers_spec.rb +0 -145
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/precise_counts_spec.rb +0 -52
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/record_messages_spec.rb +0 -26
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/serialization_spec.rb +0 -88
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stash_spec.rb +0 -27
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stub_chain_spec.rb +0 -114
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stub_implementation_spec.rb +0 -68
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stub_spec.rb +0 -232
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stubbed_message_expectations_spec.rb +0 -26
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/twice_counts_spec.rb +0 -67
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks_spec.rb +0 -51
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/spec_helper.rb +0 -52
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/specs.watchr +0 -57
- data/spec/ruby/1.9.1/specifications/activesupport-3.0.9.gemspec +0 -27
- data/spec/ruby/1.9.1/specifications/diff-lcs-1.1.2.gemspec +0 -32
- data/spec/ruby/1.9.1/specifications/fakeweb-1.3.0.gemspec +0 -32
- data/spec/ruby/1.9.1/specifications/rr-1.0.2.gemspec +0 -29
- data/spec/ruby/1.9.1/specifications/rspec-2.5.0.gemspec +0 -38
- data/spec/ruby/1.9.1/specifications/rspec-core-2.5.1.gemspec +0 -30
- data/spec/ruby/1.9.1/specifications/rspec-expectations-2.5.0.gemspec +0 -32
- data/spec/ruby/1.9.1/specifications/rspec-mocks-2.5.0.gemspec +0 -29
@@ -1,112 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
#--
|
3
|
-
# Copyright 2004 Austin Ziegler <diff-lcs@halostatue.ca>
|
4
|
-
# adapted from:
|
5
|
-
# Algorithm::Diff (Perl) by Ned Konz <perl@bike-nomad.com>
|
6
|
-
# Smalltalk by Mario I. Wolczko <mario@wolczko.com>
|
7
|
-
# implements McIlroy-Hunt diff algorithm
|
8
|
-
#
|
9
|
-
# This program is free software. It may be redistributed and/or modified under
|
10
|
-
# the terms of the GPL version 2 (or later), the Perl Artistic licence, or the
|
11
|
-
# Ruby licence.
|
12
|
-
#
|
13
|
-
# $Id: htmldiff,v 1.6 2004/10/17 19:33:21 austin Exp $
|
14
|
-
#++
|
15
|
-
|
16
|
-
begin
|
17
|
-
require 'rubygems'
|
18
|
-
require_gem 'diff-lcs', "1.1.1"
|
19
|
-
require 'diff/lcs/string'
|
20
|
-
rescue LoadError
|
21
|
-
require 'diff/lcs'
|
22
|
-
require 'diff/lcs/string'
|
23
|
-
end
|
24
|
-
|
25
|
-
require 'text/format'
|
26
|
-
|
27
|
-
class HTMLDiff #:nodoc:
|
28
|
-
attr_accessor :output
|
29
|
-
|
30
|
-
def initialize(output)
|
31
|
-
@output = output
|
32
|
-
end
|
33
|
-
|
34
|
-
# This will be called with both lines are the same
|
35
|
-
def match(event)
|
36
|
-
@output << %Q|<pre class="match">#{event.old_element}</pre>\n|
|
37
|
-
end
|
38
|
-
|
39
|
-
# This will be called when there is a line in A that isn't in B
|
40
|
-
def discard_a(event)
|
41
|
-
@output << %Q|<pre class="only_a">#{event.old_element}</pre>\n|
|
42
|
-
end
|
43
|
-
|
44
|
-
# This will be called when there is a line in B that isn't in A
|
45
|
-
def discard_b(event)
|
46
|
-
@output << %Q|<pre class="only_b">#{event.new_element}</pre>\n|
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
if ARGV.size != 2
|
51
|
-
puts "usage: #{File.basename($0)} old new > output.html"
|
52
|
-
exit 255
|
53
|
-
end
|
54
|
-
|
55
|
-
hd = HTMLDiff.new($stdout)
|
56
|
-
tf = Text::Format.new
|
57
|
-
tf.tabstop = 4
|
58
|
-
|
59
|
-
preprocess = lambda { |line| tf.expand(line.chomp) }
|
60
|
-
|
61
|
-
a = IO.readlines(ARGV[0]).map(&preprocess)
|
62
|
-
b = IO.readlines(ARGV[1]).map(&preprocess)
|
63
|
-
|
64
|
-
$stdout.write <<-START
|
65
|
-
<html>
|
66
|
-
<head>
|
67
|
-
<title>diff #{ARGV[0]} #{ARGV[1]}</title>
|
68
|
-
<style>
|
69
|
-
body { margin: 0; }
|
70
|
-
.diff
|
71
|
-
{
|
72
|
-
border: 1px solid black;
|
73
|
-
margin: 1em 2em;
|
74
|
-
}
|
75
|
-
pre
|
76
|
-
{
|
77
|
-
padding-left: 1em;
|
78
|
-
margin: 0;
|
79
|
-
font-family: Lucida, Courier, monospaced;
|
80
|
-
white-space: pre;
|
81
|
-
}
|
82
|
-
.match { }
|
83
|
-
.only_a
|
84
|
-
{
|
85
|
-
background-color: #fdd;
|
86
|
-
color: red;
|
87
|
-
text-decoration: line-through;
|
88
|
-
}
|
89
|
-
.only_b
|
90
|
-
{
|
91
|
-
background-color: #ddf;
|
92
|
-
color: blue;
|
93
|
-
border-left: 3px solid blue
|
94
|
-
}
|
95
|
-
h1 { margin-left: 2em; }
|
96
|
-
</style>
|
97
|
-
</head>
|
98
|
-
<body>
|
99
|
-
<h1>diff
|
100
|
-
<span class="only_a">#{ARGV[0]}</span>
|
101
|
-
<span class="only_b">#{ARGV[1]}</span>
|
102
|
-
</h1>
|
103
|
-
<div class="diff">
|
104
|
-
START
|
105
|
-
|
106
|
-
Diff::LCS.traverse_sequences(a, b, hd)
|
107
|
-
|
108
|
-
$stdout.write <<-END
|
109
|
-
</div>
|
110
|
-
</body>
|
111
|
-
</html>
|
112
|
-
END
|
@@ -1,45 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
#--
|
3
|
-
# Copyright 2004 Austin Ziegler <diff-lcs@halostatue.ca>
|
4
|
-
# adapted from:
|
5
|
-
# Algorithm::Diff (Perl) by Ned Konz <perl@bike-nomad.com>
|
6
|
-
# Smalltalk by Mario I. Wolczko <mario@wolczko.com>
|
7
|
-
# implements McIlroy-Hunt diff algorithm
|
8
|
-
#
|
9
|
-
# This program is free software. It may be redistributed and/or modified under
|
10
|
-
# the terms of the GPL version 2 (or later), the Perl Artistic licence, or the
|
11
|
-
# Ruby licence.
|
12
|
-
#
|
13
|
-
# $Id: ldiff,v 1.6 2004/09/26 01:35:57 austin Exp $
|
14
|
-
#++
|
15
|
-
|
16
|
-
# 1) Try to load Ruwiki from the gem.
|
17
|
-
# 2) Try to load Ruwiki from $LOAD_PATH.
|
18
|
-
# 3) Modify $LOAD_PATH and try to load it from the modified $LOAD_PATH.
|
19
|
-
# 4) Fail hard.
|
20
|
-
load_state = 1
|
21
|
-
begin
|
22
|
-
if 1 == load_state
|
23
|
-
require 'rubygems'
|
24
|
-
require_gem 'diff-lcs', '= 1.1.1'
|
25
|
-
else
|
26
|
-
require 'diff/lcs'
|
27
|
-
end
|
28
|
-
rescue LoadError
|
29
|
-
load_state += 1
|
30
|
-
|
31
|
-
case load_state
|
32
|
-
when 3
|
33
|
-
$LOAD_PATH.unshift "#{File.dirname($0)}/../lib"
|
34
|
-
when 4
|
35
|
-
$LOAD_PATH.shift
|
36
|
-
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
|
37
|
-
when 5
|
38
|
-
raise
|
39
|
-
end
|
40
|
-
retry
|
41
|
-
end
|
42
|
-
|
43
|
-
require 'diff/lcs/ldiff'
|
44
|
-
|
45
|
-
exit Diff::LCS::Ldiff.run(ARGV)
|
@@ -1,1105 +0,0 @@
|
|
1
|
-
#! /usr/env/bin ruby
|
2
|
-
#--
|
3
|
-
# Copyright 2004 Austin Ziegler <diff-lcs@halostatue.ca>
|
4
|
-
# adapted from:
|
5
|
-
# Algorithm::Diff (Perl) by Ned Konz <perl@bike-nomad.com>
|
6
|
-
# Smalltalk by Mario I. Wolczko <mario@wolczko.com>
|
7
|
-
# implements McIlroy-Hunt diff algorithm
|
8
|
-
#
|
9
|
-
# This program is free software. It may be redistributed and/or modified
|
10
|
-
# under the terms of the GPL version 2 (or later), the Perl Artistic
|
11
|
-
# licence, or the Ruby licence.
|
12
|
-
#
|
13
|
-
# $Id: lcs.rb,v 1.9 2004/10/17 20:31:10 austin Exp $
|
14
|
-
#++
|
15
|
-
|
16
|
-
module Diff
|
17
|
-
# = Diff::LCS 1.1.2
|
18
|
-
# Computes "intelligent" differences between two sequenced Enumerables.
|
19
|
-
# This is an implementation of the McIlroy-Hunt "diff" algorithm for
|
20
|
-
# Enumerable objects that include Diffable.
|
21
|
-
#
|
22
|
-
# Based on Mario I. Wolczko's <mario@wolczko.com> Smalltalk version
|
23
|
-
# (1.2, 1993) and Ned Konz's <perl@bike-nomad.com> Perl version
|
24
|
-
# (Algorithm::Diff).
|
25
|
-
#
|
26
|
-
# == Synopsis
|
27
|
-
# require 'diff/lcs'
|
28
|
-
#
|
29
|
-
# seq1 = %w(a b c e h j l m n p)
|
30
|
-
# seq2 = %w(b c d e f j k l m r s t)
|
31
|
-
#
|
32
|
-
# lcs = Diff::LCS.LCS(seq1, seq2)
|
33
|
-
# diffs = Diff::LCS.diff(seq1, seq2)
|
34
|
-
# sdiff = Diff::LCS.sdiff(seq1, seq2)
|
35
|
-
# seq = Diff::LCS.traverse_sequences(seq1, seq2, callback_obj)
|
36
|
-
# bal = Diff::LCS.traverse_balanced(seq1, seq2, callback_obj)
|
37
|
-
# seq2 == Diff::LCS.patch(seq1, diffs)
|
38
|
-
# seq2 == Diff::LCS.patch!(seq1, diffs)
|
39
|
-
# seq1 == Diff::LCS.unpatch(seq2, diffs)
|
40
|
-
# seq1 == Diff::LCS.unpatch!(seq2, diffs)
|
41
|
-
# seq2 == Diff::LCS.patch(seq1, sdiff)
|
42
|
-
# seq2 == Diff::LCS.patch!(seq1, sdiff)
|
43
|
-
# seq1 == Diff::LCS.unpatch(seq2, sdiff)
|
44
|
-
# seq1 == Diff::LCS.unpatch!(seq2, sdiff)
|
45
|
-
#
|
46
|
-
# Alternatively, objects can be extended with Diff::LCS:
|
47
|
-
#
|
48
|
-
# seq1.extend(Diff::LCS)
|
49
|
-
# lcs = seq1.lcs(seq2)
|
50
|
-
# diffs = seq1.diff(seq2)
|
51
|
-
# sdiff = seq1.sdiff(seq2)
|
52
|
-
# seq = seq1.traverse_sequences(seq2, callback_obj)
|
53
|
-
# bal = seq1.traverse_balanced(seq2, callback_obj)
|
54
|
-
# seq2 == seq1.patch(diffs)
|
55
|
-
# seq2 == seq1.patch!(diffs)
|
56
|
-
# seq1 == seq2.unpatch(diffs)
|
57
|
-
# seq1 == seq2.unpatch!(diffs)
|
58
|
-
# seq2 == seq1.patch(sdiff)
|
59
|
-
# seq2 == seq1.patch!(sdiff)
|
60
|
-
# seq1 == seq2.unpatch(sdiff)
|
61
|
-
# seq1 == seq2.unpatch!(sdiff)
|
62
|
-
#
|
63
|
-
# Default extensions are provided for Array and String objects through
|
64
|
-
# the use of 'diff/lcs/array' and 'diff/lcs/string'.
|
65
|
-
#
|
66
|
-
# == Introduction (by Mark-Jason Dominus)
|
67
|
-
#
|
68
|
-
# <em>The following text is from the Perl documentation. The only
|
69
|
-
# changes have been to make the text appear better in Rdoc</em>.
|
70
|
-
#
|
71
|
-
# I once read an article written by the authors of +diff+; they said
|
72
|
-
# that they hard worked very hard on the algorithm until they found the
|
73
|
-
# right one.
|
74
|
-
#
|
75
|
-
# I think what they ended up using (and I hope someone will correct me,
|
76
|
-
# because I am not very confident about this) was the `longest common
|
77
|
-
# subsequence' method. In the LCS problem, you have two sequences of
|
78
|
-
# items:
|
79
|
-
#
|
80
|
-
# a b c d f g h j q z
|
81
|
-
# a b c d e f g i j k r x y z
|
82
|
-
#
|
83
|
-
# and you want to find the longest sequence of items that is present in
|
84
|
-
# both original sequences in the same order. That is, you want to find a
|
85
|
-
# new sequence *S* which can be obtained from the first sequence by
|
86
|
-
# deleting some items, and from the second sequence by deleting other
|
87
|
-
# items. You also want *S* to be as long as possible. In this case *S*
|
88
|
-
# is:
|
89
|
-
#
|
90
|
-
# a b c d f g j z
|
91
|
-
#
|
92
|
-
# From there it's only a small step to get diff-like output:
|
93
|
-
#
|
94
|
-
# e h i k q r x y
|
95
|
-
# + - + + - + + +
|
96
|
-
#
|
97
|
-
# This module solves the LCS problem. It also includes a canned function
|
98
|
-
# to generate +diff+-like output.
|
99
|
-
#
|
100
|
-
# It might seem from the example above that the LCS of two sequences is
|
101
|
-
# always pretty obvious, but that's not always the case, especially when
|
102
|
-
# the two sequences have many repeated elements. For example, consider
|
103
|
-
#
|
104
|
-
# a x b y c z p d q
|
105
|
-
# a b c a x b y c z
|
106
|
-
#
|
107
|
-
# A naive approach might start by matching up the +a+ and +b+ that
|
108
|
-
# appear at the beginning of each sequence, like this:
|
109
|
-
#
|
110
|
-
# a x b y c z p d q
|
111
|
-
# a b c a b y c z
|
112
|
-
#
|
113
|
-
# This finds the common subsequence +a b c z+. But actually, the LCS is
|
114
|
-
# +a x b y c z+:
|
115
|
-
#
|
116
|
-
# a x b y c z p d q
|
117
|
-
# a b c a x b y c z
|
118
|
-
#
|
119
|
-
# == Author
|
120
|
-
# This version is by Austin Ziegler <diff-lcs@halostatue.ca>.
|
121
|
-
#
|
122
|
-
# It is based on the Perl Algorithm::Diff by Ned Konz
|
123
|
-
# <perl@bike-nomad.com>, copyright © 2000 - 2002 and the Smalltalk
|
124
|
-
# diff version by Mario I. Wolczko <mario@wolczko.com>, copyright ©
|
125
|
-
# 1993. Documentation includes work by Mark-Jason Dominus.
|
126
|
-
#
|
127
|
-
# == Licence
|
128
|
-
# Copyright © 2004 Austin Ziegler
|
129
|
-
# This program is free software; you can redistribute it and/or modify it
|
130
|
-
# under the same terms as Ruby, or alternatively under the Perl Artistic
|
131
|
-
# licence.
|
132
|
-
#
|
133
|
-
# == Credits
|
134
|
-
# Much of the documentation is taken directly from the Perl
|
135
|
-
# Algorithm::Diff implementation and was written originally by Mark-Jason
|
136
|
-
# Dominus <mjd-perl-diff@plover.com> and later by Ned Konz. The basic Ruby
|
137
|
-
# implementation was re-ported from the Smalltalk implementation, available
|
138
|
-
# at ftp://st.cs.uiuc.edu/pub/Smalltalk/MANCHESTER/manchester/4.0/diff.st
|
139
|
-
#
|
140
|
-
# #sdiff and #traverse_balanced were written for the Perl version by Mike
|
141
|
-
# Schilli <m@perlmeister.com>.
|
142
|
-
#
|
143
|
-
# "The algorithm is described in <em>A Fast Algorithm for Computing Longest
|
144
|
-
# Common Subsequences</em>, CACM, vol.20, no.5, pp.350-353, May 1977, with
|
145
|
-
# a few minor improvements to improve the speed."
|
146
|
-
module LCS
|
147
|
-
VERSION = '1.1.2'
|
148
|
-
end
|
149
|
-
end
|
150
|
-
|
151
|
-
require 'diff/lcs/callbacks'
|
152
|
-
|
153
|
-
module Diff::LCS
|
154
|
-
# Returns an Array containing the longest common subsequence(s) between
|
155
|
-
# +self+ and +other+. See Diff::LCS#LCS.
|
156
|
-
#
|
157
|
-
# lcs = seq1.lcs(seq2)
|
158
|
-
def lcs(other, &block) #:yields self[ii] if there are matched subsequences:
|
159
|
-
Diff::LCS.LCS(self, other, &block)
|
160
|
-
end
|
161
|
-
|
162
|
-
# Returns the difference set between +self+ and +other+. See
|
163
|
-
# Diff::LCS#diff.
|
164
|
-
def diff(other, callbacks = nil, &block)
|
165
|
-
Diff::LCS::diff(self, other, callbacks, &block)
|
166
|
-
end
|
167
|
-
|
168
|
-
# Returns the balanced ("side-by-side") difference set between +self+ and
|
169
|
-
# +other+. See Diff::LCS#sdiff.
|
170
|
-
def sdiff(other, callbacks = nil, &block)
|
171
|
-
Diff::LCS::sdiff(self, other, callbacks, &block)
|
172
|
-
end
|
173
|
-
|
174
|
-
# Traverses the discovered longest common subsequences between +self+ and
|
175
|
-
# +other+. See Diff::LCS#traverse_sequences.
|
176
|
-
def traverse_sequences(other, callbacks = nil, &block)
|
177
|
-
traverse_sequences(self, other, callbacks || Diff::LCS::YieldingCallbacks,
|
178
|
-
&block)
|
179
|
-
end
|
180
|
-
|
181
|
-
# Traverses the discovered longest common subsequences between +self+ and
|
182
|
-
# +other+ using the alternate, balanced algorithm. See
|
183
|
-
# Diff::LCS#traverse_balanced.
|
184
|
-
def traverse_balanced(other, callbacks = nil, &block)
|
185
|
-
traverse_balanced(self, other, callbacks || Diff::LCS::YieldingCallbacks,
|
186
|
-
&block)
|
187
|
-
end
|
188
|
-
|
189
|
-
# Attempts to patch a copy of +self+ with the provided +patchset+. See
|
190
|
-
# Diff::LCS#patch.
|
191
|
-
def patch(patchset)
|
192
|
-
Diff::LCS::patch(self.dup, patchset)
|
193
|
-
end
|
194
|
-
|
195
|
-
# Attempts to unpatch a copy of +self+ with the provided +patchset+.
|
196
|
-
# See Diff::LCS#patch.
|
197
|
-
def unpatch(patchset)
|
198
|
-
Diff::LCS::unpatch(self.dup, patchset)
|
199
|
-
end
|
200
|
-
|
201
|
-
# Attempts to patch +self+ with the provided +patchset+. See
|
202
|
-
# Diff::LCS#patch!. Does no autodiscovery.
|
203
|
-
def patch!(patchset)
|
204
|
-
Diff::LCS::patch!(self, patchset)
|
205
|
-
end
|
206
|
-
|
207
|
-
# Attempts to unpatch +self+ with the provided +patchset+. See
|
208
|
-
# Diff::LCS#unpatch. Does no autodiscovery.
|
209
|
-
def unpatch!(patchset)
|
210
|
-
Diff::LCS::unpatch!(self, patchset)
|
211
|
-
end
|
212
|
-
end
|
213
|
-
|
214
|
-
module Diff::LCS
|
215
|
-
class << self
|
216
|
-
# Given two sequenced Enumerables, LCS returns an Array containing their
|
217
|
-
# longest common subsequences.
|
218
|
-
#
|
219
|
-
# lcs = Diff::LCS.LCS(seq1, seq2)
|
220
|
-
#
|
221
|
-
# This array whose contents is such that:
|
222
|
-
#
|
223
|
-
# lcs.each_with_index do |ee, ii|
|
224
|
-
# assert(ee.nil? || (seq1[ii] == seq2[ee]))
|
225
|
-
# end
|
226
|
-
#
|
227
|
-
# If a block is provided, the matching subsequences will be yielded from
|
228
|
-
# +seq1+ in turn and may be modified before they are placed into the
|
229
|
-
# returned Array of subsequences.
|
230
|
-
def LCS(seq1, seq2, &block) #:yields seq1[ii] for each matched:
|
231
|
-
matches = Diff::LCS.__lcs(seq1, seq2)
|
232
|
-
ret = []
|
233
|
-
matches.each_with_index do |ee, ii|
|
234
|
-
unless matches[ii].nil?
|
235
|
-
if block_given?
|
236
|
-
ret << (yield seq1[ii])
|
237
|
-
else
|
238
|
-
ret << seq1[ii]
|
239
|
-
end
|
240
|
-
end
|
241
|
-
end
|
242
|
-
ret
|
243
|
-
end
|
244
|
-
|
245
|
-
# Diff::LCS.diff computes the smallest set of additions and deletions
|
246
|
-
# necessary to turn the first sequence into the second, and returns a
|
247
|
-
# description of these changes.
|
248
|
-
#
|
249
|
-
# See Diff::LCS::DiffCallbacks for the default behaviour. An alternate
|
250
|
-
# behaviour may be implemented with Diff::LCS::ContextDiffCallbacks.
|
251
|
-
# If a Class argument is provided for +callbacks+, #diff will attempt
|
252
|
-
# to initialise it. If the +callbacks+ object (possibly initialised)
|
253
|
-
# responds to #finish, it will be called.
|
254
|
-
def diff(seq1, seq2, callbacks = nil, &block) # :yields diff changes:
|
255
|
-
callbacks ||= Diff::LCS::DiffCallbacks
|
256
|
-
if callbacks.kind_of?(Class)
|
257
|
-
cb = callbacks.new rescue callbacks
|
258
|
-
callbacks = cb
|
259
|
-
end
|
260
|
-
traverse_sequences(seq1, seq2, callbacks)
|
261
|
-
callbacks.finish if callbacks.respond_to?(:finish)
|
262
|
-
|
263
|
-
if block_given?
|
264
|
-
res = callbacks.diffs.map do |hunk|
|
265
|
-
if hunk.kind_of?(Array)
|
266
|
-
hunk = hunk.map { |block| yield block }
|
267
|
-
else
|
268
|
-
yield hunk
|
269
|
-
end
|
270
|
-
end
|
271
|
-
res
|
272
|
-
else
|
273
|
-
callbacks.diffs
|
274
|
-
end
|
275
|
-
end
|
276
|
-
|
277
|
-
# Diff::LCS.sdiff computes all necessary components to show two sequences
|
278
|
-
# and their minimized differences side by side, just like the Unix
|
279
|
-
# utility <em>sdiff</em> does:
|
280
|
-
#
|
281
|
-
# old < -
|
282
|
-
# same same
|
283
|
-
# before | after
|
284
|
-
# - > new
|
285
|
-
#
|
286
|
-
# See Diff::LCS::SDiffCallbacks for the default behaviour. An alternate
|
287
|
-
# behaviour may be implemented with Diff::LCS::ContextDiffCallbacks. If
|
288
|
-
# a Class argument is provided for +callbacks+, #diff will attempt to
|
289
|
-
# initialise it. If the +callbacks+ object (possibly initialised)
|
290
|
-
# responds to #finish, it will be called.
|
291
|
-
def sdiff(seq1, seq2, callbacks = nil, &block) #:yields diff changes:
|
292
|
-
callbacks ||= Diff::LCS::SDiffCallbacks
|
293
|
-
if callbacks.kind_of?(Class)
|
294
|
-
cb = callbacks.new rescue callbacks
|
295
|
-
callbacks = cb
|
296
|
-
end
|
297
|
-
traverse_balanced(seq1, seq2, callbacks)
|
298
|
-
callbacks.finish if callbacks.respond_to?(:finish)
|
299
|
-
|
300
|
-
if block_given?
|
301
|
-
res = callbacks.diffs.map do |hunk|
|
302
|
-
if hunk.kind_of?(Array)
|
303
|
-
hunk = hunk.map { |block| yield block }
|
304
|
-
else
|
305
|
-
yield hunk
|
306
|
-
end
|
307
|
-
end
|
308
|
-
res
|
309
|
-
else
|
310
|
-
callbacks.diffs
|
311
|
-
end
|
312
|
-
end
|
313
|
-
|
314
|
-
# Diff::LCS.traverse_sequences is the most general facility provided by this
|
315
|
-
# module; +diff+ and +LCS+ are implemented as calls to it.
|
316
|
-
#
|
317
|
-
# The arguments to #traverse_sequences are the two sequences to
|
318
|
-
# traverse, and a callback object, like this:
|
319
|
-
#
|
320
|
-
# traverse_sequences(seq1, seq2, Diff::LCS::ContextDiffCallbacks.new)
|
321
|
-
#
|
322
|
-
# #diff is implemented with #traverse_sequences.
|
323
|
-
#
|
324
|
-
# == Callback Methods
|
325
|
-
# Optional callback methods are <em>emphasized</em>.
|
326
|
-
#
|
327
|
-
# callbacks#match:: Called when +a+ and +b+ are pointing
|
328
|
-
# to common elements in +A+ and +B+.
|
329
|
-
# callbacks#discard_a:: Called when +a+ is pointing to an
|
330
|
-
# element not in +B+.
|
331
|
-
# callbacks#discard_b:: Called when +b+ is pointing to an
|
332
|
-
# element not in +A+.
|
333
|
-
# <em>callbacks#finished_a</em>:: Called when +a+ has reached the end of
|
334
|
-
# sequence +A+.
|
335
|
-
# <em>callbacks#finished_b</em>:: Called when +b+ has reached the end of
|
336
|
-
# sequence +B+.
|
337
|
-
#
|
338
|
-
# == Algorithm
|
339
|
-
# a---+
|
340
|
-
# v
|
341
|
-
# A = a b c e h j l m n p
|
342
|
-
# B = b c d e f j k l m r s t
|
343
|
-
# ^
|
344
|
-
# b---+
|
345
|
-
#
|
346
|
-
# If there are two arrows (+a+ and +b+) pointing to elements of
|
347
|
-
# sequences +A+ and +B+, the arrows will initially point to the first
|
348
|
-
# elements of their respective sequences. #traverse_sequences will
|
349
|
-
# advance the arrows through the sequences one element at a time,
|
350
|
-
# calling a method on the user-specified callback object before each
|
351
|
-
# advance. It will advance the arrows in such a way that if there are
|
352
|
-
# elements <tt>A[ii]</tt> and <tt>B[jj]</tt> which are both equal and
|
353
|
-
# part of the longest common subsequence, there will be some moment
|
354
|
-
# during the execution of #traverse_sequences when arrow +a+ is pointing
|
355
|
-
# to <tt>A[ii]</tt> and arrow +b+ is pointing to <tt>B[jj]</tt>. When
|
356
|
-
# this happens, #traverse_sequences will call <tt>callbacks#match</tt>
|
357
|
-
# and then it will advance both arrows.
|
358
|
-
#
|
359
|
-
# Otherwise, one of the arrows is pointing to an element of its sequence
|
360
|
-
# that is not part of the longest common subsequence.
|
361
|
-
# #traverse_sequences will advance that arrow and will call
|
362
|
-
# <tt>callbacks#discard_a</tt> or <tt>callbacks#discard_b</tt>, depending
|
363
|
-
# on which arrow it advanced. If both arrows point to elements that are
|
364
|
-
# not part of the longest common subsequence, then #traverse_sequences
|
365
|
-
# will advance one of them and call the appropriate callback, but it is
|
366
|
-
# not specified which it will call.
|
367
|
-
#
|
368
|
-
# The methods for <tt>callbacks#match</tt>, <tt>callbacks#discard_a</tt>,
|
369
|
-
# and <tt>callbacks#discard_b</tt> are invoked with an event comprising
|
370
|
-
# the action ("=", "+", or "-", respectively), the indicies +ii+ and
|
371
|
-
# +jj+, and the elements <tt>A[ii]</tt> and <tt>B[jj]</tt>. Return
|
372
|
-
# values are discarded by #traverse_sequences.
|
373
|
-
#
|
374
|
-
# === End of Sequences
|
375
|
-
# If arrow +a+ reaches the end of its sequence before arrow +b+ does,
|
376
|
-
# #traverse_sequence try to call <tt>callbacks#finished_a</tt> with the
|
377
|
-
# last index and element of +A+ (<tt>A[-1]</tt>) and the current index
|
378
|
-
# and element of +B+ (<tt>B[jj]</tt>). If <tt>callbacks#finished_a</tt>
|
379
|
-
# does not exist, then <tt>callbacks#discard_b</tt> will be called on
|
380
|
-
# each element of +B+ until the end of the sequence is reached (the call
|
381
|
-
# will be done with <tt>A[-1]</tt> and <tt>B[jj]</tt> for each element).
|
382
|
-
#
|
383
|
-
# If +b+ reaches the end of +B+ before +a+ reaches the end of +A+,
|
384
|
-
# <tt>callbacks#finished_b</tt> will be called with the current index
|
385
|
-
# and element of +A+ (<tt>A[ii]</tt>) and the last index and element of
|
386
|
-
# +B+ (<tt>A[-1]</tt>). Again, if <tt>callbacks#finished_b</tt> does not
|
387
|
-
# exist on the callback object, then <tt>callbacks#discard_a</tt> will
|
388
|
-
# be called on each element of +A+ until the end of the sequence is
|
389
|
-
# reached (<tt>A[ii]</tt> and <tt>B[-1]</tt>).
|
390
|
-
#
|
391
|
-
# There is a chance that one additional <tt>callbacks#discard_a</tt> or
|
392
|
-
# <tt>callbacks#discard_b</tt> will be called after the end of the
|
393
|
-
# sequence is reached, if +a+ has not yet reached the end of +A+ or +b+
|
394
|
-
# has not yet reached the end of +B+.
|
395
|
-
def traverse_sequences(seq1, seq2, callbacks = Diff::LCS::SequenceCallbacks, &block) #:yields change events:
|
396
|
-
matches = Diff::LCS.__lcs(seq1, seq2)
|
397
|
-
|
398
|
-
run_finished_a = run_finished_b = false
|
399
|
-
string = seq1.kind_of?(String)
|
400
|
-
|
401
|
-
a_size = seq1.size
|
402
|
-
b_size = seq2.size
|
403
|
-
ai = bj = 0
|
404
|
-
|
405
|
-
(0 .. matches.size).each do |ii|
|
406
|
-
b_line = matches[ii]
|
407
|
-
|
408
|
-
ax = string ? seq1[ii, 1] : seq1[ii]
|
409
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
410
|
-
|
411
|
-
if b_line.nil?
|
412
|
-
unless ax.nil?
|
413
|
-
event = Diff::LCS::ContextChange.new('-', ii, ax, bj, bx)
|
414
|
-
event = yield event if block_given?
|
415
|
-
callbacks.discard_a(event)
|
416
|
-
end
|
417
|
-
else
|
418
|
-
loop do
|
419
|
-
break unless bj < b_line
|
420
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
421
|
-
event = Diff::LCS::ContextChange.new('+', ii, ax, bj, bx)
|
422
|
-
event = yield event if block_given?
|
423
|
-
callbacks.discard_b(event)
|
424
|
-
bj += 1
|
425
|
-
end
|
426
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
427
|
-
event = Diff::LCS::ContextChange.new('=', ii, ax, bj, bx)
|
428
|
-
event = yield event if block_given?
|
429
|
-
callbacks.match(event)
|
430
|
-
bj += 1
|
431
|
-
end
|
432
|
-
ai = ii
|
433
|
-
end
|
434
|
-
ai += 1
|
435
|
-
|
436
|
-
# The last entry (if any) processed was a match. +ai+ and +bj+ point
|
437
|
-
# just past the last matching lines in their sequences.
|
438
|
-
while (ai < a_size) or (bj < b_size)
|
439
|
-
# last A?
|
440
|
-
if ai == a_size and bj < b_size
|
441
|
-
if callbacks.respond_to?(:finished_a) and not run_finished_a
|
442
|
-
ax = string ? seq1[-1, 1] : seq1[-1]
|
443
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
444
|
-
event = Diff::LCS::ContextChange.new('>', (a_size - 1), ax, bj, bx)
|
445
|
-
event = yield event if block_given?
|
446
|
-
callbacks.finished_a(event)
|
447
|
-
run_finished_a = true
|
448
|
-
else
|
449
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
450
|
-
loop do
|
451
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
452
|
-
event = Diff::LCS::ContextChange.new('+', ai, ax, bj, bx)
|
453
|
-
event = yield event if block_given?
|
454
|
-
callbacks.discard_b(event)
|
455
|
-
bj += 1
|
456
|
-
break unless bj < b_size
|
457
|
-
end
|
458
|
-
end
|
459
|
-
end
|
460
|
-
|
461
|
-
# last B?
|
462
|
-
if bj == b_size and ai < a_size
|
463
|
-
if callbacks.respond_to?(:finished_b) and not run_finished_b
|
464
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
465
|
-
bx = string ? seq2[-1, 1] : seq2[-1]
|
466
|
-
event = Diff::LCS::ContextChange.new('<', ai, ax, (b_size - 1), bx)
|
467
|
-
event = yield event if block_given?
|
468
|
-
callbacks.finished_b(event)
|
469
|
-
run_finished_b = true
|
470
|
-
else
|
471
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
472
|
-
loop do
|
473
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
474
|
-
event = Diff::LCS::ContextChange.new('-', ai, ax, bj, bx)
|
475
|
-
event = yield event if block_given?
|
476
|
-
callbacks.discard_a(event)
|
477
|
-
ai += 1
|
478
|
-
break unless bj < b_size
|
479
|
-
end
|
480
|
-
end
|
481
|
-
end
|
482
|
-
|
483
|
-
if ai < a_size
|
484
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
485
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
486
|
-
event = Diff::LCS::ContextChange.new('-', ai, ax, bj, bx)
|
487
|
-
event = yield event if block_given?
|
488
|
-
callbacks.discard_a(event)
|
489
|
-
ai += 1
|
490
|
-
end
|
491
|
-
|
492
|
-
if bj < b_size
|
493
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
494
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
495
|
-
event = Diff::LCS::ContextChange.new('+', ai, ax, bj, bx)
|
496
|
-
event = yield event if block_given?
|
497
|
-
callbacks.discard_b(event)
|
498
|
-
bj += 1
|
499
|
-
end
|
500
|
-
end
|
501
|
-
end
|
502
|
-
|
503
|
-
# #traverse_balanced is an alternative to #traverse_sequences. It
|
504
|
-
# uses a different algorithm to iterate through the entries in the
|
505
|
-
# computed longest common subsequence. Instead of viewing the changes as
|
506
|
-
# insertions or deletions from one of the sequences, #traverse_balanced
|
507
|
-
# will report <em>changes</em> between the sequences. To represent a
|
508
|
-
#
|
509
|
-
# The arguments to #traverse_balanced are the two sequences to traverse
|
510
|
-
# and a callback object, like this:
|
511
|
-
#
|
512
|
-
# traverse_balanced(seq1, seq2, Diff::LCS::ContextDiffCallbacks.new)
|
513
|
-
#
|
514
|
-
# #sdiff is implemented with #traverse_balanced.
|
515
|
-
#
|
516
|
-
# == Callback Methods
|
517
|
-
# Optional callback methods are <em>emphasized</em>.
|
518
|
-
#
|
519
|
-
# callbacks#match:: Called when +a+ and +b+ are pointing
|
520
|
-
# to common elements in +A+ and +B+.
|
521
|
-
# callbacks#discard_a:: Called when +a+ is pointing to an
|
522
|
-
# element not in +B+.
|
523
|
-
# callbacks#discard_b:: Called when +b+ is pointing to an
|
524
|
-
# element not in +A+.
|
525
|
-
# <em>callbacks#change</em>:: Called when +a+ and +b+ are pointing
|
526
|
-
# to the same relative position, but
|
527
|
-
# <tt>A[a]</tt> and <tt>B[b]</tt> are
|
528
|
-
# not the same; a <em>change</em> has
|
529
|
-
# occurred.
|
530
|
-
#
|
531
|
-
# #traverse_balanced might be a bit slower than #traverse_sequences,
|
532
|
-
# noticable only while processing huge amounts of data.
|
533
|
-
#
|
534
|
-
# The +sdiff+ function of this module is implemented as call to
|
535
|
-
# #traverse_balanced.
|
536
|
-
#
|
537
|
-
# == Algorithm
|
538
|
-
# a---+
|
539
|
-
# v
|
540
|
-
# A = a b c e h j l m n p
|
541
|
-
# B = b c d e f j k l m r s t
|
542
|
-
# ^
|
543
|
-
# b---+
|
544
|
-
#
|
545
|
-
# === Matches
|
546
|
-
# If there are two arrows (+a+ and +b+) pointing to elements of
|
547
|
-
# sequences +A+ and +B+, the arrows will initially point to the first
|
548
|
-
# elements of their respective sequences. #traverse_sequences will
|
549
|
-
# advance the arrows through the sequences one element at a time,
|
550
|
-
# calling a method on the user-specified callback object before each
|
551
|
-
# advance. It will advance the arrows in such a way that if there are
|
552
|
-
# elements <tt>A[ii]</tt> and <tt>B[jj]</tt> which are both equal and
|
553
|
-
# part of the longest common subsequence, there will be some moment
|
554
|
-
# during the execution of #traverse_sequences when arrow +a+ is pointing
|
555
|
-
# to <tt>A[ii]</tt> and arrow +b+ is pointing to <tt>B[jj]</tt>. When
|
556
|
-
# this happens, #traverse_sequences will call <tt>callbacks#match</tt>
|
557
|
-
# and then it will advance both arrows.
|
558
|
-
#
|
559
|
-
# === Discards
|
560
|
-
# Otherwise, one of the arrows is pointing to an element of its sequence
|
561
|
-
# that is not part of the longest common subsequence.
|
562
|
-
# #traverse_sequences will advance that arrow and will call
|
563
|
-
# <tt>callbacks#discard_a</tt> or <tt>callbacks#discard_b</tt>,
|
564
|
-
# depending on which arrow it advanced.
|
565
|
-
#
|
566
|
-
# === Changes
|
567
|
-
# If both +a+ and +b+ point to elements that are not part of the longest
|
568
|
-
# common subsequence, then #traverse_sequences will try to call
|
569
|
-
# <tt>callbacks#change</tt> and advance both arrows. If
|
570
|
-
# <tt>callbacks#change</tt> is not implemented, then
|
571
|
-
# <tt>callbacks#discard_a</tt> and <tt>callbacks#discard_b</tt> will be
|
572
|
-
# called in turn.
|
573
|
-
#
|
574
|
-
# The methods for <tt>callbacks#match</tt>, <tt>callbacks#discard_a</tt>,
|
575
|
-
# <tt>callbacks#discard_b</tt>, and <tt>callbacks#change</tt> are
|
576
|
-
# invoked with an event comprising the action ("=", "+", "-", or "!",
|
577
|
-
# respectively), the indicies +ii+ and +jj+, and the elements
|
578
|
-
# <tt>A[ii]</tt> and <tt>B[jj]</tt>. Return values are discarded by
|
579
|
-
# #traverse_balanced.
|
580
|
-
#
|
581
|
-
# === Context
|
582
|
-
# Note that +ii+ and +jj+ may not be the same index position, even if
|
583
|
-
# +a+ and +b+ are considered to be pointing to matching or changed
|
584
|
-
# elements.
|
585
|
-
def traverse_balanced(seq1, seq2, callbacks = Diff::LCS::BalancedCallbacks)
|
586
|
-
matches = Diff::LCS.__lcs(seq1, seq2)
|
587
|
-
a_size = seq1.size
|
588
|
-
b_size = seq2.size
|
589
|
-
ai = bj = mb = 0
|
590
|
-
ma = -1
|
591
|
-
string = seq1.kind_of?(String)
|
592
|
-
|
593
|
-
# Process all the lines in the match vector.
|
594
|
-
loop do
|
595
|
-
# Find next match indices +ma+ and +mb+
|
596
|
-
loop do
|
597
|
-
ma += 1
|
598
|
-
break unless ma < matches.size and matches[ma].nil?
|
599
|
-
end
|
600
|
-
|
601
|
-
break if ma >= matches.size # end of matches?
|
602
|
-
mb = matches[ma]
|
603
|
-
|
604
|
-
# Change(seq2)
|
605
|
-
while (ai < ma) or (bj < mb)
|
606
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
607
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
608
|
-
|
609
|
-
case [(ai < ma), (bj < mb)]
|
610
|
-
when [true, true]
|
611
|
-
if callbacks.respond_to?(:change)
|
612
|
-
event = Diff::LCS::ContextChange.new('!', ai, ax, bj, bx)
|
613
|
-
event = yield event if block_given?
|
614
|
-
callbacks.change(event)
|
615
|
-
ai += 1
|
616
|
-
bj += 1
|
617
|
-
else
|
618
|
-
event = Diff::LCS::ContextChange.new('-', ai, ax, bj, bx)
|
619
|
-
event = yield event if block_given?
|
620
|
-
callbacks.discard_a(event)
|
621
|
-
ai += 1
|
622
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
623
|
-
event = Diff::LCS::ContextChange.new('+', ai, ax, bj, bx)
|
624
|
-
event = yield event if block_given?
|
625
|
-
callbacks.discard_b(event)
|
626
|
-
bj += 1
|
627
|
-
end
|
628
|
-
when [true, false]
|
629
|
-
event = Diff::LCS::ContextChange.new('-', ai, ax, bj, bx)
|
630
|
-
event = yield event if block_given?
|
631
|
-
callbacks.discard_a(event)
|
632
|
-
ai += 1
|
633
|
-
when [false, true]
|
634
|
-
event = Diff::LCS::ContextChange.new('+', ai, ax, bj, bx)
|
635
|
-
event = yield event if block_given?
|
636
|
-
callbacks.discard_b(event)
|
637
|
-
bj += 1
|
638
|
-
end
|
639
|
-
end
|
640
|
-
|
641
|
-
# Match
|
642
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
643
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
644
|
-
event = Diff::LCS::ContextChange.new('=', ai, ax, bj, bx)
|
645
|
-
event = yield event if block_given?
|
646
|
-
callbacks.match(event)
|
647
|
-
ai += 1
|
648
|
-
bj += 1
|
649
|
-
end
|
650
|
-
|
651
|
-
while (ai < a_size) or (bj < b_size)
|
652
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
653
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
654
|
-
|
655
|
-
case [(ai < a_size), (bj < b_size)]
|
656
|
-
when [true, true]
|
657
|
-
if callbacks.respond_to?(:change)
|
658
|
-
event = Diff::LCS::ContextChange.new('!', ai, ax, bj, bx)
|
659
|
-
event = yield event if block_given?
|
660
|
-
callbacks.change(event)
|
661
|
-
ai += 1
|
662
|
-
bj += 1
|
663
|
-
else
|
664
|
-
event = Diff::LCS::ContextChange.new('-', ai, ax, bj, bx)
|
665
|
-
event = yield event if block_given?
|
666
|
-
callbacks.discard_a(event)
|
667
|
-
ai += 1
|
668
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
669
|
-
event = Diff::LCS::ContextChange.new('+', ai, ax, bj, bx)
|
670
|
-
event = yield event if block_given?
|
671
|
-
callbacks.discard_b(event)
|
672
|
-
bj += 1
|
673
|
-
end
|
674
|
-
when [true, false]
|
675
|
-
event = Diff::LCS::ContextChange.new('-', ai, ax, bj, bx)
|
676
|
-
event = yield event if block_given?
|
677
|
-
callbacks.discard_a(event)
|
678
|
-
ai += 1
|
679
|
-
when [false, true]
|
680
|
-
event = Diff::LCS::ContextChange.new('+', ai, ax, bj, bx)
|
681
|
-
event = yield event if block_given?
|
682
|
-
callbacks.discard_b(event)
|
683
|
-
bj += 1
|
684
|
-
end
|
685
|
-
end
|
686
|
-
end
|
687
|
-
|
688
|
-
PATCH_MAP = { #:nodoc:
|
689
|
-
:patch => { '+' => '+', '-' => '-', '!' => '!', '=' => '=' },
|
690
|
-
:unpatch => { '+' => '-', '-' => '+', '!' => '!', '=' => '=' }
|
691
|
-
}
|
692
|
-
|
693
|
-
# Given a patchset, convert the current version to the new
|
694
|
-
# version. If +direction+ is not specified (must be
|
695
|
-
# <tt>:patch</tt> or <tt>:unpatch</tt>), then discovery of the
|
696
|
-
# direction of the patch will be attempted.
|
697
|
-
def patch(src, patchset, direction = nil)
|
698
|
-
string = src.kind_of?(String)
|
699
|
-
# Start with a new empty type of the source's class
|
700
|
-
res = src.class.new
|
701
|
-
|
702
|
-
# Normalize the patchset.
|
703
|
-
patchset = __normalize_patchset(patchset)
|
704
|
-
|
705
|
-
direction ||= Diff::LCS.__diff_direction(src, patchset)
|
706
|
-
direction ||= :patch
|
707
|
-
|
708
|
-
ai = bj = 0
|
709
|
-
|
710
|
-
patchset.each do |change|
|
711
|
-
# Both Change and ContextChange support #action
|
712
|
-
action = PATCH_MAP[direction][change.action]
|
713
|
-
|
714
|
-
case change
|
715
|
-
when Diff::LCS::ContextChange
|
716
|
-
case direction
|
717
|
-
when :patch
|
718
|
-
el = change.new_element
|
719
|
-
op = change.old_position
|
720
|
-
np = change.new_position
|
721
|
-
when :unpatch
|
722
|
-
el = change.old_element
|
723
|
-
op = change.new_position
|
724
|
-
np = change.old_position
|
725
|
-
end
|
726
|
-
|
727
|
-
case action
|
728
|
-
when '-' # Remove details from the old string
|
729
|
-
while ai < op
|
730
|
-
res << (string ? src[ai, 1] : src[ai])
|
731
|
-
ai += 1
|
732
|
-
bj += 1
|
733
|
-
end
|
734
|
-
ai += 1
|
735
|
-
when '+'
|
736
|
-
while bj < np
|
737
|
-
res << (string ? src[ai, 1] : src[ai])
|
738
|
-
ai += 1
|
739
|
-
bj += 1
|
740
|
-
end
|
741
|
-
|
742
|
-
res << el
|
743
|
-
bj += 1
|
744
|
-
when '='
|
745
|
-
# This only appears in sdiff output with the SDiff callback.
|
746
|
-
# Therefore, we only need to worry about dealing with a single
|
747
|
-
# element.
|
748
|
-
res << el
|
749
|
-
|
750
|
-
ai += 1
|
751
|
-
bj += 1
|
752
|
-
when '!'
|
753
|
-
while ai < op
|
754
|
-
res << (string ? src[ai, 1] : src[ai])
|
755
|
-
ai += 1
|
756
|
-
bj += 1
|
757
|
-
end
|
758
|
-
|
759
|
-
bj += 1
|
760
|
-
ai += 1
|
761
|
-
|
762
|
-
res << el
|
763
|
-
end
|
764
|
-
when Diff::LCS::Change
|
765
|
-
case action
|
766
|
-
when '-'
|
767
|
-
while ai < change.position
|
768
|
-
res << (string ? src[ai, 1] : src[ai])
|
769
|
-
ai += 1
|
770
|
-
bj += 1
|
771
|
-
end
|
772
|
-
ai += 1
|
773
|
-
when '+'
|
774
|
-
while bj < change.position
|
775
|
-
res << (string ? src[ai, 1] : src[ai])
|
776
|
-
ai += 1
|
777
|
-
bj += 1
|
778
|
-
end
|
779
|
-
|
780
|
-
bj += 1
|
781
|
-
|
782
|
-
res << change.element
|
783
|
-
end
|
784
|
-
end
|
785
|
-
end
|
786
|
-
|
787
|
-
while ai < src.size
|
788
|
-
res << (string ? src[ai, 1] : src[ai])
|
789
|
-
ai += 1
|
790
|
-
bj += 1
|
791
|
-
end
|
792
|
-
|
793
|
-
res
|
794
|
-
end
|
795
|
-
|
796
|
-
# Given a set of patchset, convert the current version to the prior
|
797
|
-
# version. Does no auto-discovery.
|
798
|
-
def unpatch!(src, patchset)
|
799
|
-
Diff::LCS.patch(src, patchset, :unpatch)
|
800
|
-
end
|
801
|
-
|
802
|
-
# Given a set of patchset, convert the current version to the next
|
803
|
-
# version. Does no auto-discovery.
|
804
|
-
def patch!(src, patchset)
|
805
|
-
Diff::LCS.patch(src, patchset, :patch)
|
806
|
-
end
|
807
|
-
|
808
|
-
# private
|
809
|
-
# Compute the longest common subsequence between the sequenced Enumerables
|
810
|
-
# +a+ and +b+. The result is an array whose contents is such that
|
811
|
-
#
|
812
|
-
# result = Diff::LCS.__lcs(a, b)
|
813
|
-
# result.each_with_index do |e, ii|
|
814
|
-
# assert_equal(a[ii], b[e]) unless e.nil?
|
815
|
-
# end
|
816
|
-
def __lcs(a, b)
|
817
|
-
a_start = b_start = 0
|
818
|
-
a_finish = a.size - 1
|
819
|
-
b_finish = b.size - 1
|
820
|
-
vector = []
|
821
|
-
|
822
|
-
# Prune off any common elements at the beginning...
|
823
|
-
while (a_start <= a_finish) and
|
824
|
-
(b_start <= b_finish) and
|
825
|
-
(a[a_start] == b[b_start])
|
826
|
-
vector[a_start] = b_start
|
827
|
-
a_start += 1
|
828
|
-
b_start += 1
|
829
|
-
end
|
830
|
-
|
831
|
-
# Now the end...
|
832
|
-
while (a_start <= a_finish) and
|
833
|
-
(b_start <= b_finish) and
|
834
|
-
(a[a_finish] == b[b_finish])
|
835
|
-
vector[a_finish] = b_finish
|
836
|
-
a_finish -= 1
|
837
|
-
b_finish -= 1
|
838
|
-
end
|
839
|
-
|
840
|
-
# Now, compute the equivalence classes of positions of elements.
|
841
|
-
b_matches = Diff::LCS.__position_hash(b, b_start .. b_finish)
|
842
|
-
|
843
|
-
thresh = []
|
844
|
-
links = []
|
845
|
-
|
846
|
-
(a_start .. a_finish).each do |ii|
|
847
|
-
ai = a.kind_of?(String) ? a[ii, 1] : a[ii]
|
848
|
-
bm = b_matches[ai]
|
849
|
-
kk = nil
|
850
|
-
bm.reverse_each do |jj|
|
851
|
-
if kk and (thresh[kk] > jj) and (thresh[kk - 1] < jj)
|
852
|
-
thresh[kk] = jj
|
853
|
-
else
|
854
|
-
kk = Diff::LCS.__replace_next_larger(thresh, jj, kk)
|
855
|
-
end
|
856
|
-
links[kk] = [ (kk > 0) ? links[kk - 1] : nil, ii, jj ] unless kk.nil?
|
857
|
-
end
|
858
|
-
end
|
859
|
-
|
860
|
-
unless thresh.empty?
|
861
|
-
link = links[thresh.size - 1]
|
862
|
-
while not link.nil?
|
863
|
-
vector[link[1]] = link[2]
|
864
|
-
link = link[0]
|
865
|
-
end
|
866
|
-
end
|
867
|
-
|
868
|
-
vector
|
869
|
-
end
|
870
|
-
|
871
|
-
# Find the place at which +value+ would normally be inserted into the
|
872
|
-
# Enumerable. If that place is already occupied by +value+, do nothing
|
873
|
-
# and return +nil+. If the place does not exist (i.e., it is off the end
|
874
|
-
# of the Enumerable), add it to the end. Otherwise, replace the element
|
875
|
-
# at that point with +value+. It is assumed that the Enumerable's values
|
876
|
-
# are numeric.
|
877
|
-
#
|
878
|
-
# This operation preserves the sort order.
|
879
|
-
def __replace_next_larger(enum, value, last_index = nil)
|
880
|
-
# Off the end?
|
881
|
-
if enum.empty? or (value > enum[-1])
|
882
|
-
enum << value
|
883
|
-
return enum.size - 1
|
884
|
-
end
|
885
|
-
|
886
|
-
# Binary search for the insertion point
|
887
|
-
last_index ||= enum.size
|
888
|
-
first_index = 0
|
889
|
-
while (first_index <= last_index)
|
890
|
-
ii = (first_index + last_index) >> 1
|
891
|
-
|
892
|
-
found = enum[ii]
|
893
|
-
|
894
|
-
if value == found
|
895
|
-
return nil
|
896
|
-
elsif value > found
|
897
|
-
first_index = ii + 1
|
898
|
-
else
|
899
|
-
last_index = ii - 1
|
900
|
-
end
|
901
|
-
end
|
902
|
-
|
903
|
-
# The insertion point is in first_index; overwrite the next larger
|
904
|
-
# value.
|
905
|
-
enum[first_index] = value
|
906
|
-
return first_index
|
907
|
-
end
|
908
|
-
|
909
|
-
# If +vector+ maps the matching elements of another collection onto this
|
910
|
-
# Enumerable, compute the inverse +vector+ that maps this Enumerable
|
911
|
-
# onto the collection. (Currently unused.)
|
912
|
-
def __inverse_vector(a, vector)
|
913
|
-
inverse = a.dup
|
914
|
-
(0 ... vector.size).each do |ii|
|
915
|
-
inverse[vector[ii]] = ii unless vector[ii].nil?
|
916
|
-
end
|
917
|
-
inverse
|
918
|
-
end
|
919
|
-
|
920
|
-
# Returns a hash mapping each element of an Enumerable to the set of
|
921
|
-
# positions it occupies in the Enumerable, optionally restricted to the
|
922
|
-
# elements specified in the range of indexes specified by +interval+.
|
923
|
-
def __position_hash(enum, interval = 0 .. -1)
|
924
|
-
hash = Hash.new { |hh, kk| hh[kk] = [] }
|
925
|
-
interval.each do |ii|
|
926
|
-
kk = enum.kind_of?(String) ? enum[ii, 1] : enum[ii]
|
927
|
-
hash[kk] << ii
|
928
|
-
end
|
929
|
-
hash
|
930
|
-
end
|
931
|
-
|
932
|
-
# Examine the patchset and the source to see in which direction the
|
933
|
-
# patch should be applied.
|
934
|
-
#
|
935
|
-
# WARNING: By default, this examines the whole patch, so this could take
|
936
|
-
# some time. This also works better with Diff::LCS::ContextChange or
|
937
|
-
# Diff::LCS::Change as its source, as an array will cause the creation
|
938
|
-
# of one of the above.
|
939
|
-
def __diff_direction(src, patchset, limit = nil)
|
940
|
-
count = left = left_miss = right = right_miss = 0
|
941
|
-
string = src.kind_of?(String)
|
942
|
-
|
943
|
-
patchset.each do |change|
|
944
|
-
count += 1
|
945
|
-
|
946
|
-
case change
|
947
|
-
when Diff::LCS::Change
|
948
|
-
# With a simplistic change, we can't tell the difference between
|
949
|
-
# the left and right on '!' actions, so we ignore those. On '='
|
950
|
-
# actions, if there's a miss, we miss both left and right.
|
951
|
-
element = string ? src[change.position, 1] : src[change.position]
|
952
|
-
|
953
|
-
case change.action
|
954
|
-
when '-'
|
955
|
-
if element == change.element
|
956
|
-
left += 1
|
957
|
-
else
|
958
|
-
left_miss += 1
|
959
|
-
end
|
960
|
-
when '+'
|
961
|
-
if element == change.element
|
962
|
-
right += 1
|
963
|
-
else
|
964
|
-
right_miss += 1
|
965
|
-
end
|
966
|
-
when '='
|
967
|
-
if element != change.element
|
968
|
-
left_miss += 1
|
969
|
-
right_miss += 1
|
970
|
-
end
|
971
|
-
end
|
972
|
-
when Diff::LCS::ContextChange
|
973
|
-
case change.action
|
974
|
-
when '-' # Remove details from the old string
|
975
|
-
element = string ? src[change.old_position, 1] : src[change.old_position]
|
976
|
-
if element == change.old_element
|
977
|
-
left += 1
|
978
|
-
else
|
979
|
-
left_miss += 1
|
980
|
-
end
|
981
|
-
when '+'
|
982
|
-
element = string ? src[change.new_position, 1] : src[change.new_position]
|
983
|
-
if element == change.new_element
|
984
|
-
right += 1
|
985
|
-
else
|
986
|
-
right_miss += 1
|
987
|
-
end
|
988
|
-
when '='
|
989
|
-
le = string ? src[change.old_position, 1] : src[change.old_position]
|
990
|
-
re = string ? src[change.new_position, 1] : src[change.new_position]
|
991
|
-
|
992
|
-
left_miss += 1 if le != change.old_element
|
993
|
-
right_miss += 1 if re != change.new_element
|
994
|
-
when '!'
|
995
|
-
element = string ? src[change.old_position, 1] : src[change.old_position]
|
996
|
-
if element == change.old_element
|
997
|
-
left += 1
|
998
|
-
else
|
999
|
-
element = string ? src[change.new_position, 1] : src[change.new_position]
|
1000
|
-
if element == change.new_element
|
1001
|
-
right += 1
|
1002
|
-
else
|
1003
|
-
left_miss += 1
|
1004
|
-
right_miss += 1
|
1005
|
-
end
|
1006
|
-
end
|
1007
|
-
end
|
1008
|
-
end
|
1009
|
-
|
1010
|
-
break if not limit.nil? and count > limit
|
1011
|
-
end
|
1012
|
-
|
1013
|
-
no_left = (left == 0) and (left_miss >= 0)
|
1014
|
-
no_right = (right == 0) and (right_miss >= 0)
|
1015
|
-
|
1016
|
-
case [no_left, no_right]
|
1017
|
-
when [false, true]
|
1018
|
-
return :patch
|
1019
|
-
when [true, false]
|
1020
|
-
return :unpatch
|
1021
|
-
else
|
1022
|
-
raise "The provided patchset does not appear to apply to the provided value as either source or destination value."
|
1023
|
-
end
|
1024
|
-
end
|
1025
|
-
|
1026
|
-
# Normalize the patchset. A patchset is always a sequence of changes, but
|
1027
|
-
# how those changes are represented may vary, depending on how they were
|
1028
|
-
# generated. In all cases we support, we also support the array
|
1029
|
-
# representation of the changes. The formats are:
|
1030
|
-
#
|
1031
|
-
# [ # patchset <- Diff::LCS.diff(a, b)
|
1032
|
-
# [ # one or more hunks
|
1033
|
-
# Diff::LCS::Change # one or more changes
|
1034
|
-
# ] ]
|
1035
|
-
#
|
1036
|
-
# [ # patchset, equivalent to the above
|
1037
|
-
# [ # one or more hunks
|
1038
|
-
# [ action, line, value ] # one or more changes
|
1039
|
-
# ] ]
|
1040
|
-
#
|
1041
|
-
# [ # patchset <- Diff::LCS.diff(a, b, Diff::LCS::ContextDiffCallbacks)
|
1042
|
-
# # OR <- Diff::LCS.sdiff(a, b, Diff::LCS::ContextDiffCallbacks)
|
1043
|
-
# [ # one or more hunks
|
1044
|
-
# Diff::LCS::ContextChange # one or more changes
|
1045
|
-
# ] ]
|
1046
|
-
#
|
1047
|
-
# [ # patchset, equivalent to the above
|
1048
|
-
# [ # one or more hunks
|
1049
|
-
# [ action, [ old line, old value ], [ new line, new value ] ]
|
1050
|
-
# # one or more changes
|
1051
|
-
# ] ]
|
1052
|
-
#
|
1053
|
-
# [ # patchset <- Diff::LCS.sdiff(a, b)
|
1054
|
-
# # OR <- Diff::LCS.diff(a, b, Diff::LCS::SDiffCallbacks)
|
1055
|
-
# Diff::LCS::ContextChange # one or more changes
|
1056
|
-
# ]
|
1057
|
-
#
|
1058
|
-
# [ # patchset, equivalent to the above
|
1059
|
-
# [ action, [ old line, old value ], [ new line, new value ] ]
|
1060
|
-
# # one or more changes
|
1061
|
-
# ]
|
1062
|
-
#
|
1063
|
-
# The result of this will be either of the following.
|
1064
|
-
#
|
1065
|
-
# [ # patchset
|
1066
|
-
# Diff::LCS::ContextChange # one or more changes
|
1067
|
-
# ]
|
1068
|
-
#
|
1069
|
-
# [ # patchset
|
1070
|
-
# Diff::LCS::Change # one or more changes
|
1071
|
-
# ]
|
1072
|
-
#
|
1073
|
-
# If either of the above is provided, it will be returned as such.
|
1074
|
-
#
|
1075
|
-
def __normalize_patchset(patchset)
|
1076
|
-
patchset.map do |hunk|
|
1077
|
-
case hunk
|
1078
|
-
when Diff::LCS::ContextChange, Diff::LCS::Change
|
1079
|
-
hunk
|
1080
|
-
when Array
|
1081
|
-
if (not hunk[0].kind_of?(Array)) and hunk[1].kind_of?(Array) and hunk[2].kind_of?(Array)
|
1082
|
-
Diff::LCS::ContextChange.from_a(hunk)
|
1083
|
-
else
|
1084
|
-
hunk.map do |change|
|
1085
|
-
case change
|
1086
|
-
when Diff::LCS::ContextChange, Diff::LCS::Change
|
1087
|
-
change
|
1088
|
-
when Array
|
1089
|
-
# change[1] will ONLY be an array in a ContextChange#to_a call.
|
1090
|
-
# In Change#to_a, it represents the line (singular).
|
1091
|
-
if change[1].kind_of?(Array)
|
1092
|
-
Diff::LCS::ContextChange.from_a(change)
|
1093
|
-
else
|
1094
|
-
Diff::LCS::Change.from_a(change)
|
1095
|
-
end
|
1096
|
-
end
|
1097
|
-
end
|
1098
|
-
end
|
1099
|
-
else
|
1100
|
-
raise ArgumentError, "Cannot normalise a hunk of class #{hunk.class}."
|
1101
|
-
end
|
1102
|
-
end.flatten
|
1103
|
-
end
|
1104
|
-
end
|
1105
|
-
end
|