imagine_cms 3.0.0.beta8 → 3.0.0.beta9

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 (67) hide show
  1. data/.gitignore +9 -4
  2. data/.rvmrc +19 -0
  3. data/Gemfile +14 -1
  4. data/Gemfile.lock +111 -0
  5. data/README.rdoc +44 -28
  6. data/Rakefile +39 -1
  7. data/app/controllers/management/cms_controller.rb +13 -4
  8. data/app/helpers/cms_application_helper.rb +3 -3
  9. data/app/models/cms_page.rb +1 -6
  10. data/app/views/{management/cms → imagine_cms}/_dialogs.html.erb +4 -3
  11. data/app/views/imagine_cms/_header.html.erb +40 -0
  12. data/app/views/imagine_cms/_toolbar.html.erb +26 -0
  13. data/app/views/layouts/management.html.erb +5 -0
  14. data/imagine_cms.gemspec +6 -1
  15. data/lib/imagine_cms/version.rb +1 -1
  16. data/license.txt +661 -0
  17. data/script/rails +8 -0
  18. data/test/dummy/app/assets/stylesheets/application.css +1 -1
  19. data/test/dummy/config/application.rb +5 -2
  20. data/test/dummy/config/environments/production.rb +1 -1
  21. data/test/dummy/config/initializers/secret_token.rb +1 -1
  22. data/test/dummy/config/initializers/session_store.rb +1 -1
  23. data/test/dummy/config/initializers/wrap_parameters.rb +1 -1
  24. data/test/dummy/config/routes.rb +2 -56
  25. data/test/imagine_cms_test.rb +7 -0
  26. data/test/integration/navigation_test.rb +10 -0
  27. data/test/test_helper.rb +5 -0
  28. metadata +30 -44
  29. data/doc/Gemfile.html +0 -89
  30. data/doc/ImagineCms.html +0 -137
  31. data/doc/README_rdoc.html +0 -137
  32. data/doc/Rakefile.html +0 -87
  33. data/doc/created.rid +0 -6
  34. data/doc/images/add.png +0 -0
  35. data/doc/images/brick.png +0 -0
  36. data/doc/images/brick_link.png +0 -0
  37. data/doc/images/bug.png +0 -0
  38. data/doc/images/bullet_black.png +0 -0
  39. data/doc/images/bullet_toggle_minus.png +0 -0
  40. data/doc/images/bullet_toggle_plus.png +0 -0
  41. data/doc/images/date.png +0 -0
  42. data/doc/images/delete.png +0 -0
  43. data/doc/images/find.png +0 -0
  44. data/doc/images/loadingAnimation.gif +0 -0
  45. data/doc/images/macFFBgHack.png +0 -0
  46. data/doc/images/package.png +0 -0
  47. data/doc/images/page_green.png +0 -0
  48. data/doc/images/page_white_text.png +0 -0
  49. data/doc/images/page_white_width.png +0 -0
  50. data/doc/images/plugin.png +0 -0
  51. data/doc/images/ruby.png +0 -0
  52. data/doc/images/tag_blue.png +0 -0
  53. data/doc/images/tag_green.png +0 -0
  54. data/doc/images/transparent.png +0 -0
  55. data/doc/images/wrench.png +0 -0
  56. data/doc/images/wrench_orange.png +0 -0
  57. data/doc/images/zoom.png +0 -0
  58. data/doc/index.html +0 -82
  59. data/doc/js/darkfish.js +0 -153
  60. data/doc/js/jquery.js +0 -18
  61. data/doc/js/navigation.js +0 -142
  62. data/doc/js/search.js +0 -94
  63. data/doc/js/search_index.js +0 -1
  64. data/doc/js/searcher.js +0 -228
  65. data/doc/rdoc.css +0 -543
  66. data/doc/table_of_contents.html +0 -65
  67. data/test/test123_test.rb +0 -7
data/doc/Rakefile.html DELETED
@@ -1,87 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
-
7
- <title>Rakefile - RDoc Documentation</title>
8
-
9
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
-
11
- <script type="text/javascript">
12
- var rdoc_rel_prefix = "./";
13
- </script>
14
-
15
- <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
-
22
-
23
- <body class="file">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="./index.html">Home</a>
28
- <a href="./table_of_contents.html#classes">Classes</a>
29
- <a href="./table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
-
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
35
- <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
- title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
44
-
45
-
46
- <div id="project-metadata">
47
- <nav id="fileindex-section" class="section project-section">
48
- <h3 class="section-header">Pages</h3>
49
-
50
- <ul>
51
-
52
- <li class="file"><a href="./Gemfile.html">Gemfile</a>
53
-
54
- <li class="file"><a href="./README_rdoc.html">README</a>
55
-
56
- <li class="file"><a href="./Rakefile.html">Rakefile</a>
57
-
58
- </ul>
59
- </nav>
60
-
61
- <nav id="classindex-section" class="section project-section">
62
- <h3 class="section-header">Class and Module Index</h3>
63
-
64
- <ul class="link-list">
65
-
66
- <li><a href="./ImagineCms.html">ImagineCms</a>
67
-
68
- </ul>
69
- </nav>
70
-
71
- </div>
72
- </nav>
73
-
74
- <div id="documentation" class="description">
75
-
76
- <p>require ‘bundler’ Bundler::GemHelper.install_tasks</p>
77
-
78
- </div>
79
-
80
-
81
-
82
- <footer id="validator-badges">
83
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
84
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
85
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
86
- </footer>
87
-
data/doc/created.rid DELETED
@@ -1,6 +0,0 @@
1
- Sat, 21 Jan 2012 14:03:47 +0900
2
- ./lib/imagine_cms.rb Sat, 21 Jan 2012 12:57:24 +0900
3
- ./Gemfile Sat, 21 Jan 2012 12:57:24 +0900
4
- ./lib/imagine_cms/version.rb Sat, 21 Jan 2012 13:12:42 +0900
5
- ./README.rdoc Sat, 21 Jan 2012 13:53:14 +0900
6
- ./Rakefile Sat, 21 Jan 2012 12:57:24 +0900
data/doc/images/add.png DELETED
Binary file
data/doc/images/brick.png DELETED
Binary file
Binary file
data/doc/images/bug.png DELETED
Binary file
Binary file
Binary file
Binary file
data/doc/images/date.png DELETED
Binary file
Binary file
data/doc/images/find.png DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/doc/images/ruby.png DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/doc/images/zoom.png DELETED
Binary file
data/doc/index.html DELETED
@@ -1,82 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
-
7
- <title>RDoc Documentation</title>
8
-
9
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
-
11
- <script type="text/javascript">
12
- var rdoc_rel_prefix = "./";
13
- </script>
14
-
15
- <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
-
22
-
23
- <body>
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="./index.html">Home</a>
28
- <a href="./table_of_contents.html#classes">Classes</a>
29
- <a href="./table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
-
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
35
- <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
- title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
44
-
45
-
46
- <div id="project-metadata">
47
- <nav id="fileindex-section" class="section project-section">
48
- <h3 class="section-header">Pages</h3>
49
-
50
- <ul>
51
-
52
- <li class="file"><a href="./Gemfile.html">Gemfile</a>
53
-
54
- <li class="file"><a href="./README_rdoc.html">README</a>
55
-
56
- <li class="file"><a href="./Rakefile.html">Rakefile</a>
57
-
58
- </ul>
59
- </nav>
60
-
61
- <nav id="classindex-section" class="section project-section">
62
- <h3 class="section-header">Class and Module Index</h3>
63
-
64
- <ul class="link-list">
65
-
66
- <li><a href="./ImagineCms.html">ImagineCms</a>
67
-
68
- </ul>
69
- </nav>
70
-
71
- </div>
72
- </nav>
73
-
74
- <p>This is the API documentation for RDoc Documentation.
75
-
76
-
77
- <footer id="validator-badges">
78
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
79
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
80
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
81
- </footer>
82
-
data/doc/js/darkfish.js DELETED
@@ -1,153 +0,0 @@
1
- /**
2
- *
3
- * Darkfish Page Functions
4
- * $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
5
- *
6
- * Author: Michael Granger <mgranger@laika.com>
7
- *
8
- */
9
-
10
- /* Provide console simulation for firebug-less environments */
11
- if (!("console" in window) || !("firebug" in console)) {
12
- var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
13
- "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
14
-
15
- window.console = {};
16
- for (var i = 0; i < names.length; ++i)
17
- window.console[names[i]] = function() {};
18
- };
19
-
20
-
21
- /**
22
- * Unwrap the first element that matches the given @expr@ from the targets and return them.
23
- */
24
- $.fn.unwrap = function( expr ) {
25
- return this.each( function() {
26
- $(this).parents( expr ).eq( 0 ).after( this ).remove();
27
- });
28
- };
29
-
30
-
31
- function showSource( e ) {
32
- var target = e.target;
33
- var codeSections = $(target).
34
- parents('.method-detail').
35
- find('.method-source-code');
36
-
37
- $(target).
38
- parents('.method-detail').
39
- find('.method-source-code').
40
- slideToggle();
41
- };
42
-
43
- function hookSourceViews() {
44
- $('.method-heading').click( showSource );
45
- };
46
-
47
- function toggleDebuggingSection() {
48
- $('.debugging-section').slideToggle();
49
- };
50
-
51
- function hookDebuggingToggle() {
52
- $('#debugging-toggle img').click( toggleDebuggingSection );
53
- };
54
-
55
- function hookTableOfContentsToggle() {
56
- $('.indexpage li .toc-toggle').each( function() {
57
- $(this).click( function() {
58
- $(this).toggleClass('open');
59
- });
60
-
61
- var section = $(this).next();
62
-
63
- $(this).click( function() {
64
- section.slideToggle();
65
- });
66
- });
67
- }
68
-
69
- function hookSearch() {
70
- var input = $('#search-field').eq(0);
71
- var result = $('#search-results').eq(0);
72
- $(result).show();
73
-
74
- var search_section = $('#search-section').get(0);
75
- $(search_section).show();
76
-
77
- var search = new Search(search_data, input, result);
78
-
79
- search.renderItem = function(result) {
80
- var li = document.createElement('li');
81
- var html = '';
82
-
83
- // TODO add relative path to <script> per-page
84
- html += '<p class="search-match"><a href="' + rdoc_rel_prefix + result.path + '">' + this.hlt(result.title);
85
- if (result.params)
86
- html += '<span class="params">' + result.params + '</span>';
87
- html += '</a>';
88
-
89
-
90
- if (result.namespace)
91
- html += '<p class="search-namespace">' + this.hlt(result.namespace);
92
-
93
- if (result.snippet)
94
- html += '<div class="search-snippet">' + result.snippet + '</div>';
95
-
96
- li.innerHTML = html;
97
-
98
- return li;
99
- }
100
-
101
- search.select = function(result) {
102
- var result_element = result.get(0);
103
- window.location.href = result_element.firstChild.firstChild.href;
104
- }
105
-
106
- search.scrollIntoView = search.scrollInWindow;
107
- };
108
-
109
- function highlightTarget( anchor ) {
110
- console.debug( "Highlighting target '%s'.", anchor );
111
-
112
- $("a[name=" + anchor + "]").each( function() {
113
- if ( !$(this).parent().parent().hasClass('target-section') ) {
114
- console.debug( "Wrapping the target-section" );
115
- $('div.method-detail').unwrap( 'div.target-section' );
116
- $(this).parent().wrap( '<div class="target-section"></div>' );
117
- } else {
118
- console.debug( "Already wrapped." );
119
- }
120
- });
121
- };
122
-
123
- function highlightLocationTarget() {
124
- console.debug( "Location hash: %s", window.location.hash );
125
- if ( ! window.location.hash || window.location.hash.length == 0 ) return;
126
-
127
- var anchor = window.location.hash.substring(1);
128
- console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
129
-
130
- highlightTarget( anchor );
131
- };
132
-
133
- function highlightClickTarget( event ) {
134
- console.debug( "Highlighting click target for event %o", event.target );
135
- try {
136
- var anchor = $(event.target).attr( 'href' ).substring(1);
137
- console.debug( "Found target anchor: %s", anchor );
138
- highlightTarget( anchor );
139
- } catch ( err ) {
140
- console.error( "Exception while highlighting: %o", err );
141
- };
142
- };
143
-
144
-
145
- $(document).ready( function() {
146
- hookSourceViews();
147
- hookDebuggingToggle();
148
- hookSearch();
149
- highlightLocationTarget();
150
- hookTableOfContentsToggle();
151
-
152
- $('ul.link-list a').bind( "click", highlightClickTarget );
153
- });