Sha256: af095b2b9066723185bf8595167c852ba244077955c5f9752d88156855c432dd

Contents?: true

Size: 326 Bytes

Versions: 13

Compression:

Stored size: 326 Bytes

Contents

require 'singleton'

class SpecConfig
  include Singleton

  COMPACTION_CHANCE = 0.001

  def active_support?
    %w(1 true yes).include?(ENV['WITH_ACTIVE_SUPPORT']) ||
      ENV['WITH_ACTIVE_SUPPORT'] =~ /[0-9]/ && ENV['WITH_ACTIVE_SUPPORT'] != '0'
  end

  def compact?
    %w(1 true yes).include?(ENV['COMPACT'])
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
bson-4.15.0-java spec/support/spec_config.rb
bson-4.15.0 spec/support/spec_config.rb
bson-4.14.1-java spec/support/spec_config.rb
bson-4.14.1 spec/support/spec_config.rb
bson-4.14.0-java spec/support/spec_config.rb
bson-4.14.0 spec/support/spec_config.rb
bson-4.13.0-java spec/support/spec_config.rb
bson-4.13.0 spec/support/spec_config.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/bson-4.12.0/spec/support/spec_config.rb
bson-4.12.1-java spec/support/spec_config.rb
bson-4.12.1 spec/support/spec_config.rb
bson-4.12.0-java spec/support/spec_config.rb
bson-4.12.0 spec/support/spec_config.rb