Commit Graph

15 Commits

Author SHA1 Message Date
Peter Zhu c5fd8c42db
DEV: Fix methods removed in Ruby 3.2 (#15459)
* File.exists? is deprecated and removed in Ruby 3.2 in favor of
File.exist?
* Dir.exists? is deprecated and removed in Ruby 3.2 in favor of
Dir.exist?
2022-01-05 18:45:08 +01:00
Sam Saffron 0c52537f10 DEV: update rubocop to version 0.77
We like to stay as close as possible to latest with rubocop cause the cops
get better.

This update required some code changes, specifically the default is to avoid
explicit returns where implicit is done

Also this renames a few rules
2019-12-10 11:48:39 +11:00
Sam Saffron 30990006a9 DEV: enable frozen string literal on all files
This reduces chances of errors where consumers of strings mutate inputs
and reduces memory usage of the app.

Test suite passes now, but there may be some stuff left, so we will run
a few sites on a branch prior to merging
2019-05-13 09:31:32 +08:00
Guo Xiang Tan 5012d46cbd Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
Arpit Jalan 87e84756f0 improve Ning import script 2016-09-05 15:27:03 +05:30
Thorben Egberts cf8b3fbd56 FEATURE: add user custom fields to user card
The user's custom fields are now displayed on the user card. This has to be enabled for each custom field in the custom field settings. See https://meta.discourse.org/t/custom-user-fields-on-usercard/22662/
2016-04-08 14:35:41 +02:00
Neil Lalonde 0124187e3a FIX: Ning json files sometimes have an extra ] at the end 2015-03-23 15:14:50 -04:00
Neil Lalonde 1e339ad527 FIX: handle missing post body in json in Ning importer 2015-03-12 18:46:22 -04:00
Gerhard Schlager b5426763e4 FIX: Importers should allow categories with existing name if the parent category is different
This changes the content of `@categories_lookup` from `Category` objects
to IDs since the category names aren't needed anymore. The lookup
method has been renamed too.
2015-03-12 21:15:02 +01:00
Neil Lalonde 07af79c85b Ning import: users who have never posted are trust level 0 2015-02-06 16:03:41 -05:00
Neil Lalonde ef482591bf FIX: Ning json can have square brackets instead of commas 2015-02-06 13:47:11 -05:00
Neil Lalonde a064bad9a3 fix Ning import script when resuming an import 2015-02-02 16:01:48 -05:00
Gerhard Schlager 827daf7f0f FIX: The order of includes in the base importer was wrong.
https://meta.discourse.org/t/importer-for-simple-machines-2-forums/17656/58
2015-01-31 15:42:39 +01:00
Neil Lalonde c3c202f59e import approval state of users in Ning import script 2015-01-27 15:22:38 -05:00
Neil Lalonde a2099110aa FEATURE: Ning importer 2015-01-23 12:19:46 -05:00