Sha256: 8660b77c2d4bd07888cb955b5ae8872160e90b643467f5e0cb12d40caf7abe0a

Contents?: true

Size: 283 Bytes

Versions: 17

Compression:

Stored size: 283 Bytes

Contents

require 'structured_changelog/release_filters/base'

class StructuredChangelog
  module ReleaseFilters
    class MatchesCurrentVersion < Base
      def self.pattern
        /^current$/
      end

      def filter_releases(releases)
        [releases.max]
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
structured_changelog-0.11.2 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.11.1 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.11.0 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.10.2 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.10.1 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.10.0 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.8.3 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.8.2 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.8.1 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.8.0 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.7.2 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.7.1 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.7.0 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.6.2 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.6.1 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.6.0 lib/structured_changelog/release_filters/matches_current_version.rb
structured_changelog-0.5.0 lib/structured_changelog/release_filters/matches_current_version.rb