forked from BallAerospace/COSMOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cosmos.gemspec
122 lines (109 loc) · 5.03 KB
/
cosmos.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# encoding: ascii-8bit
# Copyright 2017 Ball Aerospace & Technologies Corp.
# All Rights Reserved.
#
# This program is free software; you can modify and/or redistribute it
# under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 3 with
# attribution addendums as found in the LICENSE.txt
require 'rbconfig'
# Create the overall gemspec
spec = Gem::Specification.new do |s|
s.name = 'cosmos'
s.summary = 'Ball Aerospace COSMOS'
s.description = <<-EOF
Ball Aerospace COSMOS provides all the functionality needed to send
commands to and receive data from one or more embedded systems
referred to as "targets". Out of the box functionality includes:
Telemetry Display, Telemetry Graphing, Operational and Test Scripting,
Command Sending, Logging, Log File Playback, Table Management, and more.
EOF
s.authors = ['Ryan Melton', 'Jason Thomas']
s.email = ['[email protected]', '[email protected]']
s.homepage = 'https://github.com/BallAerospace/COSMOS'
if RUBY_ENGINE == 'ruby'
s.platform = Gem::Platform::RUBY
elsif RUBY_ENGINE == 'jruby'
s.platform = "java"
else
s.platform = Gem::Platform::CURRENT
end
if ENV['VERSION']
s.version = ENV['VERSION'].dup
else
s.version = '0.0.0'
end
s.license = 'GPL-3.0'
# Executables
s.executables << 'cosmos'
s.executables << 'rubysloc'
s.executables << 'cstol_converter'
s.executables << 'xtce_converter'
s.executables << 'dart_import'
s.executables << 'dart_util'
if RUBY_ENGINE == 'ruby'
# Ruby C Extensions - MRI Only
s.extensions << 'ext/cosmos/ext/array/extconf.rb'
s.extensions << 'ext/cosmos/ext/buffered_file/extconf.rb'
s.extensions << 'ext/cosmos/ext/config_parser/extconf.rb'
s.extensions << 'ext/cosmos/ext/cosmos_io/extconf.rb'
s.extensions << 'ext/cosmos/ext/crc/extconf.rb'
s.extensions << 'ext/cosmos/ext/line_graph/extconf.rb'
s.extensions << 'ext/cosmos/ext/low_fragmentation_array/extconf.rb'
s.extensions << 'ext/cosmos/ext/packet/extconf.rb'
s.extensions << 'ext/cosmos/ext/platform/extconf.rb'
s.extensions << 'ext/cosmos/ext/polynomial_conversion/extconf.rb'
s.extensions << 'ext/cosmos/ext/string/extconf.rb'
s.extensions << 'ext/cosmos/ext/tabbed_plots_config/extconf.rb'
s.extensions << 'ext/cosmos/ext/telemetry/extconf.rb'
s.extensions << 'ext/mkrf_conf.rb'
end
# Files are defined in Manifest.txt
s.files =
if test ?f, 'Manifest.txt'
files = File.readlines('Manifest.txt').map {|fn| fn.chomp.strip}
files.delete ''
files
else [] end
s.has_rdoc = true
s.required_ruby_version = '~> 2.2'
# Runtime Dependencies
s.add_runtime_dependency 'bundler', '~> 1.3'
s.add_runtime_dependency 'rdoc', '>= 4' # qtbindings doesn't parse in 6.0.0, fixed in 6.0.1
s.add_runtime_dependency 'rake', '>= 10.0' # 10.0 released Nov 12, 2012
s.add_runtime_dependency 'json', '>= 1.5', '< 3' # 2.0+ works with COSMOS
s.add_runtime_dependency 'pry', '~> 0.9'
s.add_runtime_dependency 'pry-doc', '~> 0.5'
s.add_runtime_dependency 'yard', '~> 0.9.11'
s.add_runtime_dependency 'uuidtools', '~> 2.1'
s.add_runtime_dependency 'snmp', '~> 1.0'
s.add_runtime_dependency 'rubyzip', '~> 1.2'
s.add_runtime_dependency 'nokogiri', '~> 1.6'
s.add_runtime_dependency 'opengl-bindings', '~> 1.6' if RUBY_ENGINE == 'ruby' # MRI Only
s.add_runtime_dependency 'qtbindings', '~> 4.8.6', '>= 4.8.6.2' if RUBY_ENGINE == 'ruby' # MRI Only
s.add_runtime_dependency 'puma', '~> 3.10'
s.add_runtime_dependency 'rack', '~> 2.0'
s.add_runtime_dependency 'httpclient', '~> 2.8'
# From http://www.rubydoc.info/gems/puma#Known_Bugs :
# "For MRI versions 2.2.7, 2.2.8, 2.2.9, 2.2.10, 2.3.4 and 2.4.1, you may see stream closed in
# another thread (IOError). It may be caused by a Ruby bug. It can be
# fixed with the gem https://rubygems.org/gems/stopgap_13632"
# This is commented out because the gemspec is only evaluated at gem build time
# s.add_runtime_dependency 'stopgap_13632', '~> 1.2.0' if RUBY_ENGINE == 'ruby' and %w(2.2.7 2.2.8 2.3.4 2.4.1).include? RUBY_VERSION # MRI Only
# Development Dependencies
s.add_development_dependency 'diff-lcs', '~> 1.3' if RUBY_ENGINE == 'ruby' # Get latest for MRI
s.add_development_dependency 'rspec', '~> 3.5'
s.add_development_dependency 'flog', '~> 4.0'
s.add_development_dependency 'flay', '~> 2.0'
s.add_development_dependency 'reek', '~> 4.0'
s.add_development_dependency 'roodi', '~> 4.0'
s.add_development_dependency 'guard', '~> 2.0'
s.add_development_dependency 'listen', '~> 3.0'
s.add_development_dependency 'guard-bundler', '~> 2.0'
s.add_development_dependency 'guard-rspec', '~> 4.0'
s.add_development_dependency 'simplecov', '~> 0.15'
s.add_development_dependency 'codecov', '~> 0.1'
s.add_development_dependency 'benchmark-ips', '~> 2.0'
s.add_development_dependency 'ruby-prof', '~> 0.16' if RUBY_ENGINE == 'ruby' # MRI Only
s.post_install_message = "Thanks for installing Ball Aerospace COSMOS!\nStart your first project with: cosmos demo demo\n"
end