Sha256: 25d0baef411813f57798d22d31d3a48ce61dd83769cf0240009bc257353ac072

Contents?: true

Size: 581 Bytes

Versions: 22

Compression:

Stored size: 581 Bytes

Contents

require_relative "formula_builder"

module Fontist
  module Import
    class ManualFormulaBuilder < FormulaBuilder
      attr_accessor :description,
                    :platforms,
                    :instructions

      private

      def formula_attributes
        @formula_attributes ||= super.dup.tap do |attrs|
          attrs.delete(:resources)
          attrs.delete(:open_license)
          attrs.delete(:license_url)
          attrs.delete(:copyright)

          attrs.insert(attrs.index(:homepage) + 1, :platforms, :instructions)
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
fontist-1.21.2 lib/fontist/import/manual_formula_builder.rb
fontist-1.21.1 lib/fontist/import/manual_formula_builder.rb
fontist-1.20.0 lib/fontist/import/manual_formula_builder.rb
fontist-1.19.0 lib/fontist/import/manual_formula_builder.rb
fontist-1.18.2 lib/fontist/import/manual_formula_builder.rb
fontist-1.17.1 lib/fontist/import/manual_formula_builder.rb
fontist-1.17.0 lib/fontist/import/manual_formula_builder.rb
fontist-1.16.0 lib/fontist/import/manual_formula_builder.rb
fontist-1.15.2 lib/fontist/import/manual_formula_builder.rb
fontist-1.15.1 lib/fontist/import/manual_formula_builder.rb
fontist-1.15.0 lib/fontist/import/manual_formula_builder.rb
fontist-1.14.6 lib/fontist/import/manual_formula_builder.rb
fontist-1.14.5 lib/fontist/import/manual_formula_builder.rb
fontist-1.14.4 lib/fontist/import/manual_formula_builder.rb
fontist-1.14.3 lib/fontist/import/manual_formula_builder.rb
fontist-1.14.2 lib/fontist/import/manual_formula_builder.rb
fontist-1.14.1 lib/fontist/import/manual_formula_builder.rb
fontist-1.14.0 lib/fontist/import/manual_formula_builder.rb
fontist-1.13.2 lib/fontist/import/manual_formula_builder.rb
fontist-1.13.1 lib/fontist/import/manual_formula_builder.rb