avm-eac_php_base0 0.2.0 → 0.4.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/eac_php_base0/executables.rb +22 -0
- data/lib/avm/eac_php_base0/file_formats/base.rb +2 -2
- data/lib/avm/eac_php_base0/instances/base.rb +14 -0
- data/lib/avm/eac_php_base0/instances.rb +11 -0
- data/lib/avm/eac_php_base0/source_generators/base.rb +28 -0
- data/lib/avm/eac_php_base0/source_generators.rb +11 -0
- data/lib/avm/eac_php_base0/sources/base.rb +17 -0
- data/lib/avm/eac_php_base0/sources.rb +11 -0
- data/lib/avm/eac_php_base0/version.rb +1 -1
- data/template/avm/eac_php_base0/source_generators/base/index.php +0 -0
- metadata +34 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfb27f43acb33389dd9c84565d93ffed43f0711efdc43ef23458c7305162574d
|
4
|
+
data.tar.gz: 94aaae4d284f6a7e4c0bb1a0b1e6bfc96a86145d2093daaf958a017e3a41c5ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 378a70106d05a1c7128313f018f9b54e3706c0cf415c6be1d6edd35602c229efc6681f0baf642860bfb948ae930987e246dc4923dc09d51bf15f254a671ef788
|
7
|
+
data.tar.gz: 95122ea622d007c863e33f234584529882f5dbe6eda9ba444f656d8507c5670779800f67d337743e4064d7fb19cc0b8ba30b44ea679a533a11990854a0e462c4
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
require 'eac_ruby_utils/envs'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacPhpBase0
|
8
|
+
module Executables
|
9
|
+
class << self
|
10
|
+
enable_simple_cache
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
%w[php-cs-fixer].each do |program|
|
15
|
+
define_method(program.underscore + '_uncached') do
|
16
|
+
::EacRubyUtils::Envs.local.executable(program, '--version')
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/executables'
|
3
|
+
require 'avm/eac_php_base0/executables'
|
4
4
|
require 'avm/eac_generic_base0/file_formats/base'
|
5
5
|
|
6
6
|
module Avm
|
@@ -11,7 +11,7 @@ module Avm
|
|
11
11
|
VALID_TYPES = ['x-php'].freeze
|
12
12
|
|
13
13
|
def file_apply(file)
|
14
|
-
::Avm::Executables.php_cs_fixer.command.append(['fix', file]).system!
|
14
|
+
::Avm::EacPhpBase0::Executables.php_cs_fixer.command.append(['fix', file]).system!
|
15
15
|
super(file)
|
16
16
|
end
|
17
17
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_webapp_base0/instances/base'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacPhpBase0
|
8
|
+
module Instances
|
9
|
+
class Base < ::Avm::EacWebappBase0::Instances::Base
|
10
|
+
FILES_UNITS = {}.freeze
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/source_generators/base'
|
4
|
+
require 'eac_templates/core_ext'
|
5
|
+
require 'eac_ruby_utils/core_ext'
|
6
|
+
|
7
|
+
module Avm
|
8
|
+
module EacPhpBase0
|
9
|
+
module SourceGenerators
|
10
|
+
class Base < ::Avm::SourceGenerators::Base
|
11
|
+
OPTIONS = {}.freeze
|
12
|
+
|
13
|
+
enable_speaker
|
14
|
+
enable_simple_cache
|
15
|
+
|
16
|
+
class << self
|
17
|
+
def option_list
|
18
|
+
OPTIONS.inject(super) { |a, e| a.option(*e) }
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def perform
|
23
|
+
template.apply(self, target_path)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_webapp_base0/sources/base'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacPhpBase0
|
8
|
+
module Sources
|
9
|
+
class Base < ::Avm::EacWebappBase0::Sources::Base
|
10
|
+
# @return [Boolean]
|
11
|
+
def valid?
|
12
|
+
path.glob('*.php').any?(&:file?)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-eac_php_base0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduardo H. Bogoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm-eac_generic_base0
|
@@ -16,28 +16,48 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.8'
|
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.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: avm-eac_webapp_base0
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.12'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 0.12.3
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0.12'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.12.3
|
27
47
|
- !ruby/object:Gem::Dependency
|
28
48
|
name: eac_ruby_utils
|
29
49
|
requirement: !ruby/object:Gem::Requirement
|
30
50
|
requirements:
|
31
51
|
- - "~>"
|
32
52
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
53
|
+
version: '0.108'
|
34
54
|
type: :runtime
|
35
55
|
prerelease: false
|
36
56
|
version_requirements: !ruby/object:Gem::Requirement
|
37
57
|
requirements:
|
38
58
|
- - "~>"
|
39
59
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
60
|
+
version: '0.108'
|
41
61
|
- !ruby/object:Gem::Dependency
|
42
62
|
name: eac_ruby_gem_support
|
43
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -65,9 +85,17 @@ extensions: []
|
|
65
85
|
extra_rdoc_files: []
|
66
86
|
files:
|
67
87
|
- lib/avm/eac_php_base0.rb
|
88
|
+
- lib/avm/eac_php_base0/executables.rb
|
68
89
|
- lib/avm/eac_php_base0/file_formats.rb
|
69
90
|
- lib/avm/eac_php_base0/file_formats/base.rb
|
91
|
+
- lib/avm/eac_php_base0/instances.rb
|
92
|
+
- lib/avm/eac_php_base0/instances/base.rb
|
93
|
+
- lib/avm/eac_php_base0/source_generators.rb
|
94
|
+
- lib/avm/eac_php_base0/source_generators/base.rb
|
95
|
+
- lib/avm/eac_php_base0/sources.rb
|
96
|
+
- lib/avm/eac_php_base0/sources/base.rb
|
70
97
|
- lib/avm/eac_php_base0/version.rb
|
98
|
+
- template/avm/eac_php_base0/source_generators/base/index.php
|
71
99
|
homepage:
|
72
100
|
licenses: []
|
73
101
|
metadata: {}
|