Class: GDK::Diagnostic::Environment
- Defined in:
- lib/gdk/diagnostic/environment.rb
Constant Summary collapse
- TITLE =
'Environment variables'
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#detail ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/gdk/diagnostic/environment.rb', line 12 def detail return if success? <<~MESSAGE RUBY_CONFIGURE_OPTS is configured in your environment: RUBY_CONFIGURE_OPTS=#{ENV.fetch('RUBY_CONFIGURE_OPTS')} This should not be necessary and could interfere with your ability to build Ruby. Check your dotfiles (such as ~/.zshrc) and remove any lines that set this variable. MESSAGE end |
#success? ⇒ Boolean
8 9 10 |
# File 'lib/gdk/diagnostic/environment.rb', line 8 def success? ENV['RUBY_CONFIGURE_OPTS'].to_s.empty? end |