]> cat aescling's git repositories - mastodon.git/commit
Use charlock_holmes instead of nkf at FetchLinkCardService (#4080)
authornullkal <nullkal@users.noreply.github.com>
Sat, 8 Jul 2017 20:44:31 +0000 (05:44 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 8 Jul 2017 20:44:31 +0000 (22:44 +0200)
commit007ab330e6ffb1e07995d4e306473d457043e2eb
treebaf206a3c7ae9f626a679fb3c7b650e694d8d480
parent794781d1219112482e4abbc0a98683a17d170e2b
Use charlock_holmes instead of nkf at FetchLinkCardService (#4080)

* Specs for language detection

* Use CharlockHolmes instead of NKF

* Correct mistakes

* Correct style

* Set hint_enc instead of falling back and strip_tags

* Improve specs

* Add dependencies
.travis.yml
Aptfile
Dockerfile
Gemfile
Gemfile.lock
Vagrantfile
app/services/fetch_link_card_service.rb
spec/fixtures/requests/koi8-r.txt [new file with mode: 0644]
spec/fixtures/requests/sjis.txt
spec/fixtures/requests/sjis_with_wrong_charset.txt [new file with mode: 0644]
spec/services/fetch_link_card_service_spec.rb