avm-tools 0.42.0 → 0.43.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/executables.rb +1 -1
- data/lib/avm/files/formatter.rb +1 -1
- data/lib/avm/files/formatter/formats/xml.rb +27 -0
- data/lib/avm/tools/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4eaa25ad0b16e1e00f3d9efd040b44b4ce0025c1ad5143892d0849ee8bdff949
|
4
|
+
data.tar.gz: f67dc9660f344c09deb5af514e06bd24e61f381d640df39b53546f13d55492c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0becf6917e2bc8bbbc6052a55100f97584a361cc32ee46bd4c42654649023dee8f9b98318e42640b79073e120be8a3f090e210fa44d70e23e78719ef49593eb
|
7
|
+
data.tar.gz: e3fbf5efed9dcb5e52ed19020fac23a3f15534921955d48f5df297a29deb685e86903a2905c8d274683b89069bdfa3f2ed7969d46b66498110362c898de3937f
|
data/lib/avm/executables.rb
CHANGED
data/lib/avm/files/formatter.rb
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/files/formatter/formats/generic_plain'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Files
|
7
|
+
class Formatter
|
8
|
+
module Formats
|
9
|
+
class Xml < ::Avm::Files::Formatter::Formats::GenericPlain
|
10
|
+
VALID_BASENAMES = %w[*.xml].freeze
|
11
|
+
VALID_TYPES = ['xml'].freeze
|
12
|
+
|
13
|
+
def internal_apply(files)
|
14
|
+
format_command(files).system!
|
15
|
+
super(files)
|
16
|
+
end
|
17
|
+
|
18
|
+
def format_command(files)
|
19
|
+
::Avm::Executables.tidy.command.append(
|
20
|
+
%w[-xml -modify --indent auto --indent-spaces 2 --wrap 100] + files
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/avm/tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.43.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
@@ -238,6 +238,7 @@ files:
|
|
238
238
|
- lib/avm/files/formatter/formats/php.rb
|
239
239
|
- lib/avm/files/formatter/formats/python.rb
|
240
240
|
- lib/avm/files/formatter/formats/ruby.rb
|
241
|
+
- lib/avm/files/formatter/formats/xml.rb
|
241
242
|
- lib/avm/files/formatter/utf8_assert.rb
|
242
243
|
- lib/avm/files/info.rb
|
243
244
|
- lib/avm/files/rotate.rb
|