-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdenko.gemspec
50 lines (43 loc) · 1.92 KB
/
denko.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
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/denko/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ["vickash, Austinbv"]
gem.email = ["[email protected]"]
gem.description = %q{Electronics programming in Ruby}
gem.summary = %q{Use GPIO, PWM, I2C, SPI, and more, on a connected microcontroller, or single-board-computer}
gem.homepage = 'https://github.com/denko-rb/denko'
gem.files = `git ls-files`.split($\)
gem.licenses = ['MIT']
# Copy full submodule contents into the gem when building.
# Credit:
# https://gist.github.com/mattconnolly/5875987#file-gem-with-git-submodules-gemspec
#
# get an array of submodule dirs by executing 'pwd' inside each submodule
gem_dir = File.expand_path(File.dirname(__FILE__)) + "/"
`git submodule --quiet foreach pwd`.split($\).each do |submodule_path|
# Fix submodule paths on Windows, by removing prepended / and drive letter.
if RUBY_PLATFORM.match(/mswin|mingw/i)
submodule_path = submodule_path[2..-1]
end
Dir.chdir(submodule_path) do
submodule_relative_path = submodule_path.sub gem_dir, ""
# issue git ls-files in submodule's directory and
# prepend the submodule path to create absolute file paths
`git ls-files`.split($\).each do |filename|
gem.files << "#{submodule_relative_path}/#{filename}"
end
end
end
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = "denko"
gem.require_paths = ["lib"]
gem.version = Denko::VERSION
gem.executables = ["denko"]
gem.required_ruby_version = '>=2.7.8'
gem.add_dependency 'observer', '~> 0.1.2'
gem.add_dependency 'rubyserial', '~> 0.6'
gem.add_dependency 'bcd', '~> 1'
gem.add_development_dependency 'rake', '~> 13'
gem.add_development_dependency 'minitest', '~> 5'
gem.add_development_dependency 'simplecov', '~> 0.22'
end