markitup-rails 0.2.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/markitup-rails.rb +5 -7
- metadata +82 -86
- data/.gitignore +0 -2
- data/README.md +0 -81
- data/lib/markitup-rails/engine.rb +0 -6
- data/lib/markitup-rails/railtie.rb +0 -6
- data/lib/markitup-rails/version.rb +0 -5
- data/markitup-rails.gemspec +0 -21
- data/vendor/assets/images/markitup/bg-container.png +0 -0
- data/vendor/assets/images/markitup/bg-editor-bbcode.png +0 -0
- data/vendor/assets/images/markitup/bg-editor-dotclear.png +0 -0
- data/vendor/assets/images/markitup/bg-editor-html.png +0 -0
- data/vendor/assets/images/markitup/bg-editor-json.png +0 -0
- data/vendor/assets/images/markitup/bg-editor-markdown.png +0 -0
- data/vendor/assets/images/markitup/bg-editor-textile.png +0 -0
- data/vendor/assets/images/markitup/bg-editor-wiki.png +0 -0
- data/vendor/assets/images/markitup/bg-editor-xml.png +0 -0
- data/vendor/assets/images/markitup/bg-editor.png +0 -0
- data/vendor/assets/images/markitup/bold.png +0 -0
- data/vendor/assets/images/markitup/clean.png +0 -0
- data/vendor/assets/images/markitup/code.png +0 -0
- data/vendor/assets/images/markitup/css.png +0 -0
- data/vendor/assets/images/markitup/disconnect.png +0 -0
- data/vendor/assets/images/markitup/h1.png +0 -0
- data/vendor/assets/images/markitup/h2.png +0 -0
- data/vendor/assets/images/markitup/h3.png +0 -0
- data/vendor/assets/images/markitup/h4.png +0 -0
- data/vendor/assets/images/markitup/h5.png +0 -0
- data/vendor/assets/images/markitup/h6.png +0 -0
- data/vendor/assets/images/markitup/handle.png +0 -0
- data/vendor/assets/images/markitup/image.png +0 -0
- data/vendor/assets/images/markitup/italic.png +0 -0
- data/vendor/assets/images/markitup/link.png +0 -0
- data/vendor/assets/images/markitup/list-bullet.png +0 -0
- data/vendor/assets/images/markitup/list-item.png +0 -0
- data/vendor/assets/images/markitup/list-numeric.png +0 -0
- data/vendor/assets/images/markitup/menu.png +0 -0
- data/vendor/assets/images/markitup/page_white_code.png +0 -0
- data/vendor/assets/images/markitup/paragraph.png +0 -0
- data/vendor/assets/images/markitup/picture.png +0 -0
- data/vendor/assets/images/markitup/preview.png +0 -0
- data/vendor/assets/images/markitup/quotes.png +0 -0
- data/vendor/assets/images/markitup/stroke.png +0 -0
- data/vendor/assets/images/markitup/submenu.png +0 -0
- data/vendor/assets/images/markitup/tag.png +0 -0
- data/vendor/assets/images/markitup/text_align_center.png +0 -0
- data/vendor/assets/images/markitup/text_align_justify.png +0 -0
- data/vendor/assets/images/markitup/text_align_left.png +0 -0
- data/vendor/assets/images/markitup/text_align_right.png +0 -0
- data/vendor/assets/images/markitup/text_indent.png +0 -0
- data/vendor/assets/images/markitup/text_letterspacing.png +0 -0
- data/vendor/assets/images/markitup/text_linespacing.png +0 -0
- data/vendor/assets/images/markitup/text_lowercase.png +0 -0
- data/vendor/assets/images/markitup/text_padding_bottom.png +0 -0
- data/vendor/assets/images/markitup/text_padding_left.png +0 -0
- data/vendor/assets/images/markitup/text_padding_right.png +0 -0
- data/vendor/assets/images/markitup/text_padding_top.png +0 -0
- data/vendor/assets/images/markitup/text_uppercase.png +0 -0
- data/vendor/assets/images/markitup/url.png +0 -0
- data/vendor/assets/javascripts/markitup-css.js +0 -52
- data/vendor/assets/javascripts/markitup-html.js +0 -39
- data/vendor/assets/javascripts/markitup-markdown.js +0 -52
- data/vendor/assets/javascripts/markitup-textile.js +0 -40
- data/vendor/assets/javascripts/markitup.js +0 -593
- data/vendor/assets/javascripts/marmarkitup-texy.js +0 -51
- data/vendor/assets/javascripts/marmarkitup-wiki.js +0 -37
- data/vendor/assets/stylesheets/markitup-css.css.erb +0 -72
- data/vendor/assets/stylesheets/markitup-html.css.erb +0 -59
- data/vendor/assets/stylesheets/markitup-markdown.css.erb +0 -54
- data/vendor/assets/stylesheets/markitup-textile.css.erb +0 -61
- data/vendor/assets/stylesheets/markitup.css.erb +0 -149
- data/vendor/assets/stylesheets/marmarkitup-texy.css.erb +0 -51
- data/vendor/assets/stylesheets/marmarkitup-wiki.css.erb +0 -57
data/lib/markitup-rails.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
|
1
|
+
require "markitup/rails/configuration"
|
2
|
+
require "markitup/rails/engine"
|
3
|
+
|
4
|
+
module Markitup
|
2
5
|
module Rails
|
3
|
-
if ::Rails.version < "3.1"
|
4
|
-
require 'markitup-rails/railtie'
|
5
|
-
else
|
6
|
-
require 'markitup-rails/engine'
|
7
|
-
end
|
8
6
|
end
|
9
|
-
end
|
7
|
+
end
|
metadata
CHANGED
@@ -1,40 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markitup-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Uri Gorelik
|
9
|
+
- Phil Cohen
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2013-01-18 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
+
name: rails
|
16
17
|
requirement: !ruby/object:Gem::Requirement
|
17
18
|
none: false
|
18
19
|
requirements:
|
19
|
-
- -
|
20
|
+
- - ! '>='
|
20
21
|
- !ruby/object:Gem::Version
|
21
|
-
version: '3.
|
22
|
+
version: '3.1'
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
25
|
version_requirements: !ruby/object:Gem::Requirement
|
25
26
|
none: false
|
26
27
|
requirements:
|
27
|
-
- -
|
28
|
+
- - ! '>='
|
28
29
|
- !ruby/object:Gem::Version
|
29
|
-
version: '3.
|
30
|
+
version: '3.1'
|
30
31
|
- !ruby/object:Gem::Dependency
|
31
32
|
name: bundler
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 1.2.0
|
39
|
+
type: :development
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.2.0
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: cane
|
32
49
|
requirement: !ruby/object:Gem::Requirement
|
33
50
|
none: false
|
34
51
|
requirements:
|
35
52
|
- - ~>
|
36
53
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
54
|
+
version: 2.5.0
|
38
55
|
type: :development
|
39
56
|
prerelease: false
|
40
57
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,15 +59,63 @@ dependencies:
|
|
42
59
|
requirements:
|
43
60
|
- - ~>
|
44
61
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
62
|
+
version: 2.5.0
|
46
63
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
64
|
+
name: minitest
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 4.3.0
|
71
|
+
type: :development
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ~>
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 4.3.0
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: minitest-rails
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ~>
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 0.3.0
|
87
|
+
type: :development
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.3.0
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: rake
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 10.0.0
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 10.0.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: simplecov
|
48
113
|
requirement: !ruby/object:Gem::Requirement
|
49
114
|
none: false
|
50
115
|
requirements:
|
51
116
|
- - ~>
|
52
117
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
118
|
+
version: 0.7.1
|
54
119
|
type: :development
|
55
120
|
prerelease: false
|
56
121
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,85 +123,16 @@ dependencies:
|
|
58
123
|
requirements:
|
59
124
|
- - ~>
|
60
125
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
62
|
-
description:
|
63
|
-
email:
|
126
|
+
version: 0.7.1
|
127
|
+
description: The markItUp! universal markup editor, bundled for Rails 3.1+ Asset Pipeline.
|
128
|
+
email:
|
129
|
+
- uri@ndstorefront.com
|
130
|
+
- github@phlippers.net
|
64
131
|
executables: []
|
65
132
|
extensions: []
|
66
133
|
extra_rdoc_files: []
|
67
134
|
files:
|
68
|
-
- .gitignore
|
69
|
-
- README.md
|
70
135
|
- lib/markitup-rails.rb
|
71
|
-
- lib/markitup-rails/engine.rb
|
72
|
-
- lib/markitup-rails/railtie.rb
|
73
|
-
- lib/markitup-rails/version.rb
|
74
|
-
- markitup-rails.gemspec
|
75
|
-
- vendor/assets/images/markitup/bg-container.png
|
76
|
-
- vendor/assets/images/markitup/bg-editor-bbcode.png
|
77
|
-
- vendor/assets/images/markitup/bg-editor-dotclear.png
|
78
|
-
- vendor/assets/images/markitup/bg-editor-html.png
|
79
|
-
- vendor/assets/images/markitup/bg-editor-json.png
|
80
|
-
- vendor/assets/images/markitup/bg-editor-markdown.png
|
81
|
-
- vendor/assets/images/markitup/bg-editor-textile.png
|
82
|
-
- vendor/assets/images/markitup/bg-editor-wiki.png
|
83
|
-
- vendor/assets/images/markitup/bg-editor-xml.png
|
84
|
-
- vendor/assets/images/markitup/bg-editor.png
|
85
|
-
- vendor/assets/images/markitup/bold.png
|
86
|
-
- vendor/assets/images/markitup/clean.png
|
87
|
-
- vendor/assets/images/markitup/code.png
|
88
|
-
- vendor/assets/images/markitup/css.png
|
89
|
-
- vendor/assets/images/markitup/disconnect.png
|
90
|
-
- vendor/assets/images/markitup/h1.png
|
91
|
-
- vendor/assets/images/markitup/h2.png
|
92
|
-
- vendor/assets/images/markitup/h3.png
|
93
|
-
- vendor/assets/images/markitup/h4.png
|
94
|
-
- vendor/assets/images/markitup/h5.png
|
95
|
-
- vendor/assets/images/markitup/h6.png
|
96
|
-
- vendor/assets/images/markitup/handle.png
|
97
|
-
- vendor/assets/images/markitup/image.png
|
98
|
-
- vendor/assets/images/markitup/italic.png
|
99
|
-
- vendor/assets/images/markitup/link.png
|
100
|
-
- vendor/assets/images/markitup/list-bullet.png
|
101
|
-
- vendor/assets/images/markitup/list-item.png
|
102
|
-
- vendor/assets/images/markitup/list-numeric.png
|
103
|
-
- vendor/assets/images/markitup/menu.png
|
104
|
-
- vendor/assets/images/markitup/page_white_code.png
|
105
|
-
- vendor/assets/images/markitup/paragraph.png
|
106
|
-
- vendor/assets/images/markitup/picture.png
|
107
|
-
- vendor/assets/images/markitup/preview.png
|
108
|
-
- vendor/assets/images/markitup/quotes.png
|
109
|
-
- vendor/assets/images/markitup/stroke.png
|
110
|
-
- vendor/assets/images/markitup/submenu.png
|
111
|
-
- vendor/assets/images/markitup/tag.png
|
112
|
-
- vendor/assets/images/markitup/text_align_center.png
|
113
|
-
- vendor/assets/images/markitup/text_align_justify.png
|
114
|
-
- vendor/assets/images/markitup/text_align_left.png
|
115
|
-
- vendor/assets/images/markitup/text_align_right.png
|
116
|
-
- vendor/assets/images/markitup/text_indent.png
|
117
|
-
- vendor/assets/images/markitup/text_letterspacing.png
|
118
|
-
- vendor/assets/images/markitup/text_linespacing.png
|
119
|
-
- vendor/assets/images/markitup/text_lowercase.png
|
120
|
-
- vendor/assets/images/markitup/text_padding_bottom.png
|
121
|
-
- vendor/assets/images/markitup/text_padding_left.png
|
122
|
-
- vendor/assets/images/markitup/text_padding_right.png
|
123
|
-
- vendor/assets/images/markitup/text_padding_top.png
|
124
|
-
- vendor/assets/images/markitup/text_uppercase.png
|
125
|
-
- vendor/assets/images/markitup/url.png
|
126
|
-
- vendor/assets/javascripts/markitup-css.js
|
127
|
-
- vendor/assets/javascripts/markitup-html.js
|
128
|
-
- vendor/assets/javascripts/markitup-markdown.js
|
129
|
-
- vendor/assets/javascripts/markitup-textile.js
|
130
|
-
- vendor/assets/javascripts/markitup.js
|
131
|
-
- vendor/assets/javascripts/marmarkitup-texy.js
|
132
|
-
- vendor/assets/javascripts/marmarkitup-wiki.js
|
133
|
-
- vendor/assets/stylesheets/markitup-css.css.erb
|
134
|
-
- vendor/assets/stylesheets/markitup-html.css.erb
|
135
|
-
- vendor/assets/stylesheets/markitup-markdown.css.erb
|
136
|
-
- vendor/assets/stylesheets/markitup-textile.css.erb
|
137
|
-
- vendor/assets/stylesheets/markitup.css.erb
|
138
|
-
- vendor/assets/stylesheets/marmarkitup-texy.css.erb
|
139
|
-
- vendor/assets/stylesheets/marmarkitup-wiki.css.erb
|
140
136
|
homepage: https://github.com/HealthyWeb/markitup-rails
|
141
137
|
licenses: []
|
142
138
|
post_install_message:
|
@@ -160,5 +156,5 @@ rubyforge_project:
|
|
160
156
|
rubygems_version: 1.8.24
|
161
157
|
signing_key:
|
162
158
|
specification_version: 3
|
163
|
-
summary:
|
159
|
+
summary: The markItUp! universal markup editor, bundled for Rails 3.1+ Asset Pipeline.
|
164
160
|
test_files: []
|
data/.gitignore
DELETED
data/README.md
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
markitup-rails
|
2
|
-
========================
|
3
|
-
|
4
|
-
This is a gem that contains the vendor assets for [markitup](http://markitup.jaysalvat.com/home/).
|
5
|
-
|
6
|
-
## Support
|
7
|
-
|
8
|
-
Should support rails 3.0 and higher.
|
9
|
-
|
10
|
-
### Supported markup languages:
|
11
|
-
|
12
|
-
* `html`
|
13
|
-
* `textile`
|
14
|
-
* `markdown`
|
15
|
-
* `wiki`
|
16
|
-
* `texty`
|
17
|
-
* `css`
|
18
|
-
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
### Installing the Gem
|
22
|
-
|
23
|
-
Require `markitup-rails` in your `Gemfile`.
|
24
|
-
|
25
|
-
gem 'markitup-rails'
|
26
|
-
|
27
|
-
Install the gem via `bundle` command.
|
28
|
-
|
29
|
-
|
30
|
-
### Using it in your application
|
31
|
-
|
32
|
-
Add to `application.css`
|
33
|
-
|
34
|
-
*= require markitup
|
35
|
-
*= require markitup-[markup lang]
|
36
|
-
|
37
|
-
Example
|
38
|
-
|
39
|
-
*= require markitup
|
40
|
-
*= require markitup-textile
|
41
|
-
|
42
|
-
And in `application.js`
|
43
|
-
|
44
|
-
//= require markitup
|
45
|
-
//= require markitup-[markup lang]
|
46
|
-
|
47
|
-
Example
|
48
|
-
|
49
|
-
//= require markitup
|
50
|
-
//= require markitup-textile
|
51
|
-
|
52
|
-
|
53
|
-
### Using markitup
|
54
|
-
|
55
|
-
Include in either `application.js` or another file that will be included in the pipelin:
|
56
|
-
|
57
|
-
// To target all text areas
|
58
|
-
$(document).ready(function() {
|
59
|
-
$("textarea").markItUp(mySettings);
|
60
|
-
});
|
61
|
-
|
62
|
-
//----- OR
|
63
|
-
|
64
|
-
// To target a specific ID
|
65
|
-
$(document).ready(function() {
|
66
|
-
$("textarea#my_id").markItUp(mySettings);
|
67
|
-
});
|
68
|
-
|
69
|
-
//----- OR
|
70
|
-
|
71
|
-
// To target a specific class
|
72
|
-
$(document).ready(function() {
|
73
|
-
$("textarea.markitup").markItUp(mySettings);
|
74
|
-
});
|
75
|
-
|
76
|
-
|
77
|
-
See the [markitup documentation](http://markitup.jaysalvat.com/documentation/) for more info.
|
78
|
-
|
79
|
-
----
|
80
|
-
|
81
|
-
*Based on the [blueprint-rails gem](https://github.com/bai/blueprint-rails)*
|
data/markitup-rails.gemspec
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
require './lib/markitup-rails/version'
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = 'markitup-rails'
|
5
|
-
s.version = Markitup::Rails::VERSION
|
6
|
-
s.date = '2012-05-23'
|
7
|
-
s.summary = "MarkItUp for rails."
|
8
|
-
s.description = "Sets up the asset pipeline."
|
9
|
-
s.authors = ["Uri Gorelik"]
|
10
|
-
s.email = 'uri@ndstorefront.com'
|
11
|
-
s.files = ["lib/markitup-rails.rb"]
|
12
|
-
s.homepage =
|
13
|
-
'https://github.com/HealthyWeb/markitup-rails'
|
14
|
-
|
15
|
-
s.files = `git ls-files`.split("\n")
|
16
|
-
s.platform = Gem::Platform::RUBY
|
17
|
-
s.require_path = 'lib'
|
18
|
-
s.add_dependency "railties", "~> 3.0"
|
19
|
-
s.add_development_dependency "bundler", "~> 1.0.0"
|
20
|
-
s.add_development_dependency "rails", "~> 3.0"
|
21
|
-
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|