mirror of
https://github.com/cmur2/openvpn-status-web.git
synced 2024-12-22 22:54:24 +01:00
gem: refactor gemspec, exclude tests from gem, move binaries to ./exe
- based on recommendations of https://piotrmurach.com/articles/writing-a-ruby-gem-specification/
This commit is contained in:
parent
140c60c753
commit
bf3ba8f7cd
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
require 'openvpn-status-web'
|
require 'openvpn-status-web'
|
||||||
|
|
@ -1,7 +1,5 @@
|
|||||||
|
|
||||||
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
require_relative 'lib/openvpn-status-web/version'
|
||||||
|
|
||||||
require 'openvpn-status-web/version'
|
|
||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = 'openvpn-status-web'
|
s.name = 'openvpn-status-web'
|
||||||
@ -9,14 +7,21 @@ Gem::Specification.new do |s|
|
|||||||
s.summary = 'openvpn-status-web'
|
s.summary = 'openvpn-status-web'
|
||||||
s.description = 'Small Rack (Ruby) application serving OpenVPN status file.'
|
s.description = 'Small Rack (Ruby) application serving OpenVPN status file.'
|
||||||
s.author = 'Christian Nicolai'
|
s.author = 'Christian Nicolai'
|
||||||
s.email = 'chrnicolai@gmail.com'
|
|
||||||
s.homepage = 'https://github.com/cmur2/openvpn-status-web'
|
s.homepage = 'https://github.com/cmur2/openvpn-status-web'
|
||||||
s.license = 'Apache-2.0'
|
s.license = 'Apache-2.0'
|
||||||
|
s.metadata = {
|
||||||
|
'bug_tracker_uri' => "#{s.homepage}/issues",
|
||||||
|
'source_code_uri' => s.homepage
|
||||||
|
}
|
||||||
|
|
||||||
s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
s.files = `git ls-files -z`.split("\x0").select do |f|
|
||||||
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
f.match(%r{^(init.d|lib)/})
|
||||||
|
end
|
||||||
s.require_paths = ['lib']
|
s.require_paths = ['lib']
|
||||||
|
s.bindir = 'exe'
|
||||||
s.executables = ['openvpn-status-web']
|
s.executables = ['openvpn-status-web']
|
||||||
|
s.extra_rdoc_files = Dir['README.md', 'LICENSE']
|
||||||
|
|
||||||
s.required_ruby_version = '>= 2.3'
|
s.required_ruby_version = '>= 2.3'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user