muck-profiles 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/Rakefile +5 -0
  2. data/VERSION +1 -1
  3. data/app/controllers/admin/muck/profiles_controller.rb +1 -1
  4. data/locales/ar.yml +6 -0
  5. data/locales/bg.yml +6 -0
  6. data/locales/ca.yml +6 -0
  7. data/locales/cs.yml +6 -0
  8. data/locales/da.yml +6 -0
  9. data/locales/de.yml +6 -0
  10. data/locales/el.yml +6 -0
  11. data/locales/es.yml +6 -0
  12. data/locales/fr.yml +6 -0
  13. data/locales/it.yml +6 -0
  14. data/locales/iw.yml +6 -0
  15. data/locales/ja.yml +6 -0
  16. data/locales/ko.yml +6 -0
  17. data/locales/lt.yml +6 -0
  18. data/locales/lv.yml +6 -0
  19. data/locales/nl.yml +6 -0
  20. data/locales/no.yml +7 -0
  21. data/locales/pl.yml +6 -0
  22. data/locales/pt.yml +6 -0
  23. data/locales/ro.yml +6 -0
  24. data/locales/ru.yml +6 -0
  25. data/locales/sk.yml +6 -0
  26. data/locales/sl.yml +6 -0
  27. data/locales/sr.yml +6 -0
  28. data/locales/sv.yml +6 -0
  29. data/locales/tl.yml +6 -0
  30. data/locales/uk.yml +6 -0
  31. data/locales/vi.yml +6 -0
  32. data/locales/zh-CN.yml +6 -0
  33. data/locales/zh-TW.yml +6 -0
  34. data/locales/zh.yml +6 -0
  35. data/muck-profiles.gemspec +57 -2
  36. data/pkg/muck-profiles-0.1.0.gem +0 -0
  37. data/rdoc/classes/ActionController.html +107 -0
  38. data/rdoc/classes/ActionController/Routing.html +107 -0
  39. data/rdoc/classes/ActionController/Routing/RouteSet.html +148 -0
  40. data/rdoc/classes/ActiveRecord.html +109 -0
  41. data/rdoc/classes/ActiveRecord/Acts/MuckProfile/ClassMethods.html +161 -0
  42. data/rdoc/classes/ActiveRecord/Acts/MuckProfile/InstanceMethods.html +112 -0
  43. data/rdoc/classes/ActiveRecord/Acts/MuckProfile/SingletonMethods.html +111 -0
  44. data/rdoc/classes/ActiveRecord/Has/MuckProfile/ClassMethods.html +154 -0
  45. data/rdoc/classes/ActiveRecord/Has/MuckProfile/InstanceMethods.html +112 -0
  46. data/rdoc/classes/ActiveRecord/Has/MuckProfile/SingletonMethods.html +111 -0
  47. data/rdoc/classes/MuckProfiles.html +111 -0
  48. data/rdoc/classes/MuckProfiles/Tasks.html +146 -0
  49. data/rdoc/created.rid +1 -0
  50. data/rdoc/files/README_rdoc.html +161 -0
  51. data/rdoc/files/lib/active_record/acts/muck_profile_rb.html +101 -0
  52. data/rdoc/files/lib/active_record/has/muck_profile_rb.html +101 -0
  53. data/rdoc/files/lib/muck_profiles/initialize_routes_rb.html +101 -0
  54. data/rdoc/files/lib/muck_profiles/tasks_rb.html +110 -0
  55. data/rdoc/files/lib/muck_profiles_rb.html +109 -0
  56. data/rdoc/fr_class_index.html +38 -0
  57. data/rdoc/fr_file_index.html +32 -0
  58. data/rdoc/fr_method_index.html +30 -0
  59. data/rdoc/index.html +24 -0
  60. data/rdoc/rdoc-style.css +208 -0
  61. data/test/rails_root/test/functional/admin/profiles_controller_test.rb +1 -1
  62. metadata +57 -2
@@ -0,0 +1,111 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: ActiveRecord::Has::MuckProfile::SingletonMethods</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">ActiveRecord::Has::MuckProfile::SingletonMethods</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../../files/lib/active_record/has/muck_profile_rb.html">
59
+ lib/active_record/has/muck_profile.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+ <div id="description">
76
+ <p>
77
+ class methods
78
+ </p>
79
+
80
+ </div>
81
+
82
+
83
+ </div>
84
+
85
+
86
+ </div>
87
+
88
+
89
+ <!-- if includes -->
90
+
91
+ <div id="section">
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <!-- if method_list -->
101
+
102
+
103
+ </div>
104
+
105
+
106
+ <div id="validator-badges">
107
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
108
+ </div>
109
+
110
+ </body>
111
+ </html>
@@ -0,0 +1,111 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: MuckProfiles</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">MuckProfiles</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/muck_profiles/tasks_rb.html">
59
+ lib/muck_profiles/tasks.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+
76
+
77
+ </div>
78
+
79
+
80
+ </div>
81
+
82
+
83
+ <!-- if includes -->
84
+
85
+ <div id="section">
86
+
87
+ <div id="class-list">
88
+ <h3 class="section-bar">Classes and Modules</h3>
89
+
90
+ Class <a href="MuckProfiles/Tasks.html" class="link">MuckProfiles::Tasks</a><br />
91
+
92
+ </div>
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <!-- if method_list -->
101
+
102
+
103
+ </div>
104
+
105
+
106
+ <div id="validator-badges">
107
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
108
+ </div>
109
+
110
+ </body>
111
+ </html>
@@ -0,0 +1,146 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: MuckProfiles::Tasks</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">MuckProfiles::Tasks</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/muck_profiles/tasks_rb.html">
59
+ lib/muck_profiles/tasks.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ ::Rake::TaskLib
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000004">new</a>&nbsp;&nbsp;
90
+ </div>
91
+ </div>
92
+
93
+ </div>
94
+
95
+
96
+ <!-- if includes -->
97
+
98
+ <div id="section">
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+ <!-- if method_list -->
108
+ <div id="methods">
109
+ <h3 class="section-bar">Public Class methods</h3>
110
+
111
+ <div id="method-M000004" class="method-detail">
112
+ <a name="M000004"></a>
113
+
114
+ <div class="method-heading">
115
+ <a href="#M000004" class="method-signature">
116
+ <span class="method-name">new</span><span class="method-args">()</span>
117
+ </a>
118
+ </div>
119
+
120
+ <div class="method-description">
121
+ <p><a class="source-toggle" href="#"
122
+ onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
123
+ <div class="method-source-code" id="M000004-source">
124
+ <pre>
125
+ <span class="ruby-comment cmt"># File lib/muck_profiles/tasks.rb, line 7</span>
126
+ 7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
127
+ 8: <span class="ruby-identifier">define</span>
128
+ 9: <span class="ruby-keyword kw">end</span>
129
+ </pre>
130
+ </div>
131
+ </div>
132
+ </div>
133
+
134
+
135
+ </div>
136
+
137
+
138
+ </div>
139
+
140
+
141
+ <div id="validator-badges">
142
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
143
+ </div>
144
+
145
+ </body>
146
+ </html>
data/rdoc/created.rid ADDED
@@ -0,0 +1 @@
1
+ Thu, 18 Jun 2009 15:22:17 -0600
@@ -0,0 +1,161 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>File: README.rdoc</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="fileHeader">
50
+ <h1>README.rdoc</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>README.rdoc
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Thu Jun 18 14:06:59 -0600 2009</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+ <div id="description">
72
+ <h1><a href="../classes/MuckProfiles.html">MuckProfiles</a></h1>
73
+ <p>
74
+ Add profiles to muck users. This implements a photo for users as well as a
75
+ property bag that enables total customization of the user&#8216;s profile
76
+ information including privacy settings.
77
+ </p>
78
+ <h2>Installation</h2>
79
+ <p>
80
+ Muck profile relies upon the muck-engine and muck-users gems as well as
81
+ paperclip. Add the following lines to your environment.rb file:
82
+ </p>
83
+ <pre>
84
+ config.gem &quot;authlogic&quot;
85
+ config.gem &quot;binarylogic-searchlogic&quot;, :lib =&gt; 'searchlogic', :source =&gt; 'http://gems.github.com', :version =&gt; '~&gt; 2.0.0'
86
+ config.gem &quot;bcrypt-ruby&quot;, :lib =&gt; &quot;bcrypt&quot;
87
+ config.gem 'thoughtbot-paperclip', :lib =&gt; 'paperclip', :source =&gt; &quot;http://gems.github.com&quot;
88
+ config.gem 'muck-engine', :lib =&gt; 'muck_engine'
89
+ config.gem 'muck-users', :lib =&gt; 'muck_users'
90
+ config.gem 'muck-profiles', :lib =&gt; 'muck_profiles'
91
+ </pre>
92
+ <p>
93
+ Next run rake gems:install
94
+ </p>
95
+ <h2>Usage</h2>
96
+ <p>
97
+ Create a model called profile.rb and add
98
+ &#8216;acts_as_muck_profile&#8217;. This mixes in the muck profile
99
+ functionality but also permits further customization of the profile in your
100
+ application.
101
+ </p>
102
+ <pre>
103
+ class Profile &lt; ActiveRecord::Base
104
+ acts_as_muck_profile
105
+ end
106
+ </pre>
107
+ <p>
108
+ Modify your user model so that it has a profile:
109
+ </p>
110
+ <pre>
111
+ class User &lt; ActiveRecord::Base
112
+ acts_as_authentic do |c|
113
+ c.crypto_provider = Authlogic::CryptoProviders::BCrypt
114
+ end
115
+ acts_as_muck_user
116
+ has_muck_profile
117
+ end
118
+ </pre>
119
+ <p>
120
+ Your user model will now appear to have a &#8216;photo&#8217; which is
121
+ delegated to the profile model:
122
+ </p>
123
+ <pre>
124
+ @user.photo # returns a photo object from paperclip
125
+ </pre>
126
+ <p>
127
+ Copyright (c) 2009 Justin Ball, released under the MIT license
128
+ </p>
129
+
130
+ </div>
131
+
132
+
133
+ </div>
134
+
135
+
136
+ </div>
137
+
138
+
139
+ <!-- if includes -->
140
+
141
+ <div id="section">
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+ <!-- if method_list -->
151
+
152
+
153
+ </div>
154
+
155
+
156
+ <div id="validator-badges">
157
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
158
+ </div>
159
+
160
+ </body>
161
+ </html>