gem-ext-cleaner 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gem-ext-cleaner.rb +1 -1
  3. metadata +6 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73c77011b33a102341408753f7320f664811a8f757cecb461545cc525e9eacfc
4
- data.tar.gz: 894d7f4f5b2bbd325de370ca8862ba80bf2d31fa56e356022d3cf239e7a0a3ab
3
+ metadata.gz: bf063b9b64c5df482e8cef4a54e83fd68f05211deb0679c0b0967856eaeb9e9b
4
+ data.tar.gz: 93d2681ccab37a66580156fdd981a5211c463b35be9e56342741eab52b9c6867
5
5
  SHA512:
6
- metadata.gz: a4fc14d2abd9276c650ac6248f09546c4974aa209fe0d481ef45a0f14c2288d436a95441fb618d4bd1d4b8b11f76b3b3c34402e0a2c31ef6e11c6480d7461c38
7
- data.tar.gz: 516d9c5d70390ea730c1c43b7c30bdff95a54a827637ad2927d2d5f5240ffb135256b598148f9d44c7176a46a4124f0ae78c11d484cad434fdee40ea6be3760d
6
+ metadata.gz: 461d4b133a0cac6ad73b11ef9fb2eadf29a1368abe1c0036abdf4a5692f6cd1a73ff34962d16a3e0c25e9d44a998495f26aa274b67b1f0442d2d4f26a5036162
7
+ data.tar.gz: 6e1cc2d83bf942b0466a91c4e244a9c8d052bfc46f142895f3af3aab0d7588b4d66695e7af65a68203811b4212862b85ec65ccd24cbb90a06c719736c59308fc
@@ -6,7 +6,7 @@ module GemExtCleaner
6
6
  (spec.full_require_paths - [spec.extension_dir]).each do |path|
7
7
  Dir.glob(File.join(path, "**/*")).each do |file|
8
8
  # Prevent deleting files in versioned directories like google-protobuf, nokogiri
9
- next if file =~ /(\d+\.\d+\/)/
9
+ next if file.sub(/#{spec.full_gem_path}\//, "") =~ /(\d+\.\d+\/)/
10
10
 
11
11
  if Pathname(file).extname == ".#{RbConfig::CONFIG["DLEXT"]}"
12
12
  File.delete(file)
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-ext-cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi SHIBATA
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 2024-05-28 00:00:00.000000000 Z
11
+ date: 2024-05-29 00:00:00.000000000 Z
11
12
  dependencies: []
12
13
  description: Clean up unnecessary extension files for gem command.
13
14
  email:
@@ -27,6 +28,7 @@ licenses:
27
28
  metadata:
28
29
  homepage_uri: https://github.com/hsbt/gem-ext-cleaner
29
30
  source_code_uri: https://github.com/hsbt/gem-ext-cleaner
31
+ post_install_message:
30
32
  rdoc_options: []
31
33
  require_paths:
32
34
  - lib
@@ -41,7 +43,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
43
  - !ruby/object:Gem::Version
42
44
  version: '0'
43
45
  requirements: []
44
- rubygems_version: 3.6.0.dev
46
+ rubygems_version: 3.3.27
47
+ signing_key:
45
48
  specification_version: 4
46
49
  summary: Clean up unnecessary extension files for gem command.
47
50
  test_files: []