ckeditor 3.6.3 → 3.7.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. data/Gemfile +1 -1
  2. data/README.rdoc +14 -24
  3. data/app/assets/javascripts/ckeditor/application.js +5 -0
  4. data/app/assets/stylesheets/ckeditor/application.css +6 -0
  5. data/app/controllers/ckeditor/{base_controller.rb → application_controller.rb} +1 -2
  6. data/app/controllers/ckeditor/attachment_files_controller.rb +2 -2
  7. data/app/controllers/ckeditor/pictures_controller.rb +2 -2
  8. data/app/views/ckeditor/shared/_asset.html.erb +2 -2
  9. data/app/views/ckeditor/shared/_asset_tmpl.html.erb +1 -1
  10. data/app/views/layouts/{ckeditor.html.erb → ckeditor/application.html.erb} +4 -12
  11. data/config/locales/sv-SE.ckeditor.yml +8 -0
  12. data/config/locales/zh-CN.ckeditor.yml +8 -0
  13. data/config/routes.rb +3 -5
  14. data/lib/ckeditor.rb +2 -16
  15. data/lib/ckeditor/engine.rb +4 -1
  16. data/lib/ckeditor/hooks/formtastic.rb +9 -12
  17. data/lib/ckeditor/orm/active_record.rb +1 -1
  18. data/lib/ckeditor/utils.rb +14 -7
  19. data/lib/ckeditor/version.rb +1 -1
  20. data/lib/generators/ckeditor/install_generator.rb +48 -55
  21. data/lib/generators/ckeditor/templates/{models/active_record → active_record}/carrierwave/ckeditor/asset.rb +0 -0
  22. data/lib/generators/ckeditor/templates/{models/mongoid → active_record}/carrierwave/ckeditor/attachment_file.rb +1 -4
  23. data/lib/generators/ckeditor/templates/{models/active_record → active_record}/carrierwave/ckeditor/picture.rb +0 -0
  24. data/lib/generators/ckeditor/templates/{models/active_record → active_record}/carrierwave/migration.rb +0 -0
  25. data/lib/generators/ckeditor/templates/{models/active_record → active_record}/paperclip/ckeditor/asset.rb +0 -0
  26. data/lib/generators/ckeditor/templates/{models/active_record → active_record}/paperclip/ckeditor/attachment_file.rb +1 -4
  27. data/lib/generators/ckeditor/templates/{models/active_record → active_record}/paperclip/ckeditor/picture.rb +0 -0
  28. data/lib/generators/ckeditor/templates/{models/active_record → active_record}/paperclip/migration.rb +0 -0
  29. data/lib/generators/ckeditor/templates/{models/base → base}/carrierwave/uploaders/ckeditor_attachment_file_uploader.rb +0 -0
  30. data/lib/generators/ckeditor/templates/{models/base → base}/carrierwave/uploaders/ckeditor_picture_uploader.rb +0 -0
  31. data/lib/generators/ckeditor/templates/ckeditor.rb +0 -3
  32. data/lib/generators/ckeditor/templates/{models/mongoid → mongoid}/carrierwave/ckeditor/asset.rb +0 -0
  33. data/lib/generators/ckeditor/templates/{models/active_record → mongoid}/carrierwave/ckeditor/attachment_file.rb +1 -4
  34. data/lib/generators/ckeditor/templates/{models/mongoid → mongoid}/carrierwave/ckeditor/picture.rb +0 -0
  35. data/lib/generators/ckeditor/templates/{models/mongoid → mongoid}/paperclip/ckeditor/asset.rb +0 -0
  36. data/lib/generators/ckeditor/templates/{models/mongoid → mongoid}/paperclip/ckeditor/attachment_file.rb +1 -4
  37. data/lib/generators/ckeditor/templates/{models/mongoid → mongoid}/paperclip/ckeditor/picture.rb +0 -0
  38. data/test/ckeditor_test.rb +0 -14
  39. data/test/controllers/attachment_files_controller_test.rb +2 -0
  40. data/test/controllers/pictures_controller_test.rb +3 -0
  41. data/test/dummy/Rakefile +1 -1
  42. data/test/dummy/app/assets/javascripts/application.js +11 -0
  43. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  44. data/test/dummy/{public → app/assets}/stylesheets/scaffold.css +0 -0
  45. data/test/dummy/app/views/layouts/application.html.erb +3 -3
  46. data/test/dummy/config/application.rb +11 -12
  47. data/test/dummy/config/boot.rb +7 -6
  48. data/test/dummy/config/database.yml +11 -0
  49. data/test/dummy/config/environments/development.rb +7 -3
  50. data/test/dummy/config/environments/production.rb +23 -12
  51. data/test/dummy/config/environments/test.rb +5 -1
  52. data/test/dummy/config/initializers/secret_token.rb +1 -1
  53. data/test/dummy/config/initializers/session_store.rb +1 -1
  54. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  55. data/test/dummy/config/locales/en.yml +1 -1
  56. data/test/dummy/config/routes.rb +2 -0
  57. data/test/dummy/db/test.sqlite3 +0 -0
  58. data/test/dummy/log/test.log +3681 -6331
  59. data/test/generators/install_generator_test.rb +58 -15
  60. data/test/integration/posts_test.rb +5 -5
  61. data/test/models/attachment_file_test.rb +3 -1
  62. data/test/models/picture_test.rb +1 -0
  63. data/test/models/utils_test.rb +19 -0
  64. data/test/support/controller_hooks.rb +27 -0
  65. data/test/support/routes.txt +4 -0
  66. data/test/test_helper.rb +0 -1
  67. data/test/tmp/app/models/ckeditor/attachment_file.rb +1 -4
  68. data/test/tmp/config/initializers/ckeditor.rb +18 -0
  69. data/test/tmp/config/routes.rb +6 -0
  70. metadata +185 -236
  71. data/lib/generators/ckeditor/models_generator.rb +0 -70
  72. data/lib/generators/ckeditor/templates/ckeditor/config.js +0 -65
  73. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_add.jpg +0 -0
  74. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_add.png +0 -0
  75. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_del.png +0 -0
  76. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_more.gif +0 -0
  77. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/preloader.gif +0 -0
  78. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/ckfnothumb.gif +0 -0
  79. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/mp3.gif +0 -0
  80. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/pdf.gif +0 -0
  81. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/rar.gif +0 -0
  82. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/swf.gif +0 -0
  83. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/xls.gif +0 -0
  84. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/javascripts/application.js +0 -223
  85. data/lib/generators/ckeditor/templates/ckeditor/filebrowser/stylesheets/uploader.css +0 -115
  86. data/lib/generators/ckeditor/templates/ckeditor/plugins/attachment/dialogs/attachment.js +0 -1
  87. data/lib/generators/ckeditor/templates/ckeditor/plugins/attachment/images/attachment.png +0 -0
  88. data/lib/generators/ckeditor/templates/ckeditor/plugins/attachment/lang/en.js +0 -10
  89. data/lib/generators/ckeditor/templates/ckeditor/plugins/attachment/lang/ru.js +0 -10
  90. data/lib/generators/ckeditor/templates/ckeditor/plugins/attachment/lang/uk.js +0 -10
  91. data/lib/generators/ckeditor/templates/ckeditor/plugins/attachment/plugin.js +0 -1
  92. data/lib/generators/ckeditor/templates/ckeditor/plugins/embed/dialogs/embed.js +0 -1
  93. data/lib/generators/ckeditor/templates/ckeditor/plugins/embed/images/embed.png +0 -0
  94. data/lib/generators/ckeditor/templates/ckeditor/plugins/embed/lang/en.js +0 -9
  95. data/lib/generators/ckeditor/templates/ckeditor/plugins/embed/lang/ru.js +0 -9
  96. data/lib/generators/ckeditor/templates/ckeditor/plugins/embed/lang/uk.js +0 -9
  97. data/lib/generators/ckeditor/templates/ckeditor/plugins/embed/plugin.js +0 -1
  98. data/test/dummy/db/schema.rb +0 -36
  99. data/test/dummy/public/javascripts/application.js +0 -2
  100. data/test/dummy/public/javascripts/controls.js +0 -965
  101. data/test/dummy/public/javascripts/dragdrop.js +0 -974
  102. data/test/dummy/public/javascripts/effects.js +0 -1123
  103. data/test/dummy/public/javascripts/prototype.js +0 -6001
  104. data/test/dummy/public/javascripts/rails.js +0 -191
  105. data/test/generators/models_generator_test.rb +0 -61
  106. data/test/routes_test.rb +0 -47
@@ -1,21 +1,23 @@
1
1
  require "test_helper"
2
+ require "fileutils"
2
3
 
3
4
  class InstallGeneratorTest < Rails::Generators::TestCase
4
5
  tests Ckeditor::Generators::InstallGenerator
5
6
  destination File.expand_path("../../tmp", __FILE__)
6
7
  setup :prepare_destination
7
8
 
9
+ setup do
10
+ dir = File.expand_path("../../", __FILE__)
11
+
12
+ FileUtils.mkdir_p File.join(dir, 'tmp/config')
13
+ FileUtils.cp File.join(dir, 'support/routes.txt'), File.join(dir, 'tmp/config/routes.rb')
14
+ end
15
+
8
16
  test "Assert all files are properly created" do
9
17
  run_generator %w(--orm=active_record)
10
18
 
11
19
  assert_file "config/initializers/ckeditor.rb", /require "ckeditor\/orm\/active_record"/
12
- assert_file "public/javascripts/ckeditor/plugins/image/dialogs/image.js",
13
- /filebrowser:\{target:\'info:txtUrl\',action:\'QuickUpload\',params\:b.config.filebrowserParams\(\)\}/
14
- assert_no_file "tmp/ckeditor_#{Ckeditor::Version::EDITOR}.tar.gz"
15
-
16
- ["rails.js", "jquery.js", "fileuploader.js", "jquery.tmpl.js"].each do |file|
17
- assert_file "public/javascripts/ckeditor/filebrowser/javascripts/#{file}"
18
- end
20
+ assert_file "config/routes.rb", /mount\sCkeditor::Engine\s=\>\s\'\/ckeditor\'/
19
21
  end
20
22
 
21
23
  test "Assert configurator is valid for mongoid" do
@@ -24,16 +26,57 @@ class InstallGeneratorTest < Rails::Generators::TestCase
24
26
  assert_file "config/initializers/ckeditor.rb", /require "ckeditor\/orm\/mongoid"/
25
27
  end
26
28
 
27
- test "Assert all files are properly created into custom destination" do
28
- dest = 'public/assets'
29
-
30
- run_generator %w(--orm=active_record --path=public/assets)
29
+ test "models and migration for active_record orm via paperclip" do
30
+ run_generator %w(--orm=active_record --backend=paperclip)
31
31
 
32
- assert_file "config/initializers/ckeditor.rb", /config.path = 'public\/assets'/
33
- assert_no_file "tmp/ckeditor_#{Ckeditor::Version::EDITOR}.tar.gz"
32
+ assert_file "app/models/ckeditor/asset.rb"
33
+ assert_file "app/models/ckeditor/picture.rb"
34
+ assert_file "app/models/ckeditor/attachment_file.rb"
34
35
 
35
- ["rails.js", "jquery.js", "fileuploader.js", "jquery.tmpl.js"].each do |file|
36
- assert_file "#{dest}/ckeditor/filebrowser/javascripts/#{file}"
36
+ assert_migration "db/migrate/create_ckeditor_assets.rb" do |migration|
37
+ assert_class_method :up, migration do |up|
38
+ assert_match /create_table/, up
39
+ end
37
40
  end
38
41
  end
42
+
43
+ test "models and migration for active_record orm via carrierwave" do
44
+ run_generator %w(--orm=active_record --backend=carrierwave)
45
+
46
+ assert_file "app/models/ckeditor/asset.rb"
47
+ assert_file "app/models/ckeditor/picture.rb"
48
+ assert_file "app/models/ckeditor/attachment_file.rb"
49
+
50
+ assert_file "app/uploaders/ckeditor_attachment_file_uploader.rb"
51
+ assert_file "app/uploaders/ckeditor_picture_uploader.rb"
52
+
53
+ assert_migration "db/migrate/create_ckeditor_assets.rb" do |migration|
54
+ assert_class_method :up, migration do |up|
55
+ assert_match /create_table/, up
56
+ end
57
+ end
58
+ end
59
+
60
+ test "models for mongoid orm via paperclip" do
61
+ run_generator %w(--orm=mongoid --backend=paperclip)
62
+
63
+ assert_file "app/models/ckeditor/asset.rb"
64
+ assert_file "app/models/ckeditor/picture.rb"
65
+ assert_file "app/models/ckeditor/attachment_file.rb"
66
+
67
+ assert_no_migration "db/migrate/create_ckeditor_assets.rb"
68
+ end
69
+
70
+ test "models for mongoid orm via carrierwave" do
71
+ run_generator %w(--orm=mongoid --backend=carrierwave)
72
+
73
+ assert_file "app/models/ckeditor/asset.rb"
74
+ assert_file "app/models/ckeditor/picture.rb"
75
+ assert_file "app/models/ckeditor/attachment_file.rb"
76
+
77
+ assert_file "app/uploaders/ckeditor_attachment_file_uploader.rb"
78
+ assert_file "app/uploaders/ckeditor_picture_uploader.rb"
79
+
80
+ assert_no_migration "db/migrate/create_ckeditor_assets.rb"
81
+ end
39
82
  end
@@ -12,24 +12,24 @@ class PostsTest < ActiveSupport::IntegrationCase
12
12
  test "include javascripts" do
13
13
  visit(posts_path)
14
14
 
15
- assert page.body.include?('/javascripts/ckeditor/ckeditor.js')
16
- assert page.body.include?("CKEDITOR.replace('test_area', { language: 'en' });")
15
+ assert page.body.include?('/assets/application.js')
16
+ assert page.body.include?(%q{CKEDITOR.replace('test_area', { "language": 'en' });})
17
17
  end
18
18
 
19
19
  test "pass text_area with options" do
20
20
  visit(posts_path)
21
21
 
22
22
  assert page.body.include?('<textarea cols="10" id="content" name="content" rows="20">Ckeditor</textarea>')
23
- assert page.body.include?("CKEDITOR.replace('content', { language: 'en',toolbar: 'Easy' });")
23
+ assert page.body.include?(%q{CKEDITOR.replace('content', { "language": 'en',"toolbar": 'Easy' });})
24
24
  end
25
25
 
26
26
  test "form builder helper" do
27
27
  visit(new_post_path)
28
28
 
29
29
  assert page.body.include?('<textarea cols="40" id="post_content" name="post[content]" rows="20"></textarea>')
30
- assert page.body.include?("CKEDITOR.replace('post_content', { height: 400,language: 'en',width: 800 });")
30
+ assert page.body.include?(%q{CKEDITOR.replace('post_content', { "height": 400,"language": 'en',"width": 800 });})
31
31
  assert page.body.include?('<textarea cols="40" id="post_info" name="post[info]" rows="20">Defaults info content</textarea>')
32
- assert page.body.include?("CKEDITOR.replace('post_info', { language: 'en' });")
32
+ assert page.body.include?(%q{CKEDITOR.replace('post_info', { "language": 'en' });})
33
33
  end
34
34
 
35
35
  test "text_area value" do
@@ -4,13 +4,15 @@ class AttachmentFileTest < ActiveSupport::TestCase
4
4
  test "Set file content_type and size" do
5
5
  @attachemnt = create_attachemnt
6
6
 
7
- assert_equal @attachemnt.data_content_type, "application/x-gzip"
8
7
  # TODO: fix filename parameterization
9
8
  if CKEDITOR_BACKEND == :paperclip
10
9
  assert_equal @attachemnt.data_file_name, "rails_tar.gz"
11
10
  else
12
11
  assert_equal @attachemnt.data_file_name, "rails.tar.gz"
13
12
  end
13
+
14
+ assert_equal @attachemnt.data_content_type, "application/x-gzip"
14
15
  assert_equal @attachemnt.data_file_size, 6823
16
+ assert_equal @attachemnt.url_thumb, "/assets/ckeditor/filebrowser/images/thumbs/gz.gif"
15
17
  end
16
18
  end
@@ -7,6 +7,7 @@ class PictureTest < ActiveSupport::TestCase
7
7
  assert_equal @picture.data_content_type, "image/png"
8
8
  assert_equal @picture.data_file_name, "rails.png"
9
9
  assert_equal @picture.data_file_size, 6646
10
+ assert @picture.url_thumb.include?('thumb_rails.png')
10
11
 
11
12
  if @picture.has_dimensions?
12
13
  assert_equal @picture.width, 50
@@ -0,0 +1,19 @@
1
+ require 'test_helper'
2
+
3
+ class UtilsTest < ActiveSupport::TestCase
4
+ test 'exists filethumb' do
5
+ ["avi", "doc", "docx", "exe", "gz", "htm", "jpg", "mp3", "mpg", "pdf",
6
+ "psd", "rar", "swf", "tar", "txt", "wmv", "xlsx", "zip"].each do |ext|
7
+ assert_equal Ckeditor::Utils.filethumb("somefile.#{ext}"), "/assets/ckeditor/filebrowser/images/thumbs/#{ext}.gif"
8
+ end
9
+
10
+ assert_equal Ckeditor::Utils.filethumb("somefile.ddd"), "/assets/ckeditor/filebrowser/images/thumbs/unknown.gif"
11
+ end
12
+
13
+ test 'wrong filethumb' do
14
+ assert_equal Ckeditor::Utils.filethumb("somefile.ddd"), "/assets/ckeditor/filebrowser/images/thumbs/unknown.gif"
15
+ assert_equal Ckeditor::Utils.filethumb("somefile"), "/assets/ckeditor/filebrowser/images/thumbs/unknown.gif"
16
+ assert_equal Ckeditor::Utils.filethumb(""), "/assets/ckeditor/filebrowser/images/thumbs/unknown.gif"
17
+ assert_equal Ckeditor::Utils.filethumb(nil), "/assets/ckeditor/filebrowser/images/thumbs/unknown.gif"
18
+ end
19
+ end
@@ -0,0 +1,27 @@
1
+ module ControllerHooks
2
+ def get(action, parameters = nil, session = nil, flash = nil)
3
+ process_action(action, parameters, session, flash, "GET")
4
+ end
5
+
6
+ # Executes a request simulating POST HTTP method and set/volley the response
7
+ def post(action, parameters = nil, session = nil, flash = nil)
8
+ process_action(action, parameters, session, flash, "POST")
9
+ end
10
+
11
+ # Executes a request simulating PUT HTTP method and set/volley the response
12
+ def put(action, parameters = nil, session = nil, flash = nil)
13
+ process_action(action, parameters, session, flash, "PUT")
14
+ end
15
+
16
+ # Executes a request simulating DELETE HTTP method and set/volley the response
17
+ def delete(action, parameters = nil, session = nil, flash = nil)
18
+ process_action(action, parameters, session, flash, "DELETE")
19
+ end
20
+
21
+ private
22
+
23
+ def process_action(action, parameters = nil, session = nil, flash = nil, method = "GET")
24
+ parameters ||= {}
25
+ process(action, parameters.merge!(:use_route => Ckeditor::Engine.engine_name), session, flash, method)
26
+ end
27
+ end
@@ -0,0 +1,4 @@
1
+ Dummy::Application.routes.draw do
2
+ resources :posts
3
+ root :to => "posts#index"
4
+ end
@@ -30,4 +30,3 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
30
30
  # For generators
31
31
  require "rails/generators/test_case"
32
32
  require "generators/ckeditor/install_generator"
33
- require "generators/ckeditor/models_generator"
@@ -7,9 +7,6 @@ class Ckeditor::AttachmentFile < Ckeditor::Asset
7
7
  validates_attachment_presence :data
8
8
 
9
9
  def url_thumb
10
- @url_thumb ||= begin
11
- extname = File.extname(filename).gsub(/^\./, '')
12
- "/javascripts/ckeditor/filebrowser/images/thumbs/#{extname}.gif"
13
- end
10
+ @url_thumb ||= Ckeditor::Utils.filethumb(filename)
14
11
  end
15
12
  end
@@ -0,0 +1,18 @@
1
+ # Use this hook to configure ckeditor
2
+ if Object.const_defined?("Ckeditor")
3
+ Ckeditor.setup do |config|
4
+ # ==> ORM configuration
5
+ # Load and configure the ORM. Supports :active_record (default), :mongo_mapper and
6
+ # :mongoid (bson_ext recommended) by default. Other ORMs may be
7
+ # available as additional gems.
8
+ require "ckeditor/orm/mongoid"
9
+
10
+ # Allowed image file types for upload.
11
+ # Set to nil or [] (empty array) for all file types
12
+ # config.image_file_types = ["jpg", "jpeg", "png", "gif", "tiff"]
13
+
14
+ # Allowed attachment file types for upload.
15
+ # Set to nil or [] (empty array) for all file types
16
+ # config.attachment_file_types = ["doc", "docx", "xls", "odt", "ods", "pdf", "rar", "zip", "tar", "swf"]
17
+ end
18
+ end
@@ -0,0 +1,6 @@
1
+ Dummy::Application.routes.draw do
2
+ mount Ckeditor::Engine => '/ckeditor'
3
+
4
+ resources :posts
5
+ root :to => "posts#index"
6
+ end
metadata CHANGED
@@ -1,308 +1,257 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ckeditor
3
- version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease:
6
- segments:
7
- - 3
8
- - 6
9
- - 3
10
- version: 3.6.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.7.0.rc1
5
+ prerelease: 6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Igor Galeta
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-10-16 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: mime-types
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &74226680 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 47
29
- segments:
30
- - 1
31
- - 16
32
- version: "1.16"
20
+ - !ruby/object:Gem::Version
21
+ version: '1.16'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: orm_adapter
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *74226680
25
+ - !ruby/object:Gem::Dependency
26
+ name: orm_adapter
27
+ requirement: &74226360 !ruby/object:Gem::Requirement
39
28
  none: false
40
- requirements:
29
+ requirements:
41
30
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 21
44
- segments:
45
- - 0
46
- - 0
47
- - 5
31
+ - !ruby/object:Gem::Version
48
32
  version: 0.0.5
49
33
  type: :runtime
50
- version_requirements: *id002
34
+ prerelease: false
35
+ version_requirements: *74226360
51
36
  description: CKEditor is a WYSIWYG editor to be used inside web pages
52
37
  email: galeta.igor@gmail.com
53
38
  executables: []
54
-
55
39
  extensions: []
56
-
57
- extra_rdoc_files:
40
+ extra_rdoc_files:
58
41
  - README.rdoc
59
- files:
60
- - app/controllers/ckeditor/base_controller.rb
61
- - app/controllers/ckeditor/pictures_controller.rb
62
- - app/controllers/ckeditor/attachment_files_controller.rb
63
- - app/views/layouts/ckeditor.html.erb
64
- - app/views/ckeditor/shared/_asset.html.erb
65
- - app/views/ckeditor/shared/_asset_tmpl.html.erb
42
+ files:
66
43
  - app/views/ckeditor/pictures/index.html.erb
44
+ - app/views/ckeditor/shared/_asset_tmpl.html.erb
45
+ - app/views/ckeditor/shared/_asset.html.erb
67
46
  - app/views/ckeditor/attachment_files/index.html.erb
68
- - lib/ckeditor.rb
69
- - lib/generators/ckeditor/install_generator.rb
70
- - lib/generators/ckeditor/models_generator.rb
71
- - lib/generators/ckeditor/templates/ckeditor.rb
72
- - lib/generators/ckeditor/templates/ckeditor/config.js
73
- - lib/generators/ckeditor/templates/ckeditor/filebrowser/javascripts/application.js
74
- - lib/generators/ckeditor/templates/ckeditor/filebrowser/stylesheets/uploader.css
75
- - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_del.png
76
- - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_more.gif
77
- - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_add.png
78
- - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/preloader.gif
79
- - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/ckfnothumb.gif
80
- - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/pdf.gif
81
- - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/swf.gif
82
- - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/mp3.gif
83
- - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/xls.gif
84
- - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/thumbs/rar.gif
85
- - lib/generators/ckeditor/templates/ckeditor/filebrowser/images/gal_add.jpg
86
- - lib/generators/ckeditor/templates/ckeditor/plugins/embed/plugin.js
87
- - lib/generators/ckeditor/templates/ckeditor/plugins/embed/lang/uk.js
88
- - lib/generators/ckeditor/templates/ckeditor/plugins/embed/lang/en.js
89
- - lib/generators/ckeditor/templates/ckeditor/plugins/embed/lang/ru.js
90
- - lib/generators/ckeditor/templates/ckeditor/plugins/embed/dialogs/embed.js
91
- - lib/generators/ckeditor/templates/ckeditor/plugins/embed/images/embed.png
92
- - lib/generators/ckeditor/templates/ckeditor/plugins/attachment/plugin.js
93
- - lib/generators/ckeditor/templates/ckeditor/plugins/attachment/lang/uk.js
94
- - lib/generators/ckeditor/templates/ckeditor/plugins/attachment/lang/en.js
95
- - lib/generators/ckeditor/templates/ckeditor/plugins/attachment/lang/ru.js
96
- - lib/generators/ckeditor/templates/ckeditor/plugins/attachment/dialogs/attachment.js
97
- - lib/generators/ckeditor/templates/ckeditor/plugins/attachment/images/attachment.png
98
- - lib/generators/ckeditor/templates/models/active_record/paperclip/migration.rb
99
- - lib/generators/ckeditor/templates/models/active_record/paperclip/ckeditor/attachment_file.rb
100
- - lib/generators/ckeditor/templates/models/active_record/paperclip/ckeditor/asset.rb
101
- - lib/generators/ckeditor/templates/models/active_record/paperclip/ckeditor/picture.rb
102
- - lib/generators/ckeditor/templates/models/active_record/carrierwave/migration.rb
103
- - lib/generators/ckeditor/templates/models/active_record/carrierwave/ckeditor/attachment_file.rb
104
- - lib/generators/ckeditor/templates/models/active_record/carrierwave/ckeditor/asset.rb
105
- - lib/generators/ckeditor/templates/models/active_record/carrierwave/ckeditor/picture.rb
106
- - lib/generators/ckeditor/templates/models/mongoid/paperclip/ckeditor/attachment_file.rb
107
- - lib/generators/ckeditor/templates/models/mongoid/paperclip/ckeditor/asset.rb
108
- - lib/generators/ckeditor/templates/models/mongoid/paperclip/ckeditor/picture.rb
109
- - lib/generators/ckeditor/templates/models/mongoid/carrierwave/ckeditor/attachment_file.rb
110
- - lib/generators/ckeditor/templates/models/mongoid/carrierwave/ckeditor/asset.rb
111
- - lib/generators/ckeditor/templates/models/mongoid/carrierwave/ckeditor/picture.rb
112
- - lib/generators/ckeditor/templates/models/base/carrierwave/uploaders/ckeditor_picture_uploader.rb
113
- - lib/generators/ckeditor/templates/models/base/carrierwave/uploaders/ckeditor_attachment_file_uploader.rb
114
- - lib/ckeditor/hooks/formtastic.rb
115
- - lib/ckeditor/hooks/simple_form.rb
47
+ - app/views/layouts/ckeditor/application.html.erb
48
+ - app/assets/stylesheets/ckeditor/application.css
49
+ - app/assets/javascripts/ckeditor/application.js
50
+ - app/controllers/ckeditor/attachment_files_controller.rb
51
+ - app/controllers/ckeditor/application_controller.rb
52
+ - app/controllers/ckeditor/pictures_controller.rb
53
+ - lib/ckeditor/engine.rb
54
+ - lib/ckeditor/utils.rb
116
55
  - lib/ckeditor/helpers/view_helper.rb
117
- - lib/ckeditor/helpers/form_helper.rb
118
56
  - lib/ckeditor/helpers/form_builder.rb
119
57
  - lib/ckeditor/helpers/controllers.rb
120
- - lib/ckeditor/orm/base.rb
121
- - lib/ckeditor/orm/mongoid.rb
122
- - lib/ckeditor/orm/active_record.rb
58
+ - lib/ckeditor/helpers/form_helper.rb
123
59
  - lib/ckeditor/backend/carrierwave.rb
124
60
  - lib/ckeditor/backend/paperclip.rb
125
- - lib/ckeditor/version.rb
61
+ - lib/ckeditor/hooks/simple_form.rb
62
+ - lib/ckeditor/hooks/formtastic.rb
126
63
  - lib/ckeditor/http.rb
127
- - lib/ckeditor/engine.rb
128
- - lib/ckeditor/utils.rb
64
+ - lib/ckeditor/orm/base.rb
65
+ - lib/ckeditor/orm/active_record.rb
66
+ - lib/ckeditor/orm/mongoid.rb
67
+ - lib/ckeditor/version.rb
68
+ - lib/generators/ckeditor/install_generator.rb
69
+ - lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
70
+ - lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/asset.rb
71
+ - lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb
72
+ - lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/attachment_file.rb
73
+ - lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/asset.rb
74
+ - lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/picture.rb
75
+ - lib/generators/ckeditor/templates/ckeditor.rb
76
+ - lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_picture_uploader.rb
77
+ - lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_attachment_file_uploader.rb
78
+ - lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb
79
+ - lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/asset.rb
80
+ - lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/picture.rb
81
+ - lib/generators/ckeditor/templates/active_record/paperclip/migration.rb
82
+ - lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/attachment_file.rb
83
+ - lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/asset.rb
84
+ - lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/picture.rb
85
+ - lib/generators/ckeditor/templates/active_record/carrierwave/migration.rb
86
+ - lib/ckeditor.rb
87
+ - config/routes.rb
129
88
  - config/locales/uk.ckeditor.yml
130
- - config/locales/en.ckeditor.yml
131
- - config/locales/cs.ckeditor.yml
132
- - config/locales/ru.ckeditor.yml
133
89
  - config/locales/pt-BR.ckeditor.yml
90
+ - config/locales/en.ckeditor.yml
134
91
  - config/locales/es.ckeditor.yml
92
+ - config/locales/sv-SE.ckeditor.yml
93
+ - config/locales/ru.ckeditor.yml
94
+ - config/locales/cs.ckeditor.yml
95
+ - config/locales/zh-CN.ckeditor.yml
135
96
  - config/locales/fr.ckeditor.yml
136
- - config/routes.rb
137
97
  - MIT-LICENSE
138
98
  - Rakefile
139
99
  - Gemfile
140
100
  - README.rdoc
141
- - test/controllers/pictures_controller_test.rb
142
- - test/controllers/attachment_files_controller_test.rb
143
- - test/support/helpers.rb
144
- - test/support/raw_post.rb
145
- - test/support/integration_case.rb
146
- - test/orm/mongoid.rb
147
- - test/orm/active_record.rb
148
- - test/test_helper.rb
149
- - test/tmp/app/models/ckeditor/attachment_file.rb
150
- - test/tmp/app/models/ckeditor/asset.rb
151
- - test/tmp/app/models/ckeditor/picture.rb
152
- - test/dummy/Rakefile
153
- - test/dummy/config.ru
154
- - test/dummy/test/fixtures/files/rails.png
155
- - test/dummy/test/fixtures/files/rails.tar.gz
156
- - test/dummy/log/test.log
101
+ - test/integration/posts_test.rb
102
+ - test/integration/navigation_test.rb
103
+ - test/generators/install_generator_test.rb
104
+ - test/models/attachment_file_test.rb
105
+ - test/models/picture_test.rb
106
+ - test/models/utils_test.rb
157
107
  - test/dummy/public/500.html
158
- - test/dummy/public/javascripts/controls.js
159
- - test/dummy/public/javascripts/effects.js
160
- - test/dummy/public/javascripts/dragdrop.js
161
- - test/dummy/public/javascripts/application.js
162
- - test/dummy/public/javascripts/prototype.js
163
- - test/dummy/public/javascripts/rails.js
164
- - test/dummy/public/stylesheets/scaffold.css
165
108
  - test/dummy/public/404.html
166
- - test/dummy/public/422.html
167
109
  - test/dummy/public/favicon.ico
168
- - test/dummy/config/initializers/inflections.rb
169
- - test/dummy/config/initializers/session_store.rb
170
- - test/dummy/config/initializers/ckeditor.rb
171
- - test/dummy/config/initializers/backtrace_silencers.rb
172
- - test/dummy/config/initializers/mime_types.rb
173
- - test/dummy/config/initializers/secret_token.rb
174
- - test/dummy/config/boot.rb
175
- - test/dummy/config/environments/production.rb
176
- - test/dummy/config/environments/test.rb
177
- - test/dummy/config/environments/development.rb
178
- - test/dummy/config/locales/en.yml
179
- - test/dummy/config/application.rb
180
- - test/dummy/config/environment.rb
181
- - test/dummy/config/mongoid.yml
182
- - test/dummy/config/routes.rb
183
- - test/dummy/config/database.yml
184
- - test/dummy/script/rails
185
- - test/dummy/app/helpers/application_helper.rb
186
- - test/dummy/app/helpers/posts_helper.rb
187
- - test/dummy/app/controllers/posts_controller.rb
188
- - test/dummy/app/controllers/application_controller.rb
189
- - test/dummy/app/views/posts/index.html.erb
110
+ - test/dummy/public/422.html
111
+ - test/dummy/app/views/layouts/application.html.erb
190
112
  - test/dummy/app/views/posts/new.html.erb
191
113
  - test/dummy/app/views/posts/edit.html.erb
192
114
  - test/dummy/app/views/posts/_form.html.erb
193
115
  - test/dummy/app/views/posts/show.html.erb
194
- - test/dummy/app/views/layouts/application.html.erb
116
+ - test/dummy/app/views/posts/index.html.erb
117
+ - test/dummy/app/helpers/posts_helper.rb
118
+ - test/dummy/app/helpers/application_helper.rb
195
119
  - test/dummy/app/models/post.rb
196
- - test/dummy/db/schema.rb
120
+ - test/dummy/app/assets/stylesheets/scaffold.css
121
+ - test/dummy/app/assets/stylesheets/application.css
122
+ - test/dummy/app/assets/javascripts/application.js
123
+ - test/dummy/app/controllers/application_controller.rb
124
+ - test/dummy/app/controllers/posts_controller.rb
125
+ - test/dummy/log/test.log
126
+ - test/dummy/Rakefile
127
+ - test/dummy/test/fixtures/files/rails.png
128
+ - test/dummy/test/fixtures/files/rails.tar.gz
129
+ - test/dummy/script/rails
130
+ - test/dummy/config/mongoid.yml
131
+ - test/dummy/config/routes.rb
132
+ - test/dummy/config/environments/production.rb
133
+ - test/dummy/config/environments/test.rb
134
+ - test/dummy/config/environments/development.rb
135
+ - test/dummy/config/boot.rb
136
+ - test/dummy/config/application.rb
137
+ - test/dummy/config/database.yml
138
+ - test/dummy/config/initializers/session_store.rb
139
+ - test/dummy/config/initializers/inflections.rb
140
+ - test/dummy/config/initializers/ckeditor.rb
141
+ - test/dummy/config/initializers/mime_types.rb
142
+ - test/dummy/config/initializers/backtrace_silencers.rb
143
+ - test/dummy/config/initializers/secret_token.rb
144
+ - test/dummy/config/initializers/wrap_parameters.rb
145
+ - test/dummy/config/environment.rb
146
+ - test/dummy/config/locales/en.yml
197
147
  - test/dummy/db/migrate/20110623120047_create_posts.rb
198
148
  - test/dummy/db/migrate/20110705195648_create_ckeditor_assets.rb
199
149
  - test/dummy/db/test.sqlite3
200
- - test/generators/models_generator_test.rb
201
- - test/generators/install_generator_test.rb
202
- - test/routes_test.rb
203
- - test/integration/navigation_test.rb
204
- - test/integration/posts_test.rb
150
+ - test/dummy/config.ru
151
+ - test/tmp/app/models/ckeditor/attachment_file.rb
152
+ - test/tmp/app/models/ckeditor/asset.rb
153
+ - test/tmp/app/models/ckeditor/picture.rb
154
+ - test/tmp/config/routes.rb
155
+ - test/tmp/config/initializers/ckeditor.rb
156
+ - test/support/raw_post.rb
157
+ - test/support/controller_hooks.rb
158
+ - test/support/routes.txt
159
+ - test/support/helpers.rb
160
+ - test/support/integration_case.rb
161
+ - test/test_helper.rb
162
+ - test/orm/active_record.rb
163
+ - test/orm/mongoid.rb
164
+ - test/controllers/pictures_controller_test.rb
165
+ - test/controllers/attachment_files_controller_test.rb
205
166
  - test/ckeditor_test.rb
206
- - test/models/picture_test.rb
207
- - test/models/attachment_file_test.rb
208
167
  homepage: https://github.com/galetahub/ckeditor
209
168
  licenses: []
210
-
211
169
  post_install_message:
212
170
  rdoc_options: []
213
-
214
- require_paths:
171
+ require_paths:
215
172
  - lib
216
- required_ruby_version: !ruby/object:Gem::Requirement
173
+ required_ruby_version: !ruby/object:Gem::Requirement
217
174
  none: false
218
- requirements:
219
- - - ">="
220
- - !ruby/object:Gem::Version
221
- hash: 3
222
- segments:
223
- - 0
224
- version: "0"
225
- required_rubygems_version: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ! '>='
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ required_rubygems_version: !ruby/object:Gem::Requirement
226
180
  none: false
227
- requirements:
228
- - - ">="
229
- - !ruby/object:Gem::Version
230
- hash: 3
231
- segments:
232
- - 0
233
- version: "0"
181
+ requirements:
182
+ - - ! '>'
183
+ - !ruby/object:Gem::Version
184
+ version: 1.3.1
234
185
  requirements: []
235
-
236
186
  rubyforge_project: ckeditor
237
- rubygems_version: 1.8.11
187
+ rubygems_version: 1.8.10
238
188
  signing_key:
239
189
  specification_version: 3
240
190
  summary: Rails gem for easy integration ckeditor in your application
241
- test_files:
242
- - test/controllers/pictures_controller_test.rb
243
- - test/controllers/attachment_files_controller_test.rb
244
- - test/support/helpers.rb
245
- - test/support/raw_post.rb
246
- - test/support/integration_case.rb
247
- - test/orm/mongoid.rb
248
- - test/orm/active_record.rb
249
- - test/test_helper.rb
250
- - test/tmp/app/models/ckeditor/attachment_file.rb
251
- - test/tmp/app/models/ckeditor/asset.rb
252
- - test/tmp/app/models/ckeditor/picture.rb
253
- - test/dummy/Rakefile
254
- - test/dummy/config.ru
255
- - test/dummy/test/fixtures/files/rails.png
256
- - test/dummy/test/fixtures/files/rails.tar.gz
257
- - test/dummy/log/test.log
191
+ test_files:
192
+ - test/integration/posts_test.rb
193
+ - test/integration/navigation_test.rb
194
+ - test/generators/install_generator_test.rb
195
+ - test/models/attachment_file_test.rb
196
+ - test/models/picture_test.rb
197
+ - test/models/utils_test.rb
258
198
  - test/dummy/public/500.html
259
- - test/dummy/public/javascripts/controls.js
260
- - test/dummy/public/javascripts/effects.js
261
- - test/dummy/public/javascripts/dragdrop.js
262
- - test/dummy/public/javascripts/application.js
263
- - test/dummy/public/javascripts/prototype.js
264
- - test/dummy/public/javascripts/rails.js
265
- - test/dummy/public/stylesheets/scaffold.css
266
199
  - test/dummy/public/404.html
267
- - test/dummy/public/422.html
268
200
  - test/dummy/public/favicon.ico
269
- - test/dummy/config/initializers/inflections.rb
270
- - test/dummy/config/initializers/session_store.rb
271
- - test/dummy/config/initializers/ckeditor.rb
272
- - test/dummy/config/initializers/backtrace_silencers.rb
273
- - test/dummy/config/initializers/mime_types.rb
274
- - test/dummy/config/initializers/secret_token.rb
275
- - test/dummy/config/boot.rb
276
- - test/dummy/config/environments/production.rb
277
- - test/dummy/config/environments/test.rb
278
- - test/dummy/config/environments/development.rb
279
- - test/dummy/config/locales/en.yml
280
- - test/dummy/config/application.rb
281
- - test/dummy/config/environment.rb
282
- - test/dummy/config/mongoid.yml
283
- - test/dummy/config/routes.rb
284
- - test/dummy/config/database.yml
285
- - test/dummy/script/rails
286
- - test/dummy/app/helpers/application_helper.rb
287
- - test/dummy/app/helpers/posts_helper.rb
288
- - test/dummy/app/controllers/posts_controller.rb
289
- - test/dummy/app/controllers/application_controller.rb
290
- - test/dummy/app/views/posts/index.html.erb
201
+ - test/dummy/public/422.html
202
+ - test/dummy/app/views/layouts/application.html.erb
291
203
  - test/dummy/app/views/posts/new.html.erb
292
204
  - test/dummy/app/views/posts/edit.html.erb
293
205
  - test/dummy/app/views/posts/_form.html.erb
294
206
  - test/dummy/app/views/posts/show.html.erb
295
- - test/dummy/app/views/layouts/application.html.erb
207
+ - test/dummy/app/views/posts/index.html.erb
208
+ - test/dummy/app/helpers/posts_helper.rb
209
+ - test/dummy/app/helpers/application_helper.rb
296
210
  - test/dummy/app/models/post.rb
297
- - test/dummy/db/schema.rb
211
+ - test/dummy/app/assets/stylesheets/scaffold.css
212
+ - test/dummy/app/assets/stylesheets/application.css
213
+ - test/dummy/app/assets/javascripts/application.js
214
+ - test/dummy/app/controllers/application_controller.rb
215
+ - test/dummy/app/controllers/posts_controller.rb
216
+ - test/dummy/log/test.log
217
+ - test/dummy/Rakefile
218
+ - test/dummy/test/fixtures/files/rails.png
219
+ - test/dummy/test/fixtures/files/rails.tar.gz
220
+ - test/dummy/script/rails
221
+ - test/dummy/config/mongoid.yml
222
+ - test/dummy/config/routes.rb
223
+ - test/dummy/config/environments/production.rb
224
+ - test/dummy/config/environments/test.rb
225
+ - test/dummy/config/environments/development.rb
226
+ - test/dummy/config/boot.rb
227
+ - test/dummy/config/application.rb
228
+ - test/dummy/config/database.yml
229
+ - test/dummy/config/initializers/session_store.rb
230
+ - test/dummy/config/initializers/inflections.rb
231
+ - test/dummy/config/initializers/ckeditor.rb
232
+ - test/dummy/config/initializers/mime_types.rb
233
+ - test/dummy/config/initializers/backtrace_silencers.rb
234
+ - test/dummy/config/initializers/secret_token.rb
235
+ - test/dummy/config/initializers/wrap_parameters.rb
236
+ - test/dummy/config/environment.rb
237
+ - test/dummy/config/locales/en.yml
298
238
  - test/dummy/db/migrate/20110623120047_create_posts.rb
299
239
  - test/dummy/db/migrate/20110705195648_create_ckeditor_assets.rb
300
240
  - test/dummy/db/test.sqlite3
301
- - test/generators/models_generator_test.rb
302
- - test/generators/install_generator_test.rb
303
- - test/routes_test.rb
304
- - test/integration/navigation_test.rb
305
- - test/integration/posts_test.rb
241
+ - test/dummy/config.ru
242
+ - test/tmp/app/models/ckeditor/attachment_file.rb
243
+ - test/tmp/app/models/ckeditor/asset.rb
244
+ - test/tmp/app/models/ckeditor/picture.rb
245
+ - test/tmp/config/routes.rb
246
+ - test/tmp/config/initializers/ckeditor.rb
247
+ - test/support/raw_post.rb
248
+ - test/support/controller_hooks.rb
249
+ - test/support/routes.txt
250
+ - test/support/helpers.rb
251
+ - test/support/integration_case.rb
252
+ - test/test_helper.rb
253
+ - test/orm/active_record.rb
254
+ - test/orm/mongoid.rb
255
+ - test/controllers/pictures_controller_test.rb
256
+ - test/controllers/attachment_files_controller_test.rb
306
257
  - test/ckeditor_test.rb
307
- - test/models/picture_test.rb
308
- - test/models/attachment_file_test.rb