From null at cozmixng.org Mon Jun 22 01:45:11 2009 From: null at cozmixng.org (null at cozmixng.org) Date: Mon, 22 Jun 2009 14:45:11 +0900 Subject: [asl-commit] ActiveSambaLdap (trunk) r154: * use Rails standard directory structure for gem. Message-ID: <20090622054511.8ACB91D1C7A@mail.cozmixng.org> retro 2009-06-22 14:45:10 +0900 (Mon, 22 Jun 2009) New Revision: 154 Log: * use Rails standard directory structure for gem. Copied directories: trunk/rails_generators/ (from rev 153, trunk/rails/plugin/active_samba_ldap/generators/) Copied files: trunk/rails/README (from rev 153, trunk/rails/plugin/active_samba_ldap/README) trunk/rails/init.rb (from rev 153, trunk/rails/plugin/active_samba_ldap/init.rb) Removed directories: trunk/rails/plugin/active_samba_ldap/generators/ Removed files: trunk/rails/plugin/active_samba_ldap/README trunk/rails/plugin/active_samba_ldap/init.rb Copied: trunk/rails_generators/ (from rev 153, trunk/rails/plugin/active_samba_ldap/generators/) Deleted: trunk/rails/plugin/active_samba_ldap/generators/ % svn ls trunk/rails/plugin/active_samba_ldap/generators/@153 Copied: trunk/rails/README (+0 -0) =================================================================== Copied: trunk/rails/init.rb (+0 -0) =================================================================== Deleted: trunk/rails/plugin/active_samba_ldap/init.rb (+0 -33) =================================================================== --- trunk/rails/plugin/active_samba_ldap/init.rb 2008-08-09 12:41:08 +09:00 (rev 153) +++ trunk/rails/plugin/active_samba_ldap/init.rb 2009-06-22 14:45:10 +09:00 (rev 154) @@ -1,33 +0,0 @@ -require_library_or_gem 'active_samba_ldap' - -ActiveSambaLdap::Base.logger ||= RAILS_DEFAULT_LOGGER - -required_version = ["0", "0", "6"] -if (ActiveLdap::VERSION.split(".") <=> required_version) < 0 - ActiveLdap::Base.class_eval do - format = _("You need ActiveSambaLdap %s or later") - logger.error(format % required_version.join(".")) - end -end - -ldap_configuration_file = File.join(RAILS_ROOT, 'config', 'ldap.yml') -if File.exist?(ldap_configuration_file) - ActiveSambaLdap::Base.configurations = - ActiveSambaLdap::Configuration.read(ldap_configuration_file) - ActiveSambaLdap::Base.establish_connection -else - ActiveLdap::Base.class_eval do - format = _("You should run 'script/generator scaffold_active_samba_ldap' " \ - "to make %s.") - logger.error(format % ldap_configuration_file) - end -end - -class ActionView::Base - include ActiveLdap::Helper -end - -require 'active_ldap/action_controller/ldap_benchmarking' -class ActionController::Base - include ActiveLdap::ActionController::LdapBenchmarking -end Deleted: trunk/rails/plugin/active_samba_ldap/README (+0 -30) =================================================================== --- trunk/rails/plugin/active_samba_ldap/README 2008-08-09 12:41:08 +09:00 (rev 153) +++ trunk/rails/plugin/active_samba_ldap/README 2009-06-22 14:45:10 +09:00 (rev 154) @@ -1,30 +0,0 @@ -= ActiveSambaLdap plugin for Ruby on Rails - -== Setup - -You need to write RAILS_ROOT/config/ldap.yml like the following: - - development: - host: 127.0.0.1 - port: 389 - base: dc=devel,dc=local,dc=net - bind_dn: cn=admin,dc=local,dc=net - password: secret - sid: S-1-5-21-915876905-2926214379-2876160357 - - test: - host: 127.0.0.1 - port: 389 - base: dc=test,dc=local,dc=net - bind_dn: cn=admin,dc=local,dc=net - password: secret - sid: S-1-5-21-915876905-2926214379-2876160357 - - production: - host: 127.0.0.1 - port: 389 - method: :tls - base: dc=production,dc=local,dc=net - bind_dn: cn=admin,dc=local,dc=net - password: secret - sid: S-1-5-21-915876905-2926214379-2876160357 From null at cozmixng.org Mon Jun 22 01:45:14 2009 From: null at cozmixng.org (null at cozmixng.org) Date: Mon, 22 Jun 2009 14:45:14 +0900 Subject: [asl-commit] ActiveSambaLdap (trunk) r155: * remove needless path. Message-ID: <20090622054514.422A41D1C8E@mail.cozmixng.org> retro 2009-06-22 14:45:13 +0900 (Mon, 22 Jun 2009) New Revision: 155 Log: * remove needless path. Removed directories: trunk/rails/plugin/ Deleted: trunk/rails/plugin/ % svn ls trunk/rails/plugin/@154