Commit Graph

405 Commits

Author SHA1 Message Date
evazion
a6fac80e66 gems: drop ruby-imagespec gem.
* Use libvips instead of ruby-imagespec for reading dimensions of jpeg, png, and gif files.
* Copy the code for reading the dimensions of flash files from ruby-imagespec.

Fixes an incompatibility between ruby-imagespec and the rubocop gem that
prevented us from including rubocop in the Gemfile.
2020-05-06 01:21:35 -05:00
evazion
127bd9866d Update ruby gems and yarn packages. 2020-05-04 02:34:42 -05:00
evazion
1ccefa613f Update ruby gems and yarn packages. 2020-04-27 19:12:16 -05:00
evazion
8c3d979a8d Update ruby gems and yarn packages. 2020-04-21 00:31:16 -05:00
evazion
432668ddef Update ruby gems and yarn packages. 2020-04-15 01:18:41 -05:00
evazion
8001272170 gems: remove pry-inline and awesome_print gems.
The current release of pry-inline is broken. Neither of these gems were
that useful anyway.
2020-04-07 14:07:45 -05:00
evazion
98e84d83fb Update ruby gems and yarn packages. 2020-04-06 14:13:22 -05:00
evazion
e957fccd7f Update ruby gems and yarn packages. 2020-03-31 21:57:34 -05:00
evazion
353c2e4bae Update ruby gems and yarn packages. 2020-03-29 15:58:04 -05:00
evazion
e79910431f emails: validate that email addresses are deliverable.
Reject email addresses that known to be undeliverable during signup.
Some users signup with invalid email addresses, which causes the welcome
email (which contains the email confirmation link) to bounce. Too many
bounces hurt our ability to send mail.

We check that an email address is undeliverable by checking if the
domain has a mail server and if the server returns an invalid address
error when attempting to send mail. This isn't foolproof since some
servers don't return an error if the address doesn't exist. If the
checks fail we know the address is bad, but if the checks pass that
doesn't guarantee the address is good. However, this is still good
enough to filter out bad addresses for popular providers like Gmail and
Microsoft that do return nonexistent address errors.

The address existence check requires being able to connect to mail
servers over port 25. This may fail if your network blocks port 25,
which many home ISPs and hosting providers do by default.
2020-03-23 23:45:18 -05:00
evazion
27f10d53d6 Update ruby gems and yarn packages. 2020-03-23 01:48:59 -05:00
evazion
1d16034144 pundit: add initial application policy. 2020-03-20 18:03:00 -05:00
evazion
ef43b276b3 Update ruby gems and yarn packages. 2020-03-18 03:31:45 -05:00
evazion
4b30e644bb Update ruby gems and yarn packages. 2020-03-14 21:17:58 -05:00
evazion
f57f2bde08 Update ruby gems. 2020-03-08 23:18:15 -05:00
evazion
0890963187 Update ruby gems. 2020-03-03 03:25:51 -06:00
evazion
319510f2e9 Update ruby gems. 2020-02-23 17:52:38 -06:00
evazion
a8e5412d9c implications: refactor calculation of implied tags.
Refactor to use a recursive CTE to calculate implied tags in SQL, rather
than storing them in a descendant_names field. This avoids the
complexity of keeping the stored field up to date. It's also more
flexible, since it allows us to find both descendant tags (tags that
imply a given tag) as well as ancestor tags (tags that are implied by a
given tag).
2020-02-22 22:37:36 -06:00
evazion
1385e60f8c Update ruby gems and yarn packages. 2020-02-16 13:08:23 -06:00
evazion
dd425830ca Update gems.
Fixes a showstopper bug in rack-2.2.0 that prevents puma from booting.
2020-02-10 18:45:34 -06:00
evazion
4ed716e90d Update ruby gems and yarn packages. 2020-02-10 17:11:38 -06:00
evazion
6ad5a6d50c Update dtext gem. 2020-02-03 22:05:58 -06:00
evazion
3c2a379d6f uploads: replace old upload limits with new upload limits. 2020-02-03 22:05:58 -06:00
evazion
092350caf2 Update ruby gems. 2020-01-27 00:47:36 -06:00
evazion
c1f2cd8d9d Update ruby gems. 2020-01-21 01:06:45 -06:00
evazion
796efccbf4 Update ruby gems and yarn packages. 2020-01-12 13:13:03 -06:00
evazion
1d26fdab79 Update gems and yarn packages. 2020-01-06 01:22:41 -06:00
evazion
ab3f6dd800 Update gems. 2020-01-02 01:29:55 -06:00
evazion
159a4cc3d4 Update gems. 2019-12-27 16:18:30 -06:00
evazion
a58dd83ad7 Update ruby gems and yarn packages. 2019-12-22 17:33:52 -06:00
dependabot[bot]
131fe45803 build(deps): bump rack from 2.0.7 to 2.0.8
Bumps [rack](https://github.com/rack/rack) from 2.0.7 to 2.0.8.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/2.0.7...2.0.8)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-18 22:39:08 +00:00
evazion
c96565dac2 Update gems and yarn packages. 2019-12-15 17:53:05 -06:00
evazion
c9e682f39f Upgrade to Rails 6.0.2. 2019-12-13 18:19:52 -06:00
evazion
da84e3a2f2 twitter: replace twitter gem with our own API client.
The twitter gem had several problems:

* It's been unmaintained for over a year.
* It pulled in a lot of dependencies, many of which were outdated. In
  particular, it locked the `http` gem to version 3.3, preventing us
  from upgrading to 4.2.
* It raised exceptions on normal error conditions, like for deleted
  tweets or suspended users, which we really don't want.
* We had to wrap it to provide caching.

Changes:

* Fixes #4226 (Exception when creating new artists entries for suspended
  Twitter accounts)
* Drop support for scraping images from summary cards. Summary cards
  are the previews you get when you link to a website in a tweet. These
  preview images aren't always the best image.
2019-12-13 17:27:03 -06:00
evazion
33e3754c2d Update gems. 2019-12-13 02:14:20 -06:00
evazion
316690f393 storage manager: remove S3 backend.
Remove in favor of the rclone S3 backend.
2019-12-13 02:14:14 -06:00
evazion
92aca9ed2d storage manager: remove fog backend.
Remove in favor of rclone.
2019-12-13 01:45:43 -06:00
evazion
e4f4326982 storage manager: add backblaze b2 backend. 2019-12-10 02:04:32 -06:00
evazion
5cdccf4b93 Update gems. 2019-12-06 01:33:52 -06:00
evazion
f8e109f6dc Update gems and yarn packages.
Remove *.scss.erb loader because it's now supported natively by
webpacker.
2019-11-26 01:58:57 -06:00
evazion
cc98f3b7cc Update gems. 2019-11-12 19:05:32 -06:00
evazion
bf6bb94702 Add new IP address search page.
Add a new IP address search page at /ip_addresses. Replaces the old
search page at /moderator/ip_addrs.

On user profile pages, show the user's last known IP to mods. Also add
search links for finding other IPs or accounts associated with the user.

IP address search uses a big UNION ALL statement to merge IP addresses
across various tables into a single view. This makes searching easier,
but is known to timeout in certain cases.

Fixes #4207 (the new IP search page supports searching by subnet).
2019-11-11 21:03:07 -06:00
evazion
69f005a89c gems: remove cityhash gem.
This gem uses a native extension that requires a C++ compiler to build.
Removing this gem removes the need to have a C++ toolchain to install Danbooru.
2019-11-09 14:42:30 -06:00
evazion
76674597f1 Upgrade to Rails 6.0.1. 2019-11-06 21:57:32 -06:00
evazion
953de62d70 Update dtext gem. 2019-10-31 22:23:50 -05:00
evazion
bf841dcd44 gems: update gems. 2019-10-30 23:34:52 -05:00
evazion
2821559221 gems: drop term-ansicolor gem. 2019-10-30 23:32:28 -05:00
evazion
e3dea024ae dtext: bump version (fix case sensitivity in [expand] tags). 2019-10-28 19:59:15 -05:00
evazion
f54885b72e css: update dtext external link icon selector.
DText was changed so that the .dtext-external-link class is now applied to all external links.
Previously it applied only to named links (ex: "google":[http://www.google.com]), not bare
links (ex: http://www.google.com).
2019-10-23 21:33:15 -05:00
evazion
8541974d19 Update gems. 2019-10-22 12:11:31 -05:00