Sha256: f1f1f387d64e1baf743f9215f0edd9f438b52cae93e732ef7ce02a34650358a4

Contents?: true

Size: 495 Bytes

Versions: 25

Compression:

Stored size: 495 Bytes

Contents

require_relative "google/new_fonts_fetcher"

module Fontist
  module Import
    class GoogleCheck
      def call
        fonts = new_fonts
        indicate(fonts)
      end

      private

      def new_fonts
        Fontist::Import::Google::NewFontsFetcher.new(logging: true).call
      end

      def indicate(new_paths)
        return if new_paths.empty?

        puts "New fonts are available in:"
        new_paths.each do |path|
          puts path
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
fontist-1.11.7 lib/fontist/import/google_check.rb
fontist-1.11.6 lib/fontist/import/google_check.rb
fontist-1.11.5 lib/fontist/import/google_check.rb
fontist-1.11.3 lib/fontist/import/google_check.rb
fontist-1.11.2 lib/fontist/import/google_check.rb