Browse Source

gem: refactor gemspec, exclude tests from gem, move binaries to ./exe

- based on recommendations of https://piotrmurach.com/articles/writing-a-ruby-gem-specification/
tags/v2.2.0
cn 2 years ago
parent
commit
c73c09f311
  1. 6
      CHANGELOG.md
  2. 18
      dyndnsd.gemspec
  3. 0
      exe/dyndnsd

6
CHANGELOG.md

@ -1,5 +1,11 @@
# Changelog
## 2.2.0
IMPROVEMENTS:
- Refactor gemspec based on [recommendations](https://piotrmurach.com/articles/writing-a-ruby-gem-specification/) so tests are now excluded from gem and binaries move to `./exe` directory
## 2.1.1 (March 1, 2020)
IMPROVEMENTS:

18
dyndnsd.gemspec

@ -1,7 +1,5 @@
$LOAD_PATH.push File.expand_path('lib', __dir__)
require 'dyndnsd/version'
require_relative 'lib/dyndnsd/version'
Gem::Specification.new do |s|
s.name = 'dyndnsd'
@ -9,14 +7,22 @@ Gem::Specification.new do |s|
s.summary = 'dyndnsd.rb'
s.description = 'A small, lightweight and extensible DynDNS server written with Ruby and Rack.'
s.author = 'Christian Nicolai'
s.email = 'chrnicolai@gmail.com'
s.homepage = 'https://github.com/cmur2/dyndnsd'
s.license = 'Apache-2.0'
s.metadata = {
'bug_tracker_uri' => "#{s.homepage}/issues",
'changelog_uri' => "#{s.homepage}/blob/master/CHANGELOG.md",
'source_code_uri' => s.homepage
}
s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.files = `git ls-files -z`.split("\x0").select do |f|
f.match(%r{^(init.d|lib)/})
end
s.require_paths = ['lib']
s.bindir = 'exe'
s.executables = ['dyndnsd']
s.extra_rdoc_files = Dir['README.md', 'CHANGELOG.md', 'LICENSE']
s.required_ruby_version = '>= 2.3'

0
bin/dyndnsd → exe/dyndnsd

Loading…
Cancel
Save