avm-eac_php_base0 0.1.0 → 0.3.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: 3b166081c0c3479a15226bec7cdce9b8bc59d0b3526176111150a43f6350e60e
4
- data.tar.gz: 17557dc356d08ea4ca6ae180e321e4e8dd9e32f1f4c70d774cb5da783614cb64
3
+ metadata.gz: 15e4a095189a2e5934fd8dacb7f8a66daf8f0a1a935ec086cc26a11af96a2a1b
4
+ data.tar.gz: 05d31a8beafda1f3c2c303ba93729ed34e8eb88f076ed32f15556bec0306fe7c
5
5
  SHA512:
6
- metadata.gz: 9de3c434c343fa9796070a99ade9c976d4d1fe3fdeb330a6d4dfd893844c303c19d2bbe777e1bbda2e92093a4ac114a81946c1166b94350ae9bd745c20945869
7
- data.tar.gz: d48a8063816fd3cf12f37cbc0459ea2203cdf6f74219872512789b4e0469ef456b72d1d6b01cc7c80eb91df9a3c309f3d42909e6080a428dea8aa5eb1bb75cf7
6
+ metadata.gz: 51a5a81a3ac839ba0b361e40b8a8da91bf72779f7eeedaaa86e8d97499386e936791b672f15d96bd4fb3923ccf1144b4f2346fb22a529f5a32af230eb4e5be1e
7
+ data.tar.gz: a94bdb01c6b9800e58fff934c9a8ae515559bfc1492c304f88a597c72819bc8d9bb9b8bcba960cb52d2a7e0f0d030624cc661aa0cdab44e92e41c302b5f9ffcc
@@ -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
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/eac_php_base0/executables'
4
+ require 'avm/eac_generic_base0/file_formats/base'
5
+
6
+ module Avm
7
+ module EacPhpBase0
8
+ module FileFormats
9
+ class Base < ::Avm::EacGenericBase0::FileFormats::Base
10
+ VALID_BASENAMES = %w[*.php].freeze
11
+ VALID_TYPES = ['x-php'].freeze
12
+
13
+ def file_apply(file)
14
+ ::Avm::EacPhpBase0::Executables.php_cs_fixer.command.append(['fix', file]).system!
15
+ super(file)
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module EacPhpBase0
7
+ module FileFormats
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacPhpBase0
5
- VERSION = '0.1.0'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,29 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-eac_php_base0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.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-10-11 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: avm-eac_generic_base0
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.7'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.7'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: eac_ruby_utils
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: '0.104'
33
+ version: '0.106'
20
34
  type: :runtime
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
38
  - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: '0.104'
40
+ version: '0.106'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: eac_ruby_gem_support
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -51,6 +65,9 @@ extensions: []
51
65
  extra_rdoc_files: []
52
66
  files:
53
67
  - lib/avm/eac_php_base0.rb
68
+ - lib/avm/eac_php_base0/executables.rb
69
+ - lib/avm/eac_php_base0/file_formats.rb
70
+ - lib/avm/eac_php_base0/file_formats/base.rb
54
71
  - lib/avm/eac_php_base0/version.rb
55
72
  homepage:
56
73
  licenses: []