typus 3.0.10 → 3.0.11.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -1
- data/Gemfile +9 -5
- data/README.md +17 -53
- data/app/assets/vendor/typus/javascripts/application.js +2 -0
- data/app/assets/vendor/typus/javascripts/jquery.application.js +29 -0
- data/app/assets/vendor/typus/javascripts/jquery.rails.autocomplete.js +32 -0
- data/app/assets/vendor/typus/javascripts/jquery.rails.js +158 -0
- data/app/assets/vendor/typus/javascripts/jquery.searchField.js +91 -0
- data/app/assets/vendor/typus/stylesheets/application.css +11 -0
- data/app/assets/vendor/typus/stylesheets/reset.css +48 -0
- data/app/assets/vendor/typus/stylesheets/screen.css +361 -0
- data/app/assets/vendor/typus/vendor/jquery-tokeninput/css/token-input-facebook.css +122 -0
- data/app/assets/vendor/typus/vendor/jquery-tokeninput/css/token-input-mac.css +204 -0
- data/app/assets/vendor/typus/vendor/jquery-tokeninput/css/token-input.css +120 -0
- data/app/assets/vendor/typus/vendor/jquery-tokeninput/js/jquery.tokeninput.js +736 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/jquery-ui-1.8.12.custom.css +578 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/index.html +367 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/js/jquery-1.5.1.min.js +16 -0
- data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/js/jquery-ui-1.8.12.custom.min.js +783 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/blank.gif +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_close.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_loading.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_left.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_right.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_e.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_n.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_ne.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_nw.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_s.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_se.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_sw.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_w.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_left.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_main.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_over.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_right.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-x.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-y.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancybox.png +0 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.easing-1.3.pack.js +72 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.css +359 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.js +1156 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack.js +46 -0
- data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.mousewheel-3.0.4.pack.js +14 -0
- data/app/controllers/admin/account_controller.rb +2 -2
- data/app/controllers/admin/base_controller.rb +4 -0
- data/app/controllers/admin/resources_controller.rb +8 -83
- data/app/controllers/admin/session_controller.rb +10 -2
- data/app/helpers/admin/file_preview_helper.rb +15 -1
- data/app/helpers/admin/filters_helper.rb +4 -4
- data/app/helpers/admin/relationships_helper.rb +11 -6
- data/app/helpers/admin/resources_helper.rb +4 -1
- data/app/helpers/admin/table_helper.rb +6 -3
- data/app/views/admin/dashboard/_sidebar.html.erb +1 -3
- data/app/views/admin/helpers/table/_table.html.erb +0 -8
- data/app/views/admin/resources/index.html.erb +3 -1
- data/app/views/admin/shared/_head.html.erb +30 -0
- data/app/views/admin/templates/_belongs_to_with_autocomplete.html.erb +23 -4
- data/app/views/admin/templates/_relate_form.html.erb +1 -1
- data/app/views/admin/templates/_selector.html.erb +5 -1
- data/app/views/layouts/admin/base.html.erb +1 -30
- data/app/views/layouts/admin/headless.html.erb +1 -30
- data/app/views/layouts/admin/session.html.erb +1 -19
- data/doc/mongo_db.md +10 -0
- data/lib/generators/typus/typus_generator.rb +0 -5
- data/lib/support/active_record.rb +8 -0
- data/lib/typus.rb +2 -1
- data/lib/typus/controller/actions.rb +7 -0
- data/lib/typus/controller/acts_as.rb +22 -0
- data/lib/typus/controller/associations.rb +66 -0
- data/lib/typus/controller/autocomplete.rb +1 -1
- data/lib/typus/controller/format.rb +1 -1
- data/lib/typus/engine.rb +7 -2
- data/lib/typus/orm/active_record/class_methods.rb +1 -1
- data/lib/typus/version.rb +1 -1
- data/test/app/controllers/admin/assets_controller_test.rb +8 -5
- data/test/app/controllers/admin/pages_controller_test.rb +2 -2
- data/test/app/controllers/admin/posts_controller_test.rb +27 -2
- data/test/app/controllers/admin/views_controller_test.rb +36 -0
- data/test/app/helpers/admin/file_preview_helper_test.rb +9 -1
- data/test/app/helpers/admin/filters_helper_test.rb +5 -0
- data/test/app/helpers/admin/resources_helper_test.rb +2 -2
- data/test/app/helpers/admin/table_helper_test.rb +26 -0
- data/test/factories.rb +11 -0
- data/test/fixtures/rails_app/app/controllers/admin/hits_controller.rb +0 -3
- data/test/fixtures/rails_app/app/controllers/admin/views_controller.rb +6 -0
- data/test/fixtures/rails_app/app/models/asset.rb +16 -4
- data/test/fixtures/rails_app/app/models/site.rb +16 -0
- data/test/fixtures/rails_app/app/models/view.rb +2 -0
- data/test/fixtures/rails_app/config/typus/crud_extended.yml +2 -2
- data/test/fixtures/rails_app/db/schema.rb +15 -0
- data/test/lib/support/active_record_test.rb +24 -0
- data/test/lib/typus/orm/active_record/class_methods_test.rb +4 -4
- data/test/lib/typus_test.rb +1 -1
- metadata +68 -190
- data/.gemtest +0 -0
- data/doc/hudson_setup.md +0 -19
- data/lib/generators/typus/assets_generator.rb +0 -19
- data/test/fixtures/rails_app/app/views/layouts/admin/headless.html.erb +0 -38
data/.gemtest
DELETED
File without changes
|
data/doc/hudson_setup.md
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# Hudson Setup
|
2
|
-
|
3
|
-
These are the build steps in Hudson:
|
4
|
-
|
5
|
-
rake test:all
|
6
|
-
|
7
|
-
It builds the following branches:
|
8
|
-
|
9
|
-
master
|
10
|
-
3-0-stable
|
11
|
-
|
12
|
-
Max # of builds to keep:
|
13
|
-
|
14
|
-
20
|
15
|
-
|
16
|
-
Options Set:
|
17
|
-
|
18
|
-
✓ Discard Old Builds:
|
19
|
-
✓ Trigger builds remotely (e.g., from scripts)
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Typus
|
2
|
-
module Generators
|
3
|
-
class AssetsGenerator < Rails::Generators::Base
|
4
|
-
|
5
|
-
source_root File.expand_path("../../templates", __FILE__)
|
6
|
-
|
7
|
-
desc <<-MSG
|
8
|
-
Description:
|
9
|
-
Copies all Typus assets to your application.
|
10
|
-
|
11
|
-
MSG
|
12
|
-
|
13
|
-
def copy_assets
|
14
|
-
directory "public", "public"
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,38 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html lang="<%= I18n.locale %>">
|
4
|
-
|
5
|
-
<head>
|
6
|
-
|
7
|
-
<meta charset="utf-8" />
|
8
|
-
<meta name="apple-mobile-web-app-capable" content="yes" />
|
9
|
-
<meta name="generator" content="Typus <%= Typus::VERSION %>" />
|
10
|
-
|
11
|
-
<title><%= yield :title %></title>
|
12
|
-
|
13
|
-
<%= stylesheet_link_tag "/admin/stylesheets/screen",
|
14
|
-
"/admin/stylesheets/application",
|
15
|
-
"/admin/vendor/fancybox/jquery.fancybox-1.3.4.css" %>
|
16
|
-
<%= yield :stylesheets -%>
|
17
|
-
|
18
|
-
<%= javascript_include_tag "/admin/javascripts/jquery-1.4.4.min.js",
|
19
|
-
"/admin/javascripts/jquery.searchField.js",
|
20
|
-
"/admin/javascripts/jquery.rails.js",
|
21
|
-
"/admin/vendor/fancybox/jquery.fancybox-1.3.4.pack.js",
|
22
|
-
"/admin/javascripts/jquery.application.js",
|
23
|
-
"/admin/javascripts/application" %>
|
24
|
-
<%= yield :javascripts -%>
|
25
|
-
|
26
|
-
<%= csrf_meta_tag %>
|
27
|
-
|
28
|
-
</head>
|
29
|
-
|
30
|
-
<body>
|
31
|
-
|
32
|
-
<div id="content" class="headless">
|
33
|
-
<%= yield :layout %>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
</body>
|
37
|
-
|
38
|
-
</html>
|