-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathRakefile
34 lines (31 loc) · 1.15 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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