markitup_rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +100 -0
- data/LICENSE.txt +30 -0
- data/README.rdoc +98 -0
- data/Rakefile +53 -0
- data/VERSION +1 -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.js +593 -0
- data/app/assets/javascripts/sets/default/set.js +30 -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 +6 -0
- data/app/views/markitup/parsers/markdown.html.erb +11 -0
- data/config/routes.rb +5 -0
- data/lib/engine.rb +8 -0
- data/lib/markitup_rails.rb +15 -0
- data/markitup_rails.gemspec +118 -0
- data/test/helper.rb +18 -0
- data/test/test_markitup_rails.rb +7 -0
- metadata +219 -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
|
+
<%= sanitize @markitup%>
|
10
|
+
</body>
|
11
|
+
</html>
|
data/config/routes.rb
ADDED
data/lib/engine.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require "active_support/dependencies"
|
2
|
+
module MarkitupRails
|
3
|
+
|
4
|
+
# Our host application root path
|
5
|
+
# We set this when the engine is initialized
|
6
|
+
mattr_accessor :app_root
|
7
|
+
|
8
|
+
# Yield self on setup for nice config blocks
|
9
|
+
def self.setup
|
10
|
+
yield self
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
require 'engine'
|
15
|
+
require 'bluecloth'
|
@@ -0,0 +1,118 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{markitup_rails}
|
8
|
+
s.version = "0.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Jeff Wigal"]
|
12
|
+
s.date = %q{2012-01-22}
|
13
|
+
s.description = %q{Rails 3.1 engine that allows you to integrate the markItUp editor into the asset pipeline}
|
14
|
+
s.email = %q{jeff@assignr.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"app/assets/images/sets/default/bold.png",
|
28
|
+
"app/assets/images/sets/default/clean.png",
|
29
|
+
"app/assets/images/sets/default/image.png",
|
30
|
+
"app/assets/images/sets/default/italic.png",
|
31
|
+
"app/assets/images/sets/default/link.png",
|
32
|
+
"app/assets/images/sets/default/list-bullet.png",
|
33
|
+
"app/assets/images/sets/default/list-numeric.png",
|
34
|
+
"app/assets/images/sets/default/picture.png",
|
35
|
+
"app/assets/images/sets/default/preview.png",
|
36
|
+
"app/assets/images/sets/default/stroke.png",
|
37
|
+
"app/assets/images/sets/markdown/bold.png",
|
38
|
+
"app/assets/images/sets/markdown/code.png",
|
39
|
+
"app/assets/images/sets/markdown/h1.png",
|
40
|
+
"app/assets/images/sets/markdown/h2.png",
|
41
|
+
"app/assets/images/sets/markdown/h3.png",
|
42
|
+
"app/assets/images/sets/markdown/h4.png",
|
43
|
+
"app/assets/images/sets/markdown/h5.png",
|
44
|
+
"app/assets/images/sets/markdown/h6.png",
|
45
|
+
"app/assets/images/sets/markdown/italic.png",
|
46
|
+
"app/assets/images/sets/markdown/link.png",
|
47
|
+
"app/assets/images/sets/markdown/list-bullet.png",
|
48
|
+
"app/assets/images/sets/markdown/list-numeric.png",
|
49
|
+
"app/assets/images/sets/markdown/picture.png",
|
50
|
+
"app/assets/images/sets/markdown/preview.png",
|
51
|
+
"app/assets/images/sets/markdown/quotes.png",
|
52
|
+
"app/assets/images/skins/markitup/bg-container.png",
|
53
|
+
"app/assets/images/skins/markitup/bg-editor-bbcode.png",
|
54
|
+
"app/assets/images/skins/markitup/bg-editor-dotclear.png",
|
55
|
+
"app/assets/images/skins/markitup/bg-editor-html.png",
|
56
|
+
"app/assets/images/skins/markitup/bg-editor-json.png",
|
57
|
+
"app/assets/images/skins/markitup/bg-editor-markdown.png",
|
58
|
+
"app/assets/images/skins/markitup/bg-editor-textile.png",
|
59
|
+
"app/assets/images/skins/markitup/bg-editor-wiki.png",
|
60
|
+
"app/assets/images/skins/markitup/bg-editor-xml.png",
|
61
|
+
"app/assets/images/skins/markitup/bg-editor.png",
|
62
|
+
"app/assets/images/skins/markitup/handle.png",
|
63
|
+
"app/assets/images/skins/markitup/menu.png",
|
64
|
+
"app/assets/images/skins/markitup/submenu.png",
|
65
|
+
"app/assets/images/skins/simple/handle.png",
|
66
|
+
"app/assets/images/skins/simple/menu.png",
|
67
|
+
"app/assets/images/skins/simple/submenu.png",
|
68
|
+
"app/assets/javascripts/jquery.markitup.js",
|
69
|
+
"app/assets/javascripts/sets/default/set.js",
|
70
|
+
"app/assets/javascripts/sets/markdown/set.js",
|
71
|
+
"app/assets/stylesheets/sets/default/style.css",
|
72
|
+
"app/assets/stylesheets/sets/markdown/style.css",
|
73
|
+
"app/assets/stylesheets/skins/markitup/style.css.scss",
|
74
|
+
"app/assets/stylesheets/skins/simple/style.css.scss",
|
75
|
+
"app/assets/stylesheets/templates/preview.css",
|
76
|
+
"app/controllers/markitup/parsers_controller.rb",
|
77
|
+
"app/views/markitup/parsers/markdown.html.erb",
|
78
|
+
"config/routes.rb",
|
79
|
+
"lib/engine.rb",
|
80
|
+
"lib/markitup_rails.rb",
|
81
|
+
"markitup_rails.gemspec",
|
82
|
+
"test/helper.rb",
|
83
|
+
"test/test_markitup_rails.rb"
|
84
|
+
]
|
85
|
+
s.homepage = %q{http://github.com/jwigal/markitup_rails}
|
86
|
+
s.licenses = ["MIT"]
|
87
|
+
s.require_paths = ["lib"]
|
88
|
+
s.rubygems_version = %q{1.5.2}
|
89
|
+
s.summary = %q{Rails 3.1 engine that allows you to integrate the markItUp editor into the asset pipeline}
|
90
|
+
|
91
|
+
if s.respond_to? :specification_version then
|
92
|
+
s.specification_version = 3
|
93
|
+
|
94
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
95
|
+
s.add_runtime_dependency(%q<rails>, ["~> 3.1"])
|
96
|
+
s.add_runtime_dependency(%q<bluecloth>, [">= 0"])
|
97
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
98
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
99
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
100
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
101
|
+
else
|
102
|
+
s.add_dependency(%q<rails>, ["~> 3.1"])
|
103
|
+
s.add_dependency(%q<bluecloth>, [">= 0"])
|
104
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
105
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
106
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
107
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
108
|
+
end
|
109
|
+
else
|
110
|
+
s.add_dependency(%q<rails>, ["~> 3.1"])
|
111
|
+
s.add_dependency(%q<bluecloth>, [">= 0"])
|
112
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
113
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
114
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
115
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
data/test/helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'test/unit'
|
11
|
+
require 'shoulda'
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
+
require 'markitup_rails'
|
16
|
+
|
17
|
+
class Test::Unit::TestCase
|
18
|
+
end
|