forked from mikel/mail
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shush parser warnings without using an unreliable autoload
We already explicitly require parsers from message elements, so drop the toplevel autoload and move warning suppression into the parsers themselves. Fixes mikel#1162
- Loading branch information
Showing
26 changed files
with
332 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
# frozen_string_literal: true | ||
# Ragel-generated parsers are full of known warnings. Suppress them. | ||
begin | ||
orig, $VERBOSE = $VERBOSE, nil | ||
|
||
require 'mail/parsers/address_lists_parser' | ||
require 'mail/parsers/content_disposition_parser' | ||
require 'mail/parsers/content_location_parser' | ||
require 'mail/parsers/content_transfer_encoding_parser' | ||
require 'mail/parsers/content_type_parser' | ||
require 'mail/parsers/date_time_parser' | ||
require 'mail/parsers/envelope_from_parser' | ||
require 'mail/parsers/message_ids_parser' | ||
require 'mail/parsers/mime_version_parser' | ||
require 'mail/parsers/phrase_lists_parser' | ||
require 'mail/parsers/received_parser' | ||
ensure | ||
$VERBOSE = orig | ||
end | ||
require 'mail/parsers/address_lists_parser' | ||
require 'mail/parsers/content_disposition_parser' | ||
require 'mail/parsers/content_location_parser' | ||
require 'mail/parsers/content_transfer_encoding_parser' | ||
require 'mail/parsers/content_type_parser' | ||
require 'mail/parsers/date_time_parser' | ||
require 'mail/parsers/envelope_from_parser' | ||
require 'mail/parsers/message_ids_parser' | ||
require 'mail/parsers/mime_version_parser' | ||
require 'mail/parsers/phrase_lists_parser' | ||
require 'mail/parsers/received_parser' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.