[asl-commit] ActiveSambaLdap r12:

kou at cozmixng.org kou at cozmixng.org
Fri Aug 3 22:31:37 EDT 2007


retro	2007-08-04 11:31:35 +0900 (Sat, 04 Aug 2007)

  New Revision: 12

  Added files:
    trunk/NEWS.en
    trunk/NEWS.ja
    trunk/README.ja
  Copied files:
    trunk/README.en
      (from rev 10, trunk/README)
  Removed files:
    trunk/README
  Modified files:
    trunk/Rakefile

  Log:


  Modified: trunk/Rakefile (+18 -11)
===================================================================
--- trunk/Rakefile	2006-11-13 15:22:41 +09:00 (rev 11)
+++ trunk/Rakefile	2007-08-04 11:31:35 +09:00 (rev 12)
@@ -2,13 +2,14 @@
 
 require 'find'
 
-base_dir = File.dirname(__FILE__)
+base_dir = File.expand_path(File.dirname(__FILE__))
 truncate_base_dir = Proc.new do |x|
   x.gsub(/^#{Regexp.escape(base_dir + File::SEPARATOR)}/, '')
 end
 
-require "#{base_dir}/lib/active_samba_ldap"
-require_gem_if_need("hoe")
+_binding = binding
+eval(File.read("#{base_dir}/lib/active_samba_ldap.rb"), _binding)
+eval('require_gem_if_need.call("hoe")', _binding)
 
 manifest = File.join(base_dir, "Manifest.txt")
 manifest_contents = %w(README Rakefile)
@@ -21,16 +22,22 @@
   f.puts manifest_contents.sort.join("\n")
 end
 
-Hoe.new("activesambaldap", ActiveSambaLdap::VERSION) do |p|
+def cleanup_white_space(entry)
+  entry.gsub(/(\A\n+|\n+\z)/, '') + "\n"
+end
+
+Hoe.new("AactiveSambaLdap", ActiveSambaLdap::VERSION) do |p|
+  p.rubyforge_name = "asl"
   p.summary = "Samba+LDAP administration tools"
   p.extra_deps << ["activeldap", ">= 0.8.0"]
   p.email = "kou at cozmixng.org"
   p.author = "Kouhei Sutou"
-  p.url = "http://rubyforge/activesambaldap"
-  p.summary = "ActiveSambaLdap is a library and a management tool " \
-              "for Samba + LDAP environment."
-  p.description = "ActiveSambaLdap provides API to manipulate LDAP " \
-                  "data for Samba with ActiveRecord like API.\n" \
-                  "ActiveSambaLdap provides also smbldap-tools like " \
-                  "command-line tools."
+  p.url = "http://asl.rubyforge.org/"
+
+  news_of_current_release = File.read("NEWS.en").split(/^==\s.*$/)[1]
+  p.changes = cleanup_white_space(news_of_current_release)
+
+  entries = File.read("README.en").split(/^==\s(.*)$/)
+  whats_this = cleanup_white_space(entries[entries.index("What\'s this?") + 1])
+  p.summary, p.description, = whats_this.split(/\n\n+/, 3)
 end

  Property changed: trunk/NEWS.ja (+0 -0)
___________________________________________________________________
Name: svn:keywords
   + Id

  Added: trunk/NEWS.ja (+10 -0)
===================================================================
--- trunk/NEWS.ja	2006-11-13 15:22:41 +09:00 (rev 11)
+++ trunk/NEWS.ja	2007-08-04 11:31:35 +09:00 (rev 12)
@@ -0,0 +1,10 @@
+# -*- rd -*-
+
+= NEWS.ja
+
+$Id$
+
+== 0.0.1: 2006-11-15
+
+  * 最初のリリース.
+

  Copied: trunk/README.en (+37 -0)
===================================================================
--- trunk/README	2006-11-12 22:37:38 +09:00 (rev 10)
+++ trunk/README.en	2007-08-04 11:31:35 +09:00 (rev 12)
@@ -0,0 +1,37 @@
+# -*- rd -*-
+
+= README.en
+
+$Id$
+
+== Name
+
+ActiveSambaLdap
+
+== What's this?
+
+ActiveSambaLdap is a library and a management tool for Samba
++ LDAP environment.
+
+ActiveSambaLdap provides object-oriented API to manipulate
+LDAP entry for Samba. ActiveSambaLdap also provides
+command-line tools to replace smbldap-tools written by Perl.
+
+
+== Author
+
+Kouhei Sutou <kou at cozmixng.org>
+
+== Licence
+
+Ruby's.
+
+== Mailing list
+
+asl-devel at rubyforge.org
+
+== Usage
+
+...
+
+== Thanks

  Property changed: trunk/README.en (+0 -0)
___________________________________________________________________
Name: svn:keywords
   + Id

  Property changed: trunk/README.ja (+0 -0)
___________________________________________________________________
Name: svn:keywords
   + Id

  Added: trunk/README.ja (+33 -0)
===================================================================
--- trunk/README.ja	2006-11-13 15:22:41 +09:00 (rev 11)
+++ trunk/README.ja	2007-08-04 11:31:35 +09:00 (rev 12)
@@ -0,0 +1,33 @@
+# -*- rd -*-
+
+= README.ja
+
+$Id$
+
+== 名前
+
+ActiveSambaLdap
+
+== なにこれ?
+
+ActiveSambaLdapはSamba用LDAPエントリを管理するための
+ActiveRecord風なライブラリです.また,smbldap-toolsのような
+管理用コマンドラインツールも提供します.
+
+== 作者
+
+Kouhei Sutou <kou at cozmixng.org>
+
+== ライセンス
+
+Ruby's.
+
+== メーリングリスト
+
+asl-devel at rubyforge.org
+
+== 使用法
+
+...
+
+== 感謝

  Deleted: trunk/README (+0 -0)
===================================================================

  Property changed: trunk/NEWS.en (+0 -0)
___________________________________________________________________
Name: svn:keywords
   + Id

  Added: trunk/NEWS.en (+9 -0)
===================================================================
--- trunk/NEWS.en	2006-11-13 15:22:41 +09:00 (rev 11)
+++ trunk/NEWS.en	2007-08-04 11:31:35 +09:00 (rev 12)
@@ -0,0 +1,9 @@
+# -*- rd -*-
+
+= NEWS.en
+
+$Id$
+
+== 0.0.1: 2006-11-15
+
+  * Initial release.



More information about the asl-commit mailing list