Sha256: ead9a2c6af4f3e194790cc215512f4c7d427a1366627d4d6b91b8ff3b86e1528

Contents?: true

Size: 882 Bytes

Versions: 2

Compression:

Stored size: 882 Bytes

Contents

##
# NOTE: Appraisal sets `BUNDLE_GEMFILE` env variable.
# This is how appraisals can be differentiated from each other.
# https://github.com/thoughtbot/appraisal/blob/v2.4.1/lib/appraisal/command.rb#L36
#
# If `BUNDLE_GEMFILE` is an empty string, then `APPRAISAL_NAME` is resolved to an empty string as well.
# User passed `APPRAISAL_NAME` has a precedence.
#
# IMPORTANT: `APPRAISAL_NAME` env variable should be initialized as far as it is possible.
#
# IMPORTANT: ENV variables declared in this file should NOT be used inside the lib folder.
#
ENV["APPRAISAL_NAME"] ||= ENV["BUNDLE_GEMFILE"].to_s.then(&File.method(:basename)).then { |name| name.end_with?(".gemfile") ? name.delete_suffix(".gemfile") : "" }

##
# NOTE: Ruby version may be set by docker.
# https://github.com/docker-library/ruby/blob/master/3.1/alpine3.16/Dockerfile#L30
#
ENV["RUBY_VERSION"] ||= ::RUBY_VERSION

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
convenient_service-0.2.0 env.rb
convenient_service-0.1.0 env.rb