Sha256: a10a1c0913a50cb25b31605b7541ce8d34986b76fbde9bb4a1d5fa7c7b81c412
Contents?: true
Size: 723 Bytes
Versions: 43
Compression:
Stored size: 723 Bytes
Contents
# frozen_string_literal: true require_relative "../../lib/plutonium_generators" module Pu module Gem class StandardGenerator < Rails::Generators::Base include PlutoniumGenerators::Generator desc "Set up standardrb" def start add_standard remove_rubocop_rails_omakase rescue => e exception "#{self.class} failed:", e end private def add_standard bundle "standard", version: ">= 1.35.1", group: :development end def remove_rubocop_rails_omakase run "bundle remove rubocop-rails-omakase" gsub_file "Gemfile", /\n.*\n.*# Omakase Ruby styling.*/, "" remove_file ".rubocop.yml" end end end end
Version data entries
43 entries across 43 versions & 1 rubygems