Sha256: f79466dc74ee7cd0b0a0987f0dca4adeb92011142bfddca446f7e0ce1ed80abe

Contents?: true

Size: 480 Bytes

Versions: 11

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true

require "dry/monads"
require "pathname"
require "refinements/hash"

module Milestoner
  module Configuration
    module Transformers
      # Ensures build root is expanded.
      module Build
        using Refinements::Hash

        Root = lambda do |attributes, key = :build_root|
          attributes.transform_with! key => -> value { Pathname(value).expand_path }
          Dry::Monads::Success attributes
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
milestoner-18.6.0 lib/milestoner/configuration/transformers/build/root.rb
milestoner-18.5.0 lib/milestoner/configuration/transformers/build/root.rb
milestoner-18.4.0 lib/milestoner/configuration/transformers/build/root.rb
milestoner-18.3.0 lib/milestoner/configuration/transformers/build/root.rb
milestoner-18.2.0 lib/milestoner/configuration/transformers/build/root.rb
milestoner-18.1.0 lib/milestoner/configuration/transformers/build/root.rb
milestoner-18.0.1 lib/milestoner/configuration/transformers/build/root.rb
milestoner-18.0.0 lib/milestoner/configuration/transformers/build/root.rb
milestoner-17.11.0 lib/milestoner/configuration/transformers/build/root.rb
milestoner-17.10.0 lib/milestoner/configuration/transformers/build/root.rb
milestoner-17.9.0 lib/milestoner/configuration/transformers/build/root.rb