Add spectator and switch to Spectator DSL

This commit is contained in:
matthewmcgarvey 2022-01-04 19:25:21 -06:00
parent dffe8fc49e
commit 6c0486646f
4 changed files with 54 additions and 40 deletions

View File

@ -40,6 +40,10 @@ shards:
git: https://github.com/luislavena/radix.git git: https://github.com/luislavena/radix.git
version: 0.4.1 version: 0.4.1
spectator:
git: https://github.com/icy-arctic-fox/spectator.git
version: 0.10.3
sqlite3: sqlite3:
git: https://github.com/crystal-lang/crystal-sqlite3.git git: https://github.com/crystal-lang/crystal-sqlite3.git
version: 0.18.0 version: 0.18.0

View File

@ -28,6 +28,10 @@ dependencies:
athena-negotiation: athena-negotiation:
github: athena-framework/negotiation github: athena-framework/negotiation
version: ~> 0.1.1 version: ~> 0.1.1
development_dependencies:
spectator:
github: icy-arctic-fox/spectator
version: ~> 0.10.3
crystal: ">= 1.0.0, < 2.0.0" crystal: ">= 1.0.0, < 2.0.0"

File diff suppressed because one or more lines are too long

18
spec/spec_helper.cr Normal file
View File

@ -0,0 +1,18 @@
require "kemal"
require "openssl/hmac"
require "pg"
require "protodec/utils"
require "yaml"
require "../src/invidious/helpers/*"
require "../src/invidious/channels/*"
require "../src/invidious/videos"
require "../src/invidious/comments"
require "../src/invidious/playlists"
require "../src/invidious/search"
require "../src/invidious/trending"
require "spectator"
Spectator.configure do |config|
config.fail_blank
config.randomize
end