typus-rails4 4.0.0.beta6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +488 -0
- data/Gemfile +57 -0
- data/Gemfile.lock +253 -0
- data/MIT-LICENSE +20 -0
- data/README.md +101 -0
- data/Rakefile +51 -0
- data/app/assets/javascripts/typus/application.js +11 -0
- data/app/assets/javascripts/typus/custom.js +2 -0
- data/app/assets/javascripts/typus/jquery-2.1.1.min.js +4 -0
- data/app/assets/javascripts/typus/jquery.application.js +30 -0
- data/app/assets/stylesheets/typus/application.css +6 -0
- data/app/assets/stylesheets/typus/custom.scss +4 -0
- data/app/assets/stylesheets/typus/overrides.scss +10 -0
- data/app/assets/stylesheets/typus/signin.scss +45 -0
- data/app/controllers/admin/account_controller.rb +47 -0
- data/app/controllers/admin/base_controller.rb +40 -0
- data/app/controllers/admin/dashboard_controller.rb +6 -0
- data/app/controllers/admin/resource_controller.rb +8 -0
- data/app/controllers/admin/resources_controller.rb +268 -0
- data/app/controllers/admin/session_controller.rb +43 -0
- data/app/controllers/concerns/admin/actions.rb +88 -0
- data/app/controllers/concerns/admin/acts_as_list.rb +35 -0
- data/app/controllers/concerns/admin/ancestry.rb +26 -0
- data/app/controllers/concerns/admin/autocomplete.rb +11 -0
- data/app/controllers/concerns/admin/bulk.rb +76 -0
- data/app/controllers/concerns/admin/featured_image.rb +22 -0
- data/app/controllers/concerns/admin/filters.rb +57 -0
- data/app/controllers/concerns/admin/format.rb +49 -0
- data/app/controllers/concerns/admin/headless.rb +23 -0
- data/app/controllers/concerns/admin/hooks.rb +4 -0
- data/app/controllers/concerns/admin/multisite.rb +10 -0
- data/app/controllers/concerns/admin/navigation.rb +27 -0
- data/app/controllers/concerns/admin/trash.rb +65 -0
- data/app/helpers/admin/base_helper.rb +78 -0
- data/app/helpers/admin/resources/data_types/belongs_to_helper.rb +88 -0
- data/app/helpers/admin/resources/data_types/boolean_helper.rb +33 -0
- data/app/helpers/admin/resources/data_types/date_helper.rb +16 -0
- data/app/helpers/admin/resources/data_types/datetime_helper.rb +19 -0
- data/app/helpers/admin/resources/data_types/dragonfly_helper.rb +49 -0
- data/app/helpers/admin/resources/data_types/float_helper.rb +2 -0
- data/app/helpers/admin/resources/data_types/has_and_belongs_to_many_helper.rb +59 -0
- data/app/helpers/admin/resources/data_types/has_many_helper.rb +76 -0
- data/app/helpers/admin/resources/data_types/has_one_helper.rb +44 -0
- data/app/helpers/admin/resources/data_types/integer_helper.rb +13 -0
- data/app/helpers/admin/resources/data_types/paperclip_helper.rb +49 -0
- data/app/helpers/admin/resources/data_types/selector_helper.rb +11 -0
- data/app/helpers/admin/resources/data_types/string_helper.rb +38 -0
- data/app/helpers/admin/resources/data_types/text_helper.rb +6 -0
- data/app/helpers/admin/resources/data_types/transversal_helper.rb +8 -0
- data/app/helpers/admin/resources/data_types/tree_helper.rb +28 -0
- data/app/helpers/admin/resources/display_helper.rb +27 -0
- data/app/helpers/admin/resources/filters_helper.rb +18 -0
- data/app/helpers/admin/resources/form_helper.rb +85 -0
- data/app/helpers/admin/resources/list_helper.rb +31 -0
- data/app/helpers/admin/resources/pagination_helper.rb +28 -0
- data/app/helpers/admin/resources/relationships_helper.rb +33 -0
- data/app/helpers/admin/resources/sidebar_helper.rb +34 -0
- data/app/helpers/admin/resources/table_helper.rb +69 -0
- data/app/helpers/admin/resources_helper.rb +25 -0
- data/app/mailers/admin/mailer.rb +19 -0
- data/app/views/admin/account/_form.html.erb +17 -0
- data/app/views/admin/account/forgot_password.html.erb +16 -0
- data/app/views/admin/account/new.html.erb +10 -0
- data/app/views/admin/dashboard/_sidebar.html.erb +14 -0
- data/app/views/admin/dashboard/index.html.erb +8 -0
- data/app/views/admin/dashboard/styles.html.erb +153 -0
- data/app/views/admin/dashboard/widgets/_applications.html.erb +44 -0
- data/app/views/admin/dashboard/widgets/_default.html.erb +43 -0
- data/app/views/admin/dashboard/widgets/_models.html.erb +23 -0
- data/app/views/admin/dashboard/widgets/_models_extended.html.erb +25 -0
- data/app/views/admin/dashboard/widgets/_resources.html.erb +23 -0
- data/app/views/admin/dashboard/widgets/_users.html.erb +23 -0
- data/app/views/admin/mailer/reset_password_instructions.html.erb +7 -0
- data/app/views/admin/mailer/reset_password_instructions.text.erb +7 -0
- data/app/views/admin/resource/_sidebar.html.erb +14 -0
- data/app/views/admin/resources/_edit.html.erb +0 -0
- data/app/views/admin/resources/_form.html.erb +28 -0
- data/app/views/admin/resources/_form_javascripts.html.erb +0 -0
- data/app/views/admin/resources/_form_modal.html.erb +13 -0
- data/app/views/admin/resources/_index.html.erb +0 -0
- data/app/views/admin/resources/_new.html.erb +0 -0
- data/app/views/admin/resources/_pagination.html.erb +15 -0
- data/app/views/admin/resources/_show.html.erb +0 -0
- data/app/views/admin/resources/_sidebar.html.erb +1 -0
- data/app/views/admin/resources/destroy.html.erb +16 -0
- data/app/views/admin/resources/edit.html.erb +22 -0
- data/app/views/admin/resources/edit/_actions.html.erb +7 -0
- data/app/views/admin/resources/edit/_recently_edited.html.erb +8 -0
- data/app/views/admin/resources/index.html.erb +29 -0
- data/app/views/admin/resources/new.html.erb +20 -0
- data/app/views/admin/resources/show.html.erb +26 -0
- data/app/views/admin/session/new.html.erb +18 -0
- data/app/views/admin/shared/_head.html.erb +24 -0
- data/app/views/admin/shared/_modals.html.erb +3 -0
- data/app/views/admin/shared/_sidebar_placeholder.html.erb +0 -0
- data/app/views/admin/templates/README.md +5 -0
- data/app/views/admin/templates/_belongs_to.html.erb +8 -0
- data/app/views/admin/templates/_boolean.html.erb +7 -0
- data/app/views/admin/templates/_date.html.erb +6 -0
- data/app/views/admin/templates/_datetime.html.erb +8 -0
- data/app/views/admin/templates/_dragonfly.html.erb +6 -0
- data/app/views/admin/templates/_dragonfly_form_preview.html.erb +21 -0
- data/app/views/admin/templates/_dragonfly_preview.html.erb +12 -0
- data/app/views/admin/templates/_has_and_belongs_to_many.html.erb +21 -0
- data/app/views/admin/templates/_has_many.html.erb +18 -0
- data/app/views/admin/templates/_has_one.html.erb +14 -0
- data/app/views/admin/templates/_json.html.erb +11 -0
- data/app/views/admin/templates/_paperclip.html.erb +5 -0
- data/app/views/admin/templates/_paperclip_form_preview.html.erb +21 -0
- data/app/views/admin/templates/_paperclip_preview.html.erb +12 -0
- data/app/views/admin/templates/_password.html.erb +6 -0
- data/app/views/admin/templates/_position.html.erb +5 -0
- data/app/views/admin/templates/_profile_sidebar.html.erb +4 -0
- data/app/views/admin/templates/_selector.html.erb +4 -0
- data/app/views/admin/templates/_string.html.erb +4 -0
- data/app/views/admin/templates/_string_with_preview.html.erb +11 -0
- data/app/views/admin/templates/_text.html.erb +11 -0
- data/app/views/admin/templates/_text_with_ckeditor.html.erb +24 -0
- data/app/views/admin/templates/_text_with_ckeditor_and_assets.html.erb +38 -0
- data/app/views/admin/templates/_time.html.erb +9 -0
- data/app/views/admin/templates/_tree.html.erb +6 -0
- data/app/views/admin/templates/modals/_belongs_to.html.erb +60 -0
- data/app/views/admin/templates/modals/_dragonfly.html.erb +13 -0
- data/app/views/admin/templates/modals/_has_and_belongs_to_many.html.erb +25 -0
- data/app/views/admin/templates/modals/_has_many.html.erb +59 -0
- data/app/views/admin/templates/modals/_paperclip.html.erb +13 -0
- data/app/views/helpers/admin/base/_apps.html.erb +86 -0
- data/app/views/helpers/admin/base/_breadcrumbs.html.erb +6 -0
- data/app/views/helpers/admin/base/_flash_message.html.erb +3 -0
- data/app/views/helpers/admin/base/_login_info.html.erb +0 -0
- data/app/views/helpers/admin/dashboard/_resources.html.erb +19 -0
- data/app/views/helpers/admin/resources/_actions.html.erb +18 -0
- data/app/views/helpers/admin/resources/_errors.html.erb +12 -0
- data/app/views/helpers/admin/resources/_filters.html.erb +16 -0
- data/app/views/helpers/admin/resources/_search.html.erb +17 -0
- data/app/views/helpers/admin/resources/_sidebar.html.erb +4 -0
- data/app/views/helpers/admin/resources/_table.html.erb +45 -0
- data/app/views/helpers/admin/resources/sidebar/_item.html.erb +26 -0
- data/app/views/helpers/admin/resources/sidebar/_items.html.erb +14 -0
- data/app/views/helpers/admin/resources/sidebar/_items_index.html.erb +57 -0
- data/app/views/layouts/admin/base.html.erb +30 -0
- data/app/views/layouts/admin/headless.html.erb +1 -0
- data/app/views/layouts/admin/session.html.erb +26 -0
- data/bin/run-tests +7 -0
- data/bin/setup +9 -0
- data/config/locales/typus.en.yml +125 -0
- data/config/routes.rb +46 -0
- data/lib/generators/templates/config/initializers/typus.rb +34 -0
- data/lib/generators/templates/config/initializers/typus_authentication.rb +18 -0
- data/lib/generators/templates/config/initializers/typus_resources.rb +24 -0
- data/lib/generators/templates/config/typus/README +58 -0
- data/lib/generators/templates/config/typus/application.yml +3 -0
- data/lib/generators/templates/config/typus/application_roles.yml +4 -0
- data/lib/generators/templates/config/typus/typus.yml +15 -0
- data/lib/generators/templates/config/typus/typus_roles.yml +4 -0
- data/lib/generators/templates/controller.erb +2 -0
- data/lib/generators/templates/migration.erb +22 -0
- data/lib/generators/templates/view.html.erb +13 -0
- data/lib/generators/typus/config_generator.rb +67 -0
- data/lib/generators/typus/controller_generator.rb +26 -0
- data/lib/generators/typus/initializers_generator.rb +20 -0
- data/lib/generators/typus/migration_generator.rb +94 -0
- data/lib/generators/typus/model_generator.rb +93 -0
- data/lib/generators/typus/typus_generator.rb +54 -0
- data/lib/generators/typus/views_generator.rb +19 -0
- data/lib/support/active_record.rb +42 -0
- data/lib/support/fake_user.rb +47 -0
- data/lib/support/hash.rb +8 -0
- data/lib/support/object.rb +9 -0
- data/lib/support/string.rb +40 -0
- data/lib/tasks/typus.rake +11 -0
- data/lib/typus.rb +215 -0
- data/lib/typus/authentication/base.rb +39 -0
- data/lib/typus/authentication/devise.rb +19 -0
- data/lib/typus/authentication/http_basic.rb +18 -0
- data/lib/typus/authentication/none.rb +15 -0
- data/lib/typus/authentication/none_with_role.rb +15 -0
- data/lib/typus/authentication/session.rb +123 -0
- data/lib/typus/configuration.rb +43 -0
- data/lib/typus/engine.rb +4 -0
- data/lib/typus/orm/active_record.rb +10 -0
- data/lib/typus/orm/active_record/admin_user.rb +65 -0
- data/lib/typus/orm/active_record/class_methods.rb +104 -0
- data/lib/typus/orm/active_record/instance_methods.rb +76 -0
- data/lib/typus/orm/active_record/search.rb +43 -0
- data/lib/typus/orm/base/class_methods.rb +188 -0
- data/lib/typus/orm/base/search.rb +70 -0
- data/lib/typus/regex.rb +11 -0
- data/lib/typus/resources.rb +55 -0
- data/lib/typus/version.rb +10 -0
- data/typus.gemspec +27 -0
- data/vendor/assets/chosen/LICENSE.md +24 -0
- data/vendor/assets/chosen/chosen-sprite.png +0 -0
- data/vendor/assets/chosen/chosen-sprite@2x.png +0 -0
- data/vendor/assets/chosen/chosen.jquery.js +1239 -0
- data/vendor/assets/chosen/chosen.scss +437 -0
- metadata +271 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 71d6a46d13ef4705ed3d13f4017f0d909967059f
|
4
|
+
data.tar.gz: 29720081d465b2010f3cae229396154f95da296d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c36437b6bb608fcb61132222d4be64c32286eba694d74e34bf8ddd6577b728693bd0e235b728e25aba48c6e0a26533b0a73ff89f31d98a0c4e848ea7e5b00d3d
|
7
|
+
data.tar.gz: 1d1f4467a84c3994d44fee5a46eac988f387ed5456006feabd678bfc86373d293d6a81d208c8a63cda370038d76db766fd2be1a11f5616cbde19a0411b5a01fd
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,488 @@
|
|
1
|
+
# CHANGELOG
|
2
|
+
|
3
|
+
## 3.2.0 (unrelased)
|
4
|
+
|
5
|
+
* [CHANGED] Application emails now use host_with_port to generate the
|
6
|
+
url. This is usefull when running multi-domain applications.
|
7
|
+
|
8
|
+
* [CHANGED] Updated gems dependencies.
|
9
|
+
|
10
|
+
* [CHANGED] Dropped support for Ruby 1.8.7. This doesn't mean Typus will
|
11
|
+
not run with that version of Ruby, but I don't longer have plans to
|
12
|
+
test against that version.
|
13
|
+
|
14
|
+
* [CHANGED] We do not longer look for Typus configuration files in the
|
15
|
+
plugins folder. Store them in `config/typus` or `lib/*/config/typus`.
|
16
|
+
Rails 4 will not support plugins and Rails 3.2 marks them as deprecated
|
17
|
+
so doesn't make sense to support them anymore.
|
18
|
+
|
19
|
+
* [CHANGED] Require at least `Rails 3.2.2`.
|
20
|
+
|
21
|
+
* [FIXED] Documentation about exporting data.
|
22
|
+
|
23
|
+
* [CHANGED] `login_info` helper becomes `admin_login_info`.
|
24
|
+
|
25
|
+
* [CHANGED] `search` helper becomes `admin_search`.
|
26
|
+
|
27
|
+
* [CHANGED] `title` helper becomes `admin_title` (and merged methods).
|
28
|
+
|
29
|
+
* [CHANGED] `apps` helper becomes `admin_apps`.
|
30
|
+
|
31
|
+
* [CHANGED] We do not longer detect if the application has a `root_path`
|
32
|
+
defined. A new setting `Typus.admin_title_link` has been added so we have
|
33
|
+
more control on which URL we want to use. This is useful because we don't
|
34
|
+
always want to link to the main site.
|
35
|
+
|
36
|
+
* [CHANGED] `display_flash_message` becomes `admin_display_flash_message`.
|
37
|
+
|
38
|
+
* [CHANGED] "Add New" becomes "Add".
|
39
|
+
|
40
|
+
* [FIXED] `return_to` now works as expected so now it's easier to send links to
|
41
|
+
the admin interface.
|
42
|
+
|
43
|
+
* [CHANGED] "Applications" in dashboard is now "Site administration".
|
44
|
+
|
45
|
+
* [FIXED] Model names in Trash module.
|
46
|
+
|
47
|
+
* [CHANGED] Removed `generate_html` alias method and use `get_paginated_data`.
|
48
|
+
This also fixes the usage of `ctags`.
|
49
|
+
|
50
|
+
* [CHANGED] Do not show "Add" link on the sidebar because it's confusing,
|
51
|
+
duplicated. We also have plans to remove the sidebar, so consider this as an
|
52
|
+
starting point. (Sidebar will be replaced by a drop down menu.)
|
53
|
+
|
54
|
+
* [CHANGED] No need to confirm when pressing "Sign out".
|
55
|
+
|
56
|
+
* [CHANGED] Instead of settings the session to `nil` when login out, we are
|
57
|
+
now removing it using `session.delete(:typus_user_id)`.
|
58
|
+
|
59
|
+
* [CHANGED] `TypusClass#to_label` now returns the email.
|
60
|
+
|
61
|
+
* [CHANGED] Session and account forms are now using `Typus.user_class`.
|
62
|
+
|
63
|
+
* [CHANGED] Extracted `account` and `session` forms into a partial.
|
64
|
+
|
65
|
+
* [CHANGED] `not_allowed` now accepts an param so we can give better feedback
|
66
|
+
to the user when an action is not allowed.
|
67
|
+
|
68
|
+
* [FIXED] Filter scopes so we can only run those scopes defined in configuration
|
69
|
+
files.
|
70
|
+
|
71
|
+
* [NEW] `Model.typus_scopes` to detect defined scopes.
|
72
|
+
|
73
|
+
* [CHANGED] Datetime/Time filters use Time intervals. (all_day, all_week ...)
|
74
|
+
|
75
|
+
* Added pagination detection on associations.
|
76
|
+
|
77
|
+
* [FIXED] `acts_as_tree` select values should be scaped.
|
78
|
+
|
79
|
+
* [FIXED] Scope should be always we applied to index action.
|
80
|
+
|
81
|
+
* Added `Typus.whitelist_ip` so we can configure which IP are allowed
|
82
|
+
to log into Typus, this is useful on systems with critical data
|
83
|
+
stored.
|
84
|
+
|
85
|
+
Changes: <https://github.com/typus/typus/compare/v3.1.10...master>
|
86
|
+
|
87
|
+
|
88
|
+
## 3.1.11 (unreleased)
|
89
|
+
|
90
|
+
* Added pagination detection on associations.
|
91
|
+
|
92
|
+
Changes: <https://github.com/typus/typus/compare/v3.1.10...3-1-stable>
|
93
|
+
|
94
|
+
|
95
|
+
## 3.1.10 (2012-03-27)
|
96
|
+
|
97
|
+
* [FIXED] Filter scopes so we can only run those scopes defined in configuration
|
98
|
+
files.
|
99
|
+
|
100
|
+
* [NEW] `Model.typus_scopes` to detect defined scopes.
|
101
|
+
|
102
|
+
Changes: <https://github.com/typus/typus/compare/v3.1.9...v3.1.10>
|
103
|
+
|
104
|
+
|
105
|
+
## 3.1.9 (2012-03-08)
|
106
|
+
|
107
|
+
* [FIXED] _addanother save button is only shown if the user has permission
|
108
|
+
to perform the action.
|
109
|
+
|
110
|
+
* [FIXED] Custom actions on show are now showed.
|
111
|
+
|
112
|
+
* [CHANGED] Detect if application has Kaminari or WillPaginate, otherwise
|
113
|
+
we will not setup a paginate and will tell the user to install one of
|
114
|
+
those mechanisms. In the near future Typus will provide a simple
|
115
|
+
pagination mechahism.
|
116
|
+
|
117
|
+
* [NEW] Option to enable and disable counters on resources. Enabled by default.
|
118
|
+
|
119
|
+
* [FIXED] Fixed Dir compatibility for Jruby.
|
120
|
+
|
121
|
+
* [CHANGED] session#destroy now uses DELETE.
|
122
|
+
|
123
|
+
* [CHANGED] CSV/XML links should include filters.
|
124
|
+
|
125
|
+
* [CHANGED] Removed find_in_batches from "csv_export". It was useless.
|
126
|
+
|
127
|
+
* [FIXED] Fixed converting route to resource for "singular" class. Eg.
|
128
|
+
"CustomerData" was being converted to "CustomerDatum".
|
129
|
+
|
130
|
+
Changes: <https://github.com/typus/typus/compare/v3.1.8...v3.1.9>
|
131
|
+
|
132
|
+
|
133
|
+
# 3.1.8 (2012-02-05)
|
134
|
+
|
135
|
+
* [CHANGED] CSV generation is now performed in memory so we play nice
|
136
|
+
with Heroku.
|
137
|
+
|
138
|
+
* [CHANGED] We now can export XML, CSV and JSON without restriction. If
|
139
|
+
fields are not defined for a format, defaults will be used.
|
140
|
+
|
141
|
+
* [CHANGED] Updated Kaminari to `0.13.0` so we are now Rails `3.2.0`
|
142
|
+
compatible.
|
143
|
+
|
144
|
+
* [CHANGED] We now also load configuration files from "lib/<plugin>/config"
|
145
|
+
as this is marked as deprecated in Rails 3.2.0.
|
146
|
+
|
147
|
+
* [CHANGED] Updated Gems for the dummy application. This fixes deprecation
|
148
|
+
warnings and keeps the plugin up to date.
|
149
|
+
|
150
|
+
Changes: <https://github.com/typus/typus/compare/v3.1.7...v3.1.8>
|
151
|
+
|
152
|
+
|
153
|
+
## 3.1.7 (2012-01-25)
|
154
|
+
|
155
|
+
* [FIXED] Require ActiveRecord extension only if ActiveRecord is defined.
|
156
|
+
|
157
|
+
* [NEW] Show association name on related tables.
|
158
|
+
|
159
|
+
* [FIXED] Fixed gemspec to add compatibility with Rails 3.2.0
|
160
|
+
|
161
|
+
Changes: <https://github.com/typus/typus/compare/v3.1.6...v3.1.7>
|
162
|
+
|
163
|
+
|
164
|
+
## 3.1.6 (2012-01-02)
|
165
|
+
|
166
|
+
* [FIXED] "Save and continue editing" button was shown even when the
|
167
|
+
user didn't have acess to it.
|
168
|
+
|
169
|
+
* [CHANGED] Improved MongoDB support.
|
170
|
+
|
171
|
+
* [NEW] We can now filter by integer.
|
172
|
+
|
173
|
+
* [FIXED] Independent paginators when showing associations.
|
174
|
+
|
175
|
+
Changes: <https://github.com/typus/typus/compare/v3.1.5...v3.1.6>
|
176
|
+
|
177
|
+
|
178
|
+
## 3.1.5 (2011-12-10)
|
179
|
+
|
180
|
+
* [CHANGED] Association tables now contain a "show" link.
|
181
|
+
|
182
|
+
* [FIXED] Generators check if there's a database connection.
|
183
|
+
|
184
|
+
* [CHANGED] ActsAsList module now can only perform whitelisted actions.
|
185
|
+
|
186
|
+
* [CHANGED] ActsAsList hooks moved completely to it's module.
|
187
|
+
|
188
|
+
* [CHANGED] Repository moved again to http://github.com/typus/typus
|
189
|
+
|
190
|
+
Changes: <https://github.com/typus/typus/compare/v3.1.4...v3.1.5>
|
191
|
+
|
192
|
+
|
193
|
+
## 3.1.4
|
194
|
+
|
195
|
+
* [FIXED] Belongs to helper was not creating properly class ids.
|
196
|
+
|
197
|
+
Changes: <https://github.com/typus/typus/compare/v3.1.3...v3.1.4>
|
198
|
+
|
199
|
+
|
200
|
+
## 3.1.3
|
201
|
+
|
202
|
+
* [CHANGED] Added `Typus.chosen` so we can disable "Chosen". This will
|
203
|
+
be in Typus until "Chosen" supports remote data calls.
|
204
|
+
|
205
|
+
* [NEW] This is not really new ... I've taken back the autocomplete
|
206
|
+
feature which will be used eventually by "Chosen" once they support
|
207
|
+
remote calls.
|
208
|
+
|
209
|
+
* [CHANGED] Typus::Resources.minute_step is now nil by default.
|
210
|
+
|
211
|
+
* [CHANGED] Date and DateTime selectors should not set current date by default.
|
212
|
+
|
213
|
+
* [CHANGED] Generator now stores model configuration in a file with the
|
214
|
+
name of the model, not the plural.
|
215
|
+
|
216
|
+
* [CHANGED] Generators can be run without setting up a database.
|
217
|
+
|
218
|
+
* [CHANGED] We do not longer hide search boxes on Chosen. Apparently
|
219
|
+
it has been fixed: https://github.com/harvesthq/chosen/commit/d4c7005b5c
|
220
|
+
|
221
|
+
* [FIXED] Detaching a Paperclip was not working.
|
222
|
+
|
223
|
+
Changes: <https://github.com/typus/typus/compare/v3.1.2...v3.1.3>
|
224
|
+
|
225
|
+
|
226
|
+
## 3.1.2
|
227
|
+
|
228
|
+
* [CHANGED] Images, links and belongs_to associations do not have links
|
229
|
+
when popup mode. This will avoid an "Inception" problem.
|
230
|
+
|
231
|
+
* [FIXED] Problems on HABTM associations when generating association names.
|
232
|
+
|
233
|
+
|
234
|
+
## 3.1.1
|
235
|
+
|
236
|
+
* [CHANGED] Removed user guide. Docs can now be found at http://docs.typuscmf.com/
|
237
|
+
|
238
|
+
* [NEW] New configuration setting which allows serving Typus from a subdomain. (42b5d8ae)
|
239
|
+
|
240
|
+
* [FIXED] HABTM associations were not working as expected when using namespaced
|
241
|
+
models.
|
242
|
+
|
243
|
+
* [CHANGED] Configuration can be read from subfolders so you can organize better
|
244
|
+
your models. I'm starting to use a file per model and I'd recommend you start
|
245
|
+
using it ... (8a3fc09f)
|
246
|
+
|
247
|
+
* [FIXED] Helper Method `display_virtual` was not defined. (2b7e1948)
|
248
|
+
|
249
|
+
* [FIXED] Do not show Trash link when user can't edit items.
|
250
|
+
|
251
|
+
* [CHANGED] Updated Rubies list for Travis-CI.
|
252
|
+
|
253
|
+
* [CHANGED] Default development/test database is now **Postgresql**.
|
254
|
+
|
255
|
+
|
256
|
+
## 3.1.0
|
257
|
+
|
258
|
+
* [NEW] Filter with scopes.
|
259
|
+
|
260
|
+
* [NEW] Three different actions to save a record.
|
261
|
+
|
262
|
+
* [CHANGED] Now we have a dashboard for every installed application.
|
263
|
+
|
264
|
+
* [CHANGED] Associations are now cleaner. No more "relate" and "unrelate".
|
265
|
+
|
266
|
+
* [NEW] 960.gs (http://960.gs/)
|
267
|
+
|
268
|
+
* [NEW] Formalize (http://formalize.me/)
|
269
|
+
|
270
|
+
* [NEW] Chosen (http://harvesthq.github.com/chosen/)
|
271
|
+
|
272
|
+
* [CHANGED] We now support data types, which is basically a cleaner way to
|
273
|
+
add support to future data models. (Eg. CarrierWave)
|
274
|
+
|
275
|
+
* [CHANGED] Dragonfly attachments now also show details. (Size, date ...)
|
276
|
+
|
277
|
+
* [CHANGED] Improved usability by using Fancybox to add new related records.
|
278
|
+
|
279
|
+
* [NEW] Bulk actions.
|
280
|
+
|
281
|
+
* [CHANGED] Controllers are now splitted into modules so we can have a library
|
282
|
+
of common use cases.
|
283
|
+
|
284
|
+
* [CHANGED] WillPaginate has been replaced by Kaminari.
|
285
|
+
|
286
|
+
* [CHANGED] TypusCMS becomes TypusCMF.
|
287
|
+
|
288
|
+
* [NEW] Applications tabs can be sorted!
|
289
|
+
|
290
|
+
* [NEW] Models can be hidden from sidebars and dashboard.
|
291
|
+
|
292
|
+
* [NEW] Module to enable Trash functionality. Need the rails-trash plugin.
|
293
|
+
|
294
|
+
* [FIXED] We should be able to use namespaced models with more than 2 levels
|
295
|
+
of namespace.
|
296
|
+
|
297
|
+
* [CHANGED] We can't longer set models as "Read Only" from the configuration
|
298
|
+
files, this was interesting but not really usefull as anyone could mass-assign
|
299
|
+
attributes. Now to set an attribute as "Read Only" you only need to protect
|
300
|
+
it using "attr_protected".
|
301
|
+
|
302
|
+
* [NEW] Detect "attr_protected" roles.
|
303
|
+
|
304
|
+
* [NEW] Asset pipeline usage. (Yes, we are in Rails 3.1)
|
305
|
+
|
306
|
+
* [CHANGED] Removed "Autocomplete" module.
|
307
|
+
|
308
|
+
* [NEW] Typus is now tested with Travis-CI.
|
309
|
+
|
310
|
+
* [NEW] Improved MongoDB support.
|
311
|
+
|
312
|
+
* [NEW] Improved Devise support out of the box.
|
313
|
+
|
314
|
+
* [CHANGED] Improved how exporters work. Exporting only works if we define it
|
315
|
+
on the model, otherwise will raise a 422 error.
|
316
|
+
|
317
|
+
* [CHANGED] Updated mailer templates and renamed them. We are using the
|
318
|
+
templates provided by Devise.
|
319
|
+
|
320
|
+
* [CHANGED] We can set image sizes.
|
321
|
+
|
322
|
+
* [CHANGED] Moved demo application to "test/dummy" following "enginex"
|
323
|
+
conventions.
|
324
|
+
|
325
|
+
* [CHANGED] We are not longer using FasterCSV on Ruby 1.8.7.
|
326
|
+
|
327
|
+
* [NEW] Introduced the concept of "Widgets". Dashboard is now a "Widget".
|
328
|
+
|
329
|
+
* [CHANGED] Custom actions are back!
|
330
|
+
|
331
|
+
* [REMOVED] Read Only option has been removed from configuration files. This
|
332
|
+
wasn't really protecting the forms. We are now using `attr_protected` with
|
333
|
+
roles: `attr_protected :title, :as => :admin`.
|
334
|
+
|
335
|
+
* [CHANGED] Configuration files are now generated by model not by groups.
|
336
|
+
|
337
|
+
|
338
|
+
## 3.0.12
|
339
|
+
|
340
|
+
* [FIXED] Use will_paginate 3.0.0.
|
341
|
+
|
342
|
+
|
343
|
+
## 3.0.9
|
344
|
+
|
345
|
+
* [NEW] Refactored and renamed `User` extensions to `AdminUserV1`.
|
346
|
+
|
347
|
+
* [NEW] `AdminUserV2` which uses `bcrypt` and it's simpler. This will be the
|
348
|
+
default authentication mechanism for my new apps.
|
349
|
+
|
350
|
+
|
351
|
+
## 3.0.8
|
352
|
+
|
353
|
+
* [FIXED] Missing alias. (Commit 2af7d4cfd98bb0)
|
354
|
+
|
355
|
+
|
356
|
+
## 3.0.7
|
357
|
+
|
358
|
+
* [CHANGED] Updated assets. Please run the `typus:assets` generator in order
|
359
|
+
to create the new files on the new location.
|
360
|
+
|
361
|
+
|
362
|
+
## 3.0.3
|
363
|
+
|
364
|
+
* [NEW] Support for has many through relationships. [jmeiss]
|
365
|
+
|
366
|
+
* [CHANGED] Removed typus pagination module and use `will_paginate` one.
|
367
|
+
Pagination options can be configure overriding `Typus.pagination` variable.
|
368
|
+
|
369
|
+
* [FIXED] Queries are now using the table name. [tyx]
|
370
|
+
|
371
|
+
* [NEW] All queries are `unscoped` so we can separate completely the frontend
|
372
|
+
from the backend.
|
373
|
+
|
374
|
+
* [NEW] We can disable sortable tables.
|
375
|
+
|
376
|
+
* [FIXED] Url generation bug when using namespaced STI models. [masone]
|
377
|
+
|
378
|
+
* [NEW] Raise an exception if config for model cannot be found. [masone]
|
379
|
+
|
380
|
+
* [FIXED] Minor bug fixes and re-styling ...
|
381
|
+
|
382
|
+
* [NEW] Layouts contain metatag with generator information.
|
383
|
+
|
384
|
+
* [NEW] Added missing csrf_meta_tag in `session.html.erb` layout.
|
385
|
+
|
386
|
+
* [NEW] Added constrain to database to avoid duplicated emails.
|
387
|
+
|
388
|
+
* [FIXED] Dates on tables are localized.
|
389
|
+
|
390
|
+
* [FIXED] `@resource.classify.constantize` becomes `@resource.constantize`.
|
391
|
+
|
392
|
+
* [CHANGED] Updated `typus_preview` to display original filaname when file is
|
393
|
+
not an image.
|
394
|
+
|
395
|
+
* [NEW] Support for Dragonfly attachments. Template for this kind of attribute
|
396
|
+
is `_dragonfly.html.erb`.
|
397
|
+
|
398
|
+
* [CHANGED] Paperclip attachments are detected as `:paperclip` thus the form
|
399
|
+
template is not `_paperclip.html.erb`.
|
400
|
+
|
401
|
+
* [NEW] 中文 (zh-CN) translation. [ZoOL]
|
402
|
+
|
403
|
+
* [CHANGED] `action_after_save` by default is `index`. This has been changed
|
404
|
+
after a usability test with a client.
|
405
|
+
|
406
|
+
* [NEW] Greek (el) translation. [Spyros Livathinos]
|
407
|
+
|
408
|
+
* [CHANGED] Updated jQuery to v1.4.4
|
409
|
+
|
410
|
+
* [CHANGED] Updated fancybox to v1.3.4
|
411
|
+
|
412
|
+
* [NEW] New generator: `rails generate typus:assets`.
|
413
|
+
|
414
|
+
* [NEW] Created UserVoice (http://typuscms.uservoice.com/)
|
415
|
+
|
416
|
+
* [CHANGED] Table of contents on documentation for easier access.
|
417
|
+
|
418
|
+
* [CHANGED] Display `—` where no content is available.
|
419
|
+
|
420
|
+
* [NEW] `Admin::ResourcesController` includes `Typus::Extensions` if available.
|
421
|
+
|
422
|
+
* [CHANGED] Removed `remove_filter_link` helper in favour of predefined links
|
423
|
+
to filters.
|
424
|
+
|
425
|
+
* [NEW] Custom actions can be injected into table actions. This needs some
|
426
|
+
refector to be more powerful (roles) but it works for now.
|
427
|
+
|
428
|
+
* [CHANGED] `current_user` is now `admin_user`.
|
429
|
+
|
430
|
+
* [CHANGED] All available locales are shown to the user.
|
431
|
+
|
432
|
+
* [CHANGED] All the I18n stuff of `typus` is now under Typus::I18n namespace.
|
433
|
+
|
434
|
+
* [CHANGED] `/admin/help` is now `/admin/user_guide`.
|
435
|
+
|
436
|
+
* [NEW] Link to `/admin/user_guide` from the sidebar.
|
437
|
+
|
438
|
+
* [CHANGED] AdminUser::LANGUAGES becomes AdminUser::LOCALE so you'll have to
|
439
|
+
update your AdminUser.
|
440
|
+
|
441
|
+
* [NEW] Better application templates.
|
442
|
+
|
443
|
+
|
444
|
+
## 3.0.2
|
445
|
+
|
446
|
+
* [FIXED] Use Arel to get the data on lists. After moving to will_paginate I
|
447
|
+
broke the data method, on each list we where "selecting ALL on the table of
|
448
|
+
the current model" (Really ugly bug) [Reported by NateW]
|
449
|
+
|
450
|
+
* [FIXED]* If @current_user was being set many times on each request, thanks
|
451
|
+
to Rails caching mechanism this was not affecting to the performance. Now we
|
452
|
+
only see the @current_user once. (As it should be.)
|
453
|
+
|
454
|
+
|
455
|
+
## 3.0.1
|
456
|
+
|
457
|
+
* [FIXED] After moving from a vendored paginator to will_paginate I removed
|
458
|
+
some stuff which shouldn't be removed, so the 3.0.0 gem is totally broken.
|
459
|
+
|
460
|
+
* [FIXED] Force query with postgresql adapter to not be case sensitive [jmeiss]
|
461
|
+
|
462
|
+
|
463
|
+
## 3.0.0
|
464
|
+
|
465
|
+
* [NEW] New gem version compatible with Rails 3.
|
466
|
+
|
467
|
+
|
468
|
+
## Previously
|
469
|
+
|
470
|
+
Why a 3.0.0 version? After considering the work done for the Rails 3 transition
|
471
|
+
I though it would be a good idea to keep versions syncronized with Rails.
|
472
|
+
|
473
|
+
**Typus** will have the same version numbers as Rails as I considered it's
|
474
|
+
pretty tied to it. With each release of Rails, we will take the latest features
|
475
|
+
into **Typus**.
|
476
|
+
|
477
|
+
Pending stuff that someday will be done, donations and collaborations are
|
478
|
+
accepted.
|
479
|
+
|
480
|
+
* Add AJAX, specially when removing and adding new relationships.
|
481
|
+
|
482
|
+
* Transversal search and full models search.
|
483
|
+
|
484
|
+
* Test the helpers and add some functional testing.
|
485
|
+
|
486
|
+
* Nested models.
|
487
|
+
|
488
|
+
* Contextual content depending on the role logged.
|