muck-profiles 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. data/.gitignore +5 -0
  2. data/Rakefile +16 -0
  3. data/VERSION +1 -1
  4. data/app/controllers/muck/profiles_controller.rb +32 -4
  5. data/config/muck_profiles_routes.rb +2 -1
  6. data/locales/ar.yml +5 -0
  7. data/locales/bg.yml +5 -0
  8. data/locales/ca.yml +5 -0
  9. data/locales/cs.yml +5 -0
  10. data/locales/da.yml +5 -0
  11. data/locales/de.yml +5 -0
  12. data/locales/el.yml +5 -0
  13. data/locales/es.yml +5 -0
  14. data/locales/et.yml +11 -0
  15. data/locales/fa.yml +11 -0
  16. data/locales/fi.yml +11 -0
  17. data/locales/fr.yml +5 -0
  18. data/locales/gl.yml +11 -0
  19. data/locales/hi.yml +11 -0
  20. data/locales/hr.yml +11 -0
  21. data/locales/hu.yml +11 -0
  22. data/locales/id.yml +11 -0
  23. data/locales/it.yml +5 -0
  24. data/locales/iw.yml +5 -0
  25. data/locales/ja.yml +5 -0
  26. data/locales/ko.yml +5 -0
  27. data/locales/lt.yml +5 -0
  28. data/locales/lv.yml +5 -0
  29. data/locales/mt.yml +11 -0
  30. data/locales/nl.yml +5 -0
  31. data/locales/no.yml +5 -0
  32. data/locales/pl.yml +5 -0
  33. data/locales/pt-PT.yml +11 -0
  34. data/locales/ro.yml +5 -0
  35. data/locales/ru.yml +5 -0
  36. data/locales/sk.yml +5 -0
  37. data/locales/sl.yml +5 -0
  38. data/locales/sq.yml +11 -0
  39. data/locales/sr.yml +5 -0
  40. data/locales/sv.yml +5 -0
  41. data/locales/th.yml +11 -0
  42. data/locales/tl.yml +5 -0
  43. data/locales/tr.yml +11 -0
  44. data/locales/uk.yml +5 -0
  45. data/locales/vi.yml +5 -0
  46. data/locales/zh-CN.yml +5 -0
  47. data/locales/zh-TW.yml +5 -0
  48. data/locales/zh.yml +5 -0
  49. data/muck-profiles.gemspec +30 -29
  50. data/test/rails_root/app/models/user.rb +0 -8
  51. metadata +16 -28
  52. data/pkg/muck-profiles-0.1.0.gem +0 -0
  53. data/pkg/muck-profiles-0.1.1.gem +0 -0
  54. data/rdoc/classes/ActionController/Routing/RouteSet.html +0 -148
  55. data/rdoc/classes/ActionController/Routing.html +0 -107
  56. data/rdoc/classes/ActionController.html +0 -107
  57. data/rdoc/classes/ActiveRecord/Acts/MuckProfile/ClassMethods.html +0 -161
  58. data/rdoc/classes/ActiveRecord/Acts/MuckProfile/InstanceMethods.html +0 -112
  59. data/rdoc/classes/ActiveRecord/Acts/MuckProfile/SingletonMethods.html +0 -111
  60. data/rdoc/classes/ActiveRecord/Has/MuckProfile/ClassMethods.html +0 -154
  61. data/rdoc/classes/ActiveRecord/Has/MuckProfile/InstanceMethods.html +0 -112
  62. data/rdoc/classes/ActiveRecord/Has/MuckProfile/SingletonMethods.html +0 -111
  63. data/rdoc/classes/ActiveRecord.html +0 -109
  64. data/rdoc/classes/MuckProfiles/Tasks.html +0 -146
  65. data/rdoc/classes/MuckProfiles.html +0 -111
  66. data/rdoc/created.rid +0 -1
  67. data/rdoc/files/README_rdoc.html +0 -161
  68. data/rdoc/files/lib/active_record/acts/muck_profile_rb.html +0 -101
  69. data/rdoc/files/lib/active_record/has/muck_profile_rb.html +0 -101
  70. data/rdoc/files/lib/muck_profiles/initialize_routes_rb.html +0 -101
  71. data/rdoc/files/lib/muck_profiles/tasks_rb.html +0 -110
  72. data/rdoc/files/lib/muck_profiles_rb.html +0 -109
  73. data/rdoc/fr_class_index.html +0 -38
  74. data/rdoc/fr_file_index.html +0 -32
  75. data/rdoc/fr_method_index.html +0 -30
  76. data/rdoc/index.html +0 -24
  77. data/rdoc/rdoc-style.css +0 -208
@@ -1,111 +0,0 @@
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>
@@ -1,109 +0,0 @@
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</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</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/active_record/acts/muck_profile_rb.html">
59
- lib/active_record/acts/muck_profile.rb
60
- </a>
61
- <br />
62
- <a href="../files/lib/active_record/has/muck_profile_rb.html">
63
- lib/active_record/has/muck_profile.rb
64
- </a>
65
- <br />
66
- </td>
67
- </tr>
68
-
69
- </table>
70
- </div>
71
- <!-- banner header -->
72
-
73
- <div id="bodyContent">
74
-
75
-
76
-
77
- <div id="contextContent">
78
-
79
-
80
-
81
- </div>
82
-
83
-
84
- </div>
85
-
86
-
87
- <!-- if includes -->
88
-
89
- <div id="section">
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
- <!-- if method_list -->
99
-
100
-
101
- </div>
102
-
103
-
104
- <div id="validator-badges">
105
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
106
- </div>
107
-
108
- </body>
109
- </html>
@@ -1,146 +0,0 @@
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>
@@ -1,111 +0,0 @@
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>
data/rdoc/created.rid DELETED
@@ -1 +0,0 @@
1
- Fri, 19 Jun 2009 02:11:05 -0600
@@ -1,161 +0,0 @@
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>