-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruuuby.gemspec
79 lines (64 loc) · 3.4 KB
/
ruuuby.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# utf-8
::Gem::Specification.new do |gem|
require_relative 'lib/ruuuby/version'
# TODO: temp solution (for local testing)
required_ruby_version = ::Gem.ruby_version.to_s
required_ruby_version = '2.7.1' if required_ruby_version == '2.7.1.83'
gem.name = 'ruuuby'
gem.version = ::Ruuuby::VERSION
gem.summary = 'migration wip'
gem.description = 'migration wip'
gem.authors = ['Uladzislau Tarsunou']
gem.homepage = 'https://github.com/utarsuno/ruuuby'
gem.license = 'MIT'
gem.required_ruby_version = ">= #{required_ruby_version}"
gem.required_rubygems_version = ">= #{::Gem::VERSION}"
gem.installed_by_version = ::Gem::VERSION
gem.platform = ::Gem::Platform.local
gem.post_install_message = "Gem{ruuuby, v#{::Ruuuby::VERSION}} has just been installed, cheers!"
gem_meta = gem.metadata
gem_meta['homepage_uri'] = gem.homepage
gem_meta['source_code_uri'] = "#{gem.homepage}/tree/v#{::Ruuuby::VERSION}"
gem_meta['changelog_uri'] = 'https://raw.githubusercontent.com/utarsuno/ruuuby/master/History.txt'
gem_meta['documentation_uri'] = gem.homepage
gem.requirements = [
'mac or Linux based OS',
'C-compiler',
'(atm) building gem requires working from git code source, not just gem'
]
gem.bindir = 'bin'
# TODO: (will be included in .gem once all non-Ruuuby related tests are moved into services based directories)
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
# gem.files = Dir.chdir(File.expand_path('..', __FILE__)) do
# `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
# end
# gem.test_files = Dir.glob('spec/**/*.rb')
# gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = %w[lib ext]
gem.rdoc_options = %w[-x ext --main README.rdoc]
gem.files = ::Dir.glob('ext/**/*.{c,rb,h}') + ::Dir.glob('lib/**/*.{rb}')
gem.extensions = %w[ext/ruby_class_mods/extconf.rb]
gem.add_development_dependency(:bunny, '~> 2.17.0')
gem.add_development_dependency(:rake, '~> 13.0.1')
gem.add_development_dependency(:rspec, '~> 3.10.0')
gem.add_development_dependency(:rdoc, '~> 6.2.1')
gem.add_development_dependency(:'docker-api', '~> 2.0.0')
gem.add_development_dependency(:'rspec-benchmark', '~> 0.6.0')
gem.add_development_dependency(:'rake-compiler', '~> 1.1.1')
gem.add_development_dependency(:'tty-command', '~> 0.10.0')
gem.add_development_dependency(:finite_machine, '~> 0.14.0')
gem.add_development_dependency(:pg, '~> 1.2.3')
gem.add_development_dependency(:activerecord, '~> 6.0.3.4')
# TODO: temp solution (for local testing)
unless required_ruby_version.start_with?('3')
gem.add_development_dependency(:rugged, '~> 1.1.0')
gem.add_development_dependency(:'github-linguist', '~> 7.12')
gem.add_development_dependency(:rails, '~> 6.0.3.4')
end
gem.add_development_dependency(:rubocop, '~> 1.4.2')
gem.add_development_dependency(:keycutter, '~> 1.0.2')
gem.add_development_dependency(:open3, '~> 0.1.0')
gem.add_runtime_dependency(:'tty-command', '~> 0.10.0')
gem.add_runtime_dependency(:finite_machine, '~> 0.14.0')
end