Sha256: f4dd956ed8078a1bcb6ea24aca1c433520795fa4cbdd73db8b6f03f061efc93a

Contents?: true

Size: 346 Bytes

Versions: 30

Compression:

Stored size: 346 Bytes

Contents

module PactBroker
  module Repositories
    module Helpers

      extend self

      def name_like column_name, value
        Sequel.like(column_name, value, case_sensitivity_options)
      end

      def case_sensitivity_options
        {case_insensitive: !PactBroker.configuration.use_case_sensitive_resource_names}
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
pact_broker-2.0.2 lib/pact_broker/repositories/helpers.rb
pact_broker-2.0.1 lib/pact_broker/repositories/helpers.rb
pact_broker-2.0.0 lib/pact_broker/repositories/helpers.rb
pact_broker-2.0.0.beta.8 lib/pact_broker/repositories/helpers.rb
pact_broker-2.0.0.beta.7 lib/pact_broker/repositories/helpers.rb
pact_broker-2.0.0.beta.6 lib/pact_broker/repositories/helpers.rb
pact_broker-1.18.0 lib/pact_broker/repositories/helpers.rb
pact_broker-2.0.0.beta.5 lib/pact_broker/repositories/helpers.rb
pact_broker-1.18.0.beta.1 lib/pact_broker/repositories/helpers.rb
pact_broker-1.17.2 lib/pact_broker/repositories/helpers.rb
pact_broker-1.17.1 lib/pact_broker/repositories/helpers.rb
pact_broker-2.0.0.beta.4 lib/pact_broker/repositories/helpers.rb
pact_broker-2.0.0.beta.3 lib/pact_broker/repositories/helpers.rb
pact_broker-2.0.0.beta.2 lib/pact_broker/repositories/helpers.rb
pact_broker-2.0.0.beta.1 lib/pact_broker/repositories/helpers.rb
pact_broker-1.17.0 lib/pact_broker/repositories/helpers.rb
pact_broker-1.16.0 lib/pact_broker/repositories/helpers.rb
pact_broker-1.15.0 lib/pact_broker/repositories/helpers.rb
pact_broker-1.14.0 lib/pact_broker/repositories/helpers.rb
pact_broker-1.13.0 lib/pact_broker/repositories/helpers.rb