gemstub.rb in extlz4-0.2.5 vs gemstub.rb in extlz4-0.3

- old
+ new

@@ -1,10 +1,9 @@ -unless File.read("README.md", 4096) =~ /^\s*\*\s*version:{1,2}\s*(.+)/i +unless ver = File.read("README.md").scan(/^\s*[\*\-]\s*version:{1,2}\s*(.+)/i).flatten[-1] raise "バージョン情報が README.md に見つかりません" end -ver = $1 verfile = "lib/extlz4/version.rb" LIB << verfile file verfile => "README.md" do |*args| File.binwrite args[0].name, <<-VERSION_FILE @@ -27,14 +26,15 @@ GEMSTUB = Gem::Specification.new do |s| s.name = "extlz4" s.version = ver s.summary = "ruby bindings for LZ4" s.description = <<EOS -ruby bindings for LZ4 <https://github.com/lz4/lz4>. +unofficial ruby bindings for LZ4 <https://github.com/lz4/lz4>. EOS s.homepage = "https://github.com/dearblue/ruby-extlz4" s.license = "BSD-2-Clause" s.author = "dearblue" s.email = "dearblue@users.noreply.github.com" - s.add_development_dependency "rake" + s.add_development_dependency "rake", "~> 1.12", ">= 1.12.3" + s.add_development_dependency "test-unit", "~> 3.2", ">= 3.2.7" end