Skip to content
Browse files

force diff-lcs 122 and remove workaround

  • Loading branch information...
1 parent ba482a5 commit f2b15a3976ef74d01921771c3087fad1146f94cd @JonRowe committed Apr 11, 2013
Showing with 2 additions and 8 deletions.
  1. +1 −7 lib/rspec/expectations/differ.rb
  2. +1 −1 rspec-expectations.gemspec
View
8 lib/rspec/expectations/differ.rb
@@ -28,13 +28,7 @@ def diff_as_string(input_data_new, input_data_old)
# diff includes lines of context. Otherwise, we might print
# redundant lines.
if (context_lines > 0) and hunk.overlaps?(oldhunk)
- if hunk.respond_to?(:merge)
- # diff-lcs 1.2.x
- hunk.merge(oldhunk)
- else
- # diff-lcs 1.1.3
- hunk.unshift(oldhunk)
- end
+ hunk.merge(oldhunk)
else
output << matching_encoding(oldhunk.diff(format).to_s, output)
end
View
2 rspec-expectations.gemspec
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
s.rdoc_options = ["--charset=UTF-8"]
s.require_path = "lib"
- s.add_runtime_dependency 'diff-lcs', '>= 1.1.3', '< 2.0'
+ s.add_runtime_dependency 'diff-lcs', '>= 1.2.2', '< 2.0'
s.add_development_dependency 'rake', '~> 10.0.0'
s.add_development_dependency 'cucumber', '~> 1.1.9'

0 comments on commit f2b15a3

Please sign in to comment.
Something went wrong with that request. Please try again.