constraintClean 1.0.4 → 1.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 02d826589694201014e9e6ac9521dcc3656d06fc
4
- data.tar.gz: 81c183a68d6dc294702ccf56aefe5ff56abd3e7d
3
+ metadata.gz: 59d8460b17695606ad9f6b5ed142db550fe569fc
4
+ data.tar.gz: 9ddcfcba2b92e0913d7c4bf399c9a9ba8cb03bc6
5
5
  SHA512:
6
- metadata.gz: 1c1e0b5935f6cf1098a940a69034cfeb67c0619ad4abdc4a1eae00fc54d4e2a5c3801364529b01c88569aec5787766488a610b75716924d62a7f47e24b69f924
7
- data.tar.gz: 5a92bad7dbaebf2a623508cd9a49dda047729bcbf0a80cf22253618b8fe4e12860e854ef653bf2a934504457e19be224f3241c6661f17e85214547f3fc00e283
6
+ metadata.gz: 9710320ecbb14ca6475534fcc9d65b3c555e92387d1ca76b32636fe4b35766196f164ae1cc7368cdb27920622e1f4577fc819024c567f1076e76be0ed4671083
7
+ data.tar.gz: 72cfbf57597b9e2e83ff8166cf38bb60ef5a3b30105e1960c1ac1e98f19ef363aaa05dcd12045f9f2748c9ae009e46202fb5d961b12f5bdfd29885bce878adf3
@@ -1,3 +1,3 @@
1
1
  module ConstraintClean
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
@@ -57,7 +57,8 @@ def cleanupConstraints(file)
57
57
  if result.count > 0
58
58
  f1 = File.open(file, 'w')
59
59
  result.each{ |node| node.remove }
60
- f1.write(doc.to_xml)
60
+ content = doc.to_xml.each_line.reject{|x| x.strip == ""}.join
61
+ f1.write(content)
61
62
  f1.close
62
63
 
63
64
  p "removed #{result.count} constraint(s) from #{file}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: constraintClean
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Kohtenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-13 00:00:00.000000000 Z
11
+ date: 2015-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -107,3 +107,4 @@ signing_key:
107
107
  specification_version: 4
108
108
  summary: Simple gem to cleanup all your storyboard and xib files from useless constraints.
109
109
  test_files: []
110
+ has_rdoc: