html-pipeline-bungo 0.3.5 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77c3efefacb98fb699a122aaf6b73a2e70ee6903
|
4
|
+
data.tar.gz: 830c25a52f62b7eeeff418e5d9970ec94e69a01a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3affbb69dcca67e1b16033f1dea598cd23361fc48e35081083dcfbd27754176468d4f26f36f209fef3560b679b44235ed81836580ce25c54970463bda8a1184
|
7
|
+
data.tar.gz: fdc412a4518f0edd00ad277c3192567045d6709bf48d3d88e5ff2c5132b5f0500f3e81009dd3ee37e49daaf2b46965a3da46d766d2f3764b0cb2b66143dabf79
|
data/html-pipeline-bungo.gemspec
CHANGED
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_dependency "html-pipeline", "~> 2.4.1"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.12"
|
25
|
+
spec.add_development_dependency "escape_utils", "~> 1.0"
|
25
26
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
27
|
spec.add_development_dependency "minitest", "~> 5.0"
|
27
28
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
begin
|
2
|
+
require "escape_utils"
|
3
|
+
rescue LoadError => _
|
4
|
+
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'escape_utils' for PlainTextInputFilter. See README.md for details."
|
5
|
+
end
|
6
|
+
|
7
|
+
module HTML
|
8
|
+
class Pipeline
|
9
|
+
class NowrapPlainTextInputFilter < TextFilter
|
10
|
+
def call
|
11
|
+
EscapeUtils.escape_html(@text, false)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/html/pipeline/bungo.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
require "html/pipeline"
|
2
2
|
require "html/pipeline/bungo/version"
|
3
3
|
require "html/pipeline/bungo/bungo_filter.rb"
|
4
|
+
require "html/pipeline/bungo/nowrap_plain_text_input_filter.rb"
|
4
5
|
|
5
6
|
module Html
|
6
7
|
module Pipeline
|
7
|
-
autoload :BungoFilter, 'html/pipeline/
|
8
|
+
autoload :BungoFilter, 'html/pipeline/bungo/bungo_filter'
|
9
|
+
autoload :NowrapPlainTextFilter, 'html/pipeline/bungo/nowrap_plain_text_input_filter'
|
8
10
|
end
|
9
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html-pipeline-bungo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tetuyoko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: html-pipeline
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.12'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: escape_utils
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -85,6 +99,7 @@ files:
|
|
85
99
|
- html-pipeline-bungo.gemspec
|
86
100
|
- lib/html/pipeline/bungo.rb
|
87
101
|
- lib/html/pipeline/bungo/bungo_filter.rb
|
102
|
+
- lib/html/pipeline/bungo/nowrap_plain_text_input_filter.rb
|
88
103
|
- lib/html/pipeline/bungo/version.rb
|
89
104
|
homepage: https://github.com/tetuyoko/html-pipeline-bungo
|
90
105
|
licenses:
|