separating native lib and logger - rename gem to journald-native

pull/2/merge
Anton Smirnov 8 years ago
parent ee2ea33424
commit 043395d2fd
  1. 4
      Rakefile
  2. 2
      ext/journald_native/extconf.rb
  3. 4
      ext/journald_native/journald_native.c
  4. 14
      journald-native.gemspec
  5. 7
      lib/journald/logger.rb
  6. 7
      lib/journald/native.rb
  7. 2
      lib/journald/native/version.rb

@ -1,8 +1,8 @@
require 'bundler/gem_tasks'
require 'rake/extensiontask'
spec = Gem::Specification.load('journald-logger.gemspec')
Rake::ExtensionTask.new('journald_logger', spec)
spec = Gem::Specification.load('journald-native.gemspec')
Rake::ExtensionTask.new('journald_native', spec)
task :build => :compile do
# just add prerequisite

@ -17,4 +17,4 @@ abort 'systemd/sd-journal.h is missing. please install systemd-journal' unless f
abort "#{func}() is missing. systemd-journal is not usable" unless find_library('systemd-journal', func)
end
create_makefile('journald_logger')
create_makefile('journald_native')

@ -4,7 +4,7 @@
#include <ruby.h>
#include <systemd/sd-journal.h>
void Init_journald_logger();
void Init_journald_native();
/* initializers */
static void jdl_init_modules();
@ -23,7 +23,7 @@ static char * jdl_alloc_safe_string(VALUE string);
static VALUE mJournald;
static VALUE mNative;
void Init_journald_logger()
void Init_journald_native()
{
jdl_init_modules();
jdl_init_constants();

@ -1,23 +1,23 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'journald/logger/version'
require 'journald/native/version'
Gem::Specification.new do |spec|
spec.name = 'journald-logger'
spec.version = Journald::Logger::VERSION
spec.name = 'journald-native'
spec.version = Journald::Native::VERSION
spec.authors = ['Anton Smirnov']
spec.email = ['sandfox@sandfox.im']
spec.summary = %q{systemd-journal native logger}
# spec.description = %q{TODO: Write a longer description. Optional.}
spec.homepage = 'https://github.com/sandfox-im/journald-logger'
spec.summary = %q{systemd-journal logging native lib wrapper}
# spec.description = %q{Write a longer description. Optional.}
spec.homepage = 'https://github.com/sandfox-im/journald-native'
spec.license = 'MIT'
spec.files = `git ls-files -z`.split("\x0")
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']
spec.extensions << 'ext/journald_logger/extconf.rb'
spec.extensions << 'ext/journald_native/extconf.rb'
spec.add_development_dependency 'bundler', '~> 1.6'
spec.add_development_dependency 'rake'

@ -1,7 +0,0 @@
require 'journald/logger/version'
require_relative '../journald_logger'
module Journald
module Logger
end
end

@ -0,0 +1,7 @@
require 'journald/native/version'
require_relative '../journald_native'
module Journald
module Native
end
end

@ -1,5 +1,5 @@
module Journald
module Logger
module Native
VERSION = '0.0.1'
end
end
Loading…
Cancel
Save