-
Notifications
You must be signed in to change notification settings - Fork 2
/
sinject.gemspec
35 lines (29 loc) · 1.18 KB
/
sinject.gemspec
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
35
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
ci_version = ENV.fetch('CI_VERSION', '')
puts "CI version - #{ci_version}" unless ci_version.empty?
version = if ci_version =~ /\Av[0-9]+\.[0-9]+\.[0-9]+/
ci_version[1..-1]
else
'0.0.0'
end
Gem::Specification.new do |spec|
spec.name = 'sinject'
spec.version = version
spec.authors = ['Sage One']
spec.email = ['[email protected]']
spec.summary = 'Simple Dependency Injection.'
spec.description = 'A simple dependency injection framework.'
spec.homepage = 'https://github.com/sage/sinject'
spec.license = 'MIT'
spec.files = Dir.glob("{bin,lib}/**/**/**")
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.add_development_dependency 'bundler', '>= 1.11'
spec.add_development_dependency 'rake', '~> 13.1'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'simplecov'
spec.add_development_dependency 'simplecov_json_formatter'
end