Sha256: 149eda5c053fdf54e9ebcc5d4946413049dc664cb574b51bb075e23806425343

Contents?: true

Size: 247 Bytes

Versions: 2

Compression:

Stored size: 247 Bytes

Contents

module Raisin
  class VersionConstraint
    def initialize(version)
      @version  = version
      @bypass   = version == Router::ALL_VERSIONS
    end

    def matches?(req)
      @bypass || @version == req.env['raisin.version']
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
raisin-0.0.5 lib/raisin/version_constraint.rb
raisin-0.0.4 lib/raisin/version_constraint.rb