Sha256: 71937355ff01618ccf882d76b6980e6499e6dbbbdbda1e47f9b2a26decdba169
Contents?: true
Size: 972 Bytes
Versions: 1
Compression:
Stored size: 972 Bytes
Contents
# frozen_string_literal: true require "pragmater" require "refinements/pathname" module Rubysmith module Extensions # Ensures project skeleton has pragmas. class Pragmater include Import[:settings] using Refinements::Pathname CLIENT = ::Pragmater::Inserter.new( settings: ::Pragmater::Configuration::Model[ comments: ["# frozen_string_literal: true"], patterns: %w[ **/*.rake **/*.rb *.gemspec exe/* bin/console bin/rake bin/rspec bin/rubocop bin/setup config.ru Gemfile Rakefile ] ] ).freeze def initialize(client: CLIENT, **) @client = client super(**) end def call settings.project_root.change_dir { client.call } true end private attr_reader :client end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubysmith-7.3.0 | lib/rubysmith/extensions/pragmater.rb |