eac_tools 0.29.0 → 0.30.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +31 -25
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +1 -1
  5. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/lib_rename.rb +77 -0
  6. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/namespace_replacer.rb +55 -0
  7. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/update_dependencies_requirements.rb +21 -7
  8. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
  9. data/sub/avm-files/Gemfile +8 -0
  10. data/sub/avm-files/avm-files.gemspec +22 -0
  11. data/sub/avm-files/lib/avm/files/appendable/file_content.rb +24 -0
  12. data/sub/avm-files/lib/avm/files/appendable/plain_directory.rb +25 -0
  13. data/sub/avm-files/lib/avm/files/appendable/resource_base.rb +13 -0
  14. data/sub/avm-files/lib/avm/files/appendable/tar_output_command.rb +26 -0
  15. data/sub/avm-files/lib/avm/files/appendable/templatized_directory.rb +29 -0
  16. data/sub/avm-files/lib/avm/files/appendable.rb +55 -0
  17. data/sub/avm-files/lib/avm/files/appender.rb +11 -0
  18. data/sub/avm-files/lib/avm/files/deploy.rb +71 -0
  19. data/sub/avm-files/lib/avm/files/formatter/formats/base.rb +62 -0
  20. data/sub/avm-files/lib/avm/files/formatter/formats/generic_plain.rb +34 -0
  21. data/sub/avm-files/lib/avm/files/formatter/formats/html.rb +45 -0
  22. data/sub/avm-files/lib/avm/files/formatter/formats/javascript.rb +24 -0
  23. data/sub/avm-files/lib/avm/files/formatter/formats/json.rb +27 -0
  24. data/sub/avm-files/lib/avm/files/formatter/formats/php.rb +22 -0
  25. data/sub/avm-files/lib/avm/files/formatter/formats/python.rb +22 -0
  26. data/sub/avm-files/lib/avm/files/formatter/formats/ruby.rb +22 -0
  27. data/sub/avm-files/lib/avm/files/formatter/formats/xml.rb +28 -0
  28. data/sub/avm-files/lib/avm/files/formatter/formats.rb +13 -0
  29. data/sub/avm-files/lib/avm/files/formatter/utf8_assert.rb +74 -0
  30. data/sub/avm-files/lib/avm/files/formatter.rb +90 -0
  31. data/sub/avm-files/lib/avm/files/runner_with/file_replacer.rb +34 -0
  32. data/sub/avm-files/lib/avm/files/runner_with/filesystem_traverser.rb +54 -0
  33. data/sub/avm-files/lib/avm/files/runner_with.rb +11 -0
  34. data/sub/avm-files/lib/avm/files/text_replacer/gsub.rb +24 -0
  35. data/sub/avm-files/lib/avm/files/text_replacer.rb +32 -0
  36. data/sub/avm-files/lib/avm/files/version.rb +7 -0
  37. data/sub/avm-files/lib/avm/files.rb +9 -0
  38. data/sub/avm-files/spec/rubocop_spec.rb +3 -0
  39. data/sub/avm-files/spec/spec_helper.rb +4 -0
  40. data/sub/avm-tools/avm-tools.gemspec +5 -5
  41. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  42. data/sub/eac_cli/eac_cli.gemspec +3 -3
  43. data/sub/eac_cli/lib/eac_cli/core_ext.rb +1 -1
  44. data/sub/eac_cli/lib/eac_cli/runner_with_set.rb +7 -3
  45. data/sub/eac_cli/lib/eac_cli/version.rb +1 -1
  46. data/sub/eac_ruby_base0/eac_ruby_base0.gemspec +4 -4
  47. data/sub/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  48. metadata +42 -12
  49. data/sub/eac_ruby_base0/lib/eac_ruby_base0/patches/object/runner_with.rb +0 -5
  50. data/sub/eac_ruby_base0/lib/eac_ruby_base0/patches/object.rb +0 -5
  51. data/sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/filesystem_traverser.rb +0 -52
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.136.0'
5
+ VERSION = '0.136.1'
6
6
  end
7
7
  end
@@ -12,9 +12,9 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib}/**/*', 'Gemfile']
14
14
 
15
- s.add_dependency 'colorize', '~> 0.8.1'
16
- s.add_dependency 'eac_config', '~> 0.8'
17
- s.add_dependency 'eac_ruby_utils', '~> 0.95'
15
+ s.add_dependency 'colorize', '~> 0.8', '>= 0.8.1'
16
+ s.add_dependency 'eac_config', '~> 0.11', '>= 0.11.1'
17
+ s.add_dependency 'eac_ruby_utils', '~> 0.103'
18
18
 
19
19
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
20
20
  end
@@ -3,4 +3,4 @@
3
3
  require 'eac_ruby_utils/core_ext'
4
4
  require 'eac_cli/patches'
5
5
 
6
- ::EacCli::RunnerWithSet.default.add_namespace(::EacCli::RunnerWith)
6
+ ::EacCli::RunnerWithSet.default.add_from_gems_registry
@@ -10,12 +10,16 @@ module EacCli
10
10
 
11
11
  def add_namespace(namespace)
12
12
  namespace = sanitize_namespace(namespace)
13
- raise "\"#{namespace}\" already was included" if namespace_set.include?(namespace)
14
-
15
- namespace_set << namespace
13
+ namespace_set << namespace unless namespace_set.include?(namespace)
16
14
  self
17
15
  end
18
16
 
17
+ def add_from_gems_registry
18
+ ::EacRubyUtils::GemsRegistry.new('RunnerWith').registered.each do |registered_gem|
19
+ add_namespace(registered_gem.registered_module)
20
+ end
21
+ end
22
+
19
23
  def item_to_module(item)
20
24
  item.is_a?(::Module) ? item : key_to_module(item)
21
25
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacCli
4
- VERSION = '0.27.8'
4
+ VERSION = '0.28.0'
5
5
  end
@@ -12,10 +12,10 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib}/**/*']
14
14
 
15
- s.add_dependency 'avm-eac_ruby_base1', '~> 0.8'
16
- s.add_dependency 'eac_cli', '~> 0.27', '>= 0.27.5'
17
- s.add_dependency 'eac_fs', '~> 0.10'
18
- s.add_dependency 'eac_ruby_utils', '~> 0.95', '>= 0.95.1'
15
+ s.add_dependency 'avm-eac_ruby_base1', '~> 0.21'
16
+ s.add_dependency 'eac_cli', '~> 0.28'
17
+ s.add_dependency 'eac_fs', '~> 0.12', '>= 0.12.3'
18
+ s.add_dependency 'eac_ruby_utils', '~> 0.103'
19
19
 
20
20
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
21
21
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyBase0
4
- VERSION = '0.16.6'
4
+ VERSION = '0.17.0'
5
5
  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.29.0
4
+ version: 0.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
@@ -128,20 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0.20'
132
- - - ">="
133
- - !ruby/object:Gem::Version
134
- version: 0.20.1
131
+ version: '0.21'
135
132
  type: :runtime
136
133
  prerelease: false
137
134
  version_requirements: !ruby/object:Gem::Requirement
138
135
  requirements:
139
136
  - - "~>"
140
137
  - !ruby/object:Gem::Version
141
- version: '0.20'
142
- - - ">="
143
- - !ruby/object:Gem::Version
144
- version: 0.20.1
138
+ version: '0.21'
145
139
  - !ruby/object:Gem::Dependency
146
140
  name: avm-eac_webapp_base0
147
141
  requirement: !ruby/object:Gem::Requirement
@@ -177,6 +171,9 @@ dependencies:
177
171
  - - "~>"
178
172
  - !ruby/object:Gem::Version
179
173
  version: '0.136'
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ version: 0.136.1
180
177
  type: :runtime
181
178
  prerelease: false
182
179
  version_requirements: !ruby/object:Gem::Requirement
@@ -184,6 +181,9 @@ dependencies:
184
181
  - - "~>"
185
182
  - !ruby/object:Gem::Version
186
183
  version: '0.136'
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: 0.136.1
187
187
  - !ruby/object:Gem::Dependency
188
188
  name: eac_ruby_utils
189
189
  requirement: !ruby/object:Gem::Requirement
@@ -434,6 +434,7 @@ files:
434
434
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/version_file.rb
435
435
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners.rb
436
436
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base.rb
437
+ - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/lib_rename.rb
437
438
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/rubocop.rb
438
439
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators.rb
439
440
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base.rb
@@ -445,6 +446,7 @@ files:
445
446
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubygems.rb
446
447
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb
447
448
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/bundle_update.rb
449
+ - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/namespace_replacer.rb
448
450
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners.rb
449
451
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb
450
452
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb
@@ -553,6 +555,37 @@ files:
553
555
  - sub/avm-eac_wordpress_base0/spec/rubocop_spec.rb
554
556
  - sub/avm-eac_wordpress_base0/spec/spec_helper.rb
555
557
  - sub/avm-eac_wordpress_base0/template/avm/eac_wordpress_base0/deploy/wp-config.php.template
558
+ - sub/avm-files/Gemfile
559
+ - sub/avm-files/avm-files.gemspec
560
+ - sub/avm-files/lib/avm/files.rb
561
+ - sub/avm-files/lib/avm/files/appendable.rb
562
+ - sub/avm-files/lib/avm/files/appendable/file_content.rb
563
+ - sub/avm-files/lib/avm/files/appendable/plain_directory.rb
564
+ - sub/avm-files/lib/avm/files/appendable/resource_base.rb
565
+ - sub/avm-files/lib/avm/files/appendable/tar_output_command.rb
566
+ - sub/avm-files/lib/avm/files/appendable/templatized_directory.rb
567
+ - sub/avm-files/lib/avm/files/appender.rb
568
+ - sub/avm-files/lib/avm/files/deploy.rb
569
+ - sub/avm-files/lib/avm/files/formatter.rb
570
+ - sub/avm-files/lib/avm/files/formatter/formats.rb
571
+ - sub/avm-files/lib/avm/files/formatter/formats/base.rb
572
+ - sub/avm-files/lib/avm/files/formatter/formats/generic_plain.rb
573
+ - sub/avm-files/lib/avm/files/formatter/formats/html.rb
574
+ - sub/avm-files/lib/avm/files/formatter/formats/javascript.rb
575
+ - sub/avm-files/lib/avm/files/formatter/formats/json.rb
576
+ - sub/avm-files/lib/avm/files/formatter/formats/php.rb
577
+ - sub/avm-files/lib/avm/files/formatter/formats/python.rb
578
+ - sub/avm-files/lib/avm/files/formatter/formats/ruby.rb
579
+ - sub/avm-files/lib/avm/files/formatter/formats/xml.rb
580
+ - sub/avm-files/lib/avm/files/formatter/utf8_assert.rb
581
+ - sub/avm-files/lib/avm/files/runner_with.rb
582
+ - sub/avm-files/lib/avm/files/runner_with/file_replacer.rb
583
+ - sub/avm-files/lib/avm/files/runner_with/filesystem_traverser.rb
584
+ - sub/avm-files/lib/avm/files/text_replacer.rb
585
+ - sub/avm-files/lib/avm/files/text_replacer/gsub.rb
586
+ - sub/avm-files/lib/avm/files/version.rb
587
+ - sub/avm-files/spec/rubocop_spec.rb
588
+ - sub/avm-files/spec/spec_helper.rb
556
589
  - sub/avm-tools/Gemfile
557
590
  - sub/avm-tools/README.textile
558
591
  - sub/avm-tools/avm-tools.gemspec
@@ -1008,14 +1041,11 @@ files:
1008
1041
  - sub/eac_ruby_base0/lib/eac_ruby_base0/patches.rb
1009
1042
  - sub/eac_ruby_base0/lib/eac_ruby_base0/patches/class.rb
1010
1043
  - sub/eac_ruby_base0/lib/eac_ruby_base0/patches/class/jobs_runner.rb
1011
- - sub/eac_ruby_base0/lib/eac_ruby_base0/patches/object.rb
1012
- - sub/eac_ruby_base0/lib/eac_ruby_base0/patches/object/runner_with.rb
1013
1044
  - sub/eac_ruby_base0/lib/eac_ruby_base0/rspec.rb
1014
1045
  - sub/eac_ruby_base0/lib/eac_ruby_base0/rspec/setup.rb
1015
1046
  - sub/eac_ruby_base0/lib/eac_ruby_base0/runner.rb
1016
1047
  - sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with.rb
1017
1048
  - sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/confirmation.rb
1018
- - sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/filesystem_traverser.rb
1019
1049
  - sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/input.rb
1020
1050
  - sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/output.rb
1021
1051
  - sub/eac_ruby_base0/lib/eac_ruby_base0/version.rb
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/core_ext'
4
- require 'eac_ruby_base0/runner_with'
5
- ::EacCli::RunnerWithSet.default.add_namespace(::EacRubyBase0::RunnerWith)
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Dir["#{File.dirname(__FILE__)}/#{::File.basename(__FILE__, '.*')}/*.rb"].sort.each do |path|
4
- require path
5
- end
@@ -1,52 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/runner'
4
- require 'eac_ruby_utils/core_ext'
5
- require 'eac_fs/traversable'
6
- require 'eac_ruby_utils/settings_provider'
7
-
8
- module EacRubyBase0
9
- module RunnerWith
10
- module FilesystemTraverser
11
- DEFAULT_DEFAULT_TRAVERSER_RECURSIVE = false
12
-
13
- common_concern do
14
- include ::EacCli::Runner
15
- include ::EacFs::Traversable
16
- enable_settings_provider
17
- include TopMethods
18
- runner_definition do
19
- bool_opt '-R', '--recursive', 'Recursive.'
20
- bool_opt '--no-recursive', 'No recursive.'
21
- pos_arg :paths, optional: true, repeat: true
22
- end
23
- end
24
-
25
- module TopMethods
26
- def on_none_path_informed
27
- infom 'Warning: none path informed'
28
- end
29
-
30
- def paths
31
- parsed.paths.map(&:to_pathname)
32
- end
33
-
34
- def run_filesystem_traverser
35
- if parsed.paths.any?
36
- parsed.paths.each { |path| traverser_check_path(path) }
37
- else
38
- on_none_path_informed
39
- end
40
- end
41
-
42
- def traverser_recursive
43
- return false if parsed.no_recursive?
44
- return true if parsed.recursive?
45
-
46
- setting_value(:default_traverser_recursive, required: false)
47
- .if_not_nil(DEFAULT_DEFAULT_TRAVERSER_RECURSIVE)
48
- end
49
- end
50
- end
51
- end
52
- end