lib/rspeckled/plugins/configuration/dox.rb in rspeckled-2.0.1 vs lib/rspeckled/plugins/configuration/dox.rb in rspeckled-2.1.0

- old
+ new

@@ -20,18 +20,18 @@ .titleize http_settings_file = Pathname.pwd.join('config', 'settings', 'http.yml') host = if http_settings_file.exist? - http_settings = YAML.load(http_settings_file.read) # rubocop:disable Security/YAMLLoad + http_settings = YAML.unsafe_load(http_settings_file.read) - http_settings['production']['http']['base_url'] + http_settings['production']['http']['base_url'] else - 'http://api.lvh.me:5000' + 'http://api.lvh.me:5000' end unless api_docs_header.exist? - api_docs_header.write(<<~HEREDOC, :mode => 'w') + api_docs_header.write(<<~HEREDOC, mode: 'w') FORMAT: 1A HOST: #{host} # #{titleized_application_name}