forked from ruby/net-imap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Refactor stringprep table generation
Tables are now generated into one table per file. By using autoload, this avoids needing to load *all* of the tables to access only one. Also, PROHIBIT regexps combining all of the prohibited tables have been compiled for the "SASLprep", "nameprep", and "trace" profiles (previously, only "SASLprep" had its own combined PROHIBIT regexp).
- Loading branch information
Showing
49 changed files
with
1,101 additions
and
603 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
|
||
module Net::IMAP::StringPrep | ||
|
||
module SASLprep | ||
|
||
# :nodoc: | ||
PROHIBITED_OUTPUT = Tables::SASLPREP_PROHIBIT | ||
|
||
# :nodoc: | ||
PROHIBITED_OUTPUT_STORED = Tables::SASLPREP_PROHIBIT_STORED | ||
|
||
# :nodoc: | ||
PROHIBITED = Regexp.union(PROHIBITED_OUTPUT, Tables::BIDI_FAILURE) | ||
|
||
# :nodoc: | ||
PROHIBITED_STORED = Regexp.union( | ||
PROHIBITED_OUTPUT_STORED, Tables::BIDI_FAILURE, | ||
) | ||
|
||
end | ||
end |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
#-- | ||
# This file is generated by `rake stringprep:tables`. Don't edit directly. | ||
#++ | ||
|
||
module Net::IMAP::StringPrep | ||
module Tables | ||
|
||
BIDI_DESC_REQ2 = "A string with RandALCat characters must not contain LCat characters." | ||
|
||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
#-- | ||
# This file is generated by `rake stringprep:tables`. Don't edit directly. | ||
#++ | ||
|
||
module Net::IMAP::StringPrep | ||
module Tables | ||
|
||
BIDI_DESC_REQ3 = "A string with RandALCat characters must start and end with RandALCat characters." | ||
|
||
end | ||
end |
Oops, something went wrong.