--- a/ipaddress.gemspec
+++ b/ipaddress.gemspec
@@ -16,9 +16,7 @@
   spec.homepage      = "https://github.com/bluemonk/ipaddress"
   spec.license       = "MIT"
 
-  spec.files         = `git ls-files -z`.split("\x0")
-  spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
-  spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
+  spec.files         = Dir["lib/**/*.rb"]
   spec.require_paths = ["lib"]
 
   spec.add_development_dependency "bundler"
