muck-engine 0.1.15 → 0.1.16

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 (70) hide show
  1. data/.gitignore +5 -0
  2. data/Rakefile +7 -4
  3. data/VERSION +1 -1
  4. data/locales/ar.yml +1 -0
  5. data/locales/bg.yml +1 -0
  6. data/locales/ca.yml +1 -0
  7. data/locales/cs.yml +1 -0
  8. data/locales/da.yml +1 -0
  9. data/locales/de.yml +1 -0
  10. data/locales/el.yml +1 -0
  11. data/locales/es.yml +1 -0
  12. data/locales/et.yml +19 -0
  13. data/locales/fa.yml +19 -0
  14. data/locales/fi.yml +19 -0
  15. data/locales/fr.yml +1 -0
  16. data/locales/gl.yml +19 -0
  17. data/locales/hi.yml +19 -0
  18. data/locales/hr.yml +19 -0
  19. data/locales/hu.yml +19 -0
  20. data/locales/id.yml +19 -0
  21. data/locales/it.yml +1 -0
  22. data/locales/iw.yml +1 -0
  23. data/locales/ja.yml +1 -0
  24. data/locales/ko.yml +1 -0
  25. data/locales/lt.yml +1 -0
  26. data/locales/lv.yml +1 -0
  27. data/locales/mt.yml +19 -0
  28. data/locales/nl.yml +1 -0
  29. data/locales/no.yml +1 -0
  30. data/locales/pl.yml +1 -0
  31. data/locales/pt-PT.yml +19 -0
  32. data/locales/ro.yml +1 -0
  33. data/locales/ru.yml +1 -0
  34. data/locales/sk.yml +1 -0
  35. data/locales/sl.yml +1 -0
  36. data/locales/sq.yml +19 -0
  37. data/locales/sr.yml +1 -0
  38. data/locales/sv.yml +1 -0
  39. data/locales/th.yml +19 -0
  40. data/locales/tl.yml +1 -0
  41. data/locales/tr.yml +19 -0
  42. data/locales/uk.yml +1 -0
  43. data/locales/vi.yml +1 -0
  44. data/locales/zh-CN.yml +1 -0
  45. data/locales/zh-TW.yml +1 -0
  46. data/locales/zh.yml +1 -0
  47. data/muck-engine.gemspec +30 -25
  48. metadata +16 -24
  49. data/pkg/muck-engine-0.1.14.gem +0 -0
  50. data/rdoc/classes/ActionController.html +0 -111
  51. data/rdoc/classes/ActionController/MuckApplication.html +0 -157
  52. data/rdoc/classes/ActionController/MuckApplication/ClassMethods.html +0 -105
  53. data/rdoc/classes/ActionController/MuckApplication/InstanceMethods.html +0 -412
  54. data/rdoc/classes/ActiveRecord.html +0 -111
  55. data/rdoc/classes/ActiveRecord/MuckModel.html +0 -157
  56. data/rdoc/classes/ActiveRecord/MuckModel/ClassMethods.html +0 -105
  57. data/rdoc/classes/ActiveRecord/MuckModel/InstanceMethods.html +0 -169
  58. data/rdoc/classes/MuckEngine.html +0 -117
  59. data/rdoc/classes/MuckEngine/Tasks.html +0 -146
  60. data/rdoc/created.rid +0 -1
  61. data/rdoc/files/README_rdoc.html +0 -222
  62. data/rdoc/files/lib/action_controller/muck_application_rb.html +0 -101
  63. data/rdoc/files/lib/active_record/muck_model_rb.html +0 -101
  64. data/rdoc/files/lib/muck_engine/tasks_rb.html +0 -111
  65. data/rdoc/files/lib/muck_engine_rb.html +0 -101
  66. data/rdoc/fr_class_index.html +0 -36
  67. data/rdoc/fr_file_index.html +0 -31
  68. data/rdoc/fr_method_index.html +0 -41
  69. data/rdoc/index.html +0 -24
  70. data/rdoc/rdoc-style.css +0 -208
@@ -1,117 +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: MuckEngine</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">MuckEngine</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/muck_engine/tasks_rb.html">
59
- lib/muck_engine/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
- Object
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
-
86
- </div>
87
-
88
-
89
- <!-- if includes -->
90
-
91
- <div id="section">
92
-
93
- <div id="class-list">
94
- <h3 class="section-bar">Classes and Modules</h3>
95
-
96
- Class <a href="MuckEngine/Tasks.html" class="link">MuckEngine::Tasks</a><br />
97
-
98
- </div>
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
- <!-- if method_list -->
107
-
108
-
109
- </div>
110
-
111
-
112
- <div id="validator-badges">
113
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
114
- </div>
115
-
116
- </body>
117
- </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: MuckEngine::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">MuckEngine::Tasks</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/muck_engine/tasks_rb.html">
59
- lib/muck_engine/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="#M000001">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-M000001" class="method-detail">
112
- <a name="M000001"></a>
113
-
114
- <div class="method-heading">
115
- <a href="#M000001" 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('M000001-source');return false;">[Source]</a></p>
123
- <div class="method-source-code" id="M000001-source">
124
- <pre>
125
- <span class="ruby-comment cmt"># File lib/muck_engine/tasks.rb, line 8</span>
126
- 8: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
127
- 9: <span class="ruby-identifier">define</span>
128
- 10: <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 DELETED
@@ -1 +0,0 @@
1
- Mon, 29 Jun 2009 13:47:50 -0600
@@ -1,222 +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>Mon Jun 29 13:17:29 -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/MuckEngine.html">MuckEngine</a></h1>
73
- <p>
74
- The muck engine is forms the basis for the muck framework and includes
75
- basic functionality utilized by the various muck engines.
76
- </p>
77
- <p>
78
- The easiest way to get started with muck is to generate your application
79
- using a template:
80
- </p>
81
- <pre>
82
- $ rails &lt;your-app&gt; -m http://github.com/jbasdf/rails-templates/raw/master/muck.rb
83
- </pre>
84
- <p>
85
- Add optional functionality with the following command:
86
- </p>
87
- <pre>
88
- $ rake rails:template LOCATION=http://github.com/jbasdf/rails-templates/raw/master/mucktoo.rb
89
- </pre>
90
- <h2>Installation</h2>
91
- <pre>
92
- sudo gem install mislav-will_paginate -s 'http://gems.github.com'
93
-
94
- sudo gem install muck-engine
95
- </pre>
96
- <h2>Setup</h2>
97
- <p>
98
- Be sure to include the muck_engine tasks in your Rakefile:
99
- </p>
100
- <pre>
101
- require 'muck_engine'
102
- require 'muck_engine/tasks'
103
- </pre>
104
- <p>
105
- Add a method to application_controller.rb that will determine which users
106
- have access to the admin section of the website
107
- </p>
108
- <pre>
109
- # called by Admin::Muck::BaseController to check whether or not the
110
- # user should have access to the admin UI
111
- def admin_access_required
112
- access_denied unless admin?
113
- end
114
- </pre>
115
- <p>
116
- Muck provides a number of methods that can set the current locale. Add a
117
- before filter and method to application_controller.rb
118
- </p>
119
- <pre>
120
- before_filter :set_locale
121
- </pre>
122
- <p>
123
- Add a set_locale method:
124
- </p>
125
- <pre>
126
- def set_locale
127
- discover_locale
128
- end
129
- </pre>
130
- <p>
131
- The set_locale method can use discover_locale to try various methods of
132
- finding the proper locale or it can call any of the methods individually:
133
- </p>
134
- <pre>
135
- def discover_locale
136
- I18n.locale = extract_locale_from_tld || extract_locale_from_subdomain || extract_locale_from_headers || extract_locale_from_user_selection || extract_locale_from_browser || I18n.default_locale
137
- end
138
- </pre>
139
- <h2>Usage</h2>
140
- <pre>
141
- If your application includes a locale switching menu, you would then have something like this in it:
142
- link_to(&quot;Deutsch&quot;, &quot;#{APP_CONFIG[:deutsch_website_url]}#{request.env['REQUEST_URI']}&quot;)
143
- </pre>
144
- <h2>Layout</h2>
145
- <p>
146
- The muck template will build your basic application and construct all the
147
- needed files and configuration.
148
- </p>
149
- <p>
150
- If you build your own layout be sure to include the following script in
151
- your layout or the javascript in the system won&#8216;t work:
152
- </p>
153
- <pre>
154
- &lt;script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;&gt;
155
- &lt;%= yield :javascript %&gt;
156
- &lt;/script&gt;
157
- </pre>
158
- <p>
159
- You can customize your email template by overriding the existing layouts.
160
- Simply add email_default.text.html.erb and email_default.text.plain.erb
161
- views/layouts. This will build templates for html and plain text emails.
162
- For an example of each look at the views/layouts directory in this project.
163
- </p>
164
- <h2>CSS</h2>
165
- <p>
166
- The css provided by the muck engine comes from blueprint: <a
167
- href="http://www.blueprintcss.org">www.blueprintcss.org</a>/
168
- </p>
169
- <p>
170
- We&#8216;ve also included a liquid version: <a
171
- href="http://www.ixda.org/discuss.php?post=23298&search=blueprint">www.ixda.org/discuss.php?post=23298&search=blueprint</a>
172
- </p>
173
- <p>
174
- And icons: <a
175
- href="http://www.ajaxbestiary.com/Labs/SilkSprite">www.ajaxbestiary.com/Labs/SilkSprite</a>/
176
- </p>
177
- <h2>Javascript</h2>
178
- <p>
179
- The muck engine uses jRails and thus jQuery for javascript: <a
180
- href="http://ennerchi.com/projects/jrails">ennerchi.com/projects/jrails</a>
181
- </p>
182
- <p>
183
- jGrowl is optional but included in case you&#8216;d like to use it for
184
- flash and error messages: <a
185
- href="http://www.stanlemon.net/projects/jgrowl.html">www.stanlemon.net/projects/jgrowl.html</a>
186
- </p>
187
- <p>
188
- Copyright (c) 2009 Justin Ball, released under the MIT license
189
- </p>
190
-
191
- </div>
192
-
193
-
194
- </div>
195
-
196
-
197
- </div>
198
-
199
-
200
- <!-- if includes -->
201
-
202
- <div id="section">
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
- <!-- if method_list -->
212
-
213
-
214
- </div>
215
-
216
-
217
- <div id="validator-badges">
218
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
219
- </div>
220
-
221
- </body>
222
- </html>