Enable frozen string literals.

Make all string literals immutable by default.
This commit is contained in:
evazion
2021-12-14 19:29:23 -06:00
parent 67b96135dd
commit a7dc05ce63
392 changed files with 786 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
module Sources
class Error < StandardError
end

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
module Sources
module Strategies
def self.all

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Page URLs:
#
# * https://www.artstation.com/artwork/04XA4

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# This is a collection of strategies for extracting information about a
# resource. At a minimum it tries to extract the artist name and a canonical
# URL to download the image from. But it can also be used to normalize a URL

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Asset URLs:
#
## NORMALIZABLE

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Image URLs #############################################################
#
# * OLD DOMAIN

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Image URLs
# * https://f8n-ipfs-production.imgix.net/QmX4MotNAAj9Rcyew43KdgGDxU1QtXemMHoUTNacMLLSjQ/nft.png
#

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Image URLs
#
# * https://pictures.hentai-foundry.com/a/Afrobull/795025/Afrobull-795025-kuroeda.png

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Image URLs
#
# # sample

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Image URLS:
# * https://img.pawoo.net/media_attachments/files/001/297/997/small/c4272a09570757c2.png
# * https://img.pawoo.net/media_attachments/files/001/297/997/original/c4272a09570757c2.png

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Original images:
#
# * https://yande.re/image/b4b1d11facd1700544554e4805d47bb6/.png

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Image Urls
# * https://art.ngfiles.com/images/1254000/1254722_natthelich_pandora.jpg
# * https://art.ngfiles.com/images/1033000/1033622_natthelich_fire-emblem-marth-plus-progress-pic.png?f1569487181

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Direct URL
# * https://lohas.nicoseiga.jp/o/971eb8af9bbcde5c2e51d5ef3a2f62d6d9ff5552/1589933964/3583893
# * http://lohas.nicoseiga.jp/priv/3521156?e=1382558156&h=f2e089256abd1d453a455ec8f317a6c703e2cedf

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Image URLs:
#
# * https://pic03.nijie.info/nijie_picture/28310_20131101215959.jpg (page: https://www.nijie.info/view.php?id=64240)

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
module Sources
module Strategies
class Null < Base

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Pixiv
#
# * https://i.pximg.net/img-original/img/2014/10/03/18/10/20/46324488_p0.png

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Image URLs
#
# * https://images.plurk.com/5wj6WD0r6y4rLN0DL3sqag.jpg

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Image URLS
## Non-watermarked:
# * https://skeb.imgix.net/requests/199886_0?bg=%23fff&auto=format&w=800&s=5a6a908ab964fcdfc4713fad179fe715

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Page URLs:
# * https://sta.sh/0wxs31o7nn2 (single image)
# * https://sta.sh/21leo8mz87ue (folder)

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# https://marmaladica.tumblr.com/post/188237914346/saved
# https://66.media.tumblr.com/2c6f55531618b4335c67e29157f5c1fc/tumblr_pz4a44xdVj1ssucdno1_1280.png
# https://66.media.tumblr.com/11700cab20d65d5a6acc470e284dbd3a/tumblr_pz4a44xdVj1ssucdno2_1280.png

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
module Sources::Strategies
class Twitter < Base
PAGE = %r{\Ahttps?://(?:mobile\.)?twitter\.com}i

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# Image URLS
# * http://ww1.sinaimg.cn/large/69917555gw1f6ggdghk28j20c87lbhdt.jpg
# * https://wx1.sinaimg.cn/large/002NQ2vhly1gqzqfk1agfj62981aw4qr02.jpg (more than 32 characters in hash)