eac_tools 0.51.0 → 0.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +19 -19
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +2 -2
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base/file_resource_name.rb +37 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base.rb +17 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb +1 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/file_formats/base_spec.rb +13 -0
- data/sub/avm-eac_generic_base0/avm-eac_generic_base0.gemspec +2 -2
- data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base/file_resource_name_helper.rb +23 -0
- data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base.rb +3 -0
- data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/version.rb +1 -1
- data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +1 -1
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base/file_resource_name.rb +3 -5
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
- data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +5 -5
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
- metadata +21 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 941c3fab9a6680a8f5680d9a3a5b09c3e8857e356fc0e6e5b857165b28222089
|
4
|
+
data.tar.gz: d3add3c769477cc6ef96905ca38b16509594c81f37cc75a913d55ea7ae1a2fba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9aa36be10e68be73cb93bea92bf1b6b315d7c733ed898b13fad1457af74687cfe4242e838f2e541887c1da3ddc8f6d23026c86302f98d8e6a950ce5c8dd3e00
|
7
|
+
data.tar.gz: 43d728b846ef0a179f63ec7baf080959a30dca3cc709bda282ea7c4506187665d25284bd7c7d57335db11e14e61bb688ac763e2fd4f64ac0d625e59d5c1c695e
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eac_tools (0.
|
4
|
+
eac_tools (0.52.0)
|
5
5
|
avm (~> 0.60)
|
6
|
-
avm-eac_asciidoctor_base0 (~> 0.
|
7
|
-
avm-eac_generic_base0 (~> 0.
|
6
|
+
avm-eac_asciidoctor_base0 (~> 0.14)
|
7
|
+
avm-eac_generic_base0 (~> 0.9)
|
8
8
|
avm-eac_latex_base0 (~> 0.3)
|
9
9
|
avm-eac_php_base0 (~> 0.4, >= 0.4.1)
|
10
10
|
avm-eac_postgresql_base0 (~> 0.2, >= 0.2.3)
|
@@ -13,8 +13,8 @@ PATH
|
|
13
13
|
avm-eac_rails_base1 (~> 0.8)
|
14
14
|
avm-eac_redmine_base0 (~> 0.18)
|
15
15
|
avm-eac_redmine_plugin_base0 (~> 0.4)
|
16
|
-
avm-eac_ruby_base1 (~> 0.28)
|
17
|
-
avm-eac_webapp_base0 (~> 0.13)
|
16
|
+
avm-eac_ruby_base1 (~> 0.28, >= 0.28.1)
|
17
|
+
avm-eac_webapp_base0 (~> 0.13, >= 0.13.1)
|
18
18
|
avm-eac_wordpress_base0 (~> 0.3)
|
19
19
|
avm-tools (~> 0.143)
|
20
20
|
eac_ruby_utils (~> 0.110, >= 0.110.1)
|
@@ -35,19 +35,19 @@ PATH
|
|
35
35
|
PATH
|
36
36
|
remote: sub/avm-eac_asciidoctor_base0
|
37
37
|
specs:
|
38
|
-
avm-eac_asciidoctor_base0 (0.
|
38
|
+
avm-eac_asciidoctor_base0 (0.14.0)
|
39
39
|
asciidoctor (~> 2.0, >= 2.0.18)
|
40
|
-
avm-eac_webapp_base0 (~> 0.13)
|
41
|
-
eac_ruby_utils (~> 0.
|
40
|
+
avm-eac_webapp_base0 (~> 0.13, >= 0.13.1)
|
41
|
+
eac_ruby_utils (~> 0.110, >= 0.110.1)
|
42
42
|
os (~> 1.1, >= 1.1.4)
|
43
43
|
rouge (~> 3.30)
|
44
44
|
|
45
45
|
PATH
|
46
46
|
remote: sub/avm-eac_generic_base0
|
47
47
|
specs:
|
48
|
-
avm-eac_generic_base0 (0.
|
49
|
-
avm (~> 0.
|
50
|
-
eac_ruby_utils (~> 0.
|
48
|
+
avm-eac_generic_base0 (0.9.0)
|
49
|
+
avm (~> 0.60)
|
50
|
+
eac_ruby_utils (~> 0.110, >= 0.110.1)
|
51
51
|
|
52
52
|
PATH
|
53
53
|
remote: sub/avm-eac_latex_base0
|
@@ -118,9 +118,9 @@ PATH
|
|
118
118
|
PATH
|
119
119
|
remote: sub/avm-eac_ruby_base1
|
120
120
|
specs:
|
121
|
-
avm-eac_ruby_base1 (0.28.
|
121
|
+
avm-eac_ruby_base1 (0.28.1)
|
122
122
|
avm (~> 0.60)
|
123
|
-
avm-eac_generic_base0 (~> 0.
|
123
|
+
avm-eac_generic_base0 (~> 0.9)
|
124
124
|
eac_ruby_utils (~> 0.110, >= 0.110.1)
|
125
125
|
|
126
126
|
PATH
|
@@ -134,13 +134,13 @@ PATH
|
|
134
134
|
PATH
|
135
135
|
remote: sub/avm-eac_webapp_base0
|
136
136
|
specs:
|
137
|
-
avm-eac_webapp_base0 (0.13.
|
138
|
-
avm (~> 0.
|
139
|
-
avm-eac_generic_base0 (~> 0.
|
140
|
-
avm-eac_postgresql_base0 (~> 0.2, >= 0.2.
|
141
|
-
avm-eac_ubuntu_base0 (~> 0.
|
137
|
+
avm-eac_webapp_base0 (0.13.1)
|
138
|
+
avm (~> 0.60)
|
139
|
+
avm-eac_generic_base0 (~> 0.9)
|
140
|
+
avm-eac_postgresql_base0 (~> 0.2, >= 0.2.3)
|
141
|
+
avm-eac_ubuntu_base0 (~> 0.4)
|
142
142
|
avm-files (~> 0.6)
|
143
|
-
eac_ruby_utils (~> 0.
|
143
|
+
eac_ruby_utils (~> 0.110, >= 0.110.1)
|
144
144
|
|
145
145
|
PATH
|
146
146
|
remote: sub/avm-eac_wordpress_base0
|
data/lib/eac_tools/version.rb
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.files = Dir['{lib,template}/**/*']
|
14
14
|
|
15
15
|
s.add_dependency 'asciidoctor', '~> 2.0', '>= 2.0.18'
|
16
|
-
s.add_dependency 'avm-eac_webapp_base0', '~> 0.13'
|
17
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.
|
16
|
+
s.add_dependency 'avm-eac_webapp_base0', '~> 0.13', '>= 0.13.1'
|
17
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.110', '>= 0.110.1'
|
18
18
|
s.add_dependency 'os', '~> 1.1', '>= 1.1.4'
|
19
19
|
s.add_dependency 'rouge', '~> 3.30'
|
20
20
|
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_generic_base0/file_formats/base'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacAsciidoctorBase0
|
8
|
+
module FileFormats
|
9
|
+
class Base < ::Avm::EacGenericBase0::FileFormats::Base
|
10
|
+
class FileResourceName
|
11
|
+
enable_method_class
|
12
|
+
common_constructor :file_format, :path do
|
13
|
+
self.path = path.to_pathname
|
14
|
+
end
|
15
|
+
|
16
|
+
CONTENT_PATTERNS = [%r{content/(.+)\z}].freeze
|
17
|
+
|
18
|
+
# @param path [Pathname]
|
19
|
+
# @return [Avm::FileFormats::FileWith]
|
20
|
+
def result
|
21
|
+
result_from_content || file_format.result_from_superclass(path)
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def result_from_content
|
27
|
+
file_format.result_from_patterns(CONTENT_PATTERNS, path) do |m|
|
28
|
+
r = ::File.dirname(m[1])
|
29
|
+
r = '' if r == '.'
|
30
|
+
"Content[/#{r}]"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_generic_base0/file_formats/base'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacAsciidoctorBase0
|
8
|
+
module FileFormats
|
9
|
+
class Base < ::Avm::EacGenericBase0::FileFormats::Base
|
10
|
+
require_sub __FILE__
|
11
|
+
|
12
|
+
VALID_BASENAMES = %w[*.adoc title].freeze
|
13
|
+
VALID_TYPES = %w[].freeze
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/file_formats/base_spec.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_asciidoctor_base0/file_formats/base'
|
4
|
+
|
5
|
+
::RSpec.describe ::Avm::EacAsciidoctorBase0::FileFormats::Base do
|
6
|
+
include_examples 'avm_file_format_file_resource_name', {
|
7
|
+
'content/title' => 'Content[/]',
|
8
|
+
'content/body.adoc' => 'Content[/]',
|
9
|
+
'content/abc/title' => 'Content[/abc]',
|
10
|
+
'content/abc/body.adoc' => 'Content[/abc]',
|
11
|
+
'content/abc/sub/body.adoc' => 'Content[/abc/sub]'
|
12
|
+
}
|
13
|
+
end
|
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.files = Dir['{lib,locale}/**/*']
|
14
14
|
|
15
|
-
s.add_dependency 'avm', '~> 0.
|
16
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.
|
15
|
+
s.add_dependency 'avm', '~> 0.60'
|
16
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.110', '>= 0.110.1'
|
17
17
|
|
18
18
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
|
19
19
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module EacGenericBase0
|
7
|
+
class FileFormats
|
8
|
+
class Base < ::Avm::FileFormats::Base
|
9
|
+
module FileResourceNameHelper
|
10
|
+
def result_from_patterns(patterns, path)
|
11
|
+
patterns.lazy.map { |pattern| pattern.to_parser.parse(path.to_path) }
|
12
|
+
.find(&:present?).if_present { |v| yield(v) }
|
13
|
+
end
|
14
|
+
|
15
|
+
def result_from_superclass(path)
|
16
|
+
self.class.superclass.instance_method(:file_resource_name)
|
17
|
+
.bind_call(self, path)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -1,11 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'avm/file_formats/base'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
4
5
|
|
5
6
|
module Avm
|
6
7
|
module EacGenericBase0
|
7
8
|
class FileFormats
|
8
9
|
class Base < ::Avm::FileFormats::Base
|
10
|
+
require_sub __FILE__, include_modules: true
|
11
|
+
|
9
12
|
VALID_BASENAMES = %w[*.asm *.bat *.coffee *.java *.js *.rb *.s *.sql *.tex *.url *.yml
|
10
13
|
*.yaml].freeze
|
11
14
|
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.files = Dir['{lib,locale,template}/**/*']
|
14
14
|
|
15
15
|
s.add_dependency 'avm', '~> 0.60'
|
16
|
-
s.add_dependency 'avm-eac_generic_base0', '~> 0.
|
16
|
+
s.add_dependency 'avm-eac_generic_base0', '~> 0.9'
|
17
17
|
s.add_dependency 'eac_ruby_utils', '~> 0.110', '>= 0.110.1'
|
18
18
|
|
19
19
|
s.add_development_dependency 'aranha-parsers', '~> 0.14', '>= 0.14.1'
|
@@ -29,9 +29,8 @@ module Avm
|
|
29
29
|
result_from_patterns(LIBRARY_PATTERNS) { |m| m[1].camelize }
|
30
30
|
end
|
31
31
|
|
32
|
-
def result_from_patterns(patterns)
|
33
|
-
patterns
|
34
|
-
.find(&:present?).if_present { |v| yield(v) }
|
32
|
+
def result_from_patterns(patterns, &block)
|
33
|
+
file_format.result_from_patterns(patterns, path, &block)
|
35
34
|
end
|
36
35
|
|
37
36
|
def result_from_spec
|
@@ -39,8 +38,7 @@ module Avm
|
|
39
38
|
end
|
40
39
|
|
41
40
|
def result_from_superclass
|
42
|
-
file_format.
|
43
|
-
.bind_call(file_format, path)
|
41
|
+
file_format.result_from_superclass(path)
|
44
42
|
end
|
45
43
|
end
|
46
44
|
end
|
@@ -12,12 +12,12 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.files = Dir['{lib,template}/**/*']
|
14
14
|
|
15
|
-
s.add_dependency 'avm', '~> 0.
|
16
|
-
s.add_dependency 'avm-eac_generic_base0', '~> 0.
|
17
|
-
s.add_dependency 'avm-eac_postgresql_base0', '~> 0.2', '>= 0.2.
|
18
|
-
s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.
|
15
|
+
s.add_dependency 'avm', '~> 0.60'
|
16
|
+
s.add_dependency 'avm-eac_generic_base0', '~> 0.9'
|
17
|
+
s.add_dependency 'avm-eac_postgresql_base0', '~> 0.2', '>= 0.2.3'
|
18
|
+
s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.4'
|
19
19
|
s.add_dependency 'avm-files', '~> 0.6'
|
20
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.
|
20
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.110', '>= 0.110.1'
|
21
21
|
|
22
22
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
|
23
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.52.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.14'
|
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.14'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: avm-eac_generic_base0
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.9'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
54
|
+
version: '0.9'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: avm-eac_latex_base0
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -189,6 +189,9 @@ dependencies:
|
|
189
189
|
- - "~>"
|
190
190
|
- !ruby/object:Gem::Version
|
191
191
|
version: '0.28'
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.28.1
|
192
195
|
type: :runtime
|
193
196
|
prerelease: false
|
194
197
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -196,6 +199,9 @@ dependencies:
|
|
196
199
|
- - "~>"
|
197
200
|
- !ruby/object:Gem::Version
|
198
201
|
version: '0.28'
|
202
|
+
- - ">="
|
203
|
+
- !ruby/object:Gem::Version
|
204
|
+
version: 0.28.1
|
199
205
|
- !ruby/object:Gem::Dependency
|
200
206
|
name: avm-eac_webapp_base0
|
201
207
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,6 +209,9 @@ dependencies:
|
|
203
209
|
- - "~>"
|
204
210
|
- !ruby/object:Gem::Version
|
205
211
|
version: '0.13'
|
212
|
+
- - ">="
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: 0.13.1
|
206
215
|
type: :runtime
|
207
216
|
prerelease: false
|
208
217
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -210,6 +219,9 @@ dependencies:
|
|
210
219
|
- - "~>"
|
211
220
|
- !ruby/object:Gem::Version
|
212
221
|
version: '0.13'
|
222
|
+
- - ">="
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
version: 0.13.1
|
213
225
|
- !ruby/object:Gem::Dependency
|
214
226
|
name: avm-eac_wordpress_base0
|
215
227
|
requirement: !ruby/object:Gem::Requirement
|
@@ -329,6 +341,8 @@ files:
|
|
329
341
|
- sub/avm-eac_asciidoctor_base0/Gemfile
|
330
342
|
- sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec
|
331
343
|
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0.rb
|
344
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base.rb
|
345
|
+
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base/file_resource_name.rb
|
332
346
|
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances.rb
|
333
347
|
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_host.rb
|
334
348
|
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_path.rb
|
@@ -350,6 +364,7 @@ files:
|
|
350
364
|
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners.rb
|
351
365
|
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/build.rb
|
352
366
|
- sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb
|
367
|
+
- sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/file_formats/base_spec.rb
|
353
368
|
- sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec.rb
|
354
369
|
- sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec_files/pre_processed_root_body.adoc
|
355
370
|
- sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec.rb
|
@@ -372,6 +387,7 @@ files:
|
|
372
387
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0.rb
|
373
388
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats.rb
|
374
389
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base.rb
|
390
|
+
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base/file_resource_name_helper.rb
|
375
391
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances.rb
|
376
392
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances/base.rb
|
377
393
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources.rb
|