Sha256: 9d8beaacd26ec1f821edef564c1d116940537765320aba772fb186dc0c5e3ccb

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

task :gemspec do
  gemspec = Gem::Specification.new do |spec|
    spec.name          = 'schemacop'
    spec.version       = File.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_dependency 'ruby2_keywords', '>= 0.0.4'
  end

  File.write('schemacop.gemspec', 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

2 entries across 2 versions & 1 rubygems

Version Path
schemacop-3.0.30 Rakefile
schemacop-3.0.29 Rakefile