We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b6ffe6 commit 5e192a5Copy full SHA for 5e192a5
lib/config/integrations/heroku.rb
@@ -26,7 +26,7 @@ def vars
26
end
27
28
def environment
29
- heroku("run 'echo $RAILS_ENV'").chomp[/(\w+)\z/]
+ heroku("run 'echo $RAILS_ENV'").chomp[/(?>\w+)\z/]
30
31
32
def heroku(command)
lib/config/options.rb
@@ -150,7 +150,7 @@ def has_key?(key)
150
151
152
def method_missing(method_name, *args)
153
- if Config.fail_on_missing && method_name !~ /.*(?==\z)/m
+ if Config.fail_on_missing && !method_name.to_s.end_with?('=')
154
raise KeyError, "key not found: #{method_name.inspect}" unless key?(method_name)
155
156
super
0 commit comments