Sha256: d580f29729c769a67b018711520a699b249e9be2227aa7b2589658f156faa0bb
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
# typed: true require "psych" module Mangadex module Api VERSION = -> do version = Psych.load( RestClient.get( 'https://api.mangadex.org/api.yaml', ).body, ).dig('info', 'version') if version != Mangadex::VERSION warn( "[Warning] This gem is compatible with #{Mangadex::VERSION} but it looks like Mangadex is at #{version}", "[Warning] Check out #{Mangadex::Internal::Request::BASE_URI} for more information.", ) end end.call end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mangadex-5.3.1 | lib/mangadex/api/version.rb |
mangadex-5.3.0 | lib/mangadex/api/version.rb |