discourse/script/import_scripts
Michael Brown 3bf3b9a4a5 DEV: pull email address validation out to a new EmailAddressValidator
We validate the *format* of email addresses in many places with a match against
a regex, often with very slightly different syntax.

Adding a separate EmailAddressValidator simplifies the code in a few spots and
feels cleaner.

Deprecated the old location in case someone is using it in a plugin.

No functionality change is in this commit.

Note: the regex used at the moment does not support using address literals, e.g.:
* localpart@[192.168.0.1]
* localpart@[2001:db8::1]
2022-02-17 21:49:22 -05:00
..
base DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
mbox DEV: Fix rubocop issues (#14715) 2021-10-27 11:39:28 +03:00
nodebb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
phpbb3 DEV: Improve phpBB3 import script (#15956) 2022-02-16 13:04:31 +01:00
quandora DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
settings FEATURE: Import script for jForum 2020-06-21 12:12:42 +02:00
socialcast DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
support DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
answerbase.rb Make import scripts work with frozen strings 2019-05-30 22:22:24 +02:00
answerhub.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
askbot.rb DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
base.rb DEV: pull email address validation out to a new EmailAddressValidator 2022-02-17 21:49:22 -05:00
bbpress.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
bespoke_1.rb Make import scripts work with frozen strings 2019-05-30 22:22:24 +02:00
csv_restore_staged_users.rb DEV: Add a CSV importer for restoring deleted users (#12147) 2021-02-19 13:46:54 -07:00
discuz_x.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
disqus.rb DEV: Apply Rubocop redundant return style 2019-11-14 15:10:51 -05:00
drupal-6.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
drupal.rb DEV: pull email address validation out to a new EmailAddressValidator 2022-02-17 21:49:22 -05:00
drupal_json.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
drupal_qa.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
flarum_import.rb DEV: fix Flarum import script (#13385) 2021-06-15 19:08:55 +05:30
fluxbb.rb Fix syntax error in fluxbb.rb (#9727) 2020-05-11 11:07:57 -04:00
friendsmegplus.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
getsatisfaction.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
google_groups.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
higher_logic.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
ipboard.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
ipboard3.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
jforum.rb DEV: Fix rubocop issues (#14715) 2021-10-27 11:39:28 +03:00
jive.rb FEATURE: Nokogumbo (#9577) 2020-05-05 13:46:57 +10:00
jive_api.rb FEATURE: Nokogumbo (#9577) 2020-05-05 13:46:57 +10:00
json_generic.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
kunena.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
kunena3.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
lithium.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
mbox.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
modx.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
muut.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
mybb.rb FIX: MyBB importer exposes deleted posts (#13700) 2021-07-22 09:55:02 +02:00
mybbru.rb FEATURE: add mybb.ru import script (#8609) 2019-12-20 11:10:18 -05:00
mylittleforum.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
nabble.rb Make import scripts work with frozen strings 2019-05-30 22:22:24 +02:00
ning.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
phorum.rb DEV: Apply rubocop to script/import_scripts/phorum.rb (#14727) 2021-10-26 19:16:52 +01:00
phpbb3.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
punbb.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
question2answer.rb DEV: Improve q2a import script (#10346) 2020-07-31 12:04:03 -05:00
sfn.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
simplepress.rb fix invalid byte sequence in UTF-8 (ArgumentError) (#9077) 2020-02-28 10:26:18 -05:00
smf1.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
smf2.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
sourceforge.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
stack_overflow.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
telligent.rb FEATURE: Add last visit indication to topic view page. (#13471) 2021-07-05 14:17:31 +08:00
vanilla.rb FIX: Vanilla importer fixes (#14699) 2021-10-27 14:22:37 +02:00
vanilla_body_parser.rb Improve Vanilla import script. (#11701) 2021-01-13 23:10:00 +05:30
vanilla_mysql.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
vbulletin.rb DEV: pull email address validation out to a new EmailAddressValidator 2022-02-17 21:49:22 -05:00
vbulletin5.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
xenforo.rb Improve XenForo import script. 2019-06-18 15:52:34 +05:30
yahoogroup.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
zendesk.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
zendesk_api.rb DEV: Fix rubocop issues (#14715) 2021-10-27 11:39:28 +03:00
zoho.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00