avm-eac_generic_base0 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31257dad97fdfe62864513ddc3feeba452be6b959267f8b26ba9b217dee85af7
|
4
|
+
data.tar.gz: 69f07ec09725cf281f4fc1e76b9688cb0b690cf5ac9616ce65eddeeba8568291
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02eb82db6b8c3f72eea7706cc4e379746fc9e834add13a46bda239b62266658ae4bb22fc7b9160f752918249a5f768e08d9b0eeba9e6c95d9ab7d85ea5bcd302
|
7
|
+
data.tar.gz: 9459b2e119a4d74978948a028359dd51cf598ab62f88fc73a36a1551806d3fbdfde5a430d8a9df9a50fb1ee64404b9177e49447a1bacd1c3bceda3ad0a23b312
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/file_formats/base'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module EacGenericBase0
|
7
|
+
class FileFormats
|
8
|
+
class Base < ::Avm::FileFormats::Base
|
9
|
+
VALID_BASENAMES = %w[*.asm *.bat *.css.coffee *.java *.js *.rb *.s *.scss *.sql *.tex
|
10
|
+
*.url *.yml *.yaml].freeze
|
11
|
+
|
12
|
+
VALID_TYPES = %w[plain x-shellscript].freeze
|
13
|
+
|
14
|
+
def internal_apply(files)
|
15
|
+
files.each { |file| file_apply(file) }
|
16
|
+
end
|
17
|
+
|
18
|
+
def file_apply(file)
|
19
|
+
file.write(string_apply(file.read))
|
20
|
+
end
|
21
|
+
|
22
|
+
def string_apply(string)
|
23
|
+
b = ''
|
24
|
+
string.each_line do |line|
|
25
|
+
b += "#{line.rstrip}\n"
|
26
|
+
end
|
27
|
+
"#{b.strip}\n".gsub(/\t/, ' ')
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-eac_generic_base0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.51'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.51'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: eac_ruby_utils
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.105'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.105'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: eac_ruby_gem_support
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,6 +59,8 @@ extensions: []
|
|
59
59
|
extra_rdoc_files: []
|
60
60
|
files:
|
61
61
|
- lib/avm/eac_generic_base0.rb
|
62
|
+
- lib/avm/eac_generic_base0/file_formats.rb
|
63
|
+
- lib/avm/eac_generic_base0/file_formats/base.rb
|
62
64
|
- lib/avm/eac_generic_base0/instances.rb
|
63
65
|
- lib/avm/eac_generic_base0/instances/base.rb
|
64
66
|
- lib/avm/eac_generic_base0/sources.rb
|