Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/config/integrations/heroku.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def vars
end

def environment
heroku("run 'echo $RAILS_ENV'").chomp[/(\w+)\z/]
heroku("run 'echo $RAILS_ENV'").chomp[/(?>\w+)\z/]
end

def heroku(command)
Expand Down
2 changes: 1 addition & 1 deletion lib/config/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def has_key?(key)
end

def method_missing(method_name, *args)
if Config.fail_on_missing && method_name !~ /.*(?==\z)/m
if Config.fail_on_missing && !method_name.to_s.end_with?('=')
raise KeyError, "key not found: #{method_name.inspect}" unless key?(method_name)
end
super
Expand Down