resolv.gemspec in resolv-0.2.2 vs resolv.gemspec in resolv-0.3.0
- old
+ new
@@ -1,7 +1,14 @@
+name = File.basename(__FILE__, ".gemspec")
+version = ["lib", Array.new(name.count("-")+1).join("/")].find do |dir|
+ break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
+ /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
+ end rescue nil
+end
+
Gem::Specification.new do |spec|
- spec.name = "resolv"
- spec.version = "0.2.2"
+ spec.name = name
+ spec.version = version
spec.authors = ["Tanaka Akira"]
spec.email = ["akr@fsij.org"]
spec.summary = %q{Thread-aware DNS resolver library in Ruby.}
spec.description = %q{Thread-aware DNS resolver library in Ruby.}