typus 0.9.17
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +8 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +86 -0
- data/Rakefile +61 -0
- data/VERSION +1 -0
- data/app/controllers/admin/master_controller.rb +354 -0
- data/app/controllers/typus_controller.rb +128 -0
- data/app/helpers/admin/form_helper.rb +386 -0
- data/app/helpers/admin/master_helper.rb +104 -0
- data/app/helpers/admin/public_helper.rb +27 -0
- data/app/helpers/admin/sidebar_helper.rb +236 -0
- data/app/helpers/admin/table_helper.rb +227 -0
- data/app/helpers/typus_helper.rb +194 -0
- data/app/models/typus_mailer.rb +14 -0
- data/app/models/typus_user.rb +5 -0
- data/app/views/admin/dashboard/_sidebar.html.erb +9 -0
- data/app/views/admin/resources/edit.html.erb +24 -0
- data/app/views/admin/resources/index.html.erb +23 -0
- data/app/views/admin/resources/new.html.erb +22 -0
- data/app/views/admin/resources/show.html.erb +18 -0
- data/app/views/admin/shared/_footer.html.erb +1 -0
- data/app/views/admin/shared/_pagination.html.erb +28 -0
- data/app/views/layouts/admin.html.erb +73 -0
- data/app/views/layouts/typus.html.erb +29 -0
- data/app/views/typus/dashboard.html.erb +9 -0
- data/app/views/typus/recover_password.html.erb +7 -0
- data/app/views/typus/reset_password.html.erb +15 -0
- data/app/views/typus/sign_in.html.erb +9 -0
- data/app/views/typus/sign_up.html.erb +7 -0
- data/app/views/typus_mailer/reset_password_link.erb +11 -0
- data/config/locales/typus/de.yml +109 -0
- data/config/locales/typus/es.yml +109 -0
- data/config/locales/typus/language.yml.template +113 -0
- data/config/locales/typus/pt-BR.yml +111 -0
- data/config/locales/typus/ru.yml +111 -0
- data/generators/typus/templates/config/initializers/typus.rb +33 -0
- data/generators/typus/templates/config/typus/README +51 -0
- data/generators/typus/templates/config/typus/application.yml +6 -0
- data/generators/typus/templates/config/typus/application_roles.yml +23 -0
- data/generators/typus/templates/config/typus/typus.yml +14 -0
- data/generators/typus/templates/config/typus/typus_roles.yml +2 -0
- data/generators/typus/templates/db/create_typus_users.rb +21 -0
- data/generators/typus/templates/public/images/admin/arrow_down.gif +0 -0
- data/generators/typus/templates/public/images/admin/arrow_up.gif +0 -0
- data/generators/typus/templates/public/images/admin/spinner.gif +0 -0
- data/generators/typus/templates/public/images/admin/status_false.gif +0 -0
- data/generators/typus/templates/public/images/admin/status_true.gif +0 -0
- data/generators/typus/templates/public/images/admin/trash.gif +0 -0
- data/generators/typus/templates/public/javascripts/admin/application.js +14 -0
- data/generators/typus/templates/public/stylesheets/admin/reset.css +68 -0
- data/generators/typus/templates/public/stylesheets/admin/screen.css +729 -0
- data/generators/typus/typus_generator.rb +122 -0
- data/generators/typus_update_schema_to_01/templates/config/typus.yml +14 -0
- data/generators/typus_update_schema_to_01/templates/migration.rb +11 -0
- data/generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb +19 -0
- data/lib/typus.rb +122 -0
- data/lib/typus/active_record.rb +307 -0
- data/lib/typus/authentication.rb +142 -0
- data/lib/typus/configuration.rb +85 -0
- data/lib/typus/extensions/routes.rb +15 -0
- data/lib/typus/format.rb +55 -0
- data/lib/typus/generator.rb +81 -0
- data/lib/typus/hash.rb +8 -0
- data/lib/typus/locale.rb +17 -0
- data/lib/typus/object.rb +21 -0
- data/lib/typus/quick_edit.rb +40 -0
- data/lib/typus/reloader.rb +15 -0
- data/lib/typus/string.rb +11 -0
- data/lib/typus/templates/index.html.erb +11 -0
- data/lib/typus/templates/resource_controller.rb.erb +15 -0
- data/lib/typus/templates/resource_controller_test.rb.erb +10 -0
- data/lib/typus/templates/resources_controller.rb.erb +37 -0
- data/lib/typus/user.rb +134 -0
- data/lib/vendor/active_record.rb +15 -0
- data/lib/vendor/paginator.rb +143 -0
- data/rails/init.rb +3 -0
- data/tasks/typus_tasks.rake +32 -0
- data/test/config/broken/application.yml +68 -0
- data/test/config/broken/application_roles.yml +20 -0
- data/test/config/broken/empty.yml +0 -0
- data/test/config/broken/empty_roles.yml +0 -0
- data/test/config/broken/undefined.yml +3 -0
- data/test/config/broken/undefined_roles.yml +6 -0
- data/test/config/default/typus.yml +14 -0
- data/test/config/default/typus_roles.yml +2 -0
- data/test/config/empty/empty_01.yml +0 -0
- data/test/config/empty/empty_01_roles.yml +0 -0
- data/test/config/empty/empty_02.yml +0 -0
- data/test/config/empty/empty_02_roles.yml +0 -0
- data/test/config/locales/es.yml +10 -0
- data/test/config/ordered/001_roles.yml +2 -0
- data/test/config/ordered/002_roles.yml +2 -0
- data/test/config/unordered/app_one_roles.yml +2 -0
- data/test/config/unordered/app_two_roles.yml +2 -0
- data/test/config/working/application.yml +68 -0
- data/test/config/working/application_roles.yml +22 -0
- data/test/config/working/typus.yml +14 -0
- data/test/config/working/typus_roles.yml +2 -0
- data/test/fixtures/app/controllers/admin/assets_controller.rb +2 -0
- data/test/fixtures/app/controllers/admin/categories_controller.rb +2 -0
- data/test/fixtures/app/controllers/admin/comments_controller.rb +2 -0
- data/test/fixtures/app/controllers/admin/pages_controller.rb +2 -0
- data/test/fixtures/app/controllers/admin/posts_controller.rb +2 -0
- data/test/fixtures/app/controllers/admin/status_controller.rb +6 -0
- data/test/fixtures/app/controllers/admin/typus_users_controller.rb +2 -0
- data/test/fixtures/app/controllers/admin/watch_dog_controller.rb +6 -0
- data/test/fixtures/app/views/admin/comments/_edit.html.erb +1 -0
- data/test/fixtures/app/views/admin/comments/_index.html.erb +1 -0
- data/test/fixtures/app/views/admin/comments/_new.html.erb +1 -0
- data/test/fixtures/app/views/admin/comments/_show.html.erb +1 -0
- data/test/fixtures/app/views/admin/comments/_sidebar.html.erb +1 -0
- data/test/fixtures/app/views/admin/dashboard/_content.html.erb +1 -0
- data/test/fixtures/app/views/admin/dashboard/_sidebar.html.erb +1 -0
- data/test/fixtures/app/views/admin/resources/_sidebar.html.erb +1 -0
- data/test/fixtures/app/views/admin/shared/_footer.html.erb +1 -0
- data/test/fixtures/app/views/admin/status/index.html.erb +1 -0
- data/test/fixtures/app/views/admin/templates/_datepicker.html.erb +1 -0
- data/test/fixtures/assets.yml +11 -0
- data/test/fixtures/categories.yml +14 -0
- data/test/fixtures/comments.yml +27 -0
- data/test/fixtures/pages.yml +41 -0
- data/test/fixtures/posts.yml +37 -0
- data/test/fixtures/typus_users.yml +54 -0
- data/test/functional/admin/assets_controller_test.rb +57 -0
- data/test/functional/admin/categories_controller_test.rb +106 -0
- data/test/functional/admin/comments_controller_test.rb +120 -0
- data/test/functional/admin/master_controller_test.rb +5 -0
- data/test/functional/admin/posts_controller_test.rb +261 -0
- data/test/functional/admin/status_controller_test.rb +43 -0
- data/test/functional/admin/typus_users_controller_test.rb +239 -0
- data/test/functional/typus_controller_test.rb +321 -0
- data/test/helper.rb +51 -0
- data/test/helpers/admin/form_helper_test.rb +337 -0
- data/test/helpers/admin/master_helper_test.rb +69 -0
- data/test/helpers/admin/public_helper_test.rb +26 -0
- data/test/helpers/admin/sidebar_helper_test.rb +335 -0
- data/test/helpers/admin/table_helper_test.rb +239 -0
- data/test/helpers/typus_helper_test.rb +117 -0
- data/test/lib/active_record_test.rb +382 -0
- data/test/lib/configuration_test.rb +94 -0
- data/test/lib/hash_test.rb +11 -0
- data/test/lib/routes_test.rb +71 -0
- data/test/lib/string_test.rb +25 -0
- data/test/lib/typus_test.rb +85 -0
- data/test/models.rb +51 -0
- data/test/schema.rb +64 -0
- data/test/unit/typus_mailer_test.rb +33 -0
- data/test/unit/typus_test.rb +17 -0
- data/test/unit/typus_user_roles_test.rb +90 -0
- data/test/unit/typus_user_test.rb +177 -0
- data/test/vendor/active_record_test.rb +18 -0
- data/test/vendor/paginator_test.rb +136 -0
- data/typus.gemspec +228 -0
- metadata +241 -0
metadata
ADDED
@@ -0,0 +1,241 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: typus
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.17
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Francesc Esplugas
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-08-18 00:00:00 +02:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Effortless backend interface for Ruby on Rails applications. (Admin scaffold generator.)
|
17
|
+
email: francesc@intraducibles.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README.rdoc
|
24
|
+
files:
|
25
|
+
- .gitignore
|
26
|
+
- MIT-LICENSE
|
27
|
+
- README.rdoc
|
28
|
+
- Rakefile
|
29
|
+
- VERSION
|
30
|
+
- app/controllers/admin/master_controller.rb
|
31
|
+
- app/controllers/typus_controller.rb
|
32
|
+
- app/helpers/admin/form_helper.rb
|
33
|
+
- app/helpers/admin/master_helper.rb
|
34
|
+
- app/helpers/admin/public_helper.rb
|
35
|
+
- app/helpers/admin/sidebar_helper.rb
|
36
|
+
- app/helpers/admin/table_helper.rb
|
37
|
+
- app/helpers/typus_helper.rb
|
38
|
+
- app/models/typus_mailer.rb
|
39
|
+
- app/models/typus_user.rb
|
40
|
+
- app/views/admin/dashboard/_sidebar.html.erb
|
41
|
+
- app/views/admin/resources/edit.html.erb
|
42
|
+
- app/views/admin/resources/index.html.erb
|
43
|
+
- app/views/admin/resources/new.html.erb
|
44
|
+
- app/views/admin/resources/show.html.erb
|
45
|
+
- app/views/admin/shared/_footer.html.erb
|
46
|
+
- app/views/admin/shared/_pagination.html.erb
|
47
|
+
- app/views/layouts/admin.html.erb
|
48
|
+
- app/views/layouts/typus.html.erb
|
49
|
+
- app/views/typus/dashboard.html.erb
|
50
|
+
- app/views/typus/recover_password.html.erb
|
51
|
+
- app/views/typus/reset_password.html.erb
|
52
|
+
- app/views/typus/sign_in.html.erb
|
53
|
+
- app/views/typus/sign_up.html.erb
|
54
|
+
- app/views/typus_mailer/reset_password_link.erb
|
55
|
+
- config/locales/typus/de.yml
|
56
|
+
- config/locales/typus/es.yml
|
57
|
+
- config/locales/typus/language.yml.template
|
58
|
+
- config/locales/typus/pt-BR.yml
|
59
|
+
- config/locales/typus/ru.yml
|
60
|
+
- generators/typus/templates/config/initializers/typus.rb
|
61
|
+
- generators/typus/templates/config/typus/README
|
62
|
+
- generators/typus/templates/config/typus/application.yml
|
63
|
+
- generators/typus/templates/config/typus/application_roles.yml
|
64
|
+
- generators/typus/templates/config/typus/typus.yml
|
65
|
+
- generators/typus/templates/config/typus/typus_roles.yml
|
66
|
+
- generators/typus/templates/db/create_typus_users.rb
|
67
|
+
- generators/typus/templates/public/images/admin/arrow_down.gif
|
68
|
+
- generators/typus/templates/public/images/admin/arrow_up.gif
|
69
|
+
- generators/typus/templates/public/images/admin/spinner.gif
|
70
|
+
- generators/typus/templates/public/images/admin/status_false.gif
|
71
|
+
- generators/typus/templates/public/images/admin/status_true.gif
|
72
|
+
- generators/typus/templates/public/images/admin/trash.gif
|
73
|
+
- generators/typus/templates/public/javascripts/admin/application.js
|
74
|
+
- generators/typus/templates/public/stylesheets/admin/reset.css
|
75
|
+
- generators/typus/templates/public/stylesheets/admin/screen.css
|
76
|
+
- generators/typus/typus_generator.rb
|
77
|
+
- generators/typus_update_schema_to_01/templates/config/typus.yml
|
78
|
+
- generators/typus_update_schema_to_01/templates/migration.rb
|
79
|
+
- generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb
|
80
|
+
- lib/typus.rb
|
81
|
+
- lib/typus/active_record.rb
|
82
|
+
- lib/typus/authentication.rb
|
83
|
+
- lib/typus/configuration.rb
|
84
|
+
- lib/typus/extensions/routes.rb
|
85
|
+
- lib/typus/format.rb
|
86
|
+
- lib/typus/generator.rb
|
87
|
+
- lib/typus/hash.rb
|
88
|
+
- lib/typus/locale.rb
|
89
|
+
- lib/typus/object.rb
|
90
|
+
- lib/typus/quick_edit.rb
|
91
|
+
- lib/typus/reloader.rb
|
92
|
+
- lib/typus/string.rb
|
93
|
+
- lib/typus/templates/index.html.erb
|
94
|
+
- lib/typus/templates/resource_controller.rb.erb
|
95
|
+
- lib/typus/templates/resource_controller_test.rb.erb
|
96
|
+
- lib/typus/templates/resources_controller.rb.erb
|
97
|
+
- lib/typus/user.rb
|
98
|
+
- lib/vendor/active_record.rb
|
99
|
+
- lib/vendor/paginator.rb
|
100
|
+
- rails/init.rb
|
101
|
+
- tasks/typus_tasks.rake
|
102
|
+
- test/config/broken/application.yml
|
103
|
+
- test/config/broken/application_roles.yml
|
104
|
+
- test/config/broken/empty.yml
|
105
|
+
- test/config/broken/empty_roles.yml
|
106
|
+
- test/config/broken/undefined.yml
|
107
|
+
- test/config/broken/undefined_roles.yml
|
108
|
+
- test/config/default/typus.yml
|
109
|
+
- test/config/default/typus_roles.yml
|
110
|
+
- test/config/empty/empty_01.yml
|
111
|
+
- test/config/empty/empty_01_roles.yml
|
112
|
+
- test/config/empty/empty_02.yml
|
113
|
+
- test/config/empty/empty_02_roles.yml
|
114
|
+
- test/config/locales/es.yml
|
115
|
+
- test/config/ordered/001_roles.yml
|
116
|
+
- test/config/ordered/002_roles.yml
|
117
|
+
- test/config/unordered/app_one_roles.yml
|
118
|
+
- test/config/unordered/app_two_roles.yml
|
119
|
+
- test/config/working/application.yml
|
120
|
+
- test/config/working/application_roles.yml
|
121
|
+
- test/config/working/typus.yml
|
122
|
+
- test/config/working/typus_roles.yml
|
123
|
+
- test/fixtures/app/controllers/admin/assets_controller.rb
|
124
|
+
- test/fixtures/app/controllers/admin/categories_controller.rb
|
125
|
+
- test/fixtures/app/controllers/admin/comments_controller.rb
|
126
|
+
- test/fixtures/app/controllers/admin/pages_controller.rb
|
127
|
+
- test/fixtures/app/controllers/admin/posts_controller.rb
|
128
|
+
- test/fixtures/app/controllers/admin/status_controller.rb
|
129
|
+
- test/fixtures/app/controllers/admin/typus_users_controller.rb
|
130
|
+
- test/fixtures/app/controllers/admin/watch_dog_controller.rb
|
131
|
+
- test/fixtures/app/views/admin/comments/_edit.html.erb
|
132
|
+
- test/fixtures/app/views/admin/comments/_index.html.erb
|
133
|
+
- test/fixtures/app/views/admin/comments/_new.html.erb
|
134
|
+
- test/fixtures/app/views/admin/comments/_show.html.erb
|
135
|
+
- test/fixtures/app/views/admin/comments/_sidebar.html.erb
|
136
|
+
- test/fixtures/app/views/admin/dashboard/_content.html.erb
|
137
|
+
- test/fixtures/app/views/admin/dashboard/_sidebar.html.erb
|
138
|
+
- test/fixtures/app/views/admin/resources/_sidebar.html.erb
|
139
|
+
- test/fixtures/app/views/admin/shared/_footer.html.erb
|
140
|
+
- test/fixtures/app/views/admin/status/index.html.erb
|
141
|
+
- test/fixtures/app/views/admin/templates/_datepicker.html.erb
|
142
|
+
- test/fixtures/assets.yml
|
143
|
+
- test/fixtures/categories.yml
|
144
|
+
- test/fixtures/comments.yml
|
145
|
+
- test/fixtures/pages.yml
|
146
|
+
- test/fixtures/posts.yml
|
147
|
+
- test/fixtures/typus_users.yml
|
148
|
+
- test/functional/admin/assets_controller_test.rb
|
149
|
+
- test/functional/admin/categories_controller_test.rb
|
150
|
+
- test/functional/admin/comments_controller_test.rb
|
151
|
+
- test/functional/admin/master_controller_test.rb
|
152
|
+
- test/functional/admin/posts_controller_test.rb
|
153
|
+
- test/functional/admin/status_controller_test.rb
|
154
|
+
- test/functional/admin/typus_users_controller_test.rb
|
155
|
+
- test/functional/typus_controller_test.rb
|
156
|
+
- test/helper.rb
|
157
|
+
- test/helpers/admin/form_helper_test.rb
|
158
|
+
- test/helpers/admin/master_helper_test.rb
|
159
|
+
- test/helpers/admin/public_helper_test.rb
|
160
|
+
- test/helpers/admin/sidebar_helper_test.rb
|
161
|
+
- test/helpers/admin/table_helper_test.rb
|
162
|
+
- test/helpers/typus_helper_test.rb
|
163
|
+
- test/lib/active_record_test.rb
|
164
|
+
- test/lib/configuration_test.rb
|
165
|
+
- test/lib/hash_test.rb
|
166
|
+
- test/lib/routes_test.rb
|
167
|
+
- test/lib/string_test.rb
|
168
|
+
- test/lib/typus_test.rb
|
169
|
+
- test/models.rb
|
170
|
+
- test/schema.rb
|
171
|
+
- test/unit/typus_mailer_test.rb
|
172
|
+
- test/unit/typus_test.rb
|
173
|
+
- test/unit/typus_user_roles_test.rb
|
174
|
+
- test/unit/typus_user_test.rb
|
175
|
+
- test/vendor/active_record_test.rb
|
176
|
+
- test/vendor/paginator_test.rb
|
177
|
+
- typus.gemspec
|
178
|
+
has_rdoc: true
|
179
|
+
homepage: http://intraducibles.com/projects/typus
|
180
|
+
post_install_message:
|
181
|
+
rdoc_options:
|
182
|
+
- --charset=UTF-8
|
183
|
+
require_paths:
|
184
|
+
- lib
|
185
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - ">="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: "0"
|
190
|
+
version:
|
191
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
193
|
+
- - ">="
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: "0"
|
196
|
+
version:
|
197
|
+
requirements: []
|
198
|
+
|
199
|
+
rubyforge_project:
|
200
|
+
rubygems_version: 1.3.1
|
201
|
+
signing_key:
|
202
|
+
specification_version: 2
|
203
|
+
summary: Effortless backend interface for Ruby on Rails applications. (Admin scaffold generator.)
|
204
|
+
test_files:
|
205
|
+
- test/fixtures/app/controllers/admin/assets_controller.rb
|
206
|
+
- test/fixtures/app/controllers/admin/categories_controller.rb
|
207
|
+
- test/fixtures/app/controllers/admin/comments_controller.rb
|
208
|
+
- test/fixtures/app/controllers/admin/pages_controller.rb
|
209
|
+
- test/fixtures/app/controllers/admin/posts_controller.rb
|
210
|
+
- test/fixtures/app/controllers/admin/status_controller.rb
|
211
|
+
- test/fixtures/app/controllers/admin/typus_users_controller.rb
|
212
|
+
- test/fixtures/app/controllers/admin/watch_dog_controller.rb
|
213
|
+
- test/functional/admin/assets_controller_test.rb
|
214
|
+
- test/functional/admin/categories_controller_test.rb
|
215
|
+
- test/functional/admin/comments_controller_test.rb
|
216
|
+
- test/functional/admin/master_controller_test.rb
|
217
|
+
- test/functional/admin/posts_controller_test.rb
|
218
|
+
- test/functional/admin/status_controller_test.rb
|
219
|
+
- test/functional/admin/typus_users_controller_test.rb
|
220
|
+
- test/functional/typus_controller_test.rb
|
221
|
+
- test/helper.rb
|
222
|
+
- test/helpers/admin/form_helper_test.rb
|
223
|
+
- test/helpers/admin/master_helper_test.rb
|
224
|
+
- test/helpers/admin/public_helper_test.rb
|
225
|
+
- test/helpers/admin/sidebar_helper_test.rb
|
226
|
+
- test/helpers/admin/table_helper_test.rb
|
227
|
+
- test/helpers/typus_helper_test.rb
|
228
|
+
- test/lib/active_record_test.rb
|
229
|
+
- test/lib/configuration_test.rb
|
230
|
+
- test/lib/hash_test.rb
|
231
|
+
- test/lib/routes_test.rb
|
232
|
+
- test/lib/string_test.rb
|
233
|
+
- test/lib/typus_test.rb
|
234
|
+
- test/models.rb
|
235
|
+
- test/schema.rb
|
236
|
+
- test/unit/typus_mailer_test.rb
|
237
|
+
- test/unit/typus_test.rb
|
238
|
+
- test/unit/typus_user_roles_test.rb
|
239
|
+
- test/unit/typus_user_test.rb
|
240
|
+
- test/vendor/active_record_test.rb
|
241
|
+
- test/vendor/paginator_test.rb
|