Sha256: 2b5b5b10f145234606dbc9a70dfc123ed8ec48542c88544408b4b96d6ca7f698

Contents?: true

Size: 1.54 KB

Versions: 3

Compression:

Stored size: 1.54 KB

Contents

# frozen_string_literal: true

require "pathname"
require_relative "lib/rfix/version"

Gem::Specification.new do |spec|
  spec.name          = "rfix"

  if ENV["TRAVIS"]
    spec.version = "#{Rfix::VERSION}-#{ENV.fetch('TRAVIS_BUILD_NUMBER')}"
  else
    # rubocop:disable Gemspec/DuplicatedAssignment
    spec.version = Rfix::VERSION
    # rubocop:enable Gemspec/DuplicatedAssignment
  end

  spec.authors       = ["Linus Oleander"]
  spec.email         = ["linus@oleander.nu"]

  spec.summary       = "RuboCop CLI that only complains about your latest changes"
  spec.description   = "$ rfix local|branch|origin|info|all [--dry] [--help]"
  spec.homepage      = "https://github.com/oleander/rfix-rb"
  spec.license       = "MIT"
  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")

  spec.metadata["homepage_uri"] = spec.homepage
  # Specify which files should be added to the gem when it is released.
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
  validate_file = ->(f) { f.match(%r{^(test|spec|features)/}) }
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
    `git ls-files -z`.split("\x0").reject(&validate_file)
  end

  spec.files += Dir.glob("vendor/cli-ui/lib/**/*").reject(&validate_file)

  spec.bindir        = "exe"
  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
  spec.require_paths = ["lib", "vendor/cli-ui/lib"]

  spec.add_runtime_dependency "rainbow", "~> 3.0"
  spec.add_runtime_dependency "rouge", "~> 3.20"
  spec.add_runtime_dependency "rubocop", "~> 0.80"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rfix-1.0.6.pre.60 rfix.gemspec
rfix-1.0.5.pre.58 rfix.gemspec
rfix-1.0.6 rfix.gemspec