xcop 0.3 → 0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/xcop.rb +2 -0
- data/lib/xcop/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb09ff0d1d4f8ff28d3f2f0ccaedc6b1e018a082
|
|
4
|
+
data.tar.gz: b8351decbe16e2cc8db540cf3962477f782aaf5c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 64508f23d0fbf7b091d06fc8a54c63f6111b1e92a1a9acfc41b5222006c0d2f026895590c4f675511d87b0171fdb5d73badff31c5238859b83806875536d3d28
|
|
7
|
+
data.tar.gz: 4cd03d9ffc5584605d87a66a75ee60bdded4fde0c24746ef009413d5bd51fe327b18862cf17d1162e32567a4cf69a4587e897f63ca8f528cb5ad18ab4fc0ba8a
|
data/lib/xcop.rb
CHANGED
|
@@ -70,6 +70,7 @@ module Xcop
|
|
|
70
70
|
xml = Nokogiri::XML(File.open(@path), &:noblanks)
|
|
71
71
|
ideal = xml.to_xml(indent: 2)
|
|
72
72
|
now = File.read(@path)
|
|
73
|
+
Differ.format = :color
|
|
73
74
|
return Differ.diff_by_line(ideal, now).to_s unless now == ideal
|
|
74
75
|
''
|
|
75
76
|
end
|
|
@@ -83,6 +84,7 @@ module Xcop
|
|
|
83
84
|
*license.strip.split(/\n/).map(&:strip),
|
|
84
85
|
'-->'
|
|
85
86
|
].join("\n")
|
|
87
|
+
Differ.format = :color
|
|
86
88
|
return Differ.diff_by_line(ideal, now).to_s unless now == ideal
|
|
87
89
|
''
|
|
88
90
|
end
|
data/lib/xcop/version.rb
CHANGED