Changesets can be listed by changeset number.
The Git repository is here.
Changeset 121
A couple of new accessor functions for RForum (see Changeset #120).
- Comitted by: adh
- Date: Sunday October 29 09:18:16 2006 (over 18 years ago)
Affected files:
- rool/rails/gems/hubssolib/trunk/VERSION (diff)
- rool/rails/gems/hubssolib/trunk/hubssolib.gemspec (diff)
- rool/rails/gems/hubssolib/trunk/lib/hub_sso_lib.rb (diff)
rool/rails/gems/hubssolib/trunk/VERSION:
prev. | current | |
1 | ||
1 | 0.1.1 (29-Oct-2006) |
rool/rails/gems/hubssolib/trunk/hubssolib.gemspec:
prev. | current | |
s.platform = Gem::Platform::RUBY | ||
s.name = 'hubssolib' | ||
7 | | |
7 | s.version = '0.1.1' | |
s.author = 'Andrew Hodgkinson and others' | ||
s.email = 'ahodgkin@rowing.org.uk' | ||
s.homepage = 'http://pond.org.uk/ruby/hub/' |
rool/rails/gems/hubssolib/trunk/lib/hub_sso_lib.rb:
prev. | current | |
user ? user.user_real_name : nil | ||
end | ||
742 | # Public read-only accessor methods for common user activities: | |
743 | # return the Hub database ID of the current user account, or | |
744 | # nil if there's no user. See also hubssolib_unique_name. | |
745 | # | |
746 | def hubssolib_get_user_id | |
747 | user = self.hubssolib_current_user | |
748 | user ? user.user_id : nil | |
749 | end | |
750 | ||
751 | # Public read-only accessor methods for common user activities: | |
752 | # return the current user's e-mail address, or nil if there's | |
753 | # no user. | |
754 | # | |
755 | def hubssolib_get_user_address | |
756 | user = self.hubssolib_current_user | |
757 | user ? user.user_email : nil | |
758 | end | |
759 | ||
# Return a human-readable unique ID for a user. We don't want to | ||
# have e-mail addresses all over the place, but don't want to rely | ||
# on real names as unique - they aren't. Instead, produce a |