Yasuhiro Horimoto 2019-05-10 12:25:44 +0900 (Fri, 10 May 2019) Revision: ecff0cf48b85d06075c55c0460465d269c5f2408 https://github.com/ranguba/rroonga/commit/ecff0cf48b85d06075c55c0460465d269c5f2408 Message: Remove "LatestGroongaVersion" This is needless. Because "LatestGroongaVersion" isn't older than "RequireGroongaVersion. Modified files: ext/groonga/extconf.rb rroonga-build.rb Modified: ext/groonga/extconf.rb (+1 -7) =================================================================== --- ext/groonga/extconf.rb 2019-05-10 12:00:54 +0900 (8e254fbd) +++ ext/groonga/extconf.rb 2019-05-10 12:25:44 +0900 (c428104c) @@ -275,13 +275,7 @@ end def install_local_groonga(package_name, major, minor, micro) unless have_local_groonga?(package_name, major, minor, micro) - required_version = [major, minor, micro] - if (required_version <=> LatestGroongaVersion::VERSION) < 0 - target_version = LatestGroongaVersion::VERSION - else - target_version = required_version - end - install_groonga_locally(*target_version) + install_groonga_locally(major, minor, micro) end unless PKGConfig.have_package(package_name, major, minor, micro) exit(false) Modified: rroonga-build.rb (+0 -7) =================================================================== --- rroonga-build.rb 2019-05-10 12:00:54 +0900 (77dd262e) +++ rroonga-build.rb 2019-05-10 12:25:44 +0900 (65b06373) @@ -23,13 +23,6 @@ module RroongaBuild RELEASED_DATE = Time.utc(2019, 4, 29) end - module LatestGroongaVersion - MAJOR = 9 - MINOR = 0 - MICRO = 2 - VERSION = [MAJOR, MINOR, MICRO] - end - module_function def local_groonga_base_dir File.join(File.dirname(__FILE__), "vendor") -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190510/ede8699b/attachment-0001.html>