quic_cms 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +39 -0
  4. data/app/assets/javascripts/quic_cms/admin/pages.js +2 -0
  5. data/app/assets/javascripts/quic_cms/application.js +9 -0
  6. data/app/assets/javascripts/quic_cms/pages.js +2 -0
  7. data/app/assets/stylesheets/quic_cms/admin/pages.css +4 -0
  8. data/app/assets/stylesheets/quic_cms/application.css +7 -0
  9. data/app/assets/stylesheets/quic_cms/pages.css +4 -0
  10. data/app/controllers/quic_cms/admin/pages_controller.rb +4 -0
  11. data/app/controllers/quic_cms/application_controller.rb +4 -0
  12. data/app/controllers/quic_cms/pages_controller.rb +27 -0
  13. data/app/helpers/quic_cms/admin/pages_helper.rb +4 -0
  14. data/app/helpers/quic_cms/application_helper.rb +4 -0
  15. data/app/helpers/quic_cms/layout_helper.rb +20 -0
  16. data/app/helpers/quic_cms/pages_helper.rb +4 -0
  17. data/app/models/ckeditor/asset.rb +4 -0
  18. data/app/models/ckeditor/attachment_file.rb +15 -0
  19. data/app/models/ckeditor/picture.rb +13 -0
  20. data/app/models/quic_cms/page.rb +6 -0
  21. data/app/views/layouts/quic_cms/application.html.erb +15 -0
  22. data/app/views/quic_cms/pages/show.html.erb +13 -0
  23. data/app/views/quic_cms/shared/_top_menu.html.erb +14 -0
  24. data/config/initializers/ckeditor.rb +18 -0
  25. data/config/routes.rb +7 -0
  26. data/db/migrate/20111107082317_create_ckeditor_assets.rb +26 -0
  27. data/db/migrate/20111107140906_create_quic_cms_pages.rb +16 -0
  28. data/lib/quic_cms/engine.rb +5 -0
  29. data/lib/quic_cms/version.rb +3 -0
  30. data/lib/quic_cms.rb +4 -0
  31. data/lib/tasks/quic_cms_tasks.rake +4 -0
  32. data/test/dummy/Rakefile +7 -0
  33. data/test/dummy/app/assets/javascripts/application.js +9 -0
  34. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  35. data/test/dummy/app/controllers/application_controller.rb +3 -0
  36. data/test/dummy/app/helpers/application_helper.rb +2 -0
  37. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  38. data/test/dummy/config/application.rb +45 -0
  39. data/test/dummy/config/boot.rb +10 -0
  40. data/test/dummy/config/database.yml +25 -0
  41. data/test/dummy/config/environment.rb +5 -0
  42. data/test/dummy/config/environments/development.rb +30 -0
  43. data/test/dummy/config/environments/production.rb +60 -0
  44. data/test/dummy/config/environments/test.rb +39 -0
  45. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  46. data/test/dummy/config/initializers/inflections.rb +10 -0
  47. data/test/dummy/config/initializers/mime_types.rb +5 -0
  48. data/test/dummy/config/initializers/secret_token.rb +7 -0
  49. data/test/dummy/config/initializers/session_store.rb +8 -0
  50. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  51. data/test/dummy/config/locales/en.yml +5 -0
  52. data/test/dummy/config/routes.rb +4 -0
  53. data/test/dummy/config.ru +4 -0
  54. data/test/dummy/db/development.sqlite3 +0 -0
  55. data/test/dummy/db/schema.rb +42 -0
  56. data/test/dummy/log/development.log +564 -0
  57. data/test/dummy/public/404.html +26 -0
  58. data/test/dummy/public/422.html +26 -0
  59. data/test/dummy/public/500.html +26 -0
  60. data/test/dummy/public/favicon.ico +0 -0
  61. data/test/dummy/script/rails +6 -0
  62. data/test/dummy/tmp/cache/assets/BA9/B00/sprockets%2F0ed496270513006281b4125980118d01 +0 -0
  63. data/test/dummy/tmp/cache/assets/C42/640/sprockets%2F3eb427c0f2e1910601295928901b23e4 +0 -0
  64. data/test/dummy/tmp/cache/assets/C7D/ED0/sprockets%2F35b0b60185df6b942ae7055766101e69 +0 -0
  65. data/test/dummy/tmp/cache/assets/C9F/1F0/sprockets%2F00440e6a41ba170478854cfa82a237d6 +0 -0
  66. data/test/dummy/tmp/cache/assets/CB4/A00/sprockets%2Fd8844fe88bfe1361eb6626574210c422 +0 -0
  67. data/test/dummy/tmp/cache/assets/CFC/F30/sprockets%2F271297af43b7256da1e14f6ecb00205c +0 -0
  68. data/test/dummy/tmp/cache/assets/D0C/F70/sprockets%2F3202dac0fed74ca922b706bf93974960 +0 -0
  69. data/test/dummy/tmp/cache/assets/D0E/6A0/sprockets%2F8b03f6276ecb80541fa08335db561d9e +0 -0
  70. data/test/dummy/tmp/cache/assets/D1F/7A0/sprockets%2F5f487daf9fb20dbb148175f187544e85 +0 -0
  71. data/test/dummy/tmp/cache/assets/D26/360/sprockets%2F57993ef8782d8fcb1a5620f3c98d58a0 +0 -0
  72. data/test/dummy/tmp/cache/assets/D32/030/sprockets%2F4ed4c1992a22a60d40f509c3b3bfb619 +0 -0
  73. data/test/dummy/tmp/cache/assets/D61/FA0/sprockets%2F2bdcf50ad09cb8e93cab517870034b80 +0 -0
  74. data/test/dummy/tmp/cache/assets/D83/AA0/sprockets%2F83b00e66162c004b4de22a1fbac9ed0f +0 -0
  75. data/test/dummy/tmp/cache/assets/D8A/D60/sprockets%2F7d3204dfca6653e3f02c514e0ce3bc3c +0 -0
  76. data/test/dummy/tmp/cache/assets/D97/9E0/sprockets%2F4d26efdc34508e208b2a82ce7cbd27d2 +0 -0
  77. data/test/dummy/tmp/cache/assets/DCD/490/sprockets%2F5be3ec9cd11d885e1de8ec0a1d91734b +0 -0
  78. data/test/fixtures/quic_cms/pages.yml +21 -0
  79. data/test/functional/quic_cms/admin/pages_controller_test.rb +9 -0
  80. data/test/functional/quic_cms/pages_controller_test.rb +11 -0
  81. data/test/integration/navigation_test.rb +10 -0
  82. data/test/quic_cms_test.rb +7 -0
  83. data/test/test_helper.rb +10 -0
  84. data/test/unit/helpers/quic_cms/admin/pages_helper_test.rb +6 -0
  85. data/test/unit/helpers/quic_cms/pages_helper_test.rb +6 -0
  86. data/test/unit/quic_cms/page_test.rb +9 -0
  87. metadata +290 -0
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = 'd1c86b96399d8abb812cf48ddb367c664b7384e3a95defd3e808115e96e1751f12f6a1da2c93c087578fbabf331679f3a484b3308252fb05bec876609b245e22'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters :format => [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount QuicCms::Engine => "/"
4
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
Binary file
@@ -0,0 +1,42 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # Note that this schema.rb definition is the authoritative source for your
6
+ # database schema. If you need to create the application database on another
7
+ # system, you should be using db:schema:load, not running all the migrations
8
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
10
+ #
11
+ # It's strongly recommended to check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(:version => 20111107140906) do
14
+
15
+ create_table "ckeditor_assets", :force => true do |t|
16
+ t.string "data_file_name", :null => false
17
+ t.string "data_content_type"
18
+ t.integer "data_file_size"
19
+ t.integer "assetable_id"
20
+ t.string "assetable_type", :limit => 30
21
+ t.string "type", :limit => 30
22
+ t.datetime "created_at"
23
+ t.datetime "updated_at"
24
+ end
25
+
26
+ add_index "ckeditor_assets", ["assetable_type", "assetable_id"], :name => "idx_ckeditor_assetable"
27
+ add_index "ckeditor_assets", ["assetable_type", "type", "assetable_id"], :name => "idx_ckeditor_assetable_type"
28
+
29
+ create_table "quic_cms_pages", :force => true do |t|
30
+ t.string "permalink"
31
+ t.text "content"
32
+ t.integer "lft"
33
+ t.integer "rgt"
34
+ t.integer "parent_id"
35
+ t.string "title"
36
+ t.integer "position"
37
+ t.boolean "show_title"
38
+ t.datetime "created_at"
39
+ t.datetime "updated_at"
40
+ end
41
+
42
+ end