Sha256: 86094f83845cdd818f48372d87a78700052667b90f76cf16ff98380916dd905b

Contents?: true

Size: 1.55 KB

Versions: 5

Compression:

Stored size: 1.55 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'
    spec.add_development_dependency 'rake'
    spec.add_development_dependency 'minitest'
    spec.add_development_dependency 'minitest-reporters'
    spec.add_development_dependency 'colorize'
    spec.add_development_dependency 'rubocop', '0.92.0'
    spec.add_development_dependency 'pry'
    spec.add_development_dependency 'byebug'
    spec.add_development_dependency 'simplecov', '0.21.2'
  end

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

begin
  require 'rake/testtask'
  Rake::TestTask.new do |t|
    t.pattern = 'test/unit/**/*_test.rb'
    t.verbose = false
    t.libs << 'test/lib'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
schemacop-3.0.0.rc4 Rakefile
schemacop-3.0.0.rc3 Rakefile
schemacop-3.0.0.rc2 Rakefile
schemacop-3.0.0.rc1 Rakefile
schemacop-3.0.0.rc0 Rakefile