trainbbcodeeditor 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/CHANGELOG +0 -0
  2. data/Manifest +32 -0
  3. data/README.rdoc +25 -0
  4. data/Rakefile +15 -0
  5. data/init.rb +1 -0
  6. data/lib/trainbbcodeeditor.rb +8 -0
  7. data/rails_generators/tbbcejs/tbbcejs_generator.rb +19 -0
  8. data/rails_generators/tbbcejs/templates/icons/cog_delete.png +0 -0
  9. data/rails_generators/tbbcejs/templates/icons/cog_go.png +0 -0
  10. data/rails_generators/tbbcejs/templates/icons/color_wheel.png +0 -0
  11. data/rails_generators/tbbcejs/templates/icons/comment.png +0 -0
  12. data/rails_generators/tbbcejs/templates/icons/comments.png +0 -0
  13. data/rails_generators/tbbcejs/templates/icons/image.png +0 -0
  14. data/rails_generators/tbbcejs/templates/icons/information.png +0 -0
  15. data/rails_generators/tbbcejs/templates/icons/link.png +0 -0
  16. data/rails_generators/tbbcejs/templates/icons/plugin.png +0 -0
  17. data/rails_generators/tbbcejs/templates/icons/table.png +0 -0
  18. data/rails_generators/tbbcejs/templates/icons/table_error.png +0 -0
  19. data/rails_generators/tbbcejs/templates/icons/table_row_delete.png +0 -0
  20. data/rails_generators/tbbcejs/templates/icons/table_row_insert.png +0 -0
  21. data/rails_generators/tbbcejs/templates/icons/text_align_center.png +0 -0
  22. data/rails_generators/tbbcejs/templates/icons/text_align_left.png +0 -0
  23. data/rails_generators/tbbcejs/templates/icons/text_align_right.png +0 -0
  24. data/rails_generators/tbbcejs/templates/icons/text_bold.png +0 -0
  25. data/rails_generators/tbbcejs/templates/icons/text_italic.png +0 -0
  26. data/rails_generators/tbbcejs/templates/icons/text_list_bullets.png +0 -0
  27. data/rails_generators/tbbcejs/templates/icons/text_list_numbers.png +0 -0
  28. data/rails_generators/tbbcejs/templates/icons/text_underline.png +0 -0
  29. data/rails_generators/tbbcejs/templates/index.js.erb +1 -0
  30. data/rails_generators/tbbcejs/templates/jquery.fieldselection.js +83 -0
  31. data/rails_generators/tbbcejs/templates/tbbce.js +195 -0
  32. data/rails_generators/tbbcejs/templates/tbbce_controller.rb +6 -0
  33. data/trainbbcodeeditor.gemspec +33 -0
  34. metadata +103 -0
data/CHANGELOG ADDED
File without changes
data/Manifest ADDED
@@ -0,0 +1,32 @@
1
+ CHANGELOG
2
+ Manifest
3
+ README.rdoc
4
+ Rakefile
5
+ init.rb
6
+ lib/trainbbcodeeditor.rb
7
+ rails_generators/tbbcejs/tbbcejs_generator.rb
8
+ rails_generators/tbbcejs/templates/icons/cog_delete.png
9
+ rails_generators/tbbcejs/templates/icons/cog_go.png
10
+ rails_generators/tbbcejs/templates/icons/color_wheel.png
11
+ rails_generators/tbbcejs/templates/icons/comment.png
12
+ rails_generators/tbbcejs/templates/icons/comments.png
13
+ rails_generators/tbbcejs/templates/icons/image.png
14
+ rails_generators/tbbcejs/templates/icons/information.png
15
+ rails_generators/tbbcejs/templates/icons/link.png
16
+ rails_generators/tbbcejs/templates/icons/plugin.png
17
+ rails_generators/tbbcejs/templates/icons/table.png
18
+ rails_generators/tbbcejs/templates/icons/table_error.png
19
+ rails_generators/tbbcejs/templates/icons/table_row_delete.png
20
+ rails_generators/tbbcejs/templates/icons/table_row_insert.png
21
+ rails_generators/tbbcejs/templates/icons/text_align_center.png
22
+ rails_generators/tbbcejs/templates/icons/text_align_left.png
23
+ rails_generators/tbbcejs/templates/icons/text_align_right.png
24
+ rails_generators/tbbcejs/templates/icons/text_bold.png
25
+ rails_generators/tbbcejs/templates/icons/text_italic.png
26
+ rails_generators/tbbcejs/templates/icons/text_list_bullets.png
27
+ rails_generators/tbbcejs/templates/icons/text_list_numbers.png
28
+ rails_generators/tbbcejs/templates/icons/text_underline.png
29
+ rails_generators/tbbcejs/templates/index.js.erb
30
+ rails_generators/tbbcejs/templates/jquery.fieldselection.js
31
+ rails_generators/tbbcejs/templates/tbbce.js
32
+ rails_generators/tbbcejs/templates/tbbce_controller.rb
data/README.rdoc ADDED
@@ -0,0 +1,25 @@
1
+ = TrainBBCode Editor
2
+
3
+ = Install
4
+
5
+ == As a gem
6
+
7
+ gem install trainbbcodeeditor
8
+
9
+ == As a plugin
10
+
11
+ script/plugin install git://github.com/Arcath/TrainBBCode-Editor.git
12
+
13
+ = Setup
14
+
15
+ script/generate tbbcejs
16
+
17
+ You then need to perfom fome file edits
18
+
19
+ == config/routes.rb
20
+
21
+ map.resources :tbbce
22
+
23
+ = Usage
24
+
25
+ http://www.arcath.net/pages/4
data/Rakefile ADDED
@@ -0,0 +1,15 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'echoe'
4
+
5
+ Echoe.new('trainbbcodeeditor','0.1.0') do |p|
6
+ p.description = "Provides a nice looking editor for TrainBBCode"
7
+ p.url = "http://www.arcath.net/pages/4"
8
+ p.author = "Adam \"Arcath\" Laycock"
9
+ p.email = "gems@arcath.net"
10
+ p.ignore_pattern= ["tmp/*", "script/*"]
11
+ p.development_dependencies = []
12
+ p.runtime_dependencies = ["trainbbcode"]
13
+ end
14
+
15
+ Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
data/init.rb ADDED
@@ -0,0 +1 @@
1
+ require 'trainbbcodeeditor'
@@ -0,0 +1,8 @@
1
+ class ActionView::Helpers::FormBuilder
2
+ def tbbce(conf)
3
+ out="<div id=\"tbbce_bar\">You do not have Javascript Enabled</div>"
4
+ out+=text_area conf, :class => 'tbbce_area'
5
+ out+="<div id=\"tbbce_frame\"></div>"
6
+ return out
7
+ end
8
+ end
@@ -0,0 +1,19 @@
1
+ class Tbbcejs < Rails::Generator::Base
2
+ def manifest
3
+ record do |m|
4
+ #Controller and Javascripts
5
+ m.file "tbbce.js", "public/javascripts/tbbce.js"
6
+ m.file "jquery.fieldselection.js", "public/javascripts/jquery.fieldselection.js"
7
+ m.directory "app/views/tbbce"
8
+ m.file "index.js.erb", "app/views/tbbce/index.js.erb"
9
+ m.file "tbbce_controller.js", "app/controllers/tbbce_controller.js"
10
+ #Icons
11
+ m.directory "public/images/tbbce"
12
+ Dir.foreach("icons") do |f|
13
+ if f != "." && f != ".." then
14
+ m.file "icons/#{f}", "public/images/tbbce/#{f}"
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1 @@
1
+ $('#<%= escape_javascript(@tbbcef) %>').html("<%= escape_javascript(@string) %>");
@@ -0,0 +1,83 @@
1
+ /*
2
+ * jQuery plugin: fieldSelection - v0.1.0 - last change: 2006-12-16
3
+ * (c) 2006 Alex Brem <alex@0xab.cd> - http://blog.0xab.cd
4
+ */
5
+
6
+ (function() {
7
+
8
+ var fieldSelection = {
9
+
10
+ getSelection: function() {
11
+
12
+ var e = this.jquery ? this[0] : this;
13
+
14
+ return (
15
+
16
+ /* mozilla / dom 3.0 */
17
+ ('selectionStart' in e && function() {
18
+ var l = e.selectionEnd - e.selectionStart;
19
+ return { start: e.selectionStart, end: e.selectionEnd, length: l, text: e.value.substr(e.selectionStart, l) };
20
+ }) ||
21
+
22
+ /* exploder */
23
+ (document.selection && function() {
24
+
25
+ e.focus();
26
+
27
+ var r = document.selection.createRange();
28
+ if (r == null) {
29
+ return { start: 0, end: e.value.length, length: 0 }
30
+ }
31
+
32
+ var re = e.createTextRange();
33
+ var rc = re.duplicate();
34
+ re.moveToBookmark(r.getBookmark());
35
+ rc.setEndPoint('EndToStart', re);
36
+
37
+ return { start: rc.text.length, end: rc.text.length + r.text.length, length: r.text.length, text: r.text };
38
+ }) ||
39
+
40
+ /* browser not supported */
41
+ function() {
42
+ return { start: 0, end: e.value.length, length: 0 };
43
+ }
44
+
45
+ )();
46
+
47
+ },
48
+
49
+ replaceSelection: function() {
50
+
51
+ var e = this.jquery ? this[0] : this;
52
+ var text = arguments[0] || '';
53
+
54
+ return (
55
+
56
+ /* mozilla / dom 3.0 */
57
+ ('selectionStart' in e && function() {
58
+ e.value = e.value.substr(0, e.selectionStart) + text + e.value.substr(e.selectionEnd, e.value.length);
59
+ return this;
60
+ }) ||
61
+
62
+ /* exploder */
63
+ (document.selection && function() {
64
+ e.focus();
65
+ document.selection.createRange().text = text;
66
+ return this;
67
+ }) ||
68
+
69
+ /* browser not supported */
70
+ function() {
71
+ e.value += text;
72
+ return this;
73
+ }
74
+
75
+ )();
76
+
77
+ }
78
+
79
+ };
80
+
81
+ jQuery.each(fieldSelection, function(i) { jQuery.fn[i] = this; });
82
+
83
+ })();
@@ -0,0 +1,195 @@
1
+ $(document).ready(function(){
2
+ //jQuery Objects
3
+ tbbcebar=$('#tbbce_bar');
4
+ tbbcearea=$('.tbbce_area');
5
+ tbbceframe=$('#tbbce_frame');
6
+ $('.preview').live("click",function(){
7
+ s=nl2br(tbbcearea.attr("value"));
8
+ send=s.replace(/#/g,'[hash]');
9
+ $.getScript("/tbbce?string=" + send + "&tbbcef=" + tbbceframe.attr("id"));
10
+ tbbceframe.slideDown("slow");
11
+ tbbcearea.slideUp("slow");
12
+ $(this).removeClass("preview");
13
+ $(this).addClass("closepreview");
14
+ $(this).attr("src","/images/tbbce/cog_delete.png");
15
+ });
16
+ $('.closepreview').live("click",function(){
17
+ tbbceframe.slideUp("slow");
18
+ tbbcearea.slideDown("slow");
19
+ $(this).removeClass("closepreview");
20
+ $(this).addClass("preview");
21
+ $(this).attr("src","/images/tbbce/cog_go.png");
22
+ });
23
+ $('.about').live("click",function(){
24
+ tbbceframe.html("<b>Train BBCode Editor</b><br /><br />Written by Arcath &lt;<a href=\"http://www.arcath.net\" target=\"_BLANK\">http://www.arcath.net</a>&gt;<br />Icons by <a href=\"http://www.famfamfam.com\">FamFamFam</a><br /><br />TBBCE is an editor for <a href=\"http://www.arcath.net/pages/2\" target=\"_BLANK\">TrainBBCode</a>. <a href=\"http://www.arcath.net/pages/4\" target=\"_BLANK\">Want an editor like this in your rails app?</a>");
25
+ tbbceframe.slideDown("slow");
26
+ tbbcearea.slideUp("slow");
27
+ $(this).removeClass("about");
28
+ $(this).addClass("closeabout");
29
+ $(this).text("Close");
30
+ return false
31
+ });
32
+ $('.closeabout').live("click",function(){
33
+ tbbceframe.slideUp("slow");
34
+ tbbcearea.slideDown("slow");
35
+ $(this).removeClass("closeabout");
36
+ $(this).addClass("about");
37
+ $(this).text("About");
38
+ return false
39
+ });
40
+ $('.colorsel #close').live("click",function(){
41
+ tbbceframe.slideUp("slow");
42
+ tbbcearea.slideDown("slow");
43
+ return false
44
+ });
45
+ $('#colorselection').live("click",function(){
46
+ selection=tbbcearea.getSelection();
47
+ var s = "[color=~ins~]STRING[/color]";
48
+ output=s.replace(/STRING/i, selection.text);
49
+ out=output.replace(/~ins~/i, $(this).css("background-color"));
50
+ tbbcearea.replaceSelection(out,true);
51
+ tbbceframe.slideUp("slow");
52
+ tbbcearea.slideDown("slow");
53
+ return false
54
+ });
55
+ //Build the TBBCE bar
56
+ tbbcebar.css("background-color","#FFF");
57
+ tbbcebar.css("width","505px");
58
+ tbbcebar.css("padding","4px");
59
+ tbbcebar.css("font-size","17px");
60
+ tbbcebar.html("<img src=\"/images/tbbce/text_bold.png\" class=\"formatting\" id=\"bold\" style=\"border:none; padding-right:4px;\" alt=\"Bold\" />");
61
+ tbbcebar.append("<img src=\"/images/tbbce/text_italic.png\" class=\"formatting\" id=\"italic\" style=\"border:none; padding-right:4px;\" alt=\"Italic\" />");
62
+ tbbcebar.append("<img src=\"/images/tbbce/text_underline.png\" class=\"formatting\" id=\"underline\" style=\"border:none; padding-right:4px;\" alt=\"Underline\" />");
63
+ tbbcebar.append("<img src=\"/images/tbbce/color_wheel.png\" class=\"formatting\" id=\"color\" style=\"border:none; padding-right:4px;\" alt=\"Color\" />");
64
+ tbbcebar.append("<img src=\"/images/tbbce/text_align_left.png\" class=\"formatting\" id=\"left\" style=\"border:none; padding-right:4px;\" alt=\"Left Align\" />");
65
+ tbbcebar.append("<img src=\"/images/tbbce/text_align_center.png\" class=\"formatting\" id=\"center\" style=\"border:none; padding-right:4px;\" alt=\"Center\" />");
66
+ tbbcebar.append("<img src=\"/images/tbbce/text_align_right.png\" class=\"formatting\" id=\"right\" style=\"border:none; padding-right:4px;\" alt=\"Right Align\" />");
67
+ tbbcebar.append("| <img src=\"/images/tbbce/image.png\" class=\"formatting\" id=\"img\" style=\"border:none; padding-right:4px;\" alt=\"Image\" />");
68
+ tbbcebar.append("<img src=\"/images/tbbce/link.png\" class=\"formatting\" id=\"url\" style=\"border:none; padding-right:4px;\" alt=\"Link\" />");
69
+ tbbcebar.append("<img src=\"/images/tbbce/plugin.png\" class=\"formatting\" id=\"code\" style=\"border:none; padding-right:4px;\" alt=\"Code\" />");
70
+ tbbcebar.append("| <img src=\"/images/tbbce/comment.png\" class=\"formatting\" id=\"quote\" style=\"border:none; padding-right:4px;\" alt=\"Quote\" />");
71
+ tbbcebar.append("<img src=\"/images/tbbce/comments.png\" class=\"formatting\" id=\"quote2\" style=\"border:none; padding-right:4px;\" alt=\"Quote with Name\" />");
72
+ tbbcebar.append("| <img src=\"/images/tbbce/table.png\" class=\"formatting\" id=\"table\" style=\"border:none; padding-right:4px;\" alt=\"Table\" />");
73
+ tbbcebar.append("<img src=\"/images/tbbce/table_row_insert.png\" class=\"formatting\" id=\"tr\" style=\"border:none; padding-right:4px;\" alt=\"Table Row\" />");
74
+ tbbcebar.append("<img src=\"/images/tbbce/table_row_delete.png\" class=\"formatting\" id=\"td\" style=\"border:none; padding-right:4px;\" alt=\"Table Cell\" />");
75
+ tbbcebar.append("<img src=\"/images/tbbce/table_error.png\" class=\"formatting\" id=\"th\" style=\"border:none; padding-right:4px;\" alt=\"Table Header\" />");
76
+ tbbcebar.append("| <img src=\"/images/tbbce/text_list_bullets.png\" class=\"formatting\" id=\"ul\" style=\"border:none; padding-right:4px;\" alt=\"Bulleted List\" />");
77
+ tbbcebar.append("<img src=\"/images/tbbce/text_list_numbers.png\" class=\"formatting\" id=\"ol\" style=\"border:none; padding-right:4px;\" alt=\"Numbered List\" />");
78
+ tbbcebar.append("| <img src=\"/images/tbbce/cog_go.png\" class=\"preview\" style=\"border:none; padding-right:4px;\" alt=\"Preview\" />");
79
+ tbbcebar.append("<img src=\"/images/tbbce/information.png\" class=\"about\" style=\"border:none; padding-right:4px;\" alt=\"About\" />");
80
+ //Handle the links
81
+ $('#tbbce_bar .formatting').live("click",function(){
82
+ processtag(this.id,tbbcearea,tbbceframe);
83
+ tbbceframe.html(tbbcearea.value)
84
+ return false
85
+ });
86
+ //Format the text area
87
+ tbbcearea.attr("cols",70);
88
+ tbbcearea.attr("rows",10);
89
+ //Now lets hide that for the WYSIWYG bit
90
+ //tbbcearea.css("display","none");
91
+ //Draw the frame
92
+ tbbceframe.css("width","509px");
93
+ tbbceframe.css("height","200px");
94
+ tbbceframe.css("border","2px solid #CCC");
95
+ tbbceframe.css("display","none");
96
+ tbbceframe.css("overflow","auto");
97
+ tbbcearea.css("background-color",$('body').css("background-color"));
98
+ tbbcearea.css("color",$('body').css("color"));
99
+ });
100
+
101
+ function processtag(tag,tbbcearea,tbbceframe){
102
+ //Tags array
103
+ var tags = []
104
+ tags["bold"]="[b]STRING[/b]";
105
+ tags["underline"]="[u]STRING[/u]";
106
+ tags["italic"]="[i]STRING[/i]";
107
+ tags["img"]="[img]STRING[/img]";
108
+ tags["code"]="[code lang=LANGUAGE]STRING[/code]";
109
+ tags["center"]="[center]STRING[/center]";
110
+ tags["left"]="[left]STRING[/left]";
111
+ tags["right"]="[right]STRING[/right]";
112
+ tags["url"]="[url=LINK]STRING[/url]";
113
+ tags["quote"]="[quote]STRING[/quote]";
114
+ tags["quote2"]="[quote=NAME]STRING[/quote]";
115
+ tags["table"]="[table]STRING[/table]";
116
+ tags["tr"]="[tr]STRING[/tr]";
117
+ tags["td"]="[td]STRING[/td]";
118
+ tags["th"]="[th]STRING[/th]";
119
+ tags["color"]="callback";
120
+ tags["ul"]="[ul]\n[li]STRING[/li]\n[/ul]"
121
+ tags["ol"]="[ol]\n[li]STRING[/li]\n[/ol]"
122
+ //Get the Selection
123
+ selection=tbbcearea.getSelection();
124
+ if(tags[tag]=="callback"){
125
+ eval(tag + "(selection,tbbceframe,tbbcearea)");
126
+ output=selection.text;
127
+ }else{
128
+ output=tags[tag].replace(/STRING/i, selection.text);
129
+ }
130
+ //Send Output
131
+ tbbcearea.replaceSelection(output,true);
132
+ };
133
+
134
+ function nl2br(text){
135
+ text = escape(text);
136
+ if(text.indexOf('%0D%0A') > -1){
137
+ re_nlchar = /%0D%0A/g ;
138
+ }else if(text.indexOf('%0A') > -1){
139
+ re_nlchar = /%0A/g ;
140
+ }else if(text.indexOf('%0D') > -1){
141
+ re_nlchar = /%0D/g ;
142
+ }
143
+ return unescape( text.replace(re_nlchar,'-nl-') );
144
+ }
145
+
146
+ function color(s,tbbceframe,tbbcearea){
147
+ sub="[color=COL]STRING[/color]";
148
+ tbbceframe.addClass("colorsel");
149
+ tbbceframe.html("<b>Select a Color</b><br /><br />");
150
+ tbbceframe.append(colors("aliceblue"));
151
+ //tbbceframe.append(colors("AntiqueWhites"));
152
+ tbbceframe.append(colors("Aqua"));
153
+ tbbceframe.append(colors("Aquamarine"));
154
+ tbbceframe.append(colors("Azure"));
155
+ tbbceframe.append(colors("Beige"));
156
+ tbbceframe.append(colors("Bisque"));
157
+ tbbceframe.append(colors("Black"));
158
+ tbbceframe.append(colors("BlanchedAlmond"));
159
+ tbbceframe.append(colors("Blue"));
160
+ tbbceframe.append(colors("BlueViolet"));
161
+ tbbceframe.append(colors("Brown"));
162
+ tbbceframe.append(colors("BurlyWood"));
163
+ tbbceframe.append(colors("CadetBlue"));
164
+ tbbceframe.append(colors("Chartreuse"));
165
+ tbbceframe.append(colors("Chocolate"));
166
+ tbbceframe.append(colors("Coral"));
167
+ tbbceframe.append(colors("CornflowerBlue"));
168
+ tbbceframe.append(colors("Cornsilk"));
169
+ tbbceframe.append(colors("Crimson"));
170
+ tbbceframe.append(colors("Cyan"));
171
+ tbbceframe.append(colors("DarkBlue"));
172
+ tbbceframe.append(colors("DarkCyan"));
173
+ tbbceframe.append(colors("DarkGoldenRod"));
174
+ tbbceframe.append(colors("DarkGray"));
175
+ tbbceframe.append(colors("DarkGreen"));
176
+ tbbceframe.append(colors("DarkKhaki"));
177
+ tbbceframe.append(colors("DarkMagenta"));
178
+ tbbceframe.append(colors("DarkOliveGreen"));
179
+ tbbceframe.append(colors("DarkOrange"));
180
+ tbbceframe.append(colors("DarkOrchid"));
181
+ tbbceframe.append(colors("DarkRed"));
182
+ tbbceframe.append(colors("DarkSalmon"));
183
+ tbbceframe.append(colors("DarkSeaGreen"));
184
+ tbbceframe.append(colors("DarkSlateBlue"));
185
+ tbbceframe.append(colors("DarkSlateGray"));
186
+ tbbceframe.append(colors("DarkTurquoise"));
187
+ tbbceframe.append(colors("DarkViolet"));
188
+ tbbceframe.append("<br /><br /><a href=\"\" id=\"close\">Cancel</a>");
189
+ tbbceframe.slideDown("slow");
190
+ tbbcearea.slideUp("slow");
191
+ }
192
+
193
+ function colors(color){
194
+ return "<a href=\"\" id=\"colorselection\" style=\"margin:2px; float:left; display:block; width:10px; height:10px; background-color:" + color + ";\"> &nbsp;</a>";
195
+ }
@@ -0,0 +1,6 @@
1
+ class TbbceController < ApplicationController
2
+ def index
3
+ @string=params[:string].tbbc
4
+ @tbbcef=params[:tbbcef]
5
+ end
6
+ end
@@ -0,0 +1,33 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{trainbbcodeeditor}
5
+ s.version = "0.1.0"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Adam \"Arcath\" Laycock"]
9
+ s.date = %q{2010-01-26}
10
+ s.description = %q{Provides a nice looking editor for TrainBBCode}
11
+ s.email = %q{gems@arcath.net}
12
+ s.extra_rdoc_files = ["CHANGELOG", "README.rdoc", "lib/trainbbcodeeditor.rb"]
13
+ s.files = ["CHANGELOG", "README.rdoc", "Rakefile", "init.rb", "lib/trainbbcodeeditor.rb", "rails_generators/tbbcejs/tbbcejs_generator.rb", "rails_generators/tbbcejs/templates/icons/cog_delete.png", "rails_generators/tbbcejs/templates/icons/cog_go.png", "rails_generators/tbbcejs/templates/icons/color_wheel.png", "rails_generators/tbbcejs/templates/icons/comment.png", "rails_generators/tbbcejs/templates/icons/comments.png", "rails_generators/tbbcejs/templates/icons/image.png", "rails_generators/tbbcejs/templates/icons/information.png", "rails_generators/tbbcejs/templates/icons/link.png", "rails_generators/tbbcejs/templates/icons/plugin.png", "rails_generators/tbbcejs/templates/icons/table.png", "rails_generators/tbbcejs/templates/icons/table_error.png", "rails_generators/tbbcejs/templates/icons/table_row_delete.png", "rails_generators/tbbcejs/templates/icons/table_row_insert.png", "rails_generators/tbbcejs/templates/icons/text_align_center.png", "rails_generators/tbbcejs/templates/icons/text_align_left.png", "rails_generators/tbbcejs/templates/icons/text_align_right.png", "rails_generators/tbbcejs/templates/icons/text_bold.png", "rails_generators/tbbcejs/templates/icons/text_italic.png", "rails_generators/tbbcejs/templates/icons/text_list_bullets.png", "rails_generators/tbbcejs/templates/icons/text_list_numbers.png", "rails_generators/tbbcejs/templates/icons/text_underline.png", "rails_generators/tbbcejs/templates/index.js.erb", "rails_generators/tbbcejs/templates/jquery.fieldselection.js", "rails_generators/tbbcejs/templates/tbbce.js", "rails_generators/tbbcejs/templates/tbbce_controller.rb", "Manifest", "trainbbcodeeditor.gemspec"]
14
+ s.homepage = %q{http://www.arcath.net/pages/4}
15
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Trainbbcodeeditor", "--main", "README.rdoc"]
16
+ s.require_paths = ["lib"]
17
+ s.rubyforge_project = %q{trainbbcodeeditor}
18
+ s.rubygems_version = %q{1.3.5}
19
+ s.summary = %q{Provides a nice looking editor for TrainBBCode}
20
+
21
+ if s.respond_to? :specification_version then
22
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
+ s.specification_version = 3
24
+
25
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
26
+ s.add_runtime_dependency(%q<trainbbcode>, [">= 0"])
27
+ else
28
+ s.add_dependency(%q<trainbbcode>, [">= 0"])
29
+ end
30
+ else
31
+ s.add_dependency(%q<trainbbcode>, [">= 0"])
32
+ end
33
+ end
metadata ADDED
@@ -0,0 +1,103 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: trainbbcodeeditor
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Adam "Arcath" Laycock
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-01-26 00:00:00 +00:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: trainbbcode
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ description: Provides a nice looking editor for TrainBBCode
26
+ email: gems@arcath.net
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - CHANGELOG
33
+ - README.rdoc
34
+ - lib/trainbbcodeeditor.rb
35
+ files:
36
+ - CHANGELOG
37
+ - README.rdoc
38
+ - Rakefile
39
+ - init.rb
40
+ - lib/trainbbcodeeditor.rb
41
+ - rails_generators/tbbcejs/tbbcejs_generator.rb
42
+ - rails_generators/tbbcejs/templates/icons/cog_delete.png
43
+ - rails_generators/tbbcejs/templates/icons/cog_go.png
44
+ - rails_generators/tbbcejs/templates/icons/color_wheel.png
45
+ - rails_generators/tbbcejs/templates/icons/comment.png
46
+ - rails_generators/tbbcejs/templates/icons/comments.png
47
+ - rails_generators/tbbcejs/templates/icons/image.png
48
+ - rails_generators/tbbcejs/templates/icons/information.png
49
+ - rails_generators/tbbcejs/templates/icons/link.png
50
+ - rails_generators/tbbcejs/templates/icons/plugin.png
51
+ - rails_generators/tbbcejs/templates/icons/table.png
52
+ - rails_generators/tbbcejs/templates/icons/table_error.png
53
+ - rails_generators/tbbcejs/templates/icons/table_row_delete.png
54
+ - rails_generators/tbbcejs/templates/icons/table_row_insert.png
55
+ - rails_generators/tbbcejs/templates/icons/text_align_center.png
56
+ - rails_generators/tbbcejs/templates/icons/text_align_left.png
57
+ - rails_generators/tbbcejs/templates/icons/text_align_right.png
58
+ - rails_generators/tbbcejs/templates/icons/text_bold.png
59
+ - rails_generators/tbbcejs/templates/icons/text_italic.png
60
+ - rails_generators/tbbcejs/templates/icons/text_list_bullets.png
61
+ - rails_generators/tbbcejs/templates/icons/text_list_numbers.png
62
+ - rails_generators/tbbcejs/templates/icons/text_underline.png
63
+ - rails_generators/tbbcejs/templates/index.js.erb
64
+ - rails_generators/tbbcejs/templates/jquery.fieldselection.js
65
+ - rails_generators/tbbcejs/templates/tbbce.js
66
+ - rails_generators/tbbcejs/templates/tbbce_controller.rb
67
+ - Manifest
68
+ - trainbbcodeeditor.gemspec
69
+ has_rdoc: true
70
+ homepage: http://www.arcath.net/pages/4
71
+ licenses: []
72
+
73
+ post_install_message:
74
+ rdoc_options:
75
+ - --line-numbers
76
+ - --inline-source
77
+ - --title
78
+ - Trainbbcodeeditor
79
+ - --main
80
+ - README.rdoc
81
+ require_paths:
82
+ - lib
83
+ required_ruby_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: "0"
88
+ version:
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: "1.2"
94
+ version:
95
+ requirements: []
96
+
97
+ rubyforge_project: trainbbcodeeditor
98
+ rubygems_version: 1.3.5
99
+ signing_key:
100
+ specification_version: 3
101
+ summary: Provides a nice looking editor for TrainBBCode
102
+ test_files: []
103
+