dapp 0.21.7 → 0.21.8

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: d960a2b8317a14ddfa832b9af0639ec7660d786a80681652a1926e11812ab557
4
- data.tar.gz: 70e055acbff38ae9e70357f79f5ec23aa72f65f29f939ec3f341e96e891f2891
3
+ metadata.gz: 12baeedb09a5741d58e9ec84a38dde2baf68eb7a0eba62f769a7e2770cd7783d
4
+ data.tar.gz: fe53f1c9441819bd66a6f91b90b75a70a4b954a3972de1d82a03907354283b4c
5
5
  SHA512:
6
- metadata.gz: 59a718a76c615cb067a8f99393f207bf7ae429d1575b480a380587fdfcb96d18542511eea6692fd838ad0a0b1fbeaa7b288272e4af9de71fcc28bbae11145564
7
- data.tar.gz: 61572f4d894646509f6e4499e79fe3364bad3957a1666e0399beb1951a95b6e24b5976644a978f997a04ac91bc83b6626e92a5ebb3418869cb8682cf3cfa590a
6
+ metadata.gz: 80184a1a145137345d7113c4f3dfa82b37b20538bbcbeca5f8ee5242021839a964426e04fa479bcb1a42c661776e2612730ff28b438a00cf51fa7177d09d093a
7
+ data.tar.gz: 8d4da9752f7f4f80c93a6f6b2c5e416fbdacb852bf26af50eb47a5e72f357389679df254bfb4fb3395acea9bd6fbe3dec4728986868ff8bb444ae3db1a97a671
@@ -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
@@ -134,7 +134,10 @@ module Dapp
134
134
  is_exclude_path = exclude_paths.any? { |p| check_path?(path, p) }
135
135
  is_include_path = begin
136
136
  paths.empty? ||
137
- paths.any? { |p| File.fnmatch?(p, path) || File.fnmatch?(File.join(p, '**'), path) }
137
+ paths.any? do |p|
138
+ File.fnmatch?(p, path, File::FNM_PATHNAME) ||
139
+ File.fnmatch?(File.join(p, '**', '*'), path, File::FNM_PATHNAME)
140
+ end
138
141
  end
139
142
 
140
143
  is_exclude_path || !is_include_path
@@ -146,7 +149,7 @@ module Dapp
146
149
 
147
150
  until path_parts.empty?
148
151
  checking_path = [checking_path, path_parts.shift].compact.join('/')
149
- return true if File.fnmatch(format, checking_path)
152
+ return true if File.fnmatch?(format, checking_path, File::FNM_PATHNAME)
150
153
  end
151
154
  false
152
155
  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.21.7'.freeze
3
- BUILD_CACHE_VERSION = 24
2
+ VERSION = '0.21.8'.freeze
3
+ BUILD_CACHE_VERSION = 24.1
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.21.7
4
+ version: 0.21.8
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