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.
- checksums.yaml +4 -4
- data/lib/gem-ext-cleaner.rb +3 -0
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf063b9b64c5df482e8cef4a54e83fd68f05211deb0679c0b0967856eaeb9e9b
|
4
|
+
data.tar.gz: 93d2681ccab37a66580156fdd981a5211c463b35be9e56342741eab52b9c6867
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 461d4b133a0cac6ad73b11ef9fb2eadf29a1368abe1c0036abdf4a5692f6cd1a73ff34962d16a3e0c25e9d44a998495f26aa274b67b1f0442d2d4f26a5036162
|
7
|
+
data.tar.gz: 6e1cc2d83bf942b0466a91c4e244a9c8d052bfc46f142895f3af3aab0d7588b4d66695e7af65a68203811b4212862b85ec65ccd24cbb90a06c719736c59308fc
|
data/lib/gem-ext-cleaner.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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: []
|