markitup_erb-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +22 -0
  4. data/README.md +71 -0
  5. data/Rakefile +2 -0
  6. data/lib/markitup_erb/rails/engine.rb +8 -0
  7. data/lib/markitup_erb/rails/version.rb +5 -0
  8. data/lib/markitup_erb-rails.rb +7 -0
  9. data/markitup_erb-rails.gemspec +22 -0
  10. data/vendor/assets/images/markitup/sets/bbcode/bold.png +0 -0
  11. data/vendor/assets/images/markitup/sets/bbcode/clean.png +0 -0
  12. data/vendor/assets/images/markitup/sets/bbcode/code.png +0 -0
  13. data/vendor/assets/images/markitup/sets/bbcode/fonts.png +0 -0
  14. data/vendor/assets/images/markitup/sets/bbcode/italic.png +0 -0
  15. data/vendor/assets/images/markitup/sets/bbcode/link.png +0 -0
  16. data/vendor/assets/images/markitup/sets/bbcode/list-bullet.png +0 -0
  17. data/vendor/assets/images/markitup/sets/bbcode/list-item.png +0 -0
  18. data/vendor/assets/images/markitup/sets/bbcode/list-numeric.png +0 -0
  19. data/vendor/assets/images/markitup/sets/bbcode/picture.png +0 -0
  20. data/vendor/assets/images/markitup/sets/bbcode/preview.png +0 -0
  21. data/vendor/assets/images/markitup/sets/bbcode/quotes.png +0 -0
  22. data/vendor/assets/images/markitup/sets/bbcode/stroke.png +0 -0
  23. data/vendor/assets/images/markitup/sets/bbcode/underline.png +0 -0
  24. data/vendor/assets/images/markitup/sets/default/bold.png +0 -0
  25. data/vendor/assets/images/markitup/sets/default/clean.png +0 -0
  26. data/vendor/assets/images/markitup/sets/default/image.png +0 -0
  27. data/vendor/assets/images/markitup/sets/default/italic.png +0 -0
  28. data/vendor/assets/images/markitup/sets/default/link.png +0 -0
  29. data/vendor/assets/images/markitup/sets/default/list-bullet.png +0 -0
  30. data/vendor/assets/images/markitup/sets/default/list-numeric.png +0 -0
  31. data/vendor/assets/images/markitup/sets/default/picture.png +0 -0
  32. data/vendor/assets/images/markitup/sets/default/preview.png +0 -0
  33. data/vendor/assets/images/markitup/sets/default/stroke.png +0 -0
  34. data/vendor/assets/images/markitup/sets/html/bold.png +0 -0
  35. data/vendor/assets/images/markitup/sets/html/clean.png +0 -0
  36. data/vendor/assets/images/markitup/sets/html/h1.png +0 -0
  37. data/vendor/assets/images/markitup/sets/html/h2.png +0 -0
  38. data/vendor/assets/images/markitup/sets/html/h3.png +0 -0
  39. data/vendor/assets/images/markitup/sets/html/h4.png +0 -0
  40. data/vendor/assets/images/markitup/sets/html/h5.png +0 -0
  41. data/vendor/assets/images/markitup/sets/html/h6.png +0 -0
  42. data/vendor/assets/images/markitup/sets/html/image.png +0 -0
  43. data/vendor/assets/images/markitup/sets/html/italic.png +0 -0
  44. data/vendor/assets/images/markitup/sets/html/link.png +0 -0
  45. data/vendor/assets/images/markitup/sets/html/list-bullet.png +0 -0
  46. data/vendor/assets/images/markitup/sets/html/list-item.png +0 -0
  47. data/vendor/assets/images/markitup/sets/html/list-numeric.png +0 -0
  48. data/vendor/assets/images/markitup/sets/html/paragraph.png +0 -0
  49. data/vendor/assets/images/markitup/sets/html/picture.png +0 -0
  50. data/vendor/assets/images/markitup/sets/html/preview.png +0 -0
  51. data/vendor/assets/images/markitup/sets/html/stroke.png +0 -0
  52. data/vendor/assets/images/markitup/sets/markdown/bold.png +0 -0
  53. data/vendor/assets/images/markitup/sets/markdown/code.png +0 -0
  54. data/vendor/assets/images/markitup/sets/markdown/h1.png +0 -0
  55. data/vendor/assets/images/markitup/sets/markdown/h2.png +0 -0
  56. data/vendor/assets/images/markitup/sets/markdown/h3.png +0 -0
  57. data/vendor/assets/images/markitup/sets/markdown/h4.png +0 -0
  58. data/vendor/assets/images/markitup/sets/markdown/h5.png +0 -0
  59. data/vendor/assets/images/markitup/sets/markdown/h6.png +0 -0
  60. data/vendor/assets/images/markitup/sets/markdown/italic.png +0 -0
  61. data/vendor/assets/images/markitup/sets/markdown/link.png +0 -0
  62. data/vendor/assets/images/markitup/sets/markdown/list-bullet.png +0 -0
  63. data/vendor/assets/images/markitup/sets/markdown/list-numeric.png +0 -0
  64. data/vendor/assets/images/markitup/sets/markdown/picture.png +0 -0
  65. data/vendor/assets/images/markitup/sets/markdown/preview.png +0 -0
  66. data/vendor/assets/images/markitup/sets/markdown/quotes.png +0 -0
  67. data/vendor/assets/images/markitup/sets/textile/bold.png +0 -0
  68. data/vendor/assets/images/markitup/sets/textile/code.png +0 -0
  69. data/vendor/assets/images/markitup/sets/textile/h1.png +0 -0
  70. data/vendor/assets/images/markitup/sets/textile/h2.png +0 -0
  71. data/vendor/assets/images/markitup/sets/textile/h3.png +0 -0
  72. data/vendor/assets/images/markitup/sets/textile/h4.png +0 -0
  73. data/vendor/assets/images/markitup/sets/textile/h5.png +0 -0
  74. data/vendor/assets/images/markitup/sets/textile/h6.png +0 -0
  75. data/vendor/assets/images/markitup/sets/textile/italic.png +0 -0
  76. data/vendor/assets/images/markitup/sets/textile/link.png +0 -0
  77. data/vendor/assets/images/markitup/sets/textile/list-bullet.png +0 -0
  78. data/vendor/assets/images/markitup/sets/textile/list-numeric.png +0 -0
  79. data/vendor/assets/images/markitup/sets/textile/paragraph.png +0 -0
  80. data/vendor/assets/images/markitup/sets/textile/picture.png +0 -0
  81. data/vendor/assets/images/markitup/sets/textile/preview.png +0 -0
  82. data/vendor/assets/images/markitup/sets/textile/quotes.png +0 -0
  83. data/vendor/assets/images/markitup/sets/textile/stroke.png +0 -0
  84. data/vendor/assets/images/markitup/sets/wiki/bold.png +0 -0
  85. data/vendor/assets/images/markitup/sets/wiki/code.png +0 -0
  86. data/vendor/assets/images/markitup/sets/wiki/h1.png +0 -0
  87. data/vendor/assets/images/markitup/sets/wiki/h2.png +0 -0
  88. data/vendor/assets/images/markitup/sets/wiki/h3.png +0 -0
  89. data/vendor/assets/images/markitup/sets/wiki/h4.png +0 -0
  90. data/vendor/assets/images/markitup/sets/wiki/h5.png +0 -0
  91. data/vendor/assets/images/markitup/sets/wiki/h6.png +0 -0
  92. data/vendor/assets/images/markitup/sets/wiki/italic.png +0 -0
  93. data/vendor/assets/images/markitup/sets/wiki/link.png +0 -0
  94. data/vendor/assets/images/markitup/sets/wiki/list-bullet.png +0 -0
  95. data/vendor/assets/images/markitup/sets/wiki/list-numeric.png +0 -0
  96. data/vendor/assets/images/markitup/sets/wiki/picture.png +0 -0
  97. data/vendor/assets/images/markitup/sets/wiki/preview.png +0 -0
  98. data/vendor/assets/images/markitup/sets/wiki/quotes.png +0 -0
  99. data/vendor/assets/images/markitup/sets/wiki/stroke.png +0 -0
  100. data/vendor/assets/images/markitup/sets/wiki/url.png +0 -0
  101. data/vendor/assets/images/markitup/skins/markitup/bg-container.png +0 -0
  102. data/vendor/assets/images/markitup/skins/markitup/bg-editor-bbcode.png +0 -0
  103. data/vendor/assets/images/markitup/skins/markitup/bg-editor-dotclear.png +0 -0
  104. data/vendor/assets/images/markitup/skins/markitup/bg-editor-html.png +0 -0
  105. data/vendor/assets/images/markitup/skins/markitup/bg-editor-json.png +0 -0
  106. data/vendor/assets/images/markitup/skins/markitup/bg-editor-markdown.png +0 -0
  107. data/vendor/assets/images/markitup/skins/markitup/bg-editor-textile.png +0 -0
  108. data/vendor/assets/images/markitup/skins/markitup/bg-editor-wiki.png +0 -0
  109. data/vendor/assets/images/markitup/skins/markitup/bg-editor-xml.png +0 -0
  110. data/vendor/assets/images/markitup/skins/markitup/bg-editor.png +0 -0
  111. data/vendor/assets/images/markitup/skins/markitup/handle.png +0 -0
  112. data/vendor/assets/images/markitup/skins/markitup/menu.png +0 -0
  113. data/vendor/assets/images/markitup/skins/markitup/submenu.png +0 -0
  114. data/vendor/assets/images/markitup/skins/simple/handle.png +0 -0
  115. data/vendor/assets/images/markitup/skins/simple/menu.png +0 -0
  116. data/vendor/assets/images/markitup/skins/simple/submenu.png +0 -0
  117. data/vendor/assets/javascripts/markitup/jquery.markitup.js +593 -0
  118. data/vendor/assets/javascripts/markitup/sets/bbcode/set.js +39 -0
  119. data/vendor/assets/javascripts/markitup/sets/default/set.js +30 -0
  120. data/vendor/assets/javascripts/markitup/sets/html/set.js +39 -0
  121. data/vendor/assets/javascripts/markitup/sets/markdown/set.js +52 -0
  122. data/vendor/assets/javascripts/markitup/sets/textile/set.js +40 -0
  123. data/vendor/assets/javascripts/markitup/sets/wiki/set.js +37 -0
  124. data/vendor/assets/stylesheets/markitup/sets/bbcode/style.css.erb +47 -0
  125. data/vendor/assets/stylesheets/markitup/sets/default/style.css.erb +34 -0
  126. data/vendor/assets/stylesheets/markitup/sets/html/style.css.erb +59 -0
  127. data/vendor/assets/stylesheets/markitup/sets/markdown/style.css.erb +54 -0
  128. data/vendor/assets/stylesheets/markitup/sets/textile/style.css.erb +60 -0
  129. data/vendor/assets/stylesheets/markitup/sets/wiki/style.css.erb +57 -0
  130. data/vendor/assets/stylesheets/markitup/skins/markitup/style.css.erb +147 -0
  131. data/vendor/assets/stylesheets/markitup/skins/simple/style.css.erb +118 -0
  132. metadata +196 -0
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in markitup_erb-rails.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Juan Felipe Alvarez Saldarriaga
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # MarkitupErb::Rails
2
+
3
+ Vanilla [markItUp!](http://markitup.jaysalvat.com) for Rails 3.x, works with ERB, so, no extra gems needed like SCSS (huh?) or LESS.
4
+ It comes with these sets from markItUp!: Html, Textile, Wiki Syntax, Markdown, and BBcode, if
5
+ you use one of them maybe you will need to add other gems to parse it ;-).
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ gem "markitup_erb-rails"
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install markitup_erb-rails
20
+
21
+ ## Usage
22
+
23
+ In `app/assets/javascripts/application.js` add this:
24
+
25
+ ```javascript
26
+ //= require markitup/jquery.markitup
27
+ //= require markitup/sets/default/set
28
+ ```
29
+
30
+ Now, in `app/assets/stylesheets/application.css` add this:
31
+
32
+ ```css
33
+ *= require markitup/skins/simple/style
34
+ *= require markitup/sets/default/style
35
+ ```
36
+
37
+ This gem comes with this extra sets from markItUp!: html, textile, wiki, markdown, and bbcode. To use it just
38
+ replace `sets` lines in `app/assets/javascripts/application.js` and `app/assets/stylesheets/application.css`.
39
+
40
+ `app/assets/javascripts/application.js`:
41
+
42
+ ```javascript
43
+ //= require markitup/jquery.markitup
44
+ //= require markitup/sets/markdown/set
45
+ ```
46
+
47
+ `app/assets/stylesheets/application.css`:
48
+
49
+ ```css
50
+ *= require markitup/skins/simple/style
51
+ *= require markitup/sets/markdown/style
52
+ ```
53
+
54
+ In order to use [markItUp!](http://markitup.jaysalvat.com) follow the
55
+ [documentation](http://markitup.jaysalvat.com/documentation) from step 4 :-).
56
+
57
+ ## Contributing
58
+
59
+ 1. Fork it
60
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
61
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
62
+ 4. Push to the branch (`git push origin my-new-feature`)
63
+ 5. Create new Pull Request
64
+
65
+ ## License
66
+
67
+ Copyright (C) 2007-2011 Jay Salvat. [markItUp!](http://markitup.jaysalvat.com)
68
+ is released under both the MIT and GPL Open Source licenses.
69
+
70
+ Copyright (C) 2012 Juan Felipe Alvarez Saldarriaga. MarkitupErb::Rails is distributed
71
+ under the MIT license.
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,8 @@
1
+ require "rails"
2
+
3
+ module MarkitupErb
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ module MarkitupErb
2
+ module Rails
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,7 @@
1
+ module MarkitupErb
2
+ module Rails
3
+ require "markitup_erb/rails/engine" if defined?(Rails)
4
+ end
5
+ end
6
+
7
+ require "markitup_erb/rails/version"
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/markitup_erb/rails/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Juan Felipe Alvarez Saldarriaga"]
6
+ gem.email = ["nebiros@gmail.com"]
7
+ gem.description = <<-EOF
8
+ Vanilla markItUp! for Rails 3.x, works with ERB, so, no extra gems needed like SCSS (huh?) or LESS.
9
+ It comes with these sets from markItUp!: Html, Textile, Wiki Syntax, Markdown, and BBcode, if
10
+ you use one of them maybe you will need to add other gems to parse it ;-).
11
+ EOF
12
+ gem.summary = %q{Vanilla markItUp! for Rails 3.x}
13
+ gem.homepage = "https://github.com/nebiros/markitup_erb-rails"
14
+
15
+ gem.files = `git ls-files`.split($\)
16
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
+ gem.name = "markitup_erb-rails"
19
+ gem.require_paths = ["lib"]
20
+ gem.version = MarkitupErb::Rails::VERSION
21
+ gem.add_runtime_dependency "rails", "~> 3.1"
22
+ end