rich_cms 2.1.7 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. data/{CHANGELOG → CHANGELOG.rdoc} +24 -0
  2. data/README.textile +49 -33
  3. data/Rakefile +92 -10
  4. data/VERSION +1 -1
  5. data/app/controllers/rich/cms_controller.rb +10 -39
  6. data/app/controllers/rich/cms_sessions_controller.rb +31 -0
  7. data/app/views/rich/cms/dock/_menu.html.erb +10 -8
  8. data/app/views/rich/cms/dock/_panel.html.erb +1 -1
  9. data/app/views/rich/cms/dock/panel/edit/_rails2.html.erb +5 -3
  10. data/app/views/rich/cms/dock/panel/edit/_rails3.html.erb +4 -2
  11. data/app/views/rich/cms/dock/panel/login/_rails2.html.erb +18 -12
  12. data/app/views/rich/cms/dock/panel/login/_rails3.html.erb +18 -12
  13. data/app/views/rich_cms.html.erb +1 -1
  14. data/assets/jzip/jquery/cleditor.js +1132 -1132
  15. data/assets/jzip/jquery/extensions/browser_detect.js +1 -2
  16. data/assets/jzip/native/extensions.js +41 -0
  17. data/assets/jzip/rich/cms/editor.js +41 -7
  18. data/assets/jzip/rich_cms.jz +2 -1
  19. data/assets/sass/rich_cms/_panel.sass +11 -1
  20. data/config/routes.rb +12 -11
  21. data/lib/generators/rich/cms_admin/cms_admin_generator.rb +82 -0
  22. data/lib/generators/rich/{authlogic_user/templates → cms_admin/templates/authlogic}/migration.rb +0 -0
  23. data/lib/generators/rich/{authlogic_user/templates → cms_admin/templates/authlogic}/model.rb +0 -0
  24. data/lib/generators/rich/{authlogic_user/templates → cms_admin/templates/authlogic}/session.rb +0 -0
  25. data/lib/rich/cms/actionpack/action_controller/base.rb +3 -44
  26. data/lib/rich/cms/actionpack/action_view/base.rb +32 -10
  27. data/lib/rich/cms/actionpack.rb +1 -2
  28. data/lib/rich/cms/auth.rb +110 -0
  29. data/lib/rich/cms/content/group.rb +1 -2
  30. data/lib/rich/cms/content/item.rb +2 -3
  31. data/lib/rich/cms/core/string/html_safe.rb +1 -2
  32. data/lib/rich/cms/core/string.rb +1 -2
  33. data/lib/rich/cms/engine.rb +23 -51
  34. data/lib/rich/cms/rails/engine.rb +1 -2
  35. data/lib/rich/cms/version.rb +11 -0
  36. data/lib/rich_cms.rb +2 -2
  37. data/rails_generators/rich_cms_admin/lib/devise/route_devise.rb +32 -0
  38. data/rails_generators/rich_cms_admin/rich_cms_admin_generator.rb +113 -0
  39. data/rails_generators/{rich_authlogic_user/templates → rich_cms_admin/templates/authlogic}/migration.rb +0 -0
  40. data/rails_generators/{rich_authlogic_user/templates → rich_cms_admin/templates/authlogic}/model.rb +0 -0
  41. data/rails_generators/{rich_authlogic_user/templates → rich_cms_admin/templates/authlogic}/session.rb +0 -0
  42. data/rails_generators/{rich_authlogic_user → rich_cms_admin}/templates/config.rb +0 -0
  43. data/rails_generators/rich_cms_admin/templates/devise/README +23 -0
  44. data/rails_generators/rich_cms_admin/templates/devise/devise.rb +105 -0
  45. data/rails_generators/rich_cms_admin/templates/devise/en.yml +35 -0
  46. data/rails_generators/rich_cms_admin/templates/devise/migration.rb +23 -0
  47. data/rails_generators/rich_cms_admin/templates/devise/model.rb +9 -0
  48. data/rails_generators/rich_cms_content/rich_cms_content_generator.rb +18 -12
  49. data/rich_cms.gemspec +295 -105
  50. data/test/integrator.rb +89 -0
  51. data/test/rails-2/dummy/.bundle/config +2 -0
  52. data/test/rails-2/dummy/Gemfile +15 -0
  53. data/test/rails-2/dummy/Gemfile.lock +97 -0
  54. data/test/rails-2/dummy/Rakefile +10 -0
  55. data/test/rails-2/dummy/app/controllers/application_controller.rb +10 -0
  56. data/test/rails-2/dummy/app/helpers/application_helper.rb +3 -0
  57. data/test/rails-2/dummy/config/boot.rb +124 -0
  58. data/test/rails-2/dummy/config/database.yml +23 -0
  59. data/test/rails-2/dummy/config/environment.rb +41 -0
  60. data/test/rails-2/dummy/config/environments/development.rb +17 -0
  61. data/test/rails-2/dummy/config/environments/production.rb +28 -0
  62. data/test/rails-2/dummy/config/environments/test.rb +28 -0
  63. data/test/rails-2/dummy/config/initializers/backtrace_silencers.rb +7 -0
  64. data/test/rails-2/dummy/config/initializers/cookie_verification_secret.rb +7 -0
  65. data/test/rails-2/dummy/config/initializers/devise.rb +105 -0
  66. data/test/rails-2/dummy/config/initializers/enrichments.rb +5 -0
  67. data/test/rails-2/dummy/config/initializers/inflections.rb +10 -0
  68. data/test/rails-2/dummy/config/initializers/mime_types.rb +5 -0
  69. data/test/rails-2/dummy/config/initializers/new_rails_defaults.rb +21 -0
  70. data/test/rails-2/dummy/config/initializers/session_store.rb +15 -0
  71. data/test/rails-2/dummy/config/locales/en.yml +5 -0
  72. data/test/rails-2/dummy/config/preinitializer.rb +20 -0
  73. data/test/rails-2/dummy/config/routes.rb +44 -0
  74. data/test/rails-2/dummy/db/schema.rb +49 -0
  75. data/test/rails-2/dummy/db/seeds.rb +10 -0
  76. data/test/rails-2/dummy/public/404.html +30 -0
  77. data/test/rails-2/dummy/public/422.html +30 -0
  78. data/test/rails-2/dummy/public/500.html +30 -0
  79. data/test/rails-2/dummy/public/favicon.ico +0 -0
  80. data/test/rails-2/dummy/public/images/rails.png +0 -0
  81. data/test/rails-2/dummy/public/images/rich/cms/cleditor/buttons.gif +0 -0
  82. data/test/rails-2/dummy/public/images/rich/cms/cleditor/toolbar.gif +0 -0
  83. data/test/rails-2/dummy/public/javascripts/jquery/core.js +158 -0
  84. data/test/rails-2/dummy/public/javascripts/jquery/ui/rich_cms/core.js +1207 -0
  85. data/test/rails-2/dummy/public/javascripts/jquery/ui/rich_cms/draggable.js +798 -0
  86. data/test/rails-2/dummy/public/javascripts/jquery/ui/rich_cms/mouse.js +950 -0
  87. data/test/rails-2/dummy/public/javascripts/jquery/ui/rich_cms/widget.js +1188 -0
  88. data/test/rails-2/dummy/public/javascripts/rich_cms.js +1746 -0
  89. data/test/rails-2/dummy/public/robots.txt +5 -0
  90. data/test/rails-2/dummy/script/about +4 -0
  91. data/test/rails-2/dummy/script/console +3 -0
  92. data/test/rails-2/dummy/script/dbconsole +3 -0
  93. data/test/rails-2/dummy/script/destroy +3 -0
  94. data/test/rails-2/dummy/script/generate +3 -0
  95. data/test/rails-2/dummy/script/performance/benchmarker +3 -0
  96. data/test/rails-2/dummy/script/performance/profiler +3 -0
  97. data/test/rails-2/dummy/script/plugin +3 -0
  98. data/test/rails-2/dummy/script/runner +3 -0
  99. data/test/rails-2/dummy/script/server +3 -0
  100. data/test/rails-2/dummy/test/fixtures/authlogic_users.yml +6 -0
  101. data/test/rails-2/dummy/test/fixtures/devise_users.yml +5 -0
  102. data/test/rails-2/pending.rb +88 -0
  103. data/test/rails-2/test_helper.rb +13 -0
  104. data/test/rails-3/dummy/.bundle/config +2 -0
  105. data/test/rails-3/dummy/Gemfile +15 -0
  106. data/test/rails-3/dummy/Gemfile.lock +139 -0
  107. data/test/rails-3/dummy/Rakefile +7 -0
  108. data/test/rails-3/dummy/app/controllers/application_controller.rb +3 -0
  109. data/test/rails-3/dummy/app/helpers/application_helper.rb +2 -0
  110. data/test/rails-3/dummy/config/application.rb +42 -0
  111. data/test/rails-3/dummy/config/boot.rb +13 -0
  112. data/test/rails-3/dummy/config/database.yml +23 -0
  113. data/test/rails-3/dummy/config/environment.rb +5 -0
  114. data/test/rails-3/dummy/config/environments/development.rb +26 -0
  115. data/test/rails-3/dummy/config/environments/production.rb +49 -0
  116. data/test/rails-3/dummy/config/environments/test.rb +35 -0
  117. data/test/rails-3/dummy/config/initializers/backtrace_silencers.rb +7 -0
  118. data/test/rails-3/dummy/config/initializers/devise.rb +142 -0
  119. data/test/rails-3/dummy/config/initializers/enrichments.rb +5 -0
  120. data/test/rails-3/dummy/config/initializers/inflections.rb +10 -0
  121. data/test/rails-3/dummy/config/initializers/mime_types.rb +5 -0
  122. data/test/rails-3/dummy/config/initializers/secret_token.rb +7 -0
  123. data/test/rails-3/dummy/config/initializers/session_store.rb +8 -0
  124. data/test/rails-3/dummy/config/locales/en.yml +5 -0
  125. data/test/rails-3/dummy/config/routes.rb +59 -0
  126. data/test/rails-3/dummy/config.ru +4 -0
  127. data/test/rails-3/dummy/db/schema.rb +49 -0
  128. data/test/rails-3/dummy/db/seeds.rb +10 -0
  129. data/test/rails-3/dummy/public/404.html +26 -0
  130. data/test/rails-3/dummy/public/422.html +26 -0
  131. data/test/rails-3/dummy/public/500.html +26 -0
  132. data/test/rails-3/dummy/public/favicon.ico +0 -0
  133. data/test/rails-3/dummy/public/images/rich/cms/cleditor/buttons.gif +0 -0
  134. data/test/rails-3/dummy/public/images/rich/cms/cleditor/toolbar.gif +0 -0
  135. data/test/rails-3/dummy/public/javascripts/jquery/core.js +158 -0
  136. data/test/rails-3/dummy/public/javascripts/jquery/ui/rich_cms/core.js +1207 -0
  137. data/test/rails-3/dummy/public/javascripts/jquery/ui/rich_cms/draggable.js +798 -0
  138. data/test/rails-3/dummy/public/javascripts/jquery/ui/rich_cms/mouse.js +950 -0
  139. data/test/rails-3/dummy/public/javascripts/jquery/ui/rich_cms/widget.js +1188 -0
  140. data/test/rails-3/dummy/public/javascripts/rich_cms.js +1746 -0
  141. data/test/rails-3/dummy/script/rails +6 -0
  142. data/test/rails-3/dummy/test/fixtures/authlogic_users.yml +6 -0
  143. data/test/rails-3/dummy/test/fixtures/devise_users.yml +5 -0
  144. data/test/rails-3/test_helper.rb +17 -0
  145. data/test/shared/dummy/db/schema.rb +49 -0
  146. data/test/shared/dummy/db/seeds.rb +10 -0
  147. data/test/shared/dummy/fixtures/authlogic_users.yml +6 -0
  148. data/test/shared/dummy/models/authlogic_user.rb +8 -0
  149. data/test/shared/dummy/models/authlogic_user_session.rb +10 -0
  150. data/test/shared/dummy/models/cms_content.rb +2 -0
  151. data/test/shared/dummy/models/devise_user.rb +3 -0
  152. data/test/shared/dummy/stylesheets/app.css +100 -0
  153. data/test/shared/dummy/stylesheets/rich_cms.css +159 -0
  154. data/test/shared/dummy/views/application/index.html.erb +13 -0
  155. data/test/shared/dummy/views/layouts/application.html.erb +12 -0
  156. data/test/shared/support/action_controller/integration.rb +55 -0
  157. data/test/shared/support/action_controller/test_case.rb +28 -0
  158. data/test/shared/support/capybara/setup.rb +14 -0
  159. data/test/shared/support/test_helper.rb +1 -0
  160. data/test/shared/tests/actionpack/action_controller/base_test.rb +14 -0
  161. data/test/shared/tests/actionpack/action_view/base_test.rb +19 -0
  162. data/test/shared/tests/activesupport/active_support/dependencies_test.rb +15 -0
  163. data/test/shared/tests/app/integration/authenticated/authlogic.rb +88 -0
  164. data/test/shared/tests/app/integration/authenticated/devise_test.rb +89 -0
  165. data/test/shared/tests/app/integration/non_authenticated.rb +63 -0
  166. data/test/shared/tests/app/routing_test.rb +31 -0
  167. data/test/shared/tests/auth_test.rb +11 -0
  168. data/test/shared/tests/content/group.rb +10 -0
  169. data/test/shared/tests/content/item.rb +10 -0
  170. data/test/shared/tests/core/string/html_safe.rb +15 -0
  171. data/test/shared/tests/dummy_app.rb +228 -0
  172. data/test/shared/tests/engine_test.rb +19 -0
  173. data/test/shared/tests/rails/engine_test.rb +13 -0
  174. data/test/shared/tests/readme_test.rb +13 -0
  175. metadata +231 -63
  176. data/.gitignore +0 -2
  177. data/lib/generators/rich/authlogic_user/authlogic_user_generator.rb +0 -64
  178. data/rails_generators/rich_authlogic_user/rich_authlogic_user_generator.rb +0 -64
  179. data/test/test_helper.rb +0 -6
data/rich_cms.gemspec CHANGED
@@ -1,137 +1,327 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rich_cms}
8
- s.version = "2.1.7"
8
+ s.version = "3.0.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Engel"]
12
- s.date = %q{2010-11-24}
12
+ s.date = %q{2011-02-07}
13
13
  s.description = %q{Rich-CMS is a module of E9s (http://github.com/archan937/e9s) which provides a frontend for your CMS content. You can use this gem to manage CMS content or translations (in an internationalized application). The installation and setup process is very easily done. You will have to register content at the Rich-CMS engine and also you will have to specify the authentication mechanism. Both are one-liners.}
14
14
  s.email = %q{paul.engel@holder.nl}
15
15
  s.extra_rdoc_files = [
16
16
  "README.textile"
17
17
  ]
18
18
  s.files = [
19
- ".gitignore",
20
- "CHANGELOG",
21
- "MIT-LICENSE",
22
- "README.textile",
23
- "Rakefile",
24
- "VERSION",
25
- "app/controllers/rich/cms_controller.rb",
26
- "app/views/rich/cms/_dock.html.erb",
27
- "app/views/rich/cms/dock/_menu.html.erb",
28
- "app/views/rich/cms/dock/_panel.html.erb",
29
- "app/views/rich/cms/dock/panel/_edit.html.erb",
30
- "app/views/rich/cms/dock/panel/_login.html.erb",
31
- "app/views/rich/cms/dock/panel/edit/_rails2.html.erb",
32
- "app/views/rich/cms/dock/panel/edit/_rails3.html.erb",
33
- "app/views/rich/cms/dock/panel/login/_rails2.html.erb",
34
- "app/views/rich/cms/dock/panel/login/_rails3.html.erb",
35
- "app/views/rich_cms.html.erb",
36
- "assets/images/cleditor/buttons.gif",
37
- "assets/images/cleditor/toolbar.gif",
38
- "assets/jzip/jquery/cleditor.js",
39
- "assets/jzip/jquery/core.jz",
40
- "assets/jzip/jquery/extensions/ajaxify.js",
41
- "assets/jzip/jquery/extensions/browser_detect.js",
42
- "assets/jzip/jquery/extensions/modules.js",
43
- "assets/jzip/jquery/extensions/object.js",
44
- "assets/jzip/jquery/raccoon_tip.js",
45
- "assets/jzip/jquery/ui/components/core.js",
46
- "assets/jzip/jquery/ui/components/draggable.js",
47
- "assets/jzip/jquery/ui/components/mouse.js",
48
- "assets/jzip/jquery/ui/components/widget.js",
49
- "assets/jzip/jquery/ui/rich_cms/core.jz",
50
- "assets/jzip/jquery/ui/rich_cms/draggable.jz",
51
- "assets/jzip/jquery/ui/rich_cms/mouse.jz",
52
- "assets/jzip/jquery/ui/rich_cms/widget.jz",
53
- "assets/jzip/rich.js",
54
- "assets/jzip/rich/cms.js",
55
- "assets/jzip/rich/cms/dock.js",
56
- "assets/jzip/rich/cms/editor.js",
57
- "assets/jzip/rich/cms/menu.js",
58
- "assets/jzip/rich_cms.jz",
59
- "assets/sass/rich_cms.sass",
60
- "assets/sass/rich_cms/_content.sass",
61
- "assets/sass/rich_cms/_dock.sass",
62
- "assets/sass/rich_cms/_menu.sass",
63
- "assets/sass/rich_cms/_panel.sass",
64
- "assets/sass/rich_cms/_reset.sass",
65
- "assets/sass/tools/_css3.sass",
66
- "assets/sass/tools/_mixins.sass",
67
- "config/routes.rb",
68
- "init.rb",
69
- "install.rb",
70
- "lib/generators/rich/authlogic_user/authlogic_user_generator.rb",
71
- "lib/generators/rich/authlogic_user/templates/migration.rb",
72
- "lib/generators/rich/authlogic_user/templates/model.rb",
73
- "lib/generators/rich/authlogic_user/templates/session.rb",
74
- "lib/generators/rich/cms_content/cms_content_generator.rb",
75
- "lib/generators/rich/cms_content/templates/migration.rb",
76
- "lib/generators/rich_cms.rb",
77
- "lib/rich/cms/actionpack.rb",
78
- "lib/rich/cms/actionpack/action_controller/base.rb",
79
- "lib/rich/cms/actionpack/action_view/base.rb",
80
- "lib/rich/cms/activesupport.rb",
81
- "lib/rich/cms/activesupport/active_support/dependencies.rb",
82
- "lib/rich/cms/content/group.rb",
83
- "lib/rich/cms/content/item.rb",
84
- "lib/rich/cms/core.rb",
85
- "lib/rich/cms/core/string.rb",
86
- "lib/rich/cms/core/string/html_safe.rb",
87
- "lib/rich/cms/engine.rb",
88
- "lib/rich/cms/rails.rb",
89
- "lib/rich/cms/rails/engine.rb",
90
- "lib/rich_cms.rb",
91
- "rails/init.rb",
92
- "rails_generators/rich_authlogic_user/rich_authlogic_user_generator.rb",
93
- "rails_generators/rich_authlogic_user/templates/config.rb",
94
- "rails_generators/rich_authlogic_user/templates/migration.rb",
95
- "rails_generators/rich_authlogic_user/templates/model.rb",
96
- "rails_generators/rich_authlogic_user/templates/session.rb",
97
- "rails_generators/rich_cms_content/rich_cms_content_generator.rb",
98
- "rails_generators/rich_cms_content/templates/config.rb",
99
- "rails_generators/rich_cms_content/templates/migration.rb",
100
- "rails_generators/rich_cms_content/templates/model.rb",
101
- "rich_cms.gemspec",
102
- "tasks/rich_cms_tasks.rake",
103
- "test/test_helper.rb",
104
- "uninstall.rb"
19
+ "CHANGELOG.rdoc",
20
+ "MIT-LICENSE",
21
+ "README.textile",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "app/controllers/rich/cms_controller.rb",
25
+ "app/controllers/rich/cms_sessions_controller.rb",
26
+ "app/views/rich/cms/_dock.html.erb",
27
+ "app/views/rich/cms/dock/_menu.html.erb",
28
+ "app/views/rich/cms/dock/_panel.html.erb",
29
+ "app/views/rich/cms/dock/panel/_edit.html.erb",
30
+ "app/views/rich/cms/dock/panel/_login.html.erb",
31
+ "app/views/rich/cms/dock/panel/edit/_rails2.html.erb",
32
+ "app/views/rich/cms/dock/panel/edit/_rails3.html.erb",
33
+ "app/views/rich/cms/dock/panel/login/_rails2.html.erb",
34
+ "app/views/rich/cms/dock/panel/login/_rails3.html.erb",
35
+ "app/views/rich_cms.html.erb",
36
+ "assets/images/cleditor/buttons.gif",
37
+ "assets/images/cleditor/toolbar.gif",
38
+ "assets/jzip/jquery/cleditor.js",
39
+ "assets/jzip/jquery/core.jz",
40
+ "assets/jzip/jquery/extensions/ajaxify.js",
41
+ "assets/jzip/jquery/extensions/browser_detect.js",
42
+ "assets/jzip/jquery/extensions/modules.js",
43
+ "assets/jzip/jquery/extensions/object.js",
44
+ "assets/jzip/jquery/raccoon_tip.js",
45
+ "assets/jzip/jquery/ui/components/core.js",
46
+ "assets/jzip/jquery/ui/components/draggable.js",
47
+ "assets/jzip/jquery/ui/components/mouse.js",
48
+ "assets/jzip/jquery/ui/components/widget.js",
49
+ "assets/jzip/jquery/ui/rich_cms/core.jz",
50
+ "assets/jzip/jquery/ui/rich_cms/draggable.jz",
51
+ "assets/jzip/jquery/ui/rich_cms/mouse.jz",
52
+ "assets/jzip/jquery/ui/rich_cms/widget.jz",
53
+ "assets/jzip/native/extensions.js",
54
+ "assets/jzip/rich.js",
55
+ "assets/jzip/rich/cms.js",
56
+ "assets/jzip/rich/cms/dock.js",
57
+ "assets/jzip/rich/cms/editor.js",
58
+ "assets/jzip/rich/cms/menu.js",
59
+ "assets/jzip/rich_cms.jz",
60
+ "assets/sass/rich_cms.sass",
61
+ "assets/sass/rich_cms/_content.sass",
62
+ "assets/sass/rich_cms/_dock.sass",
63
+ "assets/sass/rich_cms/_menu.sass",
64
+ "assets/sass/rich_cms/_panel.sass",
65
+ "assets/sass/rich_cms/_reset.sass",
66
+ "assets/sass/tools/_css3.sass",
67
+ "assets/sass/tools/_mixins.sass",
68
+ "config/routes.rb",
69
+ "init.rb",
70
+ "install.rb",
71
+ "lib/generators/rich/cms_admin/cms_admin_generator.rb",
72
+ "lib/generators/rich/cms_admin/templates/authlogic/migration.rb",
73
+ "lib/generators/rich/cms_admin/templates/authlogic/model.rb",
74
+ "lib/generators/rich/cms_admin/templates/authlogic/session.rb",
75
+ "lib/generators/rich/cms_content/cms_content_generator.rb",
76
+ "lib/generators/rich/cms_content/templates/migration.rb",
77
+ "lib/generators/rich_cms.rb",
78
+ "lib/rich/cms/actionpack.rb",
79
+ "lib/rich/cms/actionpack/action_controller/base.rb",
80
+ "lib/rich/cms/actionpack/action_view/base.rb",
81
+ "lib/rich/cms/activesupport.rb",
82
+ "lib/rich/cms/activesupport/active_support/dependencies.rb",
83
+ "lib/rich/cms/auth.rb",
84
+ "lib/rich/cms/content/group.rb",
85
+ "lib/rich/cms/content/item.rb",
86
+ "lib/rich/cms/core.rb",
87
+ "lib/rich/cms/core/string.rb",
88
+ "lib/rich/cms/core/string/html_safe.rb",
89
+ "lib/rich/cms/engine.rb",
90
+ "lib/rich/cms/rails.rb",
91
+ "lib/rich/cms/rails/engine.rb",
92
+ "lib/rich/cms/version.rb",
93
+ "lib/rich_cms.rb",
94
+ "rails/init.rb",
95
+ "rails_generators/rich_cms_admin/lib/devise/route_devise.rb",
96
+ "rails_generators/rich_cms_admin/rich_cms_admin_generator.rb",
97
+ "rails_generators/rich_cms_admin/templates/authlogic/migration.rb",
98
+ "rails_generators/rich_cms_admin/templates/authlogic/model.rb",
99
+ "rails_generators/rich_cms_admin/templates/authlogic/session.rb",
100
+ "rails_generators/rich_cms_admin/templates/config.rb",
101
+ "rails_generators/rich_cms_admin/templates/devise/README",
102
+ "rails_generators/rich_cms_admin/templates/devise/devise.rb",
103
+ "rails_generators/rich_cms_admin/templates/devise/en.yml",
104
+ "rails_generators/rich_cms_admin/templates/devise/migration.rb",
105
+ "rails_generators/rich_cms_admin/templates/devise/model.rb",
106
+ "rails_generators/rich_cms_content/rich_cms_content_generator.rb",
107
+ "rails_generators/rich_cms_content/templates/config.rb",
108
+ "rails_generators/rich_cms_content/templates/migration.rb",
109
+ "rails_generators/rich_cms_content/templates/model.rb",
110
+ "rich_cms.gemspec",
111
+ "tasks/rich_cms_tasks.rake",
112
+ "test/integrator.rb",
113
+ "test/rails-2/dummy/.bundle/config",
114
+ "test/rails-2/dummy/Gemfile",
115
+ "test/rails-2/dummy/Gemfile.lock",
116
+ "test/rails-2/dummy/Rakefile",
117
+ "test/rails-2/dummy/app/controllers/application_controller.rb",
118
+ "test/rails-2/dummy/app/helpers/application_helper.rb",
119
+ "test/rails-2/dummy/config/boot.rb",
120
+ "test/rails-2/dummy/config/database.yml",
121
+ "test/rails-2/dummy/config/environment.rb",
122
+ "test/rails-2/dummy/config/environments/development.rb",
123
+ "test/rails-2/dummy/config/environments/production.rb",
124
+ "test/rails-2/dummy/config/environments/test.rb",
125
+ "test/rails-2/dummy/config/initializers/backtrace_silencers.rb",
126
+ "test/rails-2/dummy/config/initializers/cookie_verification_secret.rb",
127
+ "test/rails-2/dummy/config/initializers/devise.rb",
128
+ "test/rails-2/dummy/config/initializers/enrichments.rb",
129
+ "test/rails-2/dummy/config/initializers/inflections.rb",
130
+ "test/rails-2/dummy/config/initializers/mime_types.rb",
131
+ "test/rails-2/dummy/config/initializers/new_rails_defaults.rb",
132
+ "test/rails-2/dummy/config/initializers/session_store.rb",
133
+ "test/rails-2/dummy/config/locales/en.yml",
134
+ "test/rails-2/dummy/config/preinitializer.rb",
135
+ "test/rails-2/dummy/config/routes.rb",
136
+ "test/rails-2/dummy/db/schema.rb",
137
+ "test/rails-2/dummy/db/seeds.rb",
138
+ "test/rails-2/dummy/public/404.html",
139
+ "test/rails-2/dummy/public/422.html",
140
+ "test/rails-2/dummy/public/500.html",
141
+ "test/rails-2/dummy/public/favicon.ico",
142
+ "test/rails-2/dummy/public/images/rails.png",
143
+ "test/rails-2/dummy/public/images/rich/cms/cleditor/buttons.gif",
144
+ "test/rails-2/dummy/public/images/rich/cms/cleditor/toolbar.gif",
145
+ "test/rails-2/dummy/public/javascripts/jquery/core.js",
146
+ "test/rails-2/dummy/public/javascripts/jquery/ui/rich_cms/core.js",
147
+ "test/rails-2/dummy/public/javascripts/jquery/ui/rich_cms/draggable.js",
148
+ "test/rails-2/dummy/public/javascripts/jquery/ui/rich_cms/mouse.js",
149
+ "test/rails-2/dummy/public/javascripts/jquery/ui/rich_cms/widget.js",
150
+ "test/rails-2/dummy/public/javascripts/rich_cms.js",
151
+ "test/rails-2/dummy/public/robots.txt",
152
+ "test/rails-2/dummy/script/about",
153
+ "test/rails-2/dummy/script/console",
154
+ "test/rails-2/dummy/script/dbconsole",
155
+ "test/rails-2/dummy/script/destroy",
156
+ "test/rails-2/dummy/script/generate",
157
+ "test/rails-2/dummy/script/performance/benchmarker",
158
+ "test/rails-2/dummy/script/performance/profiler",
159
+ "test/rails-2/dummy/script/plugin",
160
+ "test/rails-2/dummy/script/runner",
161
+ "test/rails-2/dummy/script/server",
162
+ "test/rails-2/dummy/test/fixtures/authlogic_users.yml",
163
+ "test/rails-2/dummy/test/fixtures/devise_users.yml",
164
+ "test/rails-2/pending.rb",
165
+ "test/rails-2/test_helper.rb",
166
+ "test/rails-3/dummy/.bundle/config",
167
+ "test/rails-3/dummy/Gemfile",
168
+ "test/rails-3/dummy/Gemfile.lock",
169
+ "test/rails-3/dummy/Rakefile",
170
+ "test/rails-3/dummy/app/controllers/application_controller.rb",
171
+ "test/rails-3/dummy/app/helpers/application_helper.rb",
172
+ "test/rails-3/dummy/config.ru",
173
+ "test/rails-3/dummy/config/application.rb",
174
+ "test/rails-3/dummy/config/boot.rb",
175
+ "test/rails-3/dummy/config/database.yml",
176
+ "test/rails-3/dummy/config/environment.rb",
177
+ "test/rails-3/dummy/config/environments/development.rb",
178
+ "test/rails-3/dummy/config/environments/production.rb",
179
+ "test/rails-3/dummy/config/environments/test.rb",
180
+ "test/rails-3/dummy/config/initializers/backtrace_silencers.rb",
181
+ "test/rails-3/dummy/config/initializers/devise.rb",
182
+ "test/rails-3/dummy/config/initializers/enrichments.rb",
183
+ "test/rails-3/dummy/config/initializers/inflections.rb",
184
+ "test/rails-3/dummy/config/initializers/mime_types.rb",
185
+ "test/rails-3/dummy/config/initializers/secret_token.rb",
186
+ "test/rails-3/dummy/config/initializers/session_store.rb",
187
+ "test/rails-3/dummy/config/locales/en.yml",
188
+ "test/rails-3/dummy/config/routes.rb",
189
+ "test/rails-3/dummy/db/schema.rb",
190
+ "test/rails-3/dummy/db/seeds.rb",
191
+ "test/rails-3/dummy/public/404.html",
192
+ "test/rails-3/dummy/public/422.html",
193
+ "test/rails-3/dummy/public/500.html",
194
+ "test/rails-3/dummy/public/favicon.ico",
195
+ "test/rails-3/dummy/public/images/rich/cms/cleditor/buttons.gif",
196
+ "test/rails-3/dummy/public/images/rich/cms/cleditor/toolbar.gif",
197
+ "test/rails-3/dummy/public/javascripts/jquery/core.js",
198
+ "test/rails-3/dummy/public/javascripts/jquery/ui/rich_cms/core.js",
199
+ "test/rails-3/dummy/public/javascripts/jquery/ui/rich_cms/draggable.js",
200
+ "test/rails-3/dummy/public/javascripts/jquery/ui/rich_cms/mouse.js",
201
+ "test/rails-3/dummy/public/javascripts/jquery/ui/rich_cms/widget.js",
202
+ "test/rails-3/dummy/public/javascripts/rich_cms.js",
203
+ "test/rails-3/dummy/script/rails",
204
+ "test/rails-3/dummy/test/fixtures/authlogic_users.yml",
205
+ "test/rails-3/dummy/test/fixtures/devise_users.yml",
206
+ "test/rails-3/test_helper.rb",
207
+ "test/shared/dummy/db/schema.rb",
208
+ "test/shared/dummy/db/seeds.rb",
209
+ "test/shared/dummy/fixtures/authlogic_users.yml",
210
+ "test/shared/dummy/models/authlogic_user.rb",
211
+ "test/shared/dummy/models/authlogic_user_session.rb",
212
+ "test/shared/dummy/models/cms_content.rb",
213
+ "test/shared/dummy/models/devise_user.rb",
214
+ "test/shared/dummy/stylesheets/app.css",
215
+ "test/shared/dummy/stylesheets/rich_cms.css",
216
+ "test/shared/dummy/views/application/index.html.erb",
217
+ "test/shared/dummy/views/layouts/application.html.erb",
218
+ "test/shared/support/action_controller/integration.rb",
219
+ "test/shared/support/action_controller/test_case.rb",
220
+ "test/shared/support/capybara/setup.rb",
221
+ "test/shared/support/test_helper.rb",
222
+ "test/shared/tests/actionpack/action_controller/base_test.rb",
223
+ "test/shared/tests/actionpack/action_view/base_test.rb",
224
+ "test/shared/tests/activesupport/active_support/dependencies_test.rb",
225
+ "test/shared/tests/app/integration/authenticated/authlogic.rb",
226
+ "test/shared/tests/app/integration/authenticated/devise_test.rb",
227
+ "test/shared/tests/app/integration/non_authenticated.rb",
228
+ "test/shared/tests/app/routing_test.rb",
229
+ "test/shared/tests/auth_test.rb",
230
+ "test/shared/tests/content/group.rb",
231
+ "test/shared/tests/content/item.rb",
232
+ "test/shared/tests/core/string/html_safe.rb",
233
+ "test/shared/tests/dummy_app.rb",
234
+ "test/shared/tests/engine_test.rb",
235
+ "test/shared/tests/rails/engine_test.rb",
236
+ "test/shared/tests/readme_test.rb",
237
+ "uninstall.rb"
105
238
  ]
106
239
  s.homepage = %q{http://codehero.es/rails_gems_plugins/rich_cms}
107
- s.rdoc_options = ["--charset=UTF-8"]
108
240
  s.require_paths = ["lib"]
109
- s.rubygems_version = %q{1.3.7}
241
+ s.rubygems_version = %q{1.5.0}
110
242
  s.summary = %q{Enrichments (e9s) module for a pluggable CMS frontend}
111
243
  s.test_files = [
112
- "test/test_helper.rb"
244
+ "test/integrator.rb",
245
+ "test/rails-2/dummy/app/controllers/application_controller.rb",
246
+ "test/rails-2/dummy/app/helpers/application_helper.rb",
247
+ "test/rails-2/dummy/config/boot.rb",
248
+ "test/rails-2/dummy/config/environment.rb",
249
+ "test/rails-2/dummy/config/environments/development.rb",
250
+ "test/rails-2/dummy/config/environments/production.rb",
251
+ "test/rails-2/dummy/config/environments/test.rb",
252
+ "test/rails-2/dummy/config/initializers/backtrace_silencers.rb",
253
+ "test/rails-2/dummy/config/initializers/cookie_verification_secret.rb",
254
+ "test/rails-2/dummy/config/initializers/devise.rb",
255
+ "test/rails-2/dummy/config/initializers/enrichments.rb",
256
+ "test/rails-2/dummy/config/initializers/inflections.rb",
257
+ "test/rails-2/dummy/config/initializers/mime_types.rb",
258
+ "test/rails-2/dummy/config/initializers/new_rails_defaults.rb",
259
+ "test/rails-2/dummy/config/initializers/session_store.rb",
260
+ "test/rails-2/dummy/config/preinitializer.rb",
261
+ "test/rails-2/dummy/config/routes.rb",
262
+ "test/rails-2/dummy/db/schema.rb",
263
+ "test/rails-2/dummy/db/seeds.rb",
264
+ "test/rails-2/pending.rb",
265
+ "test/rails-2/test_helper.rb",
266
+ "test/rails-3/dummy/app/controllers/application_controller.rb",
267
+ "test/rails-3/dummy/app/helpers/application_helper.rb",
268
+ "test/rails-3/dummy/config/application.rb",
269
+ "test/rails-3/dummy/config/boot.rb",
270
+ "test/rails-3/dummy/config/environment.rb",
271
+ "test/rails-3/dummy/config/environments/development.rb",
272
+ "test/rails-3/dummy/config/environments/production.rb",
273
+ "test/rails-3/dummy/config/environments/test.rb",
274
+ "test/rails-3/dummy/config/initializers/backtrace_silencers.rb",
275
+ "test/rails-3/dummy/config/initializers/devise.rb",
276
+ "test/rails-3/dummy/config/initializers/enrichments.rb",
277
+ "test/rails-3/dummy/config/initializers/inflections.rb",
278
+ "test/rails-3/dummy/config/initializers/mime_types.rb",
279
+ "test/rails-3/dummy/config/initializers/secret_token.rb",
280
+ "test/rails-3/dummy/config/initializers/session_store.rb",
281
+ "test/rails-3/dummy/config/routes.rb",
282
+ "test/rails-3/dummy/db/schema.rb",
283
+ "test/rails-3/dummy/db/seeds.rb",
284
+ "test/rails-3/test_helper.rb",
285
+ "test/shared/dummy/db/schema.rb",
286
+ "test/shared/dummy/db/seeds.rb",
287
+ "test/shared/dummy/models/authlogic_user.rb",
288
+ "test/shared/dummy/models/authlogic_user_session.rb",
289
+ "test/shared/dummy/models/cms_content.rb",
290
+ "test/shared/dummy/models/devise_user.rb",
291
+ "test/shared/support/action_controller/integration.rb",
292
+ "test/shared/support/action_controller/test_case.rb",
293
+ "test/shared/support/capybara/setup.rb",
294
+ "test/shared/support/test_helper.rb",
295
+ "test/shared/tests/actionpack/action_controller/base_test.rb",
296
+ "test/shared/tests/actionpack/action_view/base_test.rb",
297
+ "test/shared/tests/activesupport/active_support/dependencies_test.rb",
298
+ "test/shared/tests/app/integration/authenticated/authlogic.rb",
299
+ "test/shared/tests/app/integration/authenticated/devise_test.rb",
300
+ "test/shared/tests/app/integration/non_authenticated.rb",
301
+ "test/shared/tests/app/routing_test.rb",
302
+ "test/shared/tests/auth_test.rb",
303
+ "test/shared/tests/content/group.rb",
304
+ "test/shared/tests/content/item.rb",
305
+ "test/shared/tests/core/string/html_safe.rb",
306
+ "test/shared/tests/dummy_app.rb",
307
+ "test/shared/tests/engine_test.rb",
308
+ "test/shared/tests/rails/engine_test.rb",
309
+ "test/shared/tests/readme_test.rb"
113
310
  ]
114
311
 
115
312
  if s.respond_to? :specification_version then
116
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
117
313
  s.specification_version = 3
118
314
 
119
315
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
120
- s.add_runtime_dependency(%q<authlogic>, [">= 2.1.2"])
121
- s.add_runtime_dependency(%q<formtastic>, [">= 1.1.0"])
122
- s.add_runtime_dependency(%q<haml>, [">= 3"])
123
- s.add_runtime_dependency(%q<jzip>, [">= 1.0.11"])
316
+ s.add_runtime_dependency(%q<haml>, ["~> 3.0.25"])
317
+ s.add_runtime_dependency(%q<jzip>, ["~> 1.0.11"])
124
318
  else
125
- s.add_dependency(%q<authlogic>, [">= 2.1.2"])
126
- s.add_dependency(%q<formtastic>, [">= 1.1.0"])
127
- s.add_dependency(%q<haml>, [">= 3"])
128
- s.add_dependency(%q<jzip>, [">= 1.0.11"])
319
+ s.add_dependency(%q<haml>, ["~> 3.0.25"])
320
+ s.add_dependency(%q<jzip>, ["~> 1.0.11"])
129
321
  end
130
322
  else
131
- s.add_dependency(%q<authlogic>, [">= 2.1.2"])
132
- s.add_dependency(%q<formtastic>, [">= 1.1.0"])
133
- s.add_dependency(%q<haml>, [">= 3"])
134
- s.add_dependency(%q<jzip>, [">= 1.0.11"])
323
+ s.add_dependency(%q<haml>, ["~> 3.0.25"])
324
+ s.add_dependency(%q<jzip>, ["~> 1.0.11"])
135
325
  end
136
326
  end
137
327
 
@@ -0,0 +1,89 @@
1
+ STDOUT.sync = true
2
+
3
+ module Integrator
4
+ extend self
5
+
6
+ def run(&block)
7
+ Tester.new.execute &block
8
+ end
9
+
10
+ private
11
+
12
+ MAJOR_RAILS_VERSIONS = [2, 3]
13
+ DESCRIPTION_MATCH = /^Setting up test environment for (.*)$/
14
+ TIME_MATCH = /^Finished in (.*)\.$/
15
+ SUMMARY_MATCH = /^(\d+) (\w+), (\d+) (\w+), (\d+) (\w+), (\d+) (\w+)$/
16
+
17
+ class Tester
18
+ def initialize
19
+ @output = []
20
+ end
21
+
22
+ def execute(&block)
23
+ @start = Time.now
24
+ yield self
25
+ @end = Time.now
26
+ summarize
27
+ end
28
+
29
+ def test_all
30
+ MAJOR_RAILS_VERSIONS.each{|version| test_rails version}
31
+ end
32
+ alias_method :all, :test_all
33
+
34
+ def test_rails(major_version)
35
+ %w(non_authenticated authenticated/devise_test authenticated/authlogic).each do |file|
36
+ run "ruby test/rails-#{major_version}/rich_cms/app/integration/#{file}.rb"
37
+ end
38
+ end
39
+ alias_method :rails, :test_rails
40
+
41
+ def run(command)
42
+ IO.popen(command) do |io|
43
+ until io.eof?
44
+ puts (@output << io.gets).last
45
+ end
46
+ end
47
+ end
48
+
49
+ def summarize
50
+ integration_tests = @output.inject([]) do |tests, line|
51
+ if line.match(DESCRIPTION_MATCH)
52
+ tests << {:description => $1.gsub(DESCRIPTION_MATCH, "")}
53
+ end
54
+ if line.match(TIME_MATCH)
55
+ tests.last[:time] = $1
56
+ end
57
+ if line.match(SUMMARY_MATCH)
58
+ tests.last[:summary ] = line
59
+ tests.last[$2.to_sym] = $1
60
+ tests.last[$4.to_sym] = $3
61
+ tests.last[$6.to_sym] = $5
62
+ tests.last[$8.to_sym] = $7
63
+ end
64
+ tests
65
+ end
66
+
67
+ return if integration_tests.size == 0
68
+
69
+ keys = [:time, :tests, :assertions, :failures, :errors]
70
+ failures = integration_tests.inject(0) do |count, test|
71
+ count += 1 if test[:failures].to_i + test[:errors].to_i > 0
72
+ count
73
+ end
74
+
75
+ puts "\n"
76
+ puts "".ljust(70, "=")
77
+ puts "Integration tests (#{failures} failures in #{@end - @start} seconds)"
78
+ integration_tests.each do |test|
79
+ puts "" .ljust(70, "-")
80
+ puts " Description".ljust(16, ".") + ": #{test[:description]}"
81
+ puts " Duration" .ljust(16, ".") + ": #{test[:time] }"
82
+ puts " Summary" .ljust(16, ".") + ": #{test[:summary] }"
83
+ end
84
+ puts "".ljust(70, "=")
85
+ puts "\n"
86
+ end
87
+ end
88
+
89
+ end
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_DISABLE_SHARED_GEMS: "1"
@@ -0,0 +1,15 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "rails", "2.3.10"
4
+ gem "jeweler"
5
+ gem "sqlite3-ruby", :require => "sqlite3"
6
+
7
+ gem "authlogic"
8
+ gem "devise", "~> 1.0.9"
9
+ gem "rich_cms", :path => File.join(File.dirname(__FILE__), "..", "..", "..")
10
+
11
+ gem "mysql2"
12
+ gem "shoulda"
13
+ gem "mocha"
14
+ gem "capybara"
15
+ gem "launchy"
@@ -0,0 +1,97 @@
1
+ PATH
2
+ remote: /Users/paulengel/Sites/enrichments/vendor/foo/rich_cms
3
+ specs:
4
+ rich_cms (3.0.0)
5
+ haml (~> 3.0.25)
6
+ jzip (~> 1.0.11)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actionmailer (2.3.10)
12
+ actionpack (= 2.3.10)
13
+ actionpack (2.3.10)
14
+ activesupport (= 2.3.10)
15
+ rack (~> 1.1.0)
16
+ activerecord (2.3.10)
17
+ activesupport (= 2.3.10)
18
+ activeresource (2.3.10)
19
+ activesupport (= 2.3.10)
20
+ activesupport (2.3.10)
21
+ authlogic (2.1.6)
22
+ activesupport
23
+ capybara (0.4.1.1)
24
+ celerity (>= 0.7.9)
25
+ culerity (>= 0.2.4)
26
+ mime-types (>= 1.16)
27
+ nokogiri (>= 1.3.3)
28
+ rack (>= 1.0.0)
29
+ rack-test (>= 0.5.4)
30
+ selenium-webdriver (>= 0.0.27)
31
+ xpath (~> 0.1.3)
32
+ celerity (0.8.7)
33
+ childprocess (0.1.6)
34
+ ffi (~> 0.6.3)
35
+ configuration (1.2.0)
36
+ culerity (0.2.15)
37
+ devise (1.0.9)
38
+ warden (~> 0.10.3)
39
+ ffi (0.6.3)
40
+ rake (>= 0.8.7)
41
+ git (1.2.5)
42
+ haml (3.0.25)
43
+ jeweler (1.5.2)
44
+ bundler (~> 1.0.0)
45
+ git (>= 1.2.5)
46
+ rake
47
+ json_pure (1.5.1)
48
+ jzip (1.0.11)
49
+ launchy (0.3.7)
50
+ configuration (>= 0.0.5)
51
+ rake (>= 0.8.1)
52
+ mime-types (1.16)
53
+ mocha (0.9.10)
54
+ rake
55
+ mysql2 (0.2.6)
56
+ nokogiri (1.4.4)
57
+ rack (1.1.0)
58
+ rack-test (0.5.7)
59
+ rack (>= 1.0)
60
+ rails (2.3.10)
61
+ actionmailer (= 2.3.10)
62
+ actionpack (= 2.3.10)
63
+ activerecord (= 2.3.10)
64
+ activeresource (= 2.3.10)
65
+ activesupport (= 2.3.10)
66
+ rake (>= 0.8.3)
67
+ rake (0.8.7)
68
+ rubyzip (0.9.4)
69
+ selenium-webdriver (0.1.2)
70
+ childprocess (~> 0.1.5)
71
+ ffi (~> 0.6.3)
72
+ json_pure
73
+ rubyzip
74
+ shoulda (2.11.3)
75
+ sqlite3 (1.3.3)
76
+ sqlite3-ruby (1.3.3)
77
+ sqlite3 (>= 1.3.3)
78
+ warden (0.10.7)
79
+ rack (>= 1.0.0)
80
+ xpath (0.1.3)
81
+ nokogiri (~> 1.3)
82
+
83
+ PLATFORMS
84
+ ruby
85
+
86
+ DEPENDENCIES
87
+ authlogic
88
+ capybara
89
+ devise (~> 1.0.9)
90
+ jeweler
91
+ launchy
92
+ mocha
93
+ mysql2
94
+ rails (= 2.3.10)
95
+ rich_cms!
96
+ shoulda
97
+ sqlite3-ruby