Sha256: a9e8e9720867ee840cdc52da5d51d579e44503e872aeec2252f1fa1fc0448215

Contents?: true

Size: 920 Bytes

Versions: 27

Compression:

Stored size: 920 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Tapioca
  module Commands
    class GemSync < AbstractGem
      private

      sig { override.void }
      def execute
        anything_done = [
          perform_removals,
          perform_additions,
        ].any?

        if anything_done
          validate_rbi_files(
            command: default_command(:gem),
            gem_dir: @outpath.to_s,
            dsl_dir: @dsl_dir,
            auto_strictness: @auto_strictness,
            gems: @bundle.dependencies,
          )

          say("All operations performed in working directory.", [:green, :bold])
          say("Please review changes and commit them.", [:green, :bold])
        else
          say("No operations performed, all RBIs are up-to-date.", [:green, :bold])
        end

        puts
      ensure
        GitAttributes.create_generated_attribute_file(@outpath)
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
tapioca-0.16.8 lib/tapioca/commands/gem_sync.rb
tapioca-0.16.7 lib/tapioca/commands/gem_sync.rb
tapioca-0.16.6 lib/tapioca/commands/gem_sync.rb
tapioca-0.16.5 lib/tapioca/commands/gem_sync.rb
tapioca-0.16.4 lib/tapioca/commands/gem_sync.rb
tapioca-0.16.3 lib/tapioca/commands/gem_sync.rb
tapioca-0.16.2 lib/tapioca/commands/gem_sync.rb
tapioca-0.16.1 lib/tapioca/commands/gem_sync.rb
tapioca-0.16.0 lib/tapioca/commands/gem_sync.rb
tapioca-0.15.1 lib/tapioca/commands/gem_sync.rb
tapioca-0.15.0 lib/tapioca/commands/gem_sync.rb
tapioca-0.14.4 lib/tapioca/commands/gem_sync.rb
tapioca-0.14.3 lib/tapioca/commands/gem_sync.rb
tapioca-0.13.3 lib/tapioca/commands/gem_sync.rb
tapioca-0.13.2 lib/tapioca/commands/gem_sync.rb
tapioca-0.13.1 lib/tapioca/commands/gem_sync.rb
tapioca-0.13.0 lib/tapioca/commands/gem_sync.rb
tapioca-0.12.0 lib/tapioca/commands/gem_sync.rb
tapioca-0.11.17 lib/tapioca/commands/gem_sync.rb
tapioca-0.11.16 lib/tapioca/commands/gem_sync.rb