From a349eb3222c4b6e5804b60bd3c012eb1c36a1c3a Mon Sep 17 00:00:00 2001 From: Lukas Zapletal Date: Thu, 11 Oct 2018 15:39:27 +0200 Subject: [PATCH] Update URL in gemspec and travis --- .travis.yml | 20 ++++++++++++-------- README.md | 7 +++++-- ext/journald_native/extconf.rb | 5 +++++ journald-native.gemspec | 10 ++-------- 4 files changed, 24 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9cdc3cf..43ec96d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,17 @@ -# test with minimum and current and previous version of ruby; try default version of rbx - +# test compilation and then run tests with dummy mode turned on language: ruby -os: - - xenial # we cannot actually test until xenial is added to Travis +before_install: + - sudo apt-get install -y libsystemd-journal-dev +install: "bundle install" rvm: - - '1.9.2' - - '2.2.4' - - '2.3.0' - - rbx + - 1.9.2 + - 2.0.0 + - 2.1.0 + - 2.2.0 + - 2.3.0 + - 2.4.0 script: - bundle exec rake compile + - bundle exec rake clean + - bundle exec rake compile -- --with-dummy - bundle exec rspec diff --git a/README.md b/README.md index 82c5a02..ae12552 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # journald-native -[![Gem](https://img.shields.io/gem/v/journald-native.svg)](https://rubygems.org/gems/journald-native) -[![License](https://img.shields.io/github/license/sandfoxme/journald-native.svg)](https://www.gnu.org/licenses/lgpl-2.1.txt) +[![Build Status](https://travis-ci.org/theforeman/journald-native.svg?branch=master)](https://travis-ci.org/theforeman/journald-native) A systemd-journal native logging lib wrapper. [See sd-journal help for more info](http://www.freedesktop.org/software/systemd/man/sd_journal_print.html) @@ -80,6 +79,10 @@ They will probably throw a deprecation warning in 1.1 and be removed in 2.0 shou **Please note that `send` method is overridden. This is a bad practice and a reason why longer names were introduced later** +### Authors + +This library was written by Anton Smirnov and currently maintained by https://www.theforeman.org developers. + ### License Copyright (c) 2014 Anton Smirnov diff --git a/ext/journald_native/extconf.rb b/ext/journald_native/extconf.rb index c917507..fb550d2 100644 --- a/ext/journald_native/extconf.rb +++ b/ext/journald_native/extconf.rb @@ -47,5 +47,10 @@ unless have_funcs have_funcs end +if with_config("dummy") + $defs.push "-DJOURNALD_NATIVE_COMPILE_DUMMY" + $defs.push "-DJOURNALD_NATIVE_SD_JOURNAL_DUMMY" +end + create_header create_makefile('journald_native') diff --git a/journald-native.gemspec b/journald-native.gemspec index 9fbf4b1..c0af90e 100644 --- a/journald-native.gemspec +++ b/journald-native.gemspec @@ -9,16 +9,10 @@ Gem::Specification.new do |spec| spec.authors = ['Anton Smirnov'] spec.email = ['sandfox@sandfox.me'] spec.summary = 'systemd-journal logging native lib wrapper' - spec.homepage = 'https://github.com/sandfoxme/journald-native' + spec.homepage = 'https://github.com/theforeman/journald-native' spec.license = 'LGPL-2.1+' - spec.files = - # Get all files from git - # Do not include full text of the license (there is a link), - # dot files, tests - `git ls-files -z` - .split("\x0") - .reject{ |file| %r{^(COPYING|\.|spec/)}.match? file } + spec.files = `git ls-files -- {lib,ext}/* *.md`.split("\n") spec.require_paths = ['lib'] spec.extensions << 'ext/journald_native/extconf.rb'