Sha256: 96196fed52630e6b66ed75ecfb38b6f26972fff7998eb9339f3b2dd7cf4ab495
Contents?: true
Size: 930 Bytes
Versions: 2
Compression:
Stored size: 930 Bytes
Contents
# frozen_string_literal: true require_relative "scarpe/logger" # This will never be triggered -- we use the (...) feature below, which means this # file won't even parse in old Rubies. if RUBY_VERSION[0..2] < "3.2" Scarpe::Logger.logger("Scarpe").error("Scarpe requires Ruby 3.2 or higher!") exit(-1) end require "securerandom" require "json" require_relative "constants" class Scarpe::Error < StandardError; end require_relative "scarpe/version" require_relative "scarpe/promises" require_relative "scarpe/display_service" require_relative "scarpe/widgets" require "bloops" d_s = ENV["SCARPE_DISPLAY_SERVICE"] || "wv_local" # This is require, not require_relative, to allow gems to supply a new display service require "scarpe/#{d_s}" #Constants Module include Constants class Scarpe class << self def app(...) app = Scarpe::App.new(...) app.init app.run app.destroy end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scarpe-0.2.1 | lib/scarpe.rb |
scarpe-0.2.0 | lib/scarpe.rb |