From null at cozmixng.org Fri Sep 16 22:51:00 2011 From: null at cozmixng.org (null at cozmixng.org) Date: Sat, 17 Sep 2011 02:51:00 +0000 Subject: [activeldap-commit] activeldap/activeldap [master] [doc] fix a typo. fixes #9 Message-ID: <20110917025433.80F842C4149@taiyaki.ru> Kouhei Sutou 2011-09-17 02:51:00 +0000 (Sat, 17 Sep 2011) New Revision: dcd9100ac2e625e39668b686a5ab81de7c76bfaf Log: [doc] fix a typo. fixes #9 Reported by warden. Thanks!!! Modified files: README.textile Modified: README.textile (+2 -1) =================================================================== --- README.textile 2011-08-06 01:27:03 +0000 (7d13e22) +++ README.textile 2011-09-17 02:51:00 +0000 (35a290b) @@ -45,7 +45,7 @@ h2. Notes h2. Rails -See "Rails":files.rails.html page for Rails integration. +See "Rails":file.rails.html page for Rails integration. h2. Licence @@ -135,3 +135,4 @@ list, please point out. * rbq: A bug report. * Narihiro Nakamura: Rails 3 support. * Hidetoshi Yoshimoto: Rails 3 support. +* warden: A bug report. From null at cozmixng.org Fri Sep 23 08:46:32 2011 From: null at cozmixng.org (null at cozmixng.org) Date: Fri, 23 Sep 2011 12:46:32 +0000 Subject: [activeldap-commit] activeldap/activeldap [master] add persisted?. fixes #11 Message-ID: <20110923125038.0A29F2C48A2@taiyaki.ru> Kouhei Sutou 2011-09-23 12:46:32 +0000 (Fri, 23 Sep 2011) New Revision: 770ace8ac14470f019d4e140d6fa4d674e0e179e Log: add persisted?. fixes #11 Reported and patched by bklier. Modified files: README.textile lib/active_ldap/persistence.rb Modified: README.textile (+1 -0) =================================================================== --- README.textile 2011-09-23 12:43:28 +0000 (35a290b) +++ README.textile 2011-09-23 12:46:32 +0000 (77bf30b) @@ -136,3 +136,4 @@ list, please point out. * Narihiro Nakamura: Rails 3 support. * Hidetoshi Yoshimoto: Rails 3 support. * warden: A bug report. +* bklier: A bug fix. Modified: lib/active_ldap/persistence.rb (+5 -0) =================================================================== --- lib/active_ldap/persistence.rb 2011-09-23 12:43:28 +0000 (4d94038) +++ lib/active_ldap/persistence.rb 2011-09-23 12:46:32 +0000 (19ea4ee) @@ -7,6 +7,11 @@ module ActiveLdap @new_entry end + # Return whether the entry is saved entry or not. + def persisted? + not new_entry? + end + # destroy # # Delete this entry from LDAP From null at cozmixng.org Fri Sep 23 08:43:28 2011 From: null at cozmixng.org (null at cozmixng.org) Date: Fri, 23 Sep 2011 12:43:28 +0000 Subject: [activeldap-commit] activeldap/activeldap [master] move persisted? to ActiveRecord style position. Message-ID: <20110923125037.F2CB92C47DA@taiyaki.ru> Kouhei Sutou 2011-09-23 12:43:28 +0000 (Fri, 23 Sep 2011) New Revision: 2927220229495a83140800cdea7aea2f3386296f Log: move persisted? to ActiveRecord style position. Modified files: lib/active_ldap/base.rb lib/active_ldap/persistence.rb Modified: lib/active_ldap/base.rb (+0 -7) =================================================================== --- lib/active_ldap/base.rb 2011-09-17 02:51:00 +0000 (815b8df) +++ lib/active_ldap/base.rb 2011-09-23 12:43:28 +0000 (dacc381) @@ -755,13 +755,6 @@ module ActiveLdap end alias_method(:exists?, :exist?) - # new_entry? - # - # Return whether the entry is new entry in LDAP or not - def new_entry? - @new_entry - end - # dn # # Return the authoritative dn Modified: lib/active_ldap/persistence.rb (+6 -0) =================================================================== --- lib/active_ldap/persistence.rb 2011-09-17 02:51:00 +0000 (7205873) +++ lib/active_ldap/persistence.rb 2011-09-23 12:43:28 +0000 (4d94038) @@ -1,5 +1,11 @@ module ActiveLdap module Persistence + # new_entry? + # + # Return whether the entry is new entry in LDAP or not + def new_entry? + @new_entry + end # destroy #