Sha256: 4561389fa164ce71b2596f1a5ea0237418a91bb04010f1cc605a10e2127ec2a3

Contents?: true

Size: 978 Bytes

Versions: 1

Compression:

Stored size: 978 Bytes

Contents

# frozen_string_literal: true

require 'dry/types/pathname'
require 'rom'

require 'rom/files/version'
require 'rom/files/gateway'
require 'rom/files/relation'

ROM.register_adapter :files, ROM::Files

require 'rom/files/plugins/relation/instrumentation'
require 'rom/files/plugins/schema/contents'
require 'rom/files/plugins/schema/mime'
require 'rom/files/plugins/schema/shebang'
require 'rom/files/plugins/schema/stat'
require 'rom/files/plugins/configuration/gem'

ROM.plugins do
  adapter :files do
    register :instrumentation, ROM::Files::Plugins::Relation::Instrumentation, type: :relation
    register :contents, ROM::Files::Plugins::Schema::Contents, type: :schema
    register :mime, ROM::Files::Plugins::Schema::Mime, type: :schema
    register :shebang, ROM::Files::Plugins::Schema::Shebang, type: :schema
    register :stat, ROM::Files::Plugins::Schema::Stat, type: :schema
  end
  register :gem, ROM::Files::Plugins::Configuration::Gem, type: :configuration
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-files-0.2.0 lib/rom/files.rb