Sha256: 4d0a49748bca3a29e858df90178ae717b1960391cbaa3b949e454034fa3a01cf
Contents?: true
Size: 534 Bytes
Versions: 11
Compression:
Stored size: 534 Bytes
Contents
require 'structured_changelog/release_filters/base' require 'structured_changelog/version_pattern' class StructuredChangelog module ReleaseFilters class MatchesVersionsGreaterThanOrEqualTo < Base def self.pattern /^#{VersionPattern}\ \<$/ end def filter_releases(releases) releases.select do |release| Gem::Version.new(version) <= release.version end end private def version query.match(self.class.pattern)[:version] end end end end
Version data entries
11 entries across 11 versions & 1 rubygems