Sha256: 577ddd408c25109b35a5bc647c608bbbfc2cc9e4e7e1d5cea6580abb453399fc

Contents?: true

Size: 210 Bytes

Versions: 39

Compression:

Stored size: 210 Bytes

Contents

def with_enabled_no_contracts
  no_contracts = ENV["NO_CONTRACTS"]
  ENV["NO_CONTRACTS"] = "true"
  yield
  ENV["NO_CONTRACTS"] = no_contracts
end

def ruby_version
  RUBY_VERSION.match(/\d+\.\d+/)[0].to_f
end

Version data entries

39 entries across 30 versions & 7 rubygems

Version Path
contracts-0.17.2 spec/support.rb
contracts-0.17.1 spec/support.rb
entitlements-app-1.1.0 lib/contracts-ruby3/spec/support.rb
entitlements-app-1.1.0 lib/contracts-ruby2/spec/support.rb
entitlements-app-1.0.0 lib/contracts-ruby2/spec/support.rb
entitlements-app-1.0.0 lib/contracts-ruby3/spec/support.rb
entitlements-app-0.3.4 lib/contracts-ruby3/spec/support.rb
entitlements-app-0.3.4 lib/contracts-ruby2/spec/support.rb
entitlements-app-0.3.1 lib/contracts-ruby3/spec/support.rb
entitlements-app-0.3.1 lib/contracts-ruby2/spec/support.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/contracts-0.17/spec/support.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/contracts-0.17/spec/support.rb
entitlements-app-0.3.0 lib/contracts-ruby3/spec/support.rb
entitlements-app-0.3.0 lib/contracts-ruby2/spec/support.rb
entitlements-0.2.1 lib/contracts-ruby3/spec/support.rb
entitlements-0.2.1 lib/contracts-ruby2/spec/support.rb
entitlements-app-0.2.1 lib/contracts-ruby2/spec/support.rb
entitlements-app-0.2.1 lib/contracts-ruby3/spec/support.rb
entitlements-0.2.0 lib/contracts-ruby2/spec/support.rb
entitlements-0.2.0 lib/contracts-ruby3/spec/support.rb