android-xml 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/android-xml/main.rb +4 -4
- data/lib/android-xml/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: d506adcceb4029ba73f444e1bfb5c31f67c95df0
|
4
|
+
data.tar.gz: 84898757fcdcf17cacc66d4960a5935b99ab9274
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b27e7d59f2d2c4158380e5a4241dd99040b1b970dd5885c0c684563ac1e29264b624f0f343c84736016527cb6cc0619917f0388577c4b35a4050ac8756feca7f
|
7
|
+
data.tar.gz: 9f09c2c75c8b22a14fb1fbf138dee0e1bd4a9ea121cf461c1a4062fe452f16e08b6d99136a9f3658ebd5987120e2fa745e15367db8043de19e5714217f54ada6
|
data/lib/android-xml/main.rb
CHANGED
@@ -37,11 +37,11 @@ module AndroidXml
|
|
37
37
|
locations.each do |location|
|
38
38
|
|
39
39
|
Dir.glob(File.join(location, '**/*.xml')).each do |filename|
|
40
|
-
|
41
|
-
unless generated.include?(
|
42
|
-
if File.new(
|
40
|
+
abs_path = File.absolute_path(filename)
|
41
|
+
unless generated.include?(abs_path)
|
42
|
+
if File.new(abs_path).read =~ /generated by AndroidXml/
|
43
43
|
warn "\033[31m␡\033[0m #{filename}"
|
44
|
-
File.delete(
|
44
|
+
File.delete(abs_path)
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
data/lib/android-xml/version.rb
CHANGED