Sha256: 67131985fc50123cd37540b5c36edfb6db5001fd007ea98216bbb065aaa4bb99

Contents?: true

Size: 826 Bytes

Versions: 4

Compression:

Stored size: 826 Bytes

Contents

# frozen_string_literal: true

require "dry/schema"

Dry::Schema.load_extensions :monads

module Pennyworth
  module Configuration
    Contract = Dry::Schema.Params do
      optional(:alfred_preferences).filled :string
      required(:inflections).array :hash
      required(:git_hub_api_url).filled :string
      optional(:git_hub_organization).filled :string
      optional(:git_hub_user).filled :string
      required(:http_statuses_url).filled :string
      required(:htmx_examples_uri).filled :string
      required(:htmx_extensions_uri).filled :string
      required(:htmx_references_uri).filled :string
      required(:htmx_site_uri).filled :string
      required(:ruby_gems_api_url).filled :string
      optional(:ruby_gems_owner).filled :string
      required(:standard_gems_api_url).filled :string
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pennyworth-17.8.0 lib/pennyworth/configuration/contract.rb
pennyworth-17.7.0 lib/pennyworth/configuration/contract.rb
pennyworth-17.6.0 lib/pennyworth/configuration/contract.rb
pennyworth-17.5.0 lib/pennyworth/configuration/contract.rb