Sha256: 78e76dad698ff05a8546b004e825e42733eac06894609b1034084bf8c0ee52ff

Contents?: true

Size: 259 Bytes

Versions: 29

Compression:

Stored size: 259 Bytes

Contents

# frozen_string_literal: true

class GrapeVersion
  class << self
    def current_version
      Grape::VERSION
    end

    def satisfy?(requirement)
      Gem::Dependency.new('grape-test', requirement).match?('grape-test', current_version)
    end
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
grape-swagger-1.6.1 spec/support/grape_version.rb
grape-swagger-1.6.0 spec/support/grape_version.rb
gitlab-grape-swagger-1.5.0 spec/support/grape_version.rb
grape-swagger-1.5.0 spec/support/grape_version.rb
grape-swagger-1.4.2 spec/support/grape_version.rb
grape-swagger-1.4.1 spec/support/grape_version.rb
grape-swagger-1.4.0 spec/support/grape_version.rb
grape-swagger-1.3.1 spec/support/grape_version.rb
grape-swagger-1.3.0 spec/support/grape_version.rb
grape-swagger-1.2.1 spec/support/grape_version.rb
grape-swagger-1.2.0 spec/support/grape_version.rb
grape-swagger-1.1.0 spec/support/grape_version.rb
grape-swagger-1.0.0 spec/support/grape_version.rb
grape-swagger-0.34.2 spec/support/grape_version.rb
grape-swagger-0.34.1 spec/support/grape_version.rb
grape-swagger-0.34.0 spec/support/grape_version.rb
grape-swagger-0.33.0 spec/support/grape_version.rb
grape-swagger-0.32.1 spec/support/grape_version.rb
grape-swagger-0.32.0 spec/support/grape_version.rb
grape-swagger-0.31.1 spec/support/grape_version.rb