avm-eac_redmine_base0 0.22.1 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: baf7bc7503d3a4b1030801490551a96b3bc18e85d10cf9a1654475a1f85789de
4
- data.tar.gz: ce6bd8a90e0eca729eeb5510d4cf1997da1ecb483aee5c51a9eaacfd5d6c0632
3
+ metadata.gz: af8afd7eedc4e07cd64845519c02ea3e419f6e1fcf1ab4cd881c5164dfa16153
4
+ data.tar.gz: a6976ebf6a78a4e37c7d459ab5fa96848616442f6a8a355f80244f8c9b5d8dd1
5
5
  SHA512:
6
- metadata.gz: e6d73a77631b441dec01c557c9e7e160f5b959f77ed0d4427679c55f584014fa5f21c2e978449155f793ab04eda05e8e37bfc8e84e515d33ec1072bf6afdbcc4
7
- data.tar.gz: '08874d9aa97b6040ded044d505780a08ef0d308fb63468f9c41ece0fe786cd1bf248daa95930233d17b1e2764699759f96472a4561fc7015525d4b0788f69067'
6
+ metadata.gz: b357ce45599ebebf277aab9994815714b411f76670a0b9cb9547f29ce15f29d85179850ae19ab5d9309caa54c6dbc0d93d35a6af7ec20351e682a6fe5ef9f76d
7
+ data.tar.gz: 3a81588e974911e8b6697792b4592256375962d69655d4f768ce04864cc01cf009fae0bce84b48e3bb423690d9b294414c8b292bb468b17dd353e084595fe135
@@ -18,7 +18,9 @@ module Avm
18
18
  /log/**/*].freeze
19
19
  GITIGNORE_DEL = %w[/Gemfile.lock /plugins/* /public/themes/*].freeze
20
20
  TARGET_KEEP = ::Avm::Sources::Base::Configuration::CONFIGURATION_FILENAMES
21
- .map { |b| "/#{b}" } + %w[/Gemfile.lock].freeze
21
+ .map { |b| "/#{b}" } + %w[/Gemfile.lock /plugins/*/**
22
+ /public/themes/*/**].freeze
23
+ TARGET_REMOVE = %w[alternate classic].map { |t| "/public/themes/#{t}/**" }
22
24
 
23
25
  def run
24
26
  ::EacRubyUtils::Fs::Temp.on_directory do |dir|
@@ -105,10 +107,19 @@ module Avm
105
107
  ::Pathname.new(tempdir.to_path)
106
108
  end
107
109
 
110
+ # @return [Enumerable<String>]
108
111
  def target_files_to_remove
109
112
  git_repo.command('ls-files').execute!
110
113
  .each_line.map { |v| "/#{v.strip}" }
111
- .without(*TARGET_KEEP)
114
+ .reject { |tpath| target_keep?(tpath) }
115
+ end
116
+
117
+ # @param tpath [String]
118
+ # @return [Boolean]
119
+ def target_keep?(tpath)
120
+ tpath = tpath.to_pathname
121
+ TARGET_REMOVE.none? { |target_remove| tpath.fnmatch?(target_remove) }
122
+ TARGET_KEEP.any? { |target_keep| tpath.fnmatch?(target_keep) }
112
123
  end
113
124
 
114
125
  def target_path_uncached
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRedmineBase0
5
- VERSION = '0.22.1'
5
+ VERSION = '0.22.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-eac_redmine_base0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.1
4
+ version: 0.22.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-23 00:00:00.000000000 Z
11
+ date: 2024-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -16,34 +16,34 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.88'
19
+ version: '0.90'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.90.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: '0.88'
29
+ version: '0.90'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.90.1
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: avm-eac_generic_base0
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '0.12'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 0.12.2
39
+ version: '0.13'
37
40
  type: :runtime
38
41
  prerelease: false
39
42
  version_requirements: !ruby/object:Gem::Requirement
40
43
  requirements:
41
44
  - - "~>"
42
45
  - !ruby/object:Gem::Version
43
- version: '0.12'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 0.12.2
46
+ version: '0.13'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: avm-eac_rails_base1
49
49
  requirement: !ruby/object:Gem::Requirement