dapp 0.22.0 → 0.22.1

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: 77598b3aaf53c25bda513349cdd1d04f7bbb3b0381553c674753926cd9422ecc
4
- data.tar.gz: c921eb3a8041c2c4bdb86b28ba6179b6cdefb17095558d44ebc87f79518a726c
3
+ metadata.gz: c045374a9efddfa40e6eaf95436a0226f968a11d5c9d8dd4898de44114e1c097
4
+ data.tar.gz: cd7951c2d9fa47ee3c0453bb27b7a21f1bec83e0aa3e9d8685c0435dacf3e72a
5
5
  SHA512:
6
- metadata.gz: 27a73294f4dc0bc778bad4f766f30ae6bd717258b920bf55a0c85a52274c8b7042f02c3c5b55fff308e870026b698cac55e69fe428802db9971972b475299a55
7
- data.tar.gz: 27e40f37ffd4d68f06f573840b2c5d72bd5405dca1f8a0de691fd71abcc080db432cb5259c69884eaecca6abb26b43a351b545eff10060bc4c5556907a377728
6
+ metadata.gz: 9eef997b64338768d8f7f37aa579a3e4c332335b4ade9538fec69e0db7330a6c2b86574ec5192eb510bbca058079601aecca977346cf45e85521a94ecfea9b1c
7
+ data.tar.gz: 8a9ef60b34392efe292a5caa02834b0109eb5ef786fc07680ac640050fcc08256a525f194217d395917b3f628a568f31d7f11f1c5064738a52c4e2a02500f8f3
@@ -4,7 +4,7 @@ module Dapp
4
4
  class Update < ::Dapp::CLI
5
5
  def run(_argv)
6
6
  spec = Gem::Specification.find do |s|
7
- File.fnmatch(File.join(s.full_gem_path, '*'), __FILE__)
7
+ File.fnmatch?(File.join(s.full_gem_path, '**', '*'), __FILE__, File::FNM_PATHNAME)
8
8
  end
9
9
  unless (latest_version = latest_beta_version(spec)).nil?
10
10
  try_lock do
@@ -8,7 +8,7 @@ module Dapp
8
8
 
9
9
  def cleanup_repo
10
10
  lock_repo(repo = option_repo) do
11
- registry = registry(repo)
11
+ registry = dimg_registry(repo)
12
12
 
13
13
  cleanup_repo_by_nonexistent_git_primitive(registry, actual_detailed_dimgs_images_by_scheme(registry))
14
14
  cleanup_repo_by_policies(registry, actual_detailed_dimgs_images_by_scheme(registry))
@@ -6,7 +6,7 @@ module Dapp
6
6
  def flush_repo
7
7
  lock_repo(repo = option_repo) do
8
8
  log_step_with_indent(option_repo) do
9
- registry = registry(repo)
9
+ registry = dimg_registry(repo)
10
10
  repo_dimgs_images(registry).each { |repo_image| delete_repo_image(registry, repo_image) }
11
11
  stages_flush_repo if with_stages?
12
12
  end
@@ -139,7 +139,10 @@ module Dapp
139
139
  is_exclude_path = exclude_paths.any? { |p| check_path?(path, p) }
140
140
  is_include_path = begin
141
141
  paths.empty? ||
142
- paths.any? { |p| File.fnmatch?(p, path) || File.fnmatch?(File.join(p, '**'), path) }
142
+ paths.any? do |p|
143
+ File.fnmatch?(p, path, File::FNM_PATHNAME) ||
144
+ File.fnmatch?(File.join(p, '**', '*'), path, File::FNM_PATHNAME)
145
+ end
143
146
  end
144
147
 
145
148
  is_exclude_path || !is_include_path
@@ -151,7 +154,7 @@ module Dapp
151
154
 
152
155
  until path_parts.empty?
153
156
  checking_path = [checking_path, path_parts.shift].compact.join('/')
154
- return true if File.fnmatch(format, checking_path)
157
+ return true if File.fnmatch?(format, checking_path, File::FNM_PATHNAME)
155
158
  end
156
159
  false
157
160
  end
@@ -13,8 +13,8 @@ module Dapp
13
13
  template_relative_path_pattern = Pathname(File.expand_path(template_path_pattern)).subpath_of(path('.helm'))
14
14
  template_relative_path_pattern ||= template_path_pattern
15
15
 
16
- File.fnmatch(template_relative_path_pattern, template_path_without_chart_name) ||
17
- File.fnmatch(template_relative_path_pattern, template_path)
16
+ File.fnmatch?(template_relative_path_pattern, template_path_without_chart_name, File::FNM_PATHNAME) ||
17
+ File.fnmatch?(template_relative_path_pattern, template_path, File::FNM_PATHNAME)
18
18
  end
19
19
  end
20
20
  else
@@ -1,4 +1,4 @@
1
1
  module Dapp
2
- VERSION = '0.22.0'.freeze
3
- BUILD_CACHE_VERSION = 24
2
+ VERSION = '0.22.1'.freeze
3
+ BUILD_CACHE_VERSION = 25
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Stolyarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-06 00:00:00.000000000 Z
11
+ date: 2017-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout