gem-ext-cleaner 0.1.0 → 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 +3 -0
  3. metadata +6 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e1553d6f3ed36696dbb8625209f7ef21680904b89afeb347c2345ba6505ffba
4
- data.tar.gz: 94cf5aad01aa04121eb07ba07c850a1393f7a6e683ea18033e2b08292e9498ca
3
+ metadata.gz: bf063b9b64c5df482e8cef4a54e83fd68f05211deb0679c0b0967856eaeb9e9b
4
+ data.tar.gz: 93d2681ccab37a66580156fdd981a5211c463b35be9e56342741eab52b9c6867
5
5
  SHA512:
6
- metadata.gz: 3f94b7db519dc4184b7b1ab63b2357ccddc63360aa8b8f3d9cec9c5387610a7dd2222b3e836390d5fd9120e848e9be543e07afdae3ff037ac75d3938f1e46a92
7
- data.tar.gz: 69cc56cbb35db6951c385a88df34c90626f7d36c4d1cbcd39dffebd473ada92109d5baf12381720ab157a2ba10ce1e5b40844c16f75f901aacc73c17a9eb95e0
6
+ metadata.gz: 461d4b133a0cac6ad73b11ef9fb2eadf29a1368abe1c0036abdf4a5692f6cd1a73ff34962d16a3e0c25e9d44a998495f26aa274b67b1f0442d2d4f26a5036162
7
+ data.tar.gz: 6e1cc2d83bf942b0466a91c4e244a9c8d052bfc46f142895f3af3aab0d7588b4d66695e7af65a68203811b4212862b85ec65ccd24cbb90a06c719736c59308fc
@@ -5,6 +5,9 @@ module GemExtCleaner
5
5
  def self.clean(spec)
6
6
  (spec.full_require_paths - [spec.extension_dir]).each do |path|
7
7
  Dir.glob(File.join(path, "**/*")).each do |file|
8
+ # Prevent deleting files in versioned directories like google-protobuf, nokogiri
9
+ next if file.sub(/#{spec.full_gem_path}\//, "") =~ /(\d+\.\d+\/)/
10
+
8
11
  if Pathname(file).extname == ".#{RbConfig::CONFIG["DLEXT"]}"
9
12
  File.delete(file)
10
13
  puts "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.0
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: []