rails3_markitup 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/README.md +35 -0
- data/Rakefile +2 -0
- data/app/assets/images/sets/default/bold.png +0 -0
- data/app/assets/images/sets/default/clean.png +0 -0
- data/app/assets/images/sets/default/image.png +0 -0
- data/app/assets/images/sets/default/italic.png +0 -0
- data/app/assets/images/sets/default/link.png +0 -0
- data/app/assets/images/sets/default/list-bullet.png +0 -0
- data/app/assets/images/sets/default/list-numeric.png +0 -0
- data/app/assets/images/sets/default/picture.png +0 -0
- data/app/assets/images/sets/default/preview.png +0 -0
- data/app/assets/images/sets/default/stroke.png +0 -0
- data/app/assets/images/sets/markdown/bold.png +0 -0
- data/app/assets/images/sets/markdown/code.png +0 -0
- data/app/assets/images/sets/markdown/h1.png +0 -0
- data/app/assets/images/sets/markdown/h2.png +0 -0
- data/app/assets/images/sets/markdown/h3.png +0 -0
- data/app/assets/images/sets/markdown/h4.png +0 -0
- data/app/assets/images/sets/markdown/h5.png +0 -0
- data/app/assets/images/sets/markdown/h6.png +0 -0
- data/app/assets/images/sets/markdown/italic.png +0 -0
- data/app/assets/images/sets/markdown/link.png +0 -0
- data/app/assets/images/sets/markdown/list-bullet.png +0 -0
- data/app/assets/images/sets/markdown/list-numeric.png +0 -0
- data/app/assets/images/sets/markdown/picture.png +0 -0
- data/app/assets/images/sets/markdown/preview.png +0 -0
- data/app/assets/images/sets/markdown/quotes.png +0 -0
- data/app/assets/images/skins/markitup/bg-container.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-bbcode.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-dotclear.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-html.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-json.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-markdown.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-textile.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-wiki.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-xml.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor.png +0 -0
- data/app/assets/images/skins/markitup/handle.png +0 -0
- data/app/assets/images/skins/markitup/menu.png +0 -0
- data/app/assets/images/skins/markitup/submenu.png +0 -0
- data/app/assets/images/skins/simple/handle.png +0 -0
- data/app/assets/images/skins/simple/menu.png +0 -0
- data/app/assets/images/skins/simple/submenu.png +0 -0
- data/app/assets/javascripts/jquery.markitup.config.js +4 -0
- data/app/assets/javascripts/jquery.markitup.js +593 -0
- data/app/assets/javascripts/sets/default/set.js +31 -0
- data/app/assets/javascripts/sets/markdown/set.js +48 -0
- data/app/assets/stylesheets/sets/default/style.css +34 -0
- data/app/assets/stylesheets/sets/markdown/style.css +54 -0
- data/app/assets/stylesheets/skins/markitup/style.css.scss +152 -0
- data/app/assets/stylesheets/skins/simple/style.css.scss +122 -0
- data/app/assets/stylesheets/templates/preview.css +5 -0
- data/app/controllers/markitup/parsers_controller.rb +12 -0
- data/app/views/markitup/parsers/default.html.erb +11 -0
- data/app/views/markitup/parsers/markdown.html.erb +11 -0
- data/config/routes.rb +5 -0
- data/lib/rails3_markitup/controller_additions.rb +23 -0
- data/lib/rails3_markitup/engine.rb +10 -0
- data/lib/rails3_markitup/helper.rb +21 -0
- data/lib/rails3_markitup/version.rb +3 -0
- data/lib/rails3_markitup.rb +8 -0
- data/rails3_markitup.gemspec +21 -0
- metadata +143 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
/* -------------------------------------------------------------------
|
2
|
+
// markItUp!
|
3
|
+
// By Jay Salvat - http://markitup.jaysalvat.com/
|
4
|
+
// ------------------------------------------------------------------*/
|
5
|
+
.markItUp .markItUpButton1 a {
|
6
|
+
background-image:url(bold.png);
|
7
|
+
}
|
8
|
+
.markItUp .markItUpButton2 a {
|
9
|
+
background-image:url(italic.png);
|
10
|
+
}
|
11
|
+
.markItUp .markItUpButton3 a {
|
12
|
+
background-image:url(stroke.png);
|
13
|
+
}
|
14
|
+
|
15
|
+
.markItUp .markItUpButton4 a {
|
16
|
+
background-image:url(list-bullet.png);
|
17
|
+
}
|
18
|
+
.markItUp .markItUpButton5 a {
|
19
|
+
background-image:url(list-numeric.png);
|
20
|
+
}
|
21
|
+
|
22
|
+
.markItUp .markItUpButton6 a {
|
23
|
+
background-image:url(picture.png);
|
24
|
+
}
|
25
|
+
.markItUp .markItUpButton7 a {
|
26
|
+
background-image:url(link.png);
|
27
|
+
}
|
28
|
+
|
29
|
+
.markItUp .markItUpButton8 a {
|
30
|
+
background-image:url(clean.png);
|
31
|
+
}
|
32
|
+
.markItUp .preview a {
|
33
|
+
background-image:url(preview.png);
|
34
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
/* -------------------------------------------------------------------
|
2
|
+
// markItUp!
|
3
|
+
// By Jay Salvat - http://markitup.jaysalvat.com/
|
4
|
+
// ------------------------------------------------------------------*/
|
5
|
+
.markdown .markItUpButton1 a {
|
6
|
+
background-image:url(h1.png);
|
7
|
+
}
|
8
|
+
.markdown .markItUpButton2 a {
|
9
|
+
background-image:url(h2.png);
|
10
|
+
}
|
11
|
+
.markdown .markItUpButton3 a {
|
12
|
+
background-image:url(h3.png);
|
13
|
+
}
|
14
|
+
.markdown .markItUpButton4 a {
|
15
|
+
background-image:url(h4.png);
|
16
|
+
}
|
17
|
+
.markdown .markItUpButton5 a {
|
18
|
+
background-image:url(h5.png);
|
19
|
+
}
|
20
|
+
.markdown .markItUpButton6 a {
|
21
|
+
background-image:url(h6.png);
|
22
|
+
}
|
23
|
+
|
24
|
+
.markdown .markItUpButton7 a {
|
25
|
+
background-image:url(bold.png);
|
26
|
+
}
|
27
|
+
.markdown .markItUpButton8 a {
|
28
|
+
background-image:url(italic.png);
|
29
|
+
}
|
30
|
+
|
31
|
+
.markdown .markItUpButton9 a {
|
32
|
+
background-image:url(list-bullet.png);
|
33
|
+
}
|
34
|
+
.markdown .markItUpButton10 a {
|
35
|
+
background-image:url(list-numeric.png);
|
36
|
+
}
|
37
|
+
|
38
|
+
.markdown .markItUpButton11 a {
|
39
|
+
background-image:url(picture.png);
|
40
|
+
}
|
41
|
+
.markdown .markItUpButton12 a {
|
42
|
+
background-image:url(link.png);
|
43
|
+
}
|
44
|
+
|
45
|
+
.markdown .markItUpButton13 a {
|
46
|
+
background-image:url(quotes.png);
|
47
|
+
}
|
48
|
+
.markdown .markItUpButton14 a {
|
49
|
+
background-image:url(code.png);
|
50
|
+
}
|
51
|
+
|
52
|
+
.markdown .preview a {
|
53
|
+
background-image:url(preview.png);
|
54
|
+
}
|
@@ -0,0 +1,152 @@
|
|
1
|
+
// markItUp! Universal MarkUp Engine, JQuery plugin
|
2
|
+
// By Jay Salvat - http://markitup.jaysalvat.com/
|
3
|
+
// ------------------------------------------------------------------
|
4
|
+
|
5
|
+
.markItUp * {
|
6
|
+
margin:0px; padding:0px;
|
7
|
+
outline:none;
|
8
|
+
}
|
9
|
+
.markItUp a:link,
|
10
|
+
.markItUp a:visited {
|
11
|
+
color:#000;
|
12
|
+
text-decoration:none;
|
13
|
+
}
|
14
|
+
.markItUp {
|
15
|
+
width:700px;
|
16
|
+
margin:5px 0 5px 0;
|
17
|
+
border:5px solid #F5F5F5;
|
18
|
+
}
|
19
|
+
.markItUpContainer {
|
20
|
+
border:1px solid #3C769D;
|
21
|
+
background:#FFF image-url("skins/markitup/bg-container.png") repeat-x top left;
|
22
|
+
padding:5px 5px 2px 5px;
|
23
|
+
font:11px Verdana, Arial, Helvetica, sans-serif;
|
24
|
+
}
|
25
|
+
.markItUpEditor {
|
26
|
+
font:12px 'Courier New', Courier, monospace;
|
27
|
+
padding:5px 5px 5px 35px;
|
28
|
+
border:3px solid #3C769D;
|
29
|
+
width:643px;
|
30
|
+
height:320px;
|
31
|
+
background:#FFF image-url("skins/markitup/bg-editor.png") no-repeat;
|
32
|
+
clear:both;
|
33
|
+
line-height:18px;
|
34
|
+
overflow:auto;
|
35
|
+
}
|
36
|
+
.markItUpPreviewFrame {
|
37
|
+
overflow:auto;
|
38
|
+
background-color:#FFFFFF;
|
39
|
+
border:1px solid #3C769D;
|
40
|
+
width:99.9%;
|
41
|
+
height:300px;
|
42
|
+
margin:5px 0;
|
43
|
+
}
|
44
|
+
.markItUpFooter {
|
45
|
+
width:100%;
|
46
|
+
cursor:n-resize;
|
47
|
+
}
|
48
|
+
.markItUpResizeHandle {
|
49
|
+
overflow:hidden;
|
50
|
+
width:22px; height:5px;
|
51
|
+
margin-left:auto;
|
52
|
+
margin-right:auto;
|
53
|
+
background-image: image-url("skins/markitup/handle.png");
|
54
|
+
cursor:n-resize;
|
55
|
+
}
|
56
|
+
|
57
|
+
/***************************************************************************************/
|
58
|
+
/* first row of buttons */
|
59
|
+
|
60
|
+
.markItUpHeader ul li {
|
61
|
+
list-style:none;
|
62
|
+
float:left;
|
63
|
+
position:relative;
|
64
|
+
}
|
65
|
+
.markItUpHeader ul li ul{
|
66
|
+
display:none;
|
67
|
+
}
|
68
|
+
.markItUpHeader ul li:hover > ul{
|
69
|
+
display:block;
|
70
|
+
}
|
71
|
+
.markItUpHeader ul .markItUpDropMenu {
|
72
|
+
background:transparent image-url("skins/markitup/menu.png") no-repeat 115% 50%;
|
73
|
+
margin-right:5px;
|
74
|
+
}
|
75
|
+
.markItUpHeader ul .markItUpDropMenu li {
|
76
|
+
margin-right:0px;
|
77
|
+
}
|
78
|
+
.markItUpHeader ul .markItUpSeparator {
|
79
|
+
margin:0 10px;
|
80
|
+
width:1px;
|
81
|
+
height:16px;
|
82
|
+
overflow:hidden;
|
83
|
+
background-color:#CCC;
|
84
|
+
}
|
85
|
+
.markItUpHeader ul ul .markItUpSeparator {
|
86
|
+
width:auto; height:1px;
|
87
|
+
margin:0px;
|
88
|
+
}
|
89
|
+
/* next rows of buttons */
|
90
|
+
|
91
|
+
.markItUpHeader ul ul {
|
92
|
+
display:none;
|
93
|
+
position:absolute;
|
94
|
+
top:18px; left:0px;
|
95
|
+
background:#F5F5F5;
|
96
|
+
border:1px solid #3C769D;
|
97
|
+
height:inherit;
|
98
|
+
}
|
99
|
+
.markItUpHeader ul ul li {
|
100
|
+
float:none;
|
101
|
+
border-bottom:1px solid #3C769D;
|
102
|
+
}
|
103
|
+
.markItUpHeader ul ul .markItUpDropMenu {
|
104
|
+
background:#F5F5F5 image-url("skins/markitup/submenu.png") no-repeat 100% 50%;
|
105
|
+
}
|
106
|
+
/* next rows of buttons */
|
107
|
+
|
108
|
+
.markItUpHeader ul ul ul {
|
109
|
+
position:absolute;
|
110
|
+
top:-1px; left:150px;
|
111
|
+
}
|
112
|
+
.markItUpHeader ul ul ul li {
|
113
|
+
float:none;
|
114
|
+
}
|
115
|
+
.markItUpHeader ul a {
|
116
|
+
display:block;
|
117
|
+
width:16px; height:16px;
|
118
|
+
text-indent:-10000px;
|
119
|
+
background-repeat:no-repeat;
|
120
|
+
padding:3px;
|
121
|
+
margin:0px;
|
122
|
+
}
|
123
|
+
.markItUpHeader ul ul a {
|
124
|
+
display:block;
|
125
|
+
padding-left:0px;
|
126
|
+
text-indent:0;
|
127
|
+
width:120px;
|
128
|
+
padding:5px 5px 5px 25px;
|
129
|
+
background-position:2px 50%;
|
130
|
+
}
|
131
|
+
.markItUpHeader ul ul a:hover {
|
132
|
+
color:#FFF;
|
133
|
+
background-color:#3C769D;
|
134
|
+
}
|
135
|
+
/***************************************************************************************/
|
136
|
+
|
137
|
+
.html .markItUpEditor {
|
138
|
+
background-image: image-url("skins/markitup/bg-editor-html.png");
|
139
|
+
}
|
140
|
+
.markdown .markItUpEditor {
|
141
|
+
background-image: image-url("skins/markitup/bg-editor-markdown.png");
|
142
|
+
}
|
143
|
+
.textile .markItUpEditor {
|
144
|
+
background-image: image-url("skins/markitup/bg-editor-textile.png");
|
145
|
+
}
|
146
|
+
.bbcode .markItUpEditor {
|
147
|
+
background-image: image-url("skins/markitup/bg-editor-bbcode.png");
|
148
|
+
}
|
149
|
+
.wiki .markItUpEditor,
|
150
|
+
.dotclear .markItUpEditor {
|
151
|
+
background-image: image-url("skins/markitup/bg-editor-wiki.png");
|
152
|
+
}
|
@@ -0,0 +1,122 @@
|
|
1
|
+
/* -------------------------------------------------------------------
|
2
|
+
// markItUp! Universal MarkUp Engine, JQuery plugin
|
3
|
+
// By Jay Salvat - http://markitup.jaysalvat.com/
|
4
|
+
// ------------------------------------------------------------------*/
|
5
|
+
|
6
|
+
.markItUp * {
|
7
|
+
margin:0px; padding:0px;
|
8
|
+
outline:none;
|
9
|
+
}
|
10
|
+
.markItUp a:link,
|
11
|
+
.markItUp a:visited {
|
12
|
+
color:#000;
|
13
|
+
text-decoration:none;
|
14
|
+
}
|
15
|
+
.markItUp {
|
16
|
+
width:700px;
|
17
|
+
margin:5px 0 5px 0;
|
18
|
+
}
|
19
|
+
.markItUpContainer {
|
20
|
+
font:11px Verdana, Arial, Helvetica, sans-serif;
|
21
|
+
}
|
22
|
+
.markItUpEditor {
|
23
|
+
font:12px 'Courier New', Courier, monospace;
|
24
|
+
padding:5px;
|
25
|
+
width:690px;
|
26
|
+
height:320px;
|
27
|
+
clear:both;
|
28
|
+
line-height:18px;
|
29
|
+
overflow:auto;
|
30
|
+
}
|
31
|
+
.markItUpPreviewFrame {
|
32
|
+
overflow:auto;
|
33
|
+
background-color:#FFF;
|
34
|
+
width:99.9%;
|
35
|
+
height:300px;
|
36
|
+
margin:5px 0;
|
37
|
+
}
|
38
|
+
.markItUpFooter {
|
39
|
+
width:100%;
|
40
|
+
}
|
41
|
+
.markItUpResizeHandle {
|
42
|
+
overflow:hidden;
|
43
|
+
width:22px; height:5px;
|
44
|
+
margin-left:auto;
|
45
|
+
margin-right:auto;
|
46
|
+
background-image:image-url("skins/simple/handle.png");
|
47
|
+
cursor:n-resize;
|
48
|
+
}
|
49
|
+
/***************************************************************************************/
|
50
|
+
/* first row of buttons */
|
51
|
+
|
52
|
+
.markItUpHeader ul li {
|
53
|
+
list-style:none;
|
54
|
+
float:left;
|
55
|
+
position:relative;
|
56
|
+
}
|
57
|
+
.markItUpHeader ul li:hover > ul{
|
58
|
+
display:block;
|
59
|
+
}
|
60
|
+
.markItUpHeader ul .markItUpDropMenu {
|
61
|
+
background:transparent image-url("skins/simple/menu.png") no-repeat 115% 50%;
|
62
|
+
margin-right:5px;
|
63
|
+
}
|
64
|
+
.markItUpHeader ul .markItUpDropMenu li {
|
65
|
+
margin-right:0px;
|
66
|
+
}
|
67
|
+
/* next rows of buttons */
|
68
|
+
|
69
|
+
.markItUpHeader ul ul {
|
70
|
+
display:none;
|
71
|
+
position:absolute;
|
72
|
+
top:18px; left:0px;
|
73
|
+
background:#FFF;
|
74
|
+
border:1px solid #000;
|
75
|
+
}
|
76
|
+
.markItUpHeader ul ul li {
|
77
|
+
float:none;
|
78
|
+
border-bottom:1px solid #000;
|
79
|
+
}
|
80
|
+
.markItUpHeader ul ul .markItUpDropMenu {
|
81
|
+
background:#FFF image-url("skins/simple/submenu.png") no-repeat 100% 50%;
|
82
|
+
}
|
83
|
+
.markItUpHeader ul .markItUpSeparator {
|
84
|
+
margin:0 10px;
|
85
|
+
width:1px;
|
86
|
+
height:16px;
|
87
|
+
overflow:hidden;
|
88
|
+
background-color:#CCC;
|
89
|
+
}
|
90
|
+
.markItUpHeader ul ul .markItUpSeparator {
|
91
|
+
width:auto; height:1px;
|
92
|
+
margin:0px;
|
93
|
+
}
|
94
|
+
/* next rows of buttons */
|
95
|
+
|
96
|
+
.markItUpHeader ul ul ul {
|
97
|
+
position:absolute;
|
98
|
+
top:-1px; left:150px;
|
99
|
+
}
|
100
|
+
.markItUpHeader ul ul ul li {
|
101
|
+
float:none;
|
102
|
+
}
|
103
|
+
.markItUpHeader ul a {
|
104
|
+
display:block;
|
105
|
+
width:16px; height:16px;
|
106
|
+
text-indent:-10000px;
|
107
|
+
background-repeat:no-repeat;
|
108
|
+
padding:3px;
|
109
|
+
margin:0px;
|
110
|
+
}
|
111
|
+
.markItUpHeader ul ul a {
|
112
|
+
display:block;
|
113
|
+
padding-left:0px;
|
114
|
+
text-indent:0;
|
115
|
+
width:120px;
|
116
|
+
padding:5px 5px 5px 25px;
|
117
|
+
background-position:2px 50%;
|
118
|
+
}
|
119
|
+
.markItUpHeader ul ul a:hover {
|
120
|
+
color:#FFF;
|
121
|
+
background-color:#000;
|
122
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5
|
+
<title>markItUp! preview template</title>
|
6
|
+
<%= stylesheet_link_tag "templates/preview" %>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<%= raw @content %>
|
10
|
+
</body>
|
11
|
+
</html>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5
|
+
<title>markItUp! preview template</title>
|
6
|
+
<%= stylesheet_link_tag "templates/preview" %>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<%= sanitize @markitup%>
|
10
|
+
</body>
|
11
|
+
</html>
|
data/config/routes.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
module Rails3Markitup
|
2
|
+
module ControllerAdditions
|
3
|
+
module ClassMethods
|
4
|
+
def include_markitup(options = {})
|
5
|
+
proc = Proc.new do |c|
|
6
|
+
c.instance_variable_set(:@use_markitup, true)
|
7
|
+
end
|
8
|
+
before_filter(proc, options)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.included(base)
|
13
|
+
base.extend ClassMethods
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
if defined? ActionController
|
19
|
+
ActionController::Base.class_eval do
|
20
|
+
include Rails3Markitup::ControllerAdditions
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Rails3Markitup
|
2
|
+
module Helper
|
3
|
+
def include_markitup_if_needed(*sources)
|
4
|
+
if @use_markitup
|
5
|
+
options = sources.extract_options!.stringify_keys
|
6
|
+
cache = options.delete("cache").to_s
|
7
|
+
cache_name = (cache == "true" ? "markitup-cache" : "markitup-#{cache}")
|
8
|
+
output = ""
|
9
|
+
output << stylesheet_link_tag("/assets/skins/markitup/style.css", "/assets/sets/default/style.css") << "\n"
|
10
|
+
if config.perform_caching && !cache.empty?
|
11
|
+
output << javascript_include_tag("/assets/jquery.markitup.js", "/assets/sets/default/set.js", "/assets/jquery.markitup.config.js", :cache => "markitup/#{cache_name}")
|
12
|
+
else
|
13
|
+
output << javascript_include_tag("/assets/jquery.markitup.js", "/assets/sets/default/set.js", "/assets/jquery.markitup.config.js")
|
14
|
+
end
|
15
|
+
output.html_safe
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
ActionView::Base.send(:include, Rails3Markitup::Helper)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/rails3_markitup/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["JerryShen"]
|
6
|
+
gem.email = ["hansay99@gmail.com"]
|
7
|
+
gem.description = %q{rails3_markitup is a Rails 3.1 engine that allows you to integrate the MarkItUp text editor into the asset pipeline.}
|
8
|
+
gem.summary = %q{rails3_markitup is a awesome jquery rich text editor}
|
9
|
+
gem.homepage = "https://github.com/jerryshen/rails3_markitup"
|
10
|
+
|
11
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
|
+
gem.files = `git ls-files`.split("\n")
|
13
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
|
+
gem.name = "rails3_markitup"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = Rails3Markitup::VERSION
|
17
|
+
|
18
|
+
gem.add_dependency 'rails', '~> 3.1'
|
19
|
+
gem.add_dependency 'bundler', '~> 1.1.rc'
|
20
|
+
gem.add_dependency 'bluecloth'
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,143 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails3_markitup
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- JerryShen
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-01-23 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: &2152077940 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.1'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2152077940
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: bundler
|
27
|
+
requirement: &2152077220 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.1.rc
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *2152077220
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: bluecloth
|
38
|
+
requirement: &2152076600 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2152076600
|
47
|
+
description: rails3_markitup is a Rails 3.1 engine that allows you to integrate the
|
48
|
+
MarkItUp text editor into the asset pipeline.
|
49
|
+
email:
|
50
|
+
- hansay99@gmail.com
|
51
|
+
executables: []
|
52
|
+
extensions: []
|
53
|
+
extra_rdoc_files: []
|
54
|
+
files:
|
55
|
+
- .gitignore
|
56
|
+
- Gemfile
|
57
|
+
- README.md
|
58
|
+
- Rakefile
|
59
|
+
- app/assets/images/sets/default/bold.png
|
60
|
+
- app/assets/images/sets/default/clean.png
|
61
|
+
- app/assets/images/sets/default/image.png
|
62
|
+
- app/assets/images/sets/default/italic.png
|
63
|
+
- app/assets/images/sets/default/link.png
|
64
|
+
- app/assets/images/sets/default/list-bullet.png
|
65
|
+
- app/assets/images/sets/default/list-numeric.png
|
66
|
+
- app/assets/images/sets/default/picture.png
|
67
|
+
- app/assets/images/sets/default/preview.png
|
68
|
+
- app/assets/images/sets/default/stroke.png
|
69
|
+
- app/assets/images/sets/markdown/bold.png
|
70
|
+
- app/assets/images/sets/markdown/code.png
|
71
|
+
- app/assets/images/sets/markdown/h1.png
|
72
|
+
- app/assets/images/sets/markdown/h2.png
|
73
|
+
- app/assets/images/sets/markdown/h3.png
|
74
|
+
- app/assets/images/sets/markdown/h4.png
|
75
|
+
- app/assets/images/sets/markdown/h5.png
|
76
|
+
- app/assets/images/sets/markdown/h6.png
|
77
|
+
- app/assets/images/sets/markdown/italic.png
|
78
|
+
- app/assets/images/sets/markdown/link.png
|
79
|
+
- app/assets/images/sets/markdown/list-bullet.png
|
80
|
+
- app/assets/images/sets/markdown/list-numeric.png
|
81
|
+
- app/assets/images/sets/markdown/picture.png
|
82
|
+
- app/assets/images/sets/markdown/preview.png
|
83
|
+
- app/assets/images/sets/markdown/quotes.png
|
84
|
+
- app/assets/images/skins/markitup/bg-container.png
|
85
|
+
- app/assets/images/skins/markitup/bg-editor-bbcode.png
|
86
|
+
- app/assets/images/skins/markitup/bg-editor-dotclear.png
|
87
|
+
- app/assets/images/skins/markitup/bg-editor-html.png
|
88
|
+
- app/assets/images/skins/markitup/bg-editor-json.png
|
89
|
+
- app/assets/images/skins/markitup/bg-editor-markdown.png
|
90
|
+
- app/assets/images/skins/markitup/bg-editor-textile.png
|
91
|
+
- app/assets/images/skins/markitup/bg-editor-wiki.png
|
92
|
+
- app/assets/images/skins/markitup/bg-editor-xml.png
|
93
|
+
- app/assets/images/skins/markitup/bg-editor.png
|
94
|
+
- app/assets/images/skins/markitup/handle.png
|
95
|
+
- app/assets/images/skins/markitup/menu.png
|
96
|
+
- app/assets/images/skins/markitup/submenu.png
|
97
|
+
- app/assets/images/skins/simple/handle.png
|
98
|
+
- app/assets/images/skins/simple/menu.png
|
99
|
+
- app/assets/images/skins/simple/submenu.png
|
100
|
+
- app/assets/javascripts/jquery.markitup.config.js
|
101
|
+
- app/assets/javascripts/jquery.markitup.js
|
102
|
+
- app/assets/javascripts/sets/default/set.js
|
103
|
+
- app/assets/javascripts/sets/markdown/set.js
|
104
|
+
- app/assets/stylesheets/sets/default/style.css
|
105
|
+
- app/assets/stylesheets/sets/markdown/style.css
|
106
|
+
- app/assets/stylesheets/skins/markitup/style.css.scss
|
107
|
+
- app/assets/stylesheets/skins/simple/style.css.scss
|
108
|
+
- app/assets/stylesheets/templates/preview.css
|
109
|
+
- app/controllers/markitup/parsers_controller.rb
|
110
|
+
- app/views/markitup/parsers/default.html.erb
|
111
|
+
- app/views/markitup/parsers/markdown.html.erb
|
112
|
+
- config/routes.rb
|
113
|
+
- lib/rails3_markitup.rb
|
114
|
+
- lib/rails3_markitup/controller_additions.rb
|
115
|
+
- lib/rails3_markitup/engine.rb
|
116
|
+
- lib/rails3_markitup/helper.rb
|
117
|
+
- lib/rails3_markitup/version.rb
|
118
|
+
- rails3_markitup.gemspec
|
119
|
+
homepage: https://github.com/jerryshen/rails3_markitup
|
120
|
+
licenses: []
|
121
|
+
post_install_message:
|
122
|
+
rdoc_options: []
|
123
|
+
require_paths:
|
124
|
+
- lib
|
125
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
+
none: false
|
127
|
+
requirements:
|
128
|
+
- - ! '>='
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
|
+
none: false
|
133
|
+
requirements:
|
134
|
+
- - ! '>='
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
requirements: []
|
138
|
+
rubyforge_project:
|
139
|
+
rubygems_version: 1.8.10
|
140
|
+
signing_key:
|
141
|
+
specification_version: 3
|
142
|
+
summary: rails3_markitup is a awesome jquery rich text editor
|
143
|
+
test_files: []
|