Move from Hoe to Bundler
This adds a gemspec and a Gemfile to the repository.
This commit is contained in:
parent
ffb2ea1323
commit
611abf1594
10
.gitignore
vendored
Normal file
10
.gitignore
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/.bundle/
|
||||||
|
/.yardoc
|
||||||
|
/_yardoc/
|
||||||
|
/coverage/
|
||||||
|
/doc/
|
||||||
|
/pkg/
|
||||||
|
/spec/reports/
|
||||||
|
/tmp/
|
||||||
|
/temp/
|
||||||
|
Gemfile.lock
|
7
Gemfile
Normal file
7
Gemfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
# Specify your gem's dependencies in pg_ldap_sync.gemspec
|
||||||
|
gemspec
|
||||||
|
|
||||||
|
gem "pg", require: false
|
||||||
|
gem "postgres-pr", require: false
|
21
LICENSE.txt
Normal file
21
LICENSE.txt
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2018 Lars Kanis
|
||||||
|
|
||||||
|
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.
|
25
README.rdoc
25
README.rdoc
@ -85,27 +85,6 @@ commands are in the <tt>PATH</tt>. Then:
|
|||||||
based on individual attributes in LDAP (expiration date etc.)
|
based on individual attributes in LDAP (expiration date etc.)
|
||||||
|
|
||||||
|
|
||||||
== LICENSE:
|
== License
|
||||||
|
|
||||||
(The MIT License)
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
||||||
|
|
||||||
Copyright (c) 2011 FIX
|
|
||||||
|
|
||||||
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.
|
|
||||||
|
21
Rakefile
21
Rakefile
@ -1,18 +1,11 @@
|
|||||||
# -*- ruby -*-
|
# -*- ruby -*-
|
||||||
|
require "bundler/gem_tasks"
|
||||||
|
require "rake/testtask"
|
||||||
|
|
||||||
require 'rubygems'
|
Rake::TestTask.new(:test) do |t|
|
||||||
require 'hoe'
|
t.libs << "test"
|
||||||
|
t.libs << "lib"
|
||||||
Hoe.spec 'pg-ldap-sync' do
|
t.test_files = FileList["test/**/test_*.rb"]
|
||||||
developer('Lars Kanis', 'kanis@comcard.de')
|
|
||||||
|
|
||||||
extra_deps << ['net-ldap', '>= 0.2']
|
|
||||||
extra_deps << ['kwalify', '>= 0.7']
|
|
||||||
extra_dev_deps << ['ruby-ldapserver', '>= 0.3']
|
|
||||||
|
|
||||||
self.readme_file = 'README.rdoc'
|
|
||||||
spec_extras[:rdoc_options] = ['--main', readme_file, "--charset=UTF-8"]
|
|
||||||
self.extra_rdoc_files << self.readme_file
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# vim: syntax=ruby
|
task :gem => :build
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
require 'rubygems'
|
require 'pg_ldap_sync'
|
||||||
require 'pg_ldap_sync/application'
|
|
||||||
|
|
||||||
PgLdapSync::Application.run(ARGV)
|
PgLdapSync::Application.run(ARGV)
|
@ -1,3 +1,2 @@
|
|||||||
module PgLdapSync
|
require "pg_ldap_sync/application"
|
||||||
VERSION = '0.1.1'
|
require "pg_ldap_sync/version"
|
||||||
end
|
|
||||||
|
3
lib/pg_ldap_sync/version.rb
Normal file
3
lib/pg_ldap_sync/version.rb
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
module PgLdapSync
|
||||||
|
VERSION = "0.2.0"
|
||||||
|
end
|
28
pg-ldap-sync.gemspec
Normal file
28
pg-ldap-sync.gemspec
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
lib = File.expand_path("../lib", __FILE__)
|
||||||
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||||
|
require "pg_ldap_sync/version"
|
||||||
|
|
||||||
|
Gem::Specification.new do |spec|
|
||||||
|
spec.name = "pg-ldap-sync"
|
||||||
|
spec.version = PgLdapSync::VERSION
|
||||||
|
spec.authors = ["Lars Kanis"]
|
||||||
|
spec.email = ["lars@greiz-reinsdorf.de"]
|
||||||
|
|
||||||
|
spec.summary = %q{Use LDAP permissions in PostgreSQL}
|
||||||
|
spec.homepage = "https://github.com/larskanis/pg-ldap-sync"
|
||||||
|
spec.license = "MIT"
|
||||||
|
|
||||||
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
||||||
|
f.match(%r{^(test|spec|features)/})
|
||||||
|
end
|
||||||
|
spec.bindir = "exe"
|
||||||
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
||||||
|
spec.require_paths = ["lib"]
|
||||||
|
|
||||||
|
spec.add_runtime_dependency "net-ldap", "~> 0.2"
|
||||||
|
spec.add_runtime_dependency "kwalify", "~> 0.7"
|
||||||
|
spec.add_development_dependency "ruby-ldapserver", "~> 0.3"
|
||||||
|
spec.add_development_dependency "minitest", "~> 5.0"
|
||||||
|
spec.add_development_dependency "bundler", "~> 1.16"
|
||||||
|
spec.add_development_dependency "rake", "~> 10.0"
|
||||||
|
end
|
@ -1,12 +1,10 @@
|
|||||||
#!/usr/bin/env ruby
|
require "minitest/autorun"
|
||||||
|
|
||||||
require "test/unit"
|
|
||||||
require "pg_ldap_sync/application"
|
require "pg_ldap_sync/application"
|
||||||
require 'yaml'
|
require 'yaml'
|
||||||
require 'test/ldap_server'
|
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
require_relative 'ldap_server'
|
||||||
|
|
||||||
class TestPgLdapSync < Test::Unit::TestCase
|
class TestPgLdapSync < Minitest::Test
|
||||||
def log_and_run( *cmd )
|
def log_and_run( *cmd )
|
||||||
puts cmd.join(' ')
|
puts cmd.join(' ')
|
||||||
system( *cmd )
|
system( *cmd )
|
||||||
|
Reference in New Issue
Block a user