diffy 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of diffy might be problematic. Click here for more details.
- data/VERSION +1 -1
- data/diffy.gemspec +2 -2
- data/lib/diffy/diff.rb +1 -1
- data/spec/diffy_spec.rb +17 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.4
|
data/diffy.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{diffy}
|
8
|
-
s.version = "2.0.
|
8
|
+
s.version = "2.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Sam Goldstein"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-09-11}
|
13
13
|
s.description = %q{Convenient diffing in ruby}
|
14
14
|
s.email = %q{sgrock@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/diffy/diff.rb
CHANGED
data/spec/diffy_spec.rb
CHANGED
@@ -37,6 +37,23 @@ describe Diffy::Diff do
|
|
37
37
|
DIFF
|
38
38
|
end
|
39
39
|
end
|
40
|
+
describe "with lines that start with backslashes" do
|
41
|
+
before do
|
42
|
+
string1 = "foo\n\\\\bag\nbang\n"
|
43
|
+
string2 = "foo\n\\\\bar\nbang\n"
|
44
|
+
@path1, @path2 = tempfile(string1), tempfile(string2)
|
45
|
+
end
|
46
|
+
|
47
|
+
it "should not leave lines out" do
|
48
|
+
Diffy::Diff.new(@path1, @path2, :source => 'files').to_s.should == <<-DIFF
|
49
|
+
foo
|
50
|
+
-\\\\bag
|
51
|
+
+\\\\bar
|
52
|
+
bang
|
53
|
+
DIFF
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
40
57
|
end
|
41
58
|
|
42
59
|
describe "options[:diff]" do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diffy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 4
|
10
|
+
version: 2.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sam Goldstein
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-09-11 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|