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 +4 -4
- data/lib/constraintClean/version.rb +1 -1
- data/lib/constraintClean.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59d8460b17695606ad9f6b5ed142db550fe569fc
|
4
|
+
data.tar.gz: 9ddcfcba2b92e0913d7c4bf399c9a9ba8cb03bc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9710320ecbb14ca6475534fcc9d65b3c555e92387d1ca76b32636fe4b35766196f164ae1cc7368cdb27920622e1f4577fc819024c567f1076e76be0ed4671083
|
7
|
+
data.tar.gz: 72cfbf57597b9e2e83ff8166cf38bb60ef5a3b30105e1960c1ac1e98f19ef363aaa05dcd12045f9f2748c9ae009e46202fb5d961b12f5bdfd29885bce878adf3
|
data/lib/constraintClean.rb
CHANGED
@@ -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
|
-
|
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
|
+
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-
|
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:
|