html-pipeline-bungo 0.5.0 → 0.5.1

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: 43cf0811cb6d5b495f42fbce1c76983c59e7da07
4
- data.tar.gz: 68f668bb184ecaffa7479367d32ddffb37e51051
3
+ metadata.gz: 01a078be7b839fe1c541c079f44d530b4d4874e2
4
+ data.tar.gz: 1df1b2670d2c6d032660bf52f83b21cd118fbac3
5
5
  SHA512:
6
- metadata.gz: 4c687f2a6cc7672f27cea3e5613b14311299ccbb232ffda1ccb158e68cd77f8cd259dd97772a80996eac2c6112de72968c5d529173f0ba1cd99baa5280c36793
7
- data.tar.gz: 84addeb44ff23f3f2ceb81e38dd819ef41db96e9c86ffc27ab37efa8bdd5631fe5c0edf2916d9aa626c46e66946d355507bad19395da7655ab84c5beea285971
6
+ metadata.gz: 4ee613d92e91ea224fc51a825c878a21c3d23391cd837450a99d2b654c955c0ebe3a9a357c0c23fbb52e4b9064710420ed2b8a0fb93f33d7ddc83c608658aea4
7
+ data.tar.gz: 43b67d51413bab82cd33185957253961bda904dccec86c9b7a64601b956268a2e36ca2fd8c61fa4694421e655d08bced0623030ae098ecbb7a81eba26364b1f2
@@ -0,0 +1,17 @@
1
+ module HTML
2
+ class Pipeline
3
+
4
+ class DashFilter < TextFilter
5
+ def call
6
+ dash_filter(@text)
7
+ end
8
+
9
+ private
10
+
11
+ def dash_filter(text)
12
+ text.gsub(':--', "<span class='dash'>――</span>")
13
+ end
14
+ end
15
+
16
+ end
17
+ end
@@ -1,7 +1,7 @@
1
1
  module Html
2
2
  module Pipeline
3
3
  module Bungo
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
6
6
  end
7
7
  end
@@ -1,6 +1,7 @@
1
1
  require "html/pipeline"
2
2
  require "html/pipeline/bungo/version"
3
3
  require "html/pipeline/bungo/bold_filter.rb"
4
+ require "html/pipeline/bungo/dash_filter.rb"
4
5
  require "html/pipeline/bungo/emph_filter.rb"
5
6
  require "html/pipeline/bungo/paragraph_filter.rb"
6
7
  require "html/pipeline/bungo/ruby_filter.rb"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-pipeline-bungo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tetuyoko
@@ -99,6 +99,7 @@ files:
99
99
  - html-pipeline-bungo.gemspec
100
100
  - lib/html/pipeline/bungo.rb
101
101
  - lib/html/pipeline/bungo/bold_filter.rb
102
+ - lib/html/pipeline/bungo/dash_filter.rb
102
103
  - lib/html/pipeline/bungo/emph_filter.rb
103
104
  - lib/html/pipeline/bungo/nowrap_plain_text_input_filter.rb
104
105
  - lib/html/pipeline/bungo/paragraph_filter.rb