xcop 0.5.1 → 0.5.2

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 +1 -1
  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: 98411701d4f4ced6ccbbef37cdc8a5f033cf96a1
4
- data.tar.gz: 20c63d830d0f51b43d77f41d55d5017d5603d800
3
+ metadata.gz: d76b2ac9a770f9fed2c3104af130c575fcb6feb9
4
+ data.tar.gz: ef4750fcdc6b1378ad560a67d252b33e161bf8c6
5
5
  SHA512:
6
- metadata.gz: 51ba0d6c306009fa1e2e630acdac345986aed7aab353ed33101e4a86e47397884adcd3fc6d1a6fe2b49f8f18948438bfb949239b701c9751fbc73c3b1c17190e
7
- data.tar.gz: f80361466150b5e6ef3271439090be1fcfa568e417d4784a31e8a78477213b7224bc91d66642176ef9e6b8bf8e625e694c4e7ba3d08bfd29a2701efdac6a31da
6
+ metadata.gz: 1751468ef75335d74e76ecd203369b88b8ca49358a8b848d778f5e499325b7c5c66189958bc8a7f1ff260075556add064fca80844ec1ee2ac5fdaab7b32aa05d
7
+ data.tar.gz: c027812f78ebea034525e47240145dfab07e032145193ffefed90d4753a71774a9ffb65feaa57f767f0afebc0e8cfb40fca99f83d5a69f628ed31dc2b28bf306
data/lib/xcop.rb CHANGED
@@ -99,7 +99,7 @@ module Xcop
99
99
  xml = Nokogiri::XML(File.open(@path), &:noblanks)
100
100
  unless license.empty?
101
101
  xml.children.before(
102
- Nokogiri::XML::Comment.new(xml, license.strip)
102
+ Nokogiri::XML::Comment.new(xml, "\n#{license.strip}\n")
103
103
  )
104
104
  end
105
105
  ideal = xml.to_xml(indent: 2)
data/lib/xcop/version.rb CHANGED
@@ -25,5 +25,5 @@
25
25
  # Copyright:: Copyright (c) 2017 Yegor Bugayenko
26
26
  # License:: MIT
27
27
  module Xcop
28
- VERSION = '0.5.1'.freeze
28
+ VERSION = '0.5.2'.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.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko