gem structure

pull/2/merge
Anton Smirnov 2014-10-30 01:50:19 +03:00
parent fff5eb9c45
commit 5f1ed0499a
7 changed files with 96 additions and 2 deletions

27
.gitignore vendored
View File

@ -1,4 +1,27 @@
*.o
*.gem
*.rbc
.bundle
.config
.yardoc
Gemfile.lock
InstalledFiles
_yardoc
coverage
doc/
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
*.bundle
*.so
*.log
*.o
*.a
mkmf.log
Makefile
*.iml
*.ipr
*.iws
.rakeTasks

4
Gemfile Normal file
View File

@ -0,0 +1,4 @@
source 'https://rubygems.org'
# Specify your gem's dependencies in journald-logger.gemspec
gemspec

22
LICENSE.txt Normal file
View File

@ -0,0 +1,22 @@
Copyright (c) 2014 Anton Smirnov
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

9
Rakefile Normal file
View File

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

25
journald-logger.gemspec Normal file
View File

@ -0,0 +1,25 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'journald/logger/version'
Gem::Specification.new do |spec|
spec.name = 'journald-logger'
spec.version = Journald::Logger::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.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.add_development_dependency 'bundler', '~> 1.6'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rake-compiler'
end

6
lib/journald/logger.rb Normal file
View File

@ -0,0 +1,6 @@
require "journald/logger/version"
module Journald
module Logger
end
end

View File

@ -0,0 +1,5 @@
module Journald
module Logger
VERSION = '0.0.1'
end
end