rails-wysihtml5 0.3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Very simple basic rule set
3
+ *
4
+ * Allows
5
+ * <i>, <em>, <b>, <strong>, <p>, <div>, <a href="http://foo"></a>, <br>, <span>, <ol>, <ul>, <li>
6
+ *
7
+ * For a proper documentation of the format check advanced.js
8
+ */
9
+ var wysihtml5ParserRules = {
10
+ tags: {
11
+ strong: {},
12
+ b: {},
13
+ i: {},
14
+ em: {},
15
+ br: {},
16
+ p: {},
17
+ div: {},
18
+ span: {},
19
+ ul: {},
20
+ ol: {},
21
+ li: {},
22
+ a: {
23
+ set_attributes: {
24
+ target: "_blank",
25
+ rel: "nofollow"
26
+ },
27
+ check_attributes: {
28
+ href: "url" // important to avoid XSS
29
+ }
30
+ }
31
+ }
32
+ };
metadata ADDED
@@ -0,0 +1,57 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails-wysihtml5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - foohey
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-17 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Integration in the asset pipeline with an optional generator for parser
15
+ rules
16
+ email:
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - MIT-LICENSE
23
+ - README.md
24
+ - Rakefile
25
+ - lib/generators/wysihtml5/parser_rules_generator.rb
26
+ - lib/rails-wysihtml5.rb
27
+ - lib/rails-wysihtml5/version.rb
28
+ - lib/tasks/rails-wysihtml5_tasks.rake
29
+ - rails-wysihtml5.gemspec
30
+ - vendor/assets/javascripts/wysihtml5.js
31
+ - vendor/assets/javascripts/wysihtml5/parser_rules/advanced.js
32
+ - vendor/assets/javascripts/wysihtml5/parser_rules/simple.js
33
+ homepage: http://github.com/foohey/rails-wysihtml5
34
+ licenses: []
35
+ post_install_message:
36
+ rdoc_options: []
37
+ require_paths:
38
+ - lib
39
+ required_ruby_version: !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ required_rubygems_version: !ruby/object:Gem::Requirement
46
+ none: false
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ requirements: []
52
+ rubyforge_project:
53
+ rubygems_version: 1.8.24
54
+ signing_key:
55
+ specification_version: 3
56
+ summary: Wysihtml5 for rails
57
+ test_files: []