xcop 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xcop.rb +2 -0
  3. data/lib/xcop/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5aa1f93ebccfdcec5e65a77c4d9a563ccbedb824
4
- data.tar.gz: bfee771919d61c8fc4ca3adaf1c1031a992344c3
3
+ metadata.gz: fb09ff0d1d4f8ff28d3f2f0ccaedc6b1e018a082
4
+ data.tar.gz: b8351decbe16e2cc8db540cf3962477f782aaf5c
5
5
  SHA512:
6
- metadata.gz: d6cb86b7d2a422f86d71c2729d20d179dac70e8e17a9e9eb577842bdfb416396293013ba49d1ec17bc92b4efe458e8e45c8e7cb3be57f32fe161a8207d0b4a94
7
- data.tar.gz: 2d2b8245efe0a331ee2daf9e18fb454af68fb554d8497a5c2ca32d1e2deeb80a9ebdb288e72ae675bff52f8e76d5f8bfd78ed6247b97959bb713ca7251d5b3eb
6
+ metadata.gz: 64508f23d0fbf7b091d06fc8a54c63f6111b1e92a1a9acfc41b5222006c0d2f026895590c4f675511d87b0171fdb5d73badff31c5238859b83806875536d3d28
7
+ data.tar.gz: 4cd03d9ffc5584605d87a66a75ee60bdded4fde0c24746ef009413d5bd51fe327b18862cf17d1162e32567a4cf69a4587e897f63ca8f528cb5ad18ab4fc0ba8a
@@ -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
@@ -25,5 +25,5 @@
25
25
  # Copyright:: Copyright (c) 2017 Yegor Bugayenko
26
26
  # License:: MIT
27
27
  module Xcop
28
- VERSION = '0.3'.freeze
28
+ VERSION = '0.4'.freeze
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcop
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko