eac_tools 0.50.0 → 0.52.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +23 -23
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm/lib/avm/file_formats/base.rb +7 -0
  5. data/sub/avm/lib/avm/file_formats/search_formatter.rb +2 -12
  6. data/sub/avm/lib/avm/registry/file_formats.rb +4 -0
  7. data/sub/avm/lib/avm/rspec/setup.rb +2 -2
  8. data/sub/avm/lib/avm/rspec/shared_examples/avm_file_format_file_resource_name.rb +15 -0
  9. data/sub/avm/lib/avm/scms/auto_commit/file_resource_name.rb +9 -1
  10. data/sub/avm/lib/avm/version.rb +1 -1
  11. data/sub/avm/spec/lib/avm/file_formats/base_spec.rb +11 -0
  12. data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +2 -2
  13. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base/file_resource_name.rb +37 -0
  14. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base.rb +17 -0
  15. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb +1 -1
  16. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/file_formats/base_spec.rb +13 -0
  17. data/sub/avm-eac_generic_base0/avm-eac_generic_base0.gemspec +2 -2
  18. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base/file_resource_name_helper.rb +23 -0
  19. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base.rb +3 -0
  20. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/version.rb +1 -1
  21. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +3 -3
  22. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base/file_resource_name.rb +47 -0
  23. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base.rb +2 -0
  24. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
  25. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec.rb +8 -0
  26. data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +5 -5
  27. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
  28. metadata +24 -12
  29. data/sub/avm/lib/avm/scms/auto_commit/file_resource_name/ruby.rb +0 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4beb83e6ea4860f6c6b5a5e9cc4d06bc5fb2dbea75a75d431a9c37bae9070e9
4
- data.tar.gz: c982c7cd5fd95f92ac4d656df233600745a0a6f58cc1d662456804eda7a3a9e7
3
+ metadata.gz: 941c3fab9a6680a8f5680d9a3a5b09c3e8857e356fc0e6e5b857165b28222089
4
+ data.tar.gz: d3add3c769477cc6ef96905ca38b16509594c81f37cc75a913d55ea7ae1a2fba
5
5
  SHA512:
6
- metadata.gz: 10951929bb08a90e4d521c8f04baede258a04b8a4832a7770b765395616d5e7ec57dd88b5c6631d96a7aaeb5bb10f87cb99206e33ea86e3db635bee1b72a8d69
7
- data.tar.gz: a2134fad70db674197dade76b08aa2acfd16e4c8e6af35d5eb12b9a7447145055941e22af96e3280b8de0c1770ec6ac40486fde50fa4ba6c3e7c95f883a9db16
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.50.0)
5
- avm (~> 0.59)
6
- avm-eac_asciidoctor_base0 (~> 0.13)
7
- avm-eac_generic_base0 (~> 0.8)
4
+ eac_tools (0.52.0)
5
+ avm (~> 0.60)
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.27, >= 0.27.3)
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.13.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.109)
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.8.0)
49
- avm (~> 0.53)
50
- eac_ruby_utils (~> 0.106, >= 0.106.1)
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,10 +118,10 @@ PATH
118
118
  PATH
119
119
  remote: sub/avm-eac_ruby_base1
120
120
  specs:
121
- avm-eac_ruby_base1 (0.27.3)
122
- avm (~> 0.57)
123
- avm-eac_generic_base0 (~> 0.8)
124
- eac_ruby_utils (~> 0.109)
121
+ avm-eac_ruby_base1 (0.28.1)
122
+ avm (~> 0.60)
123
+ avm-eac_generic_base0 (~> 0.9)
124
+ eac_ruby_utils (~> 0.110, >= 0.110.1)
125
125
 
126
126
  PATH
127
127
  remote: sub/avm-eac_ubuntu_base0
@@ -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.0)
138
- avm (~> 0.57)
139
- avm-eac_generic_base0 (~> 0.8)
140
- avm-eac_postgresql_base0 (~> 0.2, >= 0.2.2)
141
- avm-eac_ubuntu_base0 (~> 0.3)
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.109)
143
+ eac_ruby_utils (~> 0.110, >= 0.110.1)
144
144
 
145
145
  PATH
146
146
  remote: sub/avm-eac_wordpress_base0
@@ -191,7 +191,7 @@ PATH
191
191
  PATH
192
192
  remote: sub/avm
193
193
  specs:
194
- avm (0.59.0)
194
+ avm (0.60.0)
195
195
  aranha-parsers (~> 0.14, >= 0.14.4)
196
196
  eac_cli (~> 0.30)
197
197
  eac_config (~> 0.12)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.50.0'
4
+ VERSION = '0.52.0'
5
5
  end
@@ -8,6 +8,7 @@ module Avm
8
8
  module FileFormats
9
9
  class Base
10
10
  enable_abstract_methods
11
+ compare_by :class
11
12
 
12
13
  def apply(files)
13
14
  old_content = Hash[files.map { |f| [f, File.read(f)] }]
@@ -15,6 +16,12 @@ module Avm
15
16
  files.map { |f| build_file_result(f, old_content[f]) }
16
17
  end
17
18
 
19
+ # @param path [Pathname]
20
+ # @return [Avm::FileFormats::FileWith]
21
+ def file_resource_name(path)
22
+ path.to_pathname.to_path
23
+ end
24
+
18
25
  def name
19
26
  self.class.name.demodulize
20
27
  end
@@ -50,19 +50,9 @@ module Avm
50
50
  @result = []
51
51
  end
52
52
 
53
+ # @return [Avm::FileFormats::Base, nil]
53
54
  def find_format(file)
54
- formats.each do |c|
55
- return c if c.match?(file)
56
- end
57
- nil
58
- end
59
-
60
- def formats_uncached
61
- formats_from_registry
62
- end
63
-
64
- def formats_from_registry
65
- ::Avm::Registry.file_formats.available.reverse.map(&:new)
55
+ ::Avm::Registry.file_formats.detect_optional(file)
66
56
  end
67
57
 
68
58
  def search_files
@@ -5,6 +5,10 @@ require 'avm/registry/from_gems'
5
5
  module Avm
6
6
  module Registry
7
7
  class FileFormats < ::Avm::Registry::FromGems
8
+ # @return [Avm::FileFormats::Base]
9
+ def class_detect(klass, detect_args)
10
+ klass.new if klass.new.match?(detect_args.first)
11
+ end
8
12
  end
9
13
  end
10
14
  end
@@ -7,8 +7,8 @@ module Avm
7
7
  module Rspec
8
8
  module Setup
9
9
  require_sub __FILE__
10
- EXAMPLES = %w[avm_file_formats_with_fixtures avm_source_generated entries_values
11
- in_avm_registry not_in_avm_registry].freeze
10
+ EXAMPLES = %w[avm_file_formats_with_fixtures avm_file_format_file_resource_name
11
+ avm_source_generated entries_values in_avm_registry not_in_avm_registry].freeze
12
12
 
13
13
  def self.extended(obj)
14
14
  obj.setup_examples
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ ::RSpec.shared_examples 'avm_file_format_file_resource_name' do |input_expected|
6
+ describe '#file_resource_name' do
7
+ input_expected.each do |path, expected_resource_name|
8
+ context "when path is \"#{path}\"" do
9
+ let(:instance) { described_class.new }
10
+
11
+ it { expect(instance.file_resource_name(path)).to eq(expected_resource_name) }
12
+ end
13
+ end
14
+ end
15
+ end
@@ -7,13 +7,14 @@ module Avm
7
7
  module AutoCommit
8
8
  class FileResourceName
9
9
  require_sub __FILE__, include_modules: true
10
+ enable_simple_cache
10
11
  common_constructor :source_root, :path do
11
12
  self.source_root = source_root.to_pathname
12
13
  self.path = path.to_pathname
13
14
  end
14
15
 
15
16
  def class_name
16
- ruby_class_name || relative_path.to_path
17
+ file_format.file_resource_name(path)
17
18
  end
18
19
 
19
20
  def commit_message
@@ -25,6 +26,13 @@ module Avm
25
26
  def relative_path
26
27
  path.expand_path.relative_path_from(source_root.expand_path)
27
28
  end
29
+
30
+ private
31
+
32
+ # @return [Avm::FileFormats::Base]
33
+ def file_format_uncached
34
+ ::Avm::Registry.file_formats.detect(path)
35
+ end
28
36
  end
29
37
  end
30
38
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.59.0'
4
+ VERSION = '0.60.0'
5
5
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/file_formats/base'
4
+
5
+ ::RSpec.describe ::Avm::FileFormats::Base do
6
+ include_examples 'avm_file_format_file_resource_name', {
7
+ 'app/models/mynamespace/the_class.rb' => 'app/models/mynamespace/the_class.rb',
8
+ 'lib/ruby/lib/cliutils/eac_redmine_base0/activity.rb' =>
9
+ 'lib/ruby/lib/cliutils/eac_redmine_base0/activity.rb'
10
+ }
11
+ end
@@ -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.109'
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacAsciidoctorBase0
5
- VERSION = '0.13.0'
5
+ VERSION = '0.14.0'
6
6
  end
7
7
  end
@@ -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.53'
16
- s.add_dependency 'eac_ruby_utils', '~> 0.106', '>= 0.106.1'
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacGenericBase0
5
- VERSION = '0.8.0'
5
+ VERSION = '0.9.0'
6
6
  end
7
7
  end
@@ -12,9 +12,9 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,locale,template}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.57'
16
- s.add_dependency 'avm-eac_generic_base0', '~> 0.8'
17
- s.add_dependency 'eac_ruby_utils', '~> 0.109'
15
+ s.add_dependency 'avm', '~> 0.60'
16
+ s.add_dependency 'avm-eac_generic_base0', '~> 0.9'
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'
20
20
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/eac_generic_base0/file_formats/base'
4
+ require 'avm/eac_ruby_base1/rubocop'
5
+
6
+ module Avm
7
+ module EacRubyBase1
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
+ LIBRARY_PATTERNS = [%r{lib/((?!.*/lib/).+)\.rb\z},
17
+ %r{app/[^/]+/(.+)\.rb\z}].freeze
18
+ SPEC_PATTERNS = [%r{spec/[^/]+/(.+)_spec\.rb\z}].freeze
19
+
20
+ # @param path [Pathname]
21
+ # @return [Avm::FileFormats::FileWith]
22
+ def result
23
+ result_from_spec || result_from_library || result_from_superclass
24
+ end
25
+
26
+ private
27
+
28
+ def result_from_library
29
+ result_from_patterns(LIBRARY_PATTERNS) { |m| m[1].camelize }
30
+ end
31
+
32
+ def result_from_patterns(patterns, &block)
33
+ file_format.result_from_patterns(patterns, path, &block)
34
+ end
35
+
36
+ def result_from_spec
37
+ result_from_patterns(SPEC_PATTERNS) { |m| "RSpec.describe('#{m[1].camelize}')" }
38
+ end
39
+
40
+ def result_from_superclass
41
+ file_format.result_from_superclass(path)
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -7,6 +7,8 @@ module Avm
7
7
  module EacRubyBase1
8
8
  module FileFormats
9
9
  class Base < ::Avm::EacGenericBase0::FileFormats::Base
10
+ require_sub __FILE__
11
+
10
12
  VALID_BASENAMES = %w[*.gemspec *.rake *.rb Gemfile Rakefile].freeze
11
13
  VALID_TYPES = ['x-ruby'].freeze
12
14
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRubyBase1
5
- VERSION = '0.27.3'
5
+ VERSION = '0.28.1'
6
6
  end
7
7
  end
@@ -4,4 +4,12 @@ require 'avm/eac_ruby_base1/file_formats/base'
4
4
 
5
5
  ::RSpec.describe ::Avm::EacRubyBase1::FileFormats::Base do
6
6
  include_examples 'avm_file_formats_with_fixtures', __FILE__
7
+ include_examples 'avm_file_format_file_resource_name', {
8
+ 'app/models/mynamespace/the_class.rb' => 'Mynamespace::TheClass',
9
+ 'lib/ruby/lib/cliutils/eac_redmine_base0/activity.rb' => 'Cliutils::EacRedmineBase0::Activity',
10
+ 'a_non_library_file.rb' => 'a_non_library_file.rb',
11
+ 'spec/lib/my_lib_spec.rb' => 'RSpec.describe(\'MyLib\')',
12
+ 'spec/lib/sub/my_lib_spec.rb' => 'RSpec.describe(\'Sub::MyLib\')',
13
+ 'spec/spec_helper.rb' => 'spec/spec_helper.rb'
14
+ }
7
15
  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.57'
16
- s.add_dependency 'avm-eac_generic_base0', '~> 0.8'
17
- s.add_dependency 'avm-eac_postgresql_base0', '~> 0.2', '>= 0.2.2'
18
- s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.3'
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.109'
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacWebappBase0
5
- VERSION = '0.13.0'
5
+ VERSION = '0.13.1'
6
6
  end
7
7
  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.50.0
4
+ version: 0.52.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.59'
19
+ version: '0.60'
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.59'
26
+ version: '0.60'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: avm-eac_asciidoctor_base0
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.13'
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.13'
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.8'
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.8'
54
+ version: '0.9'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: avm-eac_latex_base0
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -188,20 +188,20 @@ dependencies:
188
188
  requirements:
189
189
  - - "~>"
190
190
  - !ruby/object:Gem::Version
191
- version: '0.27'
191
+ version: '0.28'
192
192
  - - ">="
193
193
  - !ruby/object:Gem::Version
194
- version: 0.27.3
194
+ version: 0.28.1
195
195
  type: :runtime
196
196
  prerelease: false
197
197
  version_requirements: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: '0.27'
201
+ version: '0.28'
202
202
  - - ">="
203
203
  - !ruby/object:Gem::Version
204
- version: 0.27.3
204
+ version: 0.28.1
205
205
  - !ruby/object:Gem::Dependency
206
206
  name: avm-eac_webapp_base0
207
207
  requirement: !ruby/object:Gem::Requirement
@@ -209,6 +209,9 @@ dependencies:
209
209
  - - "~>"
210
210
  - !ruby/object:Gem::Version
211
211
  version: '0.13'
212
+ - - ">="
213
+ - !ruby/object:Gem::Version
214
+ version: 0.13.1
212
215
  type: :runtime
213
216
  prerelease: false
214
217
  version_requirements: !ruby/object:Gem::Requirement
@@ -216,6 +219,9 @@ dependencies:
216
219
  - - "~>"
217
220
  - !ruby/object:Gem::Version
218
221
  version: '0.13'
222
+ - - ">="
223
+ - !ruby/object:Gem::Version
224
+ version: 0.13.1
219
225
  - !ruby/object:Gem::Dependency
220
226
  name: avm-eac_wordpress_base0
221
227
  requirement: !ruby/object:Gem::Requirement
@@ -335,6 +341,8 @@ files:
335
341
  - sub/avm-eac_asciidoctor_base0/Gemfile
336
342
  - sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec
337
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
338
346
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances.rb
339
347
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_host.rb
340
348
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_path.rb
@@ -356,6 +364,7 @@ files:
356
364
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners.rb
357
365
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/build.rb
358
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
359
368
  - sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec.rb
360
369
  - sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec_files/pre_processed_root_body.adoc
361
370
  - sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec.rb
@@ -378,6 +387,7 @@ files:
378
387
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0.rb
379
388
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats.rb
380
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
381
391
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances.rb
382
392
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances/base.rb
383
393
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources.rb
@@ -623,6 +633,7 @@ files:
623
633
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/version_requirement.rb
624
634
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats.rb
625
635
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base.rb
636
+ - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base/file_resource_name.rb
626
637
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher.rb
627
638
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem.rb
628
639
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/build.rb
@@ -1131,6 +1142,7 @@ files:
1131
1142
  - sub/avm/lib/avm/rspec/setup.rb
1132
1143
  - sub/avm/lib/avm/rspec/setup/launcher.rb
1133
1144
  - sub/avm/lib/avm/rspec/setup/source_generator.rb
1145
+ - sub/avm/lib/avm/rspec/shared_examples/avm_file_format_file_resource_name.rb
1134
1146
  - sub/avm/lib/avm/rspec/shared_examples/avm_file_formats_with_fixtures.rb
1135
1147
  - sub/avm/lib/avm/rspec/shared_examples/avm_source_generated.rb
1136
1148
  - sub/avm/lib/avm/rspec/shared_examples/entries_values.rb
@@ -1140,7 +1152,6 @@ files:
1140
1152
  - sub/avm/lib/avm/scms.rb
1141
1153
  - sub/avm/lib/avm/scms/auto_commit.rb
1142
1154
  - sub/avm/lib/avm/scms/auto_commit/file_resource_name.rb
1143
- - sub/avm/lib/avm/scms/auto_commit/file_resource_name/ruby.rb
1144
1155
  - sub/avm/lib/avm/scms/auto_commit/for_file.rb
1145
1156
  - sub/avm/lib/avm/scms/auto_commit/rules.rb
1146
1157
  - sub/avm/lib/avm/scms/auto_commit/rules/base.rb
@@ -1192,6 +1203,7 @@ files:
1192
1203
  - sub/avm/lib/avm/with/extra_subcommands.rb
1193
1204
  - sub/avm/spec/lib/avm/applications/base_spec.rb
1194
1205
  - sub/avm/spec/lib/avm/applications/base_spec_fixture.yml
1206
+ - sub/avm/spec/lib/avm/file_formats/base_spec.rb
1195
1207
  - sub/avm/spec/lib/avm/instances/base_spec.rb
1196
1208
  - sub/avm/spec/lib/avm/instances/base_spec_files/config.yml
1197
1209
  - sub/avm/spec/lib/avm/launcher/instances/base_spec.rb
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module Scms
7
- module AutoCommit
8
- class FileResourceName
9
- module Ruby
10
- RUBY_CLASS_NAME_PATTERNS = [%r{lib/((?!.*/lib/).+)\.rb\z},
11
- %r{app/[^/]+/(.+)\.rb\z}].freeze
12
-
13
- def ruby_class_name
14
- RUBY_CLASS_NAME_PATTERNS.each do |pattern|
15
- pattern.if_match(relative_path.to_path, false) { |m| return m[1].camelize }
16
- end
17
- nil
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end