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.20.0 lib/fontist/import/google_check.rb
fontist-1.19.0 lib/fontist/import/google_check.rb
fontist-1.18.2 lib/fontist/import/google_check.rb
fontist-1.17.1 lib/fontist/import/google_check.rb
fontist-1.17.0 lib/fontist/import/google_check.rb
fontist-1.16.0 lib/fontist/import/google_check.rb
fontist-1.15.2 lib/fontist/import/google_check.rb
fontist-1.15.1 lib/fontist/import/google_check.rb
fontist-1.15.0 lib/fontist/import/google_check.rb
fontist-1.14.6 lib/fontist/import/google_check.rb
fontist-1.14.5 lib/fontist/import/google_check.rb
fontist-1.14.4 lib/fontist/import/google_check.rb
fontist-1.14.3 lib/fontist/import/google_check.rb
fontist-1.14.2 lib/fontist/import/google_check.rb
fontist-1.14.1 lib/fontist/import/google_check.rb
fontist-1.14.0 lib/fontist/import/google_check.rb
fontist-1.13.2 lib/fontist/import/google_check.rb
fontist-1.13.1 lib/fontist/import/google_check.rb
fontist-1.13.0 lib/fontist/import/google_check.rb
fontist-1.12.0 lib/fontist/import/google_check.rb