forked from flippercloud/flipper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flipper.gemspec
38 lines (31 loc) · 1.19 KB
/
flipper.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
36
37
38
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/flipper/version', __FILE__)
require File.expand_path('../lib/flipper/metadata', __FILE__)
plugin_files = []
plugin_test_files = []
Dir['flipper-*.gemspec'].map do |gemspec|
spec = eval(File.read(gemspec))
plugin_files << spec.files
plugin_test_files << spec.files
end
ignored_files = plugin_files
ignored_files << Dir['script/*']
ignored_files << '.gitignore'
ignored_files << 'Guardfile'
ignored_files.flatten!.uniq!
ignored_test_files = plugin_test_files
ignored_test_files.flatten!.uniq!
Gem::Specification.new do |gem|
gem.authors = ['John Nunemaker']
gem.email = '[email protected]'
gem.summary = 'Beautiful, performant feature flags for Ruby.'
gem.homepage = 'https://www.flippercloud.io/docs'
gem.license = 'MIT'
gem.files = `git ls-files`.split("\n") - ignored_files + ['lib/flipper/version.rb']
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") - ignored_test_files
gem.name = 'flipper'
gem.require_paths = ['lib']
gem.version = Flipper::VERSION
gem.metadata = Flipper::METADATA
gem.add_dependency 'concurrent-ruby', '< 2'
end