activesambaldap 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/NEWS.en CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  = NEWS.en
4
4
 
5
- $Id: NEWS.en 54 2006-11-17 07:49:27Z kou $
5
+ $Id: NEWS.en 70 2007-01-29 03:45:14Z kou $
6
+
7
+ == 0.0.2: 2006-01-29
8
+
9
+ * Supported ActiveSupport 1.4.0.
10
+ * Fixed typo of Ruby/ActiveLDAP's RubyGems name.
6
11
 
7
12
  == 0.0.1: 2006-11-17
8
13
 
data/NEWS.ja CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  = NEWS.ja
4
4
 
5
- $Id: NEWS.ja 54 2006-11-17 07:49:27Z kou $
5
+ $Id: NEWS.ja 70 2007-01-29 03:45:14Z kou $
6
+
7
+ == 0.0.2: 2006-01-29
8
+
9
+ * ActiveSupport 1.4.0のサポート.
10
+ * Ruby/ActiveLDAPのRubyGems名を修正.
6
11
 
7
12
  == 0.0.1: 2006-11-17
8
13
 
data/README.en CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  = README.en
4
4
 
5
- $Id: README.en 56 2006-11-17 08:40:26Z kou $
5
+ $Id: README.en 63 2006-11-21 13:26:46Z kou $
6
6
 
7
7
  == Name
8
8
 
@@ -35,7 +35,7 @@ asl-devel@rubyforge.org
35
35
 
36
36
  == Dependency libraries
37
37
 
38
- * ActiveLdap >= 0.8.0: not released
38
+ * ActiveLdap >= 0.8.0
39
39
 
40
40
  == Usage
41
41
 
data/README.ja CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  = README.ja
4
4
 
5
- $Id: README.ja 56 2006-11-17 08:40:26Z kou $
5
+ $Id: README.ja 63 2006-11-21 13:26:46Z kou $
6
6
 
7
7
  == 名前
8
8
 
@@ -32,7 +32,7 @@ asl-devel-ja@rubyforge.org
32
32
 
33
33
  == 依存ライブラリ
34
34
 
35
- * ActiveLdap >= 0.8.0: 未リリース
35
+ * ActiveLdap >= 0.8.0
36
36
 
37
37
  == 使用法
38
38
 
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ manifest_contents = []
17
17
  base_dir_included_components = %w(README.ja README.en NEWS.ja NEWS.en setup.rb
18
18
  Rakefile)
19
19
  excluded_components = %w(.svn .test-result .config Manifest.txt config.yml doc
20
- pkg setup.rb post-setup.rb html config.yaml)
20
+ pkg html config.yaml)
21
21
  excluded_suffixes = %w(.help)
22
22
  Find.find(base_dir) do |target|
23
23
  target = truncate_base_dir[target]
@@ -93,3 +93,11 @@ project.bin_files.each do |bin|
93
93
  FileUtils.rm_f(bin_help)
94
94
  end
95
95
  end
96
+
97
+ desc 'Tag the repository for release.'
98
+ task :tag do
99
+ version = ActiveSambaLdap::VERSION
100
+ message = "Released ActiveSambaLdap #{version}!"
101
+ base = "svn+ssh://#{ENV['USER']}@rubyforge.org/var/svn/asl/"
102
+ run("svn copy -m #{message.dump} #{base}/trunk #{base}/tags/#{version}")
103
+ end
@@ -2,6 +2,8 @@ require 'time'
2
2
  require 'fileutils'
3
3
  require 'English'
4
4
 
5
+ require 'active_samba_ldap/base'
6
+
5
7
  module ActiveSambaLdap
6
8
  module Account
7
9
  NAME_RE_SRC = "(?!\\d)[\\w @_\\-\\.]+"
@@ -1,3 +1,5 @@
1
+ require 'active_samba_ldap/reloadable'
2
+
1
3
  module ActiveSambaLdap
2
4
  class Error < StandardError
3
5
  end
@@ -102,7 +104,7 @@ module ActiveSambaLdap
102
104
  end
103
105
 
104
106
  class Base < ActiveLdap::Base
105
- include Reloadable::Subclasses
107
+ include Reloadable
106
108
 
107
109
  class << self
108
110
  def restart_nscd
@@ -3,7 +3,7 @@ require 'active_samba_ldap/computer_account'
3
3
 
4
4
  module ActiveSambaLdap
5
5
  class Computer < Base
6
- include Reloadable::Subclasses
6
+ include Reloadable
7
7
 
8
8
  include Entry
9
9
 
@@ -0,0 +1,2 @@
1
+ /tmp/asl/etc/activesambaldap/config.yaml
2
+ /tmp/asl/etc/activesambaldap/bind.yaml
@@ -1,6 +1,8 @@
1
+ require 'active_samba_ldap/base'
2
+
1
3
  module ActiveSambaLdap
2
4
  class Dc < Base
3
- include Reloadable::Subclasses
5
+ include Reloadable
4
6
 
5
7
  class << self
6
8
  def ldap_mapping(options={})
@@ -4,7 +4,7 @@ require 'active_samba_ldap/entry'
4
4
 
5
5
  module ActiveSambaLdap
6
6
  class Group < Base
7
- include Reloadable::Subclasses
7
+ include Reloadable
8
8
 
9
9
  include Entry
10
10
 
@@ -1,6 +1,8 @@
1
+ require 'active_samba_ldap/base'
2
+
1
3
  module ActiveSambaLdap
2
4
  class Idmap < Base
3
- include Reloadable::Subclasses
5
+ include Reloadable
4
6
 
5
7
  class << self
6
8
  def ldap_mapping(options={})
@@ -1,6 +1,8 @@
1
+ require 'active_samba_ldap/base'
2
+
1
3
  module ActiveSambaLdap
2
4
  class Ou < Base
3
- include Reloadable::Subclasses
5
+ include Reloadable
4
6
 
5
7
  class << self
6
8
  def ldap_mapping(options={})
@@ -0,0 +1,13 @@
1
+ module ActiveSambaLdap
2
+ module Reloadable
3
+ def self.included(base)
4
+ base.class_eval do
5
+ if ::Reloadable.const_defined?(:Deprecated)
6
+ include ::Reloadable::Deprecated
7
+ else
8
+ include ::Reloadable::Subclasses
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -4,7 +4,7 @@ require 'active_samba_ldap/samba_account'
4
4
 
5
5
  module ActiveSambaLdap
6
6
  class SambaComputer < Base
7
- include Reloadable::Subclasses
7
+ include Reloadable
8
8
 
9
9
  include Entry
10
10
 
@@ -2,7 +2,7 @@ require 'active_samba_ldap/group'
2
2
 
3
3
  module ActiveSambaLdap
4
4
  class SambaGroup < Group
5
- include Reloadable::Subclasses
5
+ include Reloadable
6
6
 
7
7
  # from librpc/ndr/security.h in Samba
8
8
  SID_BUILTIN = "S-1-5-32"
@@ -5,7 +5,7 @@ require 'active_samba_ldap/samba_account'
5
5
 
6
6
  module ActiveSambaLdap
7
7
  class SambaUser < Base
8
- include Reloadable::Subclasses
8
+ include Reloadable
9
9
 
10
10
  include Entry
11
11
 
@@ -1,6 +1,8 @@
1
+ require 'active_samba_ldap/base'
2
+
1
3
  module ActiveSambaLdap
2
4
  class UnixIdPool < Base
3
- include Reloadable::Subclasses
5
+ include Reloadable
4
6
 
5
7
  class << self
6
8
  def ldap_mapping(options={})
@@ -4,7 +4,7 @@ require 'active_samba_ldap/user_account'
4
4
 
5
5
  module ActiveSambaLdap
6
6
  class User < Base
7
- include Reloadable::Subclasses
7
+ include Reloadable
8
8
 
9
9
  include Entry
10
10
 
@@ -1,3 +1,3 @@
1
1
  module ActiveSambaLdap
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -8,7 +8,11 @@ require_gem_if_need = Proc.new do |library_name, gem_name, *options|
8
8
  end
9
9
  end
10
10
 
11
- require_gem_if_need.call("active_ldap", "activeldap", ">= 0.8.0")
11
+ require_gem_if_need.call("active_ldap", "ruby-activeldap", ">= 0.8.0")
12
+
13
+ if Dependencies.respond_to?(:load_paths)
14
+ Dependencies.load_paths << File.expand_path(File.dirname(__FILE__))
15
+ end
12
16
 
13
17
  require 'active_samba_ldap/version'
14
18
  require 'active_samba_ldap/base'