rails_kindeditor 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (195) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/README.rdoc +34 -0
  4. data/Rakefile +2 -0
  5. data/app/controllers/kindeditor/assets_controller.rb +50 -0
  6. data/app/models/kindeditor/asset.rb +14 -0
  7. data/app/models/kindeditor/file.rb +4 -0
  8. data/app/models/kindeditor/image.rb +4 -0
  9. data/app/uploaders/kindeditor/file_uploader.rb +54 -0
  10. data/app/uploaders/kindeditor/image_uploader.rb +54 -0
  11. data/config/routes.rb +7 -0
  12. data/lib/generators/rails_kindeditor/install/USAGE +9 -0
  13. data/lib/generators/rails_kindeditor/install/install_generator.rb +11 -0
  14. data/lib/generators/rails_kindeditor/install/templates/kindeditor/kindeditor-init.js +7 -0
  15. data/lib/generators/rails_kindeditor/install/templates/kindeditor/kindeditor.js +4688 -0
  16. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/about.html +52 -0
  17. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/accessory.html +74 -0
  18. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/advtable/advtable.html +235 -0
  19. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/advtable/cell.html +201 -0
  20. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/0.gif +0 -0
  21. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/1.gif +0 -0
  22. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/10.gif +0 -0
  23. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/100.gif +0 -0
  24. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/101.gif +0 -0
  25. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/102.gif +0 -0
  26. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/103.gif +0 -0
  27. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/104.gif +0 -0
  28. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/105.gif +0 -0
  29. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/106.gif +0 -0
  30. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/107.gif +0 -0
  31. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/108.gif +0 -0
  32. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/109.gif +0 -0
  33. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/11.gif +0 -0
  34. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/110.gif +0 -0
  35. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/111.gif +0 -0
  36. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/112.gif +0 -0
  37. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/113.gif +0 -0
  38. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/114.gif +0 -0
  39. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/115.gif +0 -0
  40. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/116.gif +0 -0
  41. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/117.gif +0 -0
  42. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/118.gif +0 -0
  43. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/119.gif +0 -0
  44. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/12.gif +0 -0
  45. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/120.gif +0 -0
  46. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/121.gif +0 -0
  47. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/122.gif +0 -0
  48. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/123.gif +0 -0
  49. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/124.gif +0 -0
  50. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/125.gif +0 -0
  51. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/126.gif +0 -0
  52. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/127.gif +0 -0
  53. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/128.gif +0 -0
  54. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/129.gif +0 -0
  55. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/13.gif +0 -0
  56. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/130.gif +0 -0
  57. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/131.gif +0 -0
  58. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/132.gif +0 -0
  59. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/133.gif +0 -0
  60. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/134.gif +0 -0
  61. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/14.gif +0 -0
  62. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/15.gif +0 -0
  63. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/16.gif +0 -0
  64. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/17.gif +0 -0
  65. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/18.gif +0 -0
  66. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/19.gif +0 -0
  67. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/2.gif +0 -0
  68. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/20.gif +0 -0
  69. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/21.gif +0 -0
  70. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/22.gif +0 -0
  71. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/23.gif +0 -0
  72. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/24.gif +0 -0
  73. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/25.gif +0 -0
  74. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/26.gif +0 -0
  75. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/27.gif +0 -0
  76. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/28.gif +0 -0
  77. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/29.gif +0 -0
  78. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/3.gif +0 -0
  79. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/30.gif +0 -0
  80. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/31.gif +0 -0
  81. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/32.gif +0 -0
  82. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/33.gif +0 -0
  83. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/34.gif +0 -0
  84. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/35.gif +0 -0
  85. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/36.gif +0 -0
  86. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/37.gif +0 -0
  87. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/38.gif +0 -0
  88. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/39.gif +0 -0
  89. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/4.gif +0 -0
  90. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/40.gif +0 -0
  91. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/41.gif +0 -0
  92. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/42.gif +0 -0
  93. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/43.gif +0 -0
  94. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/44.gif +0 -0
  95. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/45.gif +0 -0
  96. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/46.gif +0 -0
  97. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/47.gif +0 -0
  98. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/48.gif +0 -0
  99. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/49.gif +0 -0
  100. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/5.gif +0 -0
  101. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/50.gif +0 -0
  102. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/51.gif +0 -0
  103. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/52.gif +0 -0
  104. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/53.gif +0 -0
  105. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/54.gif +0 -0
  106. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/55.gif +0 -0
  107. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/56.gif +0 -0
  108. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/57.gif +0 -0
  109. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/58.gif +0 -0
  110. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/59.gif +0 -0
  111. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/6.gif +0 -0
  112. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/60.gif +0 -0
  113. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/61.gif +0 -0
  114. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/62.gif +0 -0
  115. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/63.gif +0 -0
  116. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/64.gif +0 -0
  117. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/65.gif +0 -0
  118. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/66.gif +0 -0
  119. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/67.gif +0 -0
  120. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/68.gif +0 -0
  121. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/69.gif +0 -0
  122. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/7.gif +0 -0
  123. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/70.gif +0 -0
  124. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/71.gif +0 -0
  125. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/72.gif +0 -0
  126. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/73.gif +0 -0
  127. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/74.gif +0 -0
  128. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/75.gif +0 -0
  129. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/76.gif +0 -0
  130. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/77.gif +0 -0
  131. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/78.gif +0 -0
  132. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/79.gif +0 -0
  133. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/8.gif +0 -0
  134. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/80.gif +0 -0
  135. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/81.gif +0 -0
  136. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/82.gif +0 -0
  137. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/83.gif +0 -0
  138. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/84.gif +0 -0
  139. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/85.gif +0 -0
  140. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/86.gif +0 -0
  141. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/87.gif +0 -0
  142. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/88.gif +0 -0
  143. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/89.gif +0 -0
  144. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/9.gif +0 -0
  145. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/90.gif +0 -0
  146. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/91.gif +0 -0
  147. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/92.gif +0 -0
  148. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/93.gif +0 -0
  149. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/94.gif +0 -0
  150. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/95.gif +0 -0
  151. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/96.gif +0 -0
  152. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/97.gif +0 -0
  153. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/98.gif +0 -0
  154. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/99.gif +0 -0
  155. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/qq.gif +0 -0
  156. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.css +64 -0
  157. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.html +31 -0
  158. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.js +221 -0
  159. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/file-16.gif +0 -0
  160. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/file-64.gif +0 -0
  161. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/folder-16.gif +0 -0
  162. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/folder-64.gif +0 -0
  163. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/go-up.gif +0 -0
  164. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/flash.html +69 -0
  165. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/image.html +305 -0
  166. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/align_left.gif +0 -0
  167. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/align_right.gif +0 -0
  168. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/align_top.gif +0 -0
  169. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/refresh.gif +0 -0
  170. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/link/link.html +82 -0
  171. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/media.html +73 -0
  172. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/plainpaste.html +44 -0
  173. data/lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/wordpaste.html +50 -0
  174. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/blank.gif +0 -0
  175. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/doc.gif +0 -0
  176. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/editor.css +47 -0
  177. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/flash.gif +0 -0
  178. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/loading.gif +0 -0
  179. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/media.gif +0 -0
  180. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/mp3.gif +0 -0
  181. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/pdf.gif +0 -0
  182. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/rar.gif +0 -0
  183. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/rm.gif +0 -0
  184. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/xls.gif +0 -0
  185. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/default/bg.gif +0 -0
  186. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/default/default.gif +0 -0
  187. data/lib/generators/rails_kindeditor/install/templates/kindeditor/skins/default.css +911 -0
  188. data/lib/generators/rails_kindeditor/migration/USAGE +13 -0
  189. data/lib/generators/rails_kindeditor/migration/migration_generator.rb +20 -0
  190. data/lib/generators/rails_kindeditor/migration/templates/migration/migration.rb +15 -0
  191. data/lib/rails_kindeditor/engine.rb +9 -0
  192. data/lib/rails_kindeditor/version.rb +3 -0
  193. data/lib/rails_kindeditor.rb +10 -0
  194. data/rails_kindeditor.gemspec +24 -0
  195. metadata +259 -0
@@ -0,0 +1,13 @@
1
+ Description:
2
+ Copy model , migration and uploader to your application.
3
+
4
+ Example:
5
+ rails generate rails_kindeditor:migration
6
+
7
+ This will create:
8
+ app/models/asset.rb
9
+ app/models/image.rb
10
+ app/models/file.rb
11
+ app/uploaders/image_uploader.rb
12
+ app/uploaders/file_uploader.rb
13
+
@@ -0,0 +1,20 @@
1
+ module RailsKindeditor
2
+ class MigrationGenerator < Rails::Generators::Base
3
+ include Rails::Generators::Migration
4
+ source_root File.expand_path('../templates', __FILE__)
5
+ desc "Copy migration to your application."
6
+
7
+ def copy_migration_file
8
+ migration_template "migration/migration.rb", "db/migrate/create_kindeditor_assets.rb"
9
+ end
10
+
11
+ def self.next_migration_number(dirname)
12
+ if ActiveRecord::Base.timestamped_migrations
13
+ Time.now.utc.strftime("%Y%m%d%H%M%S")
14
+ else
15
+ "%.3d" % (current_migration_number(dirname) + 1)
16
+ end
17
+ end
18
+ end
19
+ end
20
+
@@ -0,0 +1,15 @@
1
+ class CreateKindeditorAssets < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :kindeditor_assets do |t|
4
+ t.string :asset
5
+ t.integer :file_size
6
+ t.string :file_type
7
+ t.timestamps
8
+ end
9
+ end
10
+
11
+ def self.down
12
+ drop_table :kindeditor_asset
13
+ end
14
+ end
15
+
@@ -0,0 +1,9 @@
1
+ require "rails_kindeditor"
2
+ require "rails"
3
+ require "action_controller"
4
+
5
+ module RailsKindeditor
6
+ class Engine < Rails::Engine
7
+ end
8
+ end
9
+
@@ -0,0 +1,3 @@
1
+ module RailsKindeditor
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,10 @@
1
+ module RailsKindeditor
2
+ require 'rails_kindeditor/engine'
3
+
4
+ module ActionView::Helpers::AssetTagHelper
5
+ def include_kindeditor
6
+ javascript_include_tag "kindeditor/kindeditor.js", "kindeditor/kindeditor-init.js"
7
+ end
8
+ end
9
+ end
10
+
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "rails_kindeditor/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "rails_kindeditor"
7
+ s.version = RailsKindeditor::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = "Macrow"
10
+ s.email = "Macrow_wh@163.com"
11
+ s.homepage = ""
12
+ s.summary = "kindeditor for rails3"
13
+ s.description = "kindeditor for rails3, including image and file upload with carrierwave."
14
+
15
+ s.add_dependency "carrierwave"
16
+
17
+ s.rubyforge_project = "rails_kindeditor"
18
+
19
+ s.files = `git ls-files`.split("\n")
20
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
21
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
22
+ s.require_paths = ["lib"]
23
+ end
24
+
metadata ADDED
@@ -0,0 +1,259 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_kindeditor
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.1
6
+ platform: ruby
7
+ authors:
8
+ - Macrow
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-06-05 00:00:00 +08:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: carrierwave
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: "0"
25
+ type: :runtime
26
+ version_requirements: *id001
27
+ description: kindeditor for rails3, including image and file upload with carrierwave.
28
+ email: Macrow_wh@163.com
29
+ executables: []
30
+
31
+ extensions: []
32
+
33
+ extra_rdoc_files: []
34
+
35
+ files:
36
+ - .gitignore
37
+ - Gemfile
38
+ - README.rdoc
39
+ - Rakefile
40
+ - app/controllers/kindeditor/assets_controller.rb
41
+ - app/models/kindeditor/asset.rb
42
+ - app/models/kindeditor/file.rb
43
+ - app/models/kindeditor/image.rb
44
+ - app/uploaders/kindeditor/file_uploader.rb
45
+ - app/uploaders/kindeditor/image_uploader.rb
46
+ - config/routes.rb
47
+ - lib/generators/rails_kindeditor/install/USAGE
48
+ - lib/generators/rails_kindeditor/install/install_generator.rb
49
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/kindeditor-init.js
50
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/kindeditor.js
51
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/about.html
52
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/accessory.html
53
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/advtable/advtable.html
54
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/advtable/cell.html
55
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/0.gif
56
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/1.gif
57
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/10.gif
58
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/100.gif
59
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/101.gif
60
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/102.gif
61
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/103.gif
62
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/104.gif
63
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/105.gif
64
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/106.gif
65
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/107.gif
66
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/108.gif
67
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/109.gif
68
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/11.gif
69
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/110.gif
70
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/111.gif
71
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/112.gif
72
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/113.gif
73
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/114.gif
74
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/115.gif
75
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/116.gif
76
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/117.gif
77
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/118.gif
78
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/119.gif
79
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/12.gif
80
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/120.gif
81
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/121.gif
82
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/122.gif
83
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/123.gif
84
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/124.gif
85
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/125.gif
86
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/126.gif
87
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/127.gif
88
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/128.gif
89
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/129.gif
90
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/13.gif
91
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/130.gif
92
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/131.gif
93
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/132.gif
94
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/133.gif
95
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/134.gif
96
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/14.gif
97
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/15.gif
98
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/16.gif
99
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/17.gif
100
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/18.gif
101
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/19.gif
102
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/2.gif
103
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/20.gif
104
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/21.gif
105
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/22.gif
106
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/23.gif
107
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/24.gif
108
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/25.gif
109
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/26.gif
110
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/27.gif
111
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/28.gif
112
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/29.gif
113
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/3.gif
114
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/30.gif
115
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/31.gif
116
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/32.gif
117
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/33.gif
118
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/34.gif
119
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/35.gif
120
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/36.gif
121
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/37.gif
122
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/38.gif
123
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/39.gif
124
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/4.gif
125
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/40.gif
126
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/41.gif
127
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/42.gif
128
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/43.gif
129
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/44.gif
130
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/45.gif
131
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/46.gif
132
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/47.gif
133
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/48.gif
134
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/49.gif
135
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/5.gif
136
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/50.gif
137
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/51.gif
138
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/52.gif
139
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/53.gif
140
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/54.gif
141
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/55.gif
142
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/56.gif
143
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/57.gif
144
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/58.gif
145
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/59.gif
146
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/6.gif
147
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/60.gif
148
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/61.gif
149
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/62.gif
150
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/63.gif
151
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/64.gif
152
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/65.gif
153
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/66.gif
154
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/67.gif
155
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/68.gif
156
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/69.gif
157
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/7.gif
158
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/70.gif
159
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/71.gif
160
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/72.gif
161
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/73.gif
162
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/74.gif
163
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/75.gif
164
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/76.gif
165
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/77.gif
166
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/78.gif
167
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/79.gif
168
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/8.gif
169
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/80.gif
170
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/81.gif
171
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/82.gif
172
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/83.gif
173
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/84.gif
174
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/85.gif
175
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/86.gif
176
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/87.gif
177
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/88.gif
178
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/89.gif
179
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/9.gif
180
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/90.gif
181
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/91.gif
182
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/92.gif
183
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/93.gif
184
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/94.gif
185
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/95.gif
186
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/96.gif
187
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/97.gif
188
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/98.gif
189
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/99.gif
190
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/emoticons/qq.gif
191
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.css
192
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.html
193
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/file_manager.js
194
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/file-16.gif
195
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/file-64.gif
196
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/folder-16.gif
197
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/folder-64.gif
198
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/file_manager/images/go-up.gif
199
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/flash.html
200
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/image.html
201
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/align_left.gif
202
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/align_right.gif
203
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/align_top.gif
204
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/image/images/refresh.gif
205
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/link/link.html
206
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/media.html
207
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/plainpaste.html
208
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/plugins/wordpaste.html
209
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/blank.gif
210
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/doc.gif
211
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/editor.css
212
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/flash.gif
213
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/loading.gif
214
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/media.gif
215
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/mp3.gif
216
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/pdf.gif
217
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/rar.gif
218
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/rm.gif
219
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/skins/common/xls.gif
220
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/skins/default.css
221
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/skins/default/bg.gif
222
+ - lib/generators/rails_kindeditor/install/templates/kindeditor/skins/default/default.gif
223
+ - lib/generators/rails_kindeditor/migration/USAGE
224
+ - lib/generators/rails_kindeditor/migration/migration_generator.rb
225
+ - lib/generators/rails_kindeditor/migration/templates/migration/migration.rb
226
+ - lib/rails_kindeditor.rb
227
+ - lib/rails_kindeditor/engine.rb
228
+ - lib/rails_kindeditor/version.rb
229
+ - rails_kindeditor.gemspec
230
+ has_rdoc: true
231
+ homepage: ""
232
+ licenses: []
233
+
234
+ post_install_message:
235
+ rdoc_options: []
236
+
237
+ require_paths:
238
+ - lib
239
+ required_ruby_version: !ruby/object:Gem::Requirement
240
+ none: false
241
+ requirements:
242
+ - - ">="
243
+ - !ruby/object:Gem::Version
244
+ version: "0"
245
+ required_rubygems_version: !ruby/object:Gem::Requirement
246
+ none: false
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: "0"
251
+ requirements: []
252
+
253
+ rubyforge_project: rails_kindeditor
254
+ rubygems_version: 1.6.2
255
+ signing_key:
256
+ specification_version: 3
257
+ summary: kindeditor for rails3
258
+ test_files: []
259
+