gem-ext-cleaner 0.1.0 → 0.1.1

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 +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e1553d6f3ed36696dbb8625209f7ef21680904b89afeb347c2345ba6505ffba
4
- data.tar.gz: 94cf5aad01aa04121eb07ba07c850a1393f7a6e683ea18033e2b08292e9498ca
3
+ metadata.gz: 73c77011b33a102341408753f7320f664811a8f757cecb461545cc525e9eacfc
4
+ data.tar.gz: 894d7f4f5b2bbd325de370ca8862ba80bf2d31fa56e356022d3cf239e7a0a3ab
5
5
  SHA512:
6
- metadata.gz: 3f94b7db519dc4184b7b1ab63b2357ccddc63360aa8b8f3d9cec9c5387610a7dd2222b3e836390d5fd9120e848e9be543e07afdae3ff037ac75d3938f1e46a92
7
- data.tar.gz: 69cc56cbb35db6951c385a88df34c90626f7d36c4d1cbcd39dffebd473ada92109d5baf12381720ab157a2ba10ce1e5b40844c16f75f901aacc73c17a9eb95e0
6
+ metadata.gz: a4fc14d2abd9276c650ac6248f09546c4974aa209fe0d481ef45a0f14c2288d436a95441fb618d4bd1d4b8b11f76b3b3c34402e0a2c31ef6e11c6480d7461c38
7
+ data.tar.gz: 516d9c5d70390ea730c1c43b7c30bdff95a54a827637ad2927d2d5f5240ffb135256b598148f9d44c7176a46a4124f0ae78c11d484cad434fdee40ea6be3760d
@@ -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 =~ /(\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,7 +1,7 @@
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi SHIBATA