Sha256: 50b6278ee2ab1fd741534e59bcb1251ed8701340ca0b44d0ab3798e23760c0ee

Contents?: true

Size: 1.68 KB

Versions: 8

Compression:

Stored size: 1.68 KB

Contents

task :gemspec do
  gemspec = Gem::Specification.new do |spec|
    spec.name          = 'schemacop'
    spec.version       = IO.read('VERSION').chomp
    spec.authors       = ['Sitrox']
    spec.summary       = %(
      Schemacop validates ruby structures consisting of nested hashes and arrays
      against simple schema definitions.
    )
    spec.license       = 'MIT'
    spec.homepage      = 'https://github.com/sitrox/schemacop'
    spec.files         = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
    spec.executables   = []
    spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
    spec.require_paths = ['lib']

    # This lower bound for ActiveSupport is not necessarily true. Schemacop
    # needs access to ActiveSupport::HashWithIndifferentAccess and expects
    # behavior of that as in version 5 of ActiveSupport.
    spec.add_dependency 'activesupport', '>= 4.0'
    spec.add_development_dependency 'bundler', '~> 1.3'
    spec.add_development_dependency 'rake'
    spec.add_development_dependency 'ci_reporter', '~> 2.0'
    spec.add_development_dependency 'ci_reporter_minitest'
    spec.add_development_dependency 'haml'
    spec.add_development_dependency 'colorize'
    spec.add_development_dependency 'yard'
    spec.add_development_dependency 'rubocop', '0.35.1'
    spec.add_development_dependency 'redcarpet'
    spec.add_development_dependency 'pry'
  end

  File.open('schemacop.gemspec', 'w') { |f| f.write(gemspec.to_ruby.strip) }
end

# rubocop: disable Lint/HandleExceptions
begin
  require 'rake/testtask'
  require 'ci/reporter/rake/minitest'
  Rake::TestTask.new do |t|
    t.pattern = 'test/*_test.rb'
    t.verbose = false
    t.libs << 'test'
  end
rescue LoadError
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
schemacop-2.4.7 Rakefile
schemacop-2.4.6 Rakefile
schemacop-2.4.5 Rakefile
schemacop-2.4.4 Rakefile
schemacop-2.4.3 Rakefile
schemacop-2.4.2 Rakefile
schemacop-2.4.1 Rakefile
schemacop-2.4.0 Rakefile