gem-ext-cleaner 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/rubygems_plugin.rb +17 -0
- metadata +47 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9364779d991ee7d0d09318155f4d5e884fa4d8b4d8b57d0b526b58594df1ba83
|
4
|
+
data.tar.gz: 53a8c174742c29ab8b967a7b597d0a5ed76ddab4cbf0d614e5928085175322d2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2c3ac645ad79bdf8f208e6027f1b43e75f8219bf9572df4c4f376c13d197e42840fa509a79702968a109f90a4ab665bbc5fd549a4057332cb9c27b73ec096fad
|
7
|
+
data.tar.gz: e223b20da66c82126a0253553c1f070a5584cc69e1bad693ceb36f17977fc963f4eb3888198fa77fcf5db5dff6b339090b7098a27ad902f8f19e50e2154e6613
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# このプラグインは gem のインストール後に実行される
|
2
|
+
# このプラグインは `lib` の下にコピーされた foo.so や foo.bundle などのファイルを削除する
|
3
|
+
|
4
|
+
require "rbconfig"
|
5
|
+
require "pathname"
|
6
|
+
|
7
|
+
Gem.post_install do |installer|
|
8
|
+
(installer.spec.full_require_paths - [installer.spec.extension_dir]).each do |path|
|
9
|
+
Dir.glob(File.join(path, "**/*")).each do |file|
|
10
|
+
if Pathname(file).extname == ".#{RbConfig::CONFIG["DLEXT"]}"
|
11
|
+
File.delete(file)
|
12
|
+
puts "Delete #{file}"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
rescue Errno::EPERM
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gem-ext-cleaner
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Hiroshi SHIBATA
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-10-11 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Clean up unnecessary extension files for gem command.
|
14
|
+
email:
|
15
|
+
- hsbt@ruby-lang.org
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/rubygems_plugin.rb
|
21
|
+
homepage: https://github.com/hsbt/gem-ext-cleaner
|
22
|
+
licenses:
|
23
|
+
- Ruby
|
24
|
+
- BSD-2-Clause
|
25
|
+
metadata:
|
26
|
+
homepage_uri: https://github.com/hsbt/gem-ext-cleaner
|
27
|
+
source_code_uri: https://github.com/hsbt/gem-ext-cleaner
|
28
|
+
post_install_message:
|
29
|
+
rdoc_options: []
|
30
|
+
require_paths:
|
31
|
+
- lib
|
32
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 2.4.0
|
37
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
requirements: []
|
43
|
+
rubygems_version: 3.5.0.dev
|
44
|
+
signing_key:
|
45
|
+
specification_version: 4
|
46
|
+
summary: Clean up unnecessary extension files for gem command.
|
47
|
+
test_files: []
|