| 1 |
require 'rubygems' |
| 2 |
|
| 3 |
Gem::Specification.new do |spec| |
| 4 |
spec.name = 'sys-uname' |
| 5 |
spec.version = '1.5.1' |
| 6 |
spec.author = 'Daniel J. Berger' |
| 7 |
spec.email = '[email protected]' |
| 8 |
spec.homepage = 'http://github.com/djberg96/sys-uname' |
| 9 |
spec.summary = 'An interface for returning uname (platform) information' |
| 10 |
spec.license = 'Apache-2.0' |
| 11 |
spec.files = Dir['**/*'].reject{ |f| f.include?('git') } |
| 12 |
spec.test_files = Dir['spec/*_spec.rb'] |
| 13 |
spec.cert_chain = ['certs/djberg96_pub.pem'] |
| 14 |
|
| 15 |
spec.extra_rdoc_files = Dir['doc/*.rdoc'] |
| 16 |
|
| 17 |
spec.add_dependency('ffi', '~> 1.1') |
| •18 |
spec.add_dependency('memoist') |
| 19 |
|
| 20 |
# Yes, this means on every release, we'll have to release two versions |
| 21 |
# of the gem because it has different dependencies. Hope there's a Windows VM handy! |
| 22 |
if Gem.win_platform? |
| 23 |
spec.platform = Gem::Platform.new(['universal', 'mingw32']) |
| 24 |
spec.add_dependency('win32ole') |
| 25 |
end |
| 26 |
|
| 27 |
spec.add_development_dependency('rspec', '~> 3.9') |
| 28 |
spec.add_development_dependency('rake') |
| 29 |
spec.add_development_dependency('rubocop') |
| 30 |
spec.add_development_dependency('rubocop-rspec') |
| 31 |
|
| 32 |
spec.metadata = { |
| 33 |
'homepage_uri' => 'https://github.com/djberg96/sys-uname', |
| 34 |
'bug_tracker_uri' => 'https://github.com/djberg96/sys-uname/issues', |
| 35 |
'changelog_uri' => 'https://github.com/djberg96/sys-uname/blob/main/CHANGES.md', |
| 36 |
'documentation_uri' => 'https://github.com/djberg96/sys-uname/wiki', |
| 37 |
'source_code_uri' => 'https://github.com/djberg96/sys-uname', |
| 38 |
'wiki_uri' => 'https://github.com/djberg96/sys-uname/wiki', |
| 39 |
'rubygems_mfa_required' => 'true', |
| 40 |
'github_repo' => 'https://github.com/djberg96/sys-uname', |
| 41 |
'funding_uri' => 'https://github.com/sponsors/djberg96' |
| 42 |
} |
| 43 |
|
| 44 |
spec.description = <<-EOF |
| 45 |
The sys-uname library provides an interface for gathering information |
| 46 |
about your current platform. The library is named after the Unix 'uname' |
| 47 |
command but also works on MS Windows. Available information includes |
| 48 |
OS name, OS version, system name and so on. Additional information is |
| 49 |
available for certain platforms. |
| 50 |
EOF |
| 51 |
end |