Commit Graph

358 Commits

Author SHA1 Message Date
Kira
3b957795b8 Update gems 2020-04-08 09:40:01 -07:00
Kira
9e3bcd8add Update gems 2020-03-19 23:31:19 -07:00
Kira
fa1e505d4c Update dtext parser for anchors 2020-03-07 08:42:19 -08:00
Kira
377425b6f5 Update gems 2020-02-26 02:02:37 -08:00
Kira
52bf44cc8f Revert "Fetch post counts instead of relying on the estimate"
This reverts commit e50094f588.
2020-01-23 08:56:59 -08:00
Kira
e50094f588 Fetch post counts instead of relying on the estimate 2020-01-23 08:53:56 -08:00
Kira
da00094cf3 Update gemfile 2020-01-02 10:24:33 -08:00
Kira
803e38f5cb Update gems
And remove code that uses session.id
2019-12-28 04:33:09 -08:00
Kira
f85c7e0932 Bump dtext_rb again 2019-11-27 18:22:51 -08:00
Kira
f41abb3a51 Bump dtext version 2019-11-27 18:19:59 -08:00
Kira
a0693e883f Bump dtext version 2019-11-27 17:46:30 -08:00
Kira
eb0541e680 Update gems 2019-11-24 05:23:09 -08:00
Kira
36822ef773 Bump dtext_rb again 2019-11-04 15:59:15 -08:00
Kira
263e3af620 Fix code dtext elements 2019-11-04 15:21:25 -08:00
Kira
4ec91b68ca Bump dtext_rb for nested inline fix 2019-10-31 11:52:21 -07:00
Kira
177abcda61 Bump dtext version 2019-10-25 05:53:32 -07:00
Kira
8e80df77ff Update gems
This also removes the sprockets based asset pipeline because it
isn't being used, and it was causing startup exceptions.
2019-10-22 21:26:35 -07:00
Kira
ba570fc01e Bump dtext gem version 2019-10-22 20:34:36 -07:00
Kira
d15d783d1d Update gems 2019-10-06 04:40:54 -07:00
Kira
93859e6c45 Bump dtext version 2019-10-06 04:33:14 -07:00
Kira
6b9e5c292b Add expanded section support 2019-09-22 13:50:50 -07:00
Kira
3d7f1532f2 Send mail using mailgun 2019-09-13 12:46:44 -07:00
Kira
532e2c1e04 Update to rails 6 2019-08-28 21:50:40 -07:00
dependabot[bot]
bf24527b94
Bump nokogiri from 1.10.3 to 1.10.4
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.10.3 to 1.10.4.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.10.3...v1.10.4)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-21 05:27:19 +00:00
Kira
a1dc709594 Update all the gems. Game over YEAH! 2019-08-10 05:02:15 -07:00
Kira
e60cc2a46f Remove unused gems 2019-08-10 04:56:05 -07:00
Kira
1fdc3926df Update webpacker and fix a bunch of broken things with it 2019-08-03 20:25:22 -07:00
Kira
749fc84a39 Update lockfile with new dtext parser version 2019-05-07 14:26:21 -07:00
Kira
8f4c2e85e7 Use updated dtext and deferred posts 2019-05-01 13:17:08 -07:00
Kira
f72b9fd1e1 Add RequestStore gem 2019-04-30 04:46:40 -07:00
Kira
11f64ce743 Add Draper for decorators 2019-04-14 02:30:01 -07:00
Kira
e62099af44 A whole boatload of elasticsearch changes
Makes index job unique to account for changes to update triggering.
Fixes instances of mixed SQL and ES searches with tag_matches.
Adds utility methods for exists? and count_only ES searches.
Adds comment_bumped_at for comments page usage.
Adds random seeding capability.
Fixes random searches not working correctly.
Fixes status:active.
2019-03-28 14:04:01 -07:00
byte
d1aa2e69f5 add post index 2019-03-24 08:45:44 -04:00
Kira
22a077a2dd Convert delayed_jobs to activejob
Add sidekiq and create jobs for the majority of delayed actions.

Temporary hookup of sidekiq UI in routes for testing purposes.
2019-02-17 19:28:40 -08:00
Kira
dbf46d3522 Initial setup script changes as required by danbooru. 2019-01-31 12:27:40 -08:00
Albert Yi
26aff41738 update gems + yarn 2019-01-30 14:04:33 -08:00
Albert Yi
77b42310eb update gems 2018-12-12 11:20:22 -08:00
Albert Yi
0508b127fd continue refactoring savedsearch 2018-11-15 12:06:13 -08:00
Albert Yi
df02eb7951 eliminate listbooru references 2018-11-12 18:02:49 -08:00
Albert Yi
683b45c031 update dtext gem 2018-10-22 13:48:50 -07:00
Albert Yi
e87a135928 update dtext gem 2018-10-22 12:02:09 -07:00
evazion
d3c135ec72 Downloads::File#http_get_streaming: clean up retry logic.
Replace handrolled retry logic with retriable gem (already pulled in by another gem).
2018-09-18 09:44:15 -05:00
Albert Yi
881c76c788 update readme, remove sprockets gem 2018-08-01 15:34:15 -07:00
Albert Yi
6fa0ae2cf1 Migrate assets to use Webpacker 2018-07-27 15:24:05 -07:00
r888888888
344c46ed00 add mock recommender service for development, add user-context recommended posts 2018-07-21 14:02:57 -07:00
Albert Yi
f1ca252b3c wip 2018-05-11 10:52:03 -07:00
Albert Yi
99012ff342 fix tests 2018-05-09 11:59:51 -07:00
Albert Yi
79ea6f7e6c Add Docker and Travis config files to enable CI tests
Also fixes some Rails 6.0 deprecation warnings
2018-05-09 09:56:38 -07:00
evazion
18c40b0d60 Fix #3678: "Access denied" when adding commentary. 2018-04-27 18:32:15 -05:00
Albert Yi
c4a4394ea0 update gems (fixes #3665) 2018-04-25 14:35:52 -07:00
r888888888
abce4d2551 Raise error on unpermitted params.
Fail loudly if we forget to whitelist a param instead of silently
ignoring it.

misc models: convert to strong params.

artist commentaries: convert to strong params.

* Disallow changing or setting post_id to a nonexistent post.

artists: convert to strong params.

* Disallow setting `is_banned` in create/update actions. Changing it
  this way instead of with the ban/unban actions would leave the artist in
  a partially banned state.

bans: convert to strong params.

* Disallow changing the user_id after the ban has been created.

comments: convert to strong params.

favorite groups: convert to strong params.

news updates: convert to strong params.

post appeals: convert to strong params.

post flags: convert to strong params.

* Disallow users from setting the `is_deleted` / `is_resolved` flags.

ip bans: convert to strong params.

user feedbacks: convert to strong params.

* Disallow users from setting `disable_dmail_notification` when creating feedbacks.
* Disallow changing the user_id after the feedback has been created.

notes: convert to strong params.

wiki pages: convert to strong params.

* Also fix non-Builders being able to delete wiki pages.

saved searches: convert to strong params.

pools: convert to strong params.

* Disallow setting `post_count` or `is_deleted` in create/update actions.

janitor trials: convert to strong params.

post disapprovals: convert to strong params.

* Factor out quick-mod bar to shared partial.
* Fix quick-mod bar to use `Post#is_approvable?` to determine visibility
  of Approve button.

dmail filters: convert to strong params.

password resets: convert to strong params.

user name change requests: convert to strong params.

posts: convert to strong params.

users: convert to strong params.

* Disallow setting password_hash, last_logged_in_at, last_forum_read_at,
  has_mail, and dmail_filter_attributes[user_id].

* Remove initialize_default_image_size (dead code).

uploads: convert to strong params.

* Remove `initialize_status` because status already defaults to pending
  in the database.

tag aliases/implications: convert to strong params.

tags: convert to strong params.

forum posts: convert to strong params.

* Disallow changing the topic_id after creating the post.
* Disallow setting is_deleted (destroy/undelete actions should be used instead).
* Remove is_sticky / is_locked (nonexistent attributes).

forum topics: convert to strong params.

* merges https://github.com/evazion/danbooru/tree/wip-rails-5.1
* lock pg gem to 0.21 (1.0.0 is incompatible with rails 5.1.4)
* switch to factorybot and change all references

Co-authored-by: r888888888 <r888888888@gmail.com>
Co-authored-by: evazion <noizave@gmail.com>

add diffs
2018-04-06 18:09:57 -07:00
evazion
dc9b7e5bda Fix #3582: Switch from ImageMagick to libvips 2018-03-28 17:15:57 -05:00
r888888888
3657cacd17 * post keeper is calculated synchronously
* add fallback mechanism in case archive service is not up
* pass along most recently added tags to any keeper calculation
2018-03-08 16:00:44 -08:00
r888888888
f82d6fa686 fixes #3512 2018-01-30 11:04:50 -08:00
r888888888
cee3c5522b update dtext gem 2018-01-30 10:54:11 -08:00
evazion
46b0f9e6d6 Update dotenv.
dotenv-2.2.1 no longer loads .env.local in the test environment. Load it
manually for backwards compatibility.
2018-01-20 19:04:48 -06:00
evazion
074a4be38f Update gems. 2018-01-20 19:04:48 -06:00
r888888888
f501281139 update cityhash gem 2018-01-18 14:25:18 -08:00
r888888888
eab63daa29 update newrelic gem 2017-12-15 13:56:05 -08:00
r888888888
ab33c22da6 update gemfile 2017-12-13 14:39:55 -08:00
evazion
810b6b8b99 Fix #3039: Test failures under ruby 2.4. 2017-11-25 21:52:32 -06:00
r888888888
f904d19b60 update rubyzip gem 2017-11-22 13:28:59 -08:00
r888888888
49109de1c5 update dtext gem 2017-09-18 11:48:47 -07:00
r888888888
704816066d add recaptcha for signup process 2017-09-16 12:44:17 -07:00
r888888888
b944b642b8 akismet integration 2017-09-14 13:37:36 -07:00
evazion
e2c2435356 Gemfile: update dtext to 1.5.1. 2017-08-04 00:47:43 -05:00
r888888888
69fcbaae7a update dtext gem 2017-07-11 15:47:09 -07:00
r888888888
d7690d24b0 fixes #3039 2017-06-29 16:05:01 -07:00
evazion
d5ce6c98ef tumblr: add tumblr api client. 2017-06-25 15:34:15 -05:00
evazion
48001c1293 gems: update sanitize to 4.5.0; add addressable. 2017-06-17 11:57:32 -05:00
Albert Yi
a7b8a0d9f7 Merge pull request #3158 from evazion/fix-expunge-post
Fix #3156: Expunging posts is broken
2017-06-15 11:34:02 -07:00
evazion
a844a1daf4 posts: fix expunging posts not deleting files.
Fix expungement to ignore the "file still in use" check.
2017-06-14 21:31:24 -05:00
r888888888
d691c1de36 fixes #3066: add bootsnap support 2017-06-14 16:35:16 -07:00
r888888888
ff5586cb01 refactor twitter service to handle cards (fixes #3031) 2017-05-09 12:48:11 -07:00
r888888888
b053a2d783 add source + rewrite strategy for pawoo 2017-04-20 15:50:22 -07:00
r888888888
621bef3ddf Revert "Merge pull request #2952 from evazion/fix-2950"
This reverts commit ae4509a541197684bfb0538f65afa827854b4335, reversing
changes made to eb008a0e765e231a8fdef594759a61798d6bd1d5.
2017-04-14 12:28:58 -07:00
evazion
3c89ee3199 tests: add more post/pool version creation tests.
Adds the `test_after_commit` gem too because after_commit callbacks
don't fire inside tests in rails <5.0.
2017-04-03 15:03:59 -07:00
Type-kun
47f0d98a0f Update dtext gem to current revision 2017-03-02 12:35:14 +05:00
r888888888
33db2b868f include daemons gem 2017-02-28 14:07:47 -08:00
evazion
c7e276abff Gemfile.lock: update rails to 4.2.8. 2017-02-28 00:11:27 -06:00
evazion
204fbd811c Gemfile.lock: update dalli to 2.7.6. 2017-02-28 00:11:27 -06:00
evazion
ed894af675 Gemfile.lock: update responders to 2.3.0. 2017-02-28 00:11:27 -06:00
evazion
076c409b0d Gemfile.lock: update rmagick to 2.16.0. 2017-02-28 00:11:27 -06:00
evazion
722a672aef Gemfile.lock: update whenever to 0.9.7. 2017-02-28 00:11:27 -06:00
evazion
bfb0c08e8c Gemfile.lock: update mechanize to 2.7.5. 2017-02-28 00:11:27 -06:00
evazion
2a05b81f43 Gemfile.lock: update simple_form to 3.4.0. 2017-02-28 00:11:26 -06:00
evazion
af1c1004f7 Gemfile.lock: update delayed_job to 4.1.2. 2017-02-28 00:11:26 -06:00
evazion
176f5775b4 Gemfile.lock: update sass-rails to 5.0.6. 2017-02-28 00:11:26 -06:00
evazion
9d3a4101c4 Gemfile.lock: update uglifier to 3.0.4. 2017-02-28 00:11:26 -06:00
evazion
742afd1b72 Gemfile.lock: update pg to 0.19.0. 2017-02-28 00:11:26 -06:00
evazion
4ede0c4166 Gemfile.lock: update ffaker to 2.5.0. 2017-02-28 00:11:25 -06:00
evazion
59bb705307 Gemfile.lock: update awesome_print to 1.7.0. 2017-02-28 00:11:25 -06:00
evazion
822d881096 Gemfile.lock: update pry-byebug to 3.4.2. 2017-02-28 00:11:25 -06:00
evazion
bdbf54aef7 Gemfile: remove unused gems.
coffee-rails and daemons are unused.

kgio, net-ssh, and nokogiri are pulled in by other gems, but they aren't
used by us directly, so they shouldn't need to be listed in the Gemfile.
2017-02-28 00:11:25 -06:00
r888888888
02fc06764d update dtext gem 2017-02-27 17:03:13 -08:00
Albert Yi
5404c1d231 implement postarchive 2017-02-21 13:40:52 -08:00
r888888888
532614c5b1 update dtext gem 2017-02-21 11:29:46 -08:00
r888888888
1c2804f4d5 update dtext gem 2017-02-14 10:35:27 -08:00
r888888888
f0a8598ba2 update aws gem, stub in rake tasks for s3 2017-02-08 15:06:54 -08:00
evazion
e8cf417e9c tests: update gems to latest versions.
Also fix a few things that broke under shoulda-matchers 3.1.1.
2017-02-04 22:17:15 -06:00
evazion
74cbcb3f80 Update json, rubyracer gems for ruby-2.4.
Fixes a couple incompatibilities with ruby 2.4.

ref: github.com/flori/json/issues/303.
ref: github.com/cowboyd/therubyracer/issues/430
2017-01-27 05:22:05 -06:00
evazion
3eb525ad01 dotenv: add gem. 2017-01-23 16:38:14 -06:00
Albert Yi
04c221bf1e update dtext gem 2017-01-16 13:32:53 -08:00
Albert Yi
0ea7d78584 remove usage of vcr cassettes; delete unused fixtures; fix some broken unit tests 2016-12-28 15:47:28 -08:00
Albert Yi
3e285ea4ce update dtext gem 2016-12-12 17:08:56 -08:00
Albert Yi
8266b31cea add cap hook for tagging deployments in git 2016-12-05 15:02:38 -08:00
evazion
db9cb20faf Remove coinbase from Gemfile.lock. 2016-12-03 20:22:53 -06:00
Albert Yi
c075b011b6 upgrade unicorn version 2016-11-07 15:00:28 -08:00
r888888888
619beb00af production unicorn changes 2016-11-07 03:24:34 -08:00
Albert Yi
e78b7d2a8c fixes #2716: Wiki pages should be undeletable 2016-10-18 15:45:50 -07:00
Albert Yi
ced7a34afa additional fixes for install script 2016-10-17 16:15:12 -07:00
Albert Yi
86af580445 increase random post mod queue length to 12 2016-10-17 15:53:51 -07:00
Albert Yi
903eff5c24 update rails gem 2016-10-12 17:06:50 -07:00
Albert Yi
11f911fd32 remove gctools dependency 2016-10-12 16:45:14 -07:00
r888888888
7451e6fe47 update dtext gem 2016-09-23 15:47:47 -07:00
r888888888
eb27749f25 update dtext gem 2016-09-07 18:40:36 -07:00
r888888888
1488f82b32 import bigquery classes from reportbooru 2016-09-06 17:40:50 -07:00
r888888888
3152daa47a update dtext gem 2016-09-02 15:18:05 -07:00
r888888888
9accf95719 update dtext gem 2016-08-30 14:57:44 -07:00
r888888888
4f7d669136 update dtext gem 2016-08-30 14:04:37 -07:00
r888888888
5de9adf0f5 work on saved searches embedded in user profiles 2016-08-19 17:33:42 -07:00
r888888888
5cd1a34700 add google pubsub integration 2016-07-27 17:20:48 -07:00
r888888888
c2d09af089 fixes #2617: update dtext gem 2016-07-11 17:08:55 -07:00
r888888888
616df0cf04 fixes #2617: update dtext gem 2016-07-11 17:06:33 -07:00
r888888888
41ee2de3d6 enable ragel parser for artist commentaries 2016-06-20 14:13:20 -07:00
r888888888
3bccc3faef update dtext gem 2016-04-28 11:37:30 -07:00
r888888888
03c5c365e0 update dtext_rb gem 2016-03-24 17:37:13 -07:00
r888888888
8862c486bb update dtext gem, include more contextual tags on images 2016-03-24 17:26:20 -07:00
r888888888
97d84bdfd0 update text gem 2016-03-17 15:09:23 -07:00
r888888888
71de134d03 add dtext_rb gem 2016-03-16 17:30:09 -07:00
r888888888
bba877ec00 readd coinbase gem 2016-02-23 16:55:48 -08:00
r888888888
4b24a5cb7e update to rails 4.2.5.1, add debugging info for tracking slow queries 2016-02-23 16:34:33 -08:00
r888888888
21842996d4 reduce redundant sqs calls for updating related tags 2016-01-12 11:30:19 -08:00
r888888888
e60db2bcbe completely blackout blacklisted posts 2016-01-07 19:36:15 -08:00
r888888888
5fa1b7cb12 fix related tag update 2016-01-04 11:04:28 -08:00
r888888888
c280760b44 add cosine similarity algo for related tag calculator 2016-01-02 09:38:24 -08:00
r888888888
5f9a6aa0c1 fixes #2465: Switch Twitter cards to use summary card+image 2015-08-25 16:36:05 -07:00
r888888888
1eae80a82c change papi token timeout 2015-08-24 22:54:39 -07:00
r888888888
e669b66395 update to capistrano3 2015-08-19 15:53:13 -07:00
r888888888
076416c228 fix functional tests 2015-08-19 11:23:29 -07:00
r888888888
66de9c85a3 update gem versions 2015-08-18 16:43:24 -07:00
r888888888
576fe02555 upgrade diff-lcs gem 2015-07-21 17:16:10 -07:00
r888888888
24f36d921e update aws-sdk version 2015-07-15 17:19:10 -07:00
r888888888
2c8cacd50e switch aws client libraries 2015-07-13 18:17:31 -07:00
r888888888
63f4ecf0f1 fixes #2434: update aws-s3 gem 2015-07-13 17:57:36 -07:00
r888888888
4a24fe5074 potential fix for #2431 2015-07-07 15:59:40 -07:00
Toks
90a1694f62 Update for gemfile windows support
* Exclude gems that don't work on windows (kgio, dalli, gctools)
* Add new gems necessary on windows (memcache-client as dalli
replacement, tzinfo-data)
* Update gems where the old version couldn't be installed on windows but
the new version can (nokogiri, pg, bcrypt)

I don't think this should break anything on non-windows platforms since
the additions/removals only take effect on windows, and the version
updates don't appear to have changed anything huge.
2015-05-13 17:39:27 -04:00
r888888888
18cf23a817 update OOB gc hook for unicorn 2015-05-10 11:11:01 -07:00
r888888888
f3a4037597 upgrade rmagick version 2015-05-10 11:04:28 -07:00
r888888888
f941bc21de new version 2015-03-27 14:55:02 -07:00