amakanize 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/amakanize/filters/spaces_between_exclamations_deletion_filter.rb +12 -0
- data/lib/amakanize/series_name.rb +1 -0
- data/lib/amakanize/version.rb +1 -1
- data/lib/amakanize.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64b96abe99798d7ccb7de06558d5ef986757c622
|
4
|
+
data.tar.gz: 97d48403adc0544866b0c4d404e8566a8a145421
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 286377a17de01855aed5be495ac111487ed80e3ad0b630f0815b49d28d03d37fa0b3d47bf9d0ccd3ade029325a4c84d2ec2f9159e22dfa610c0eeb48fe3fba14
|
7
|
+
data.tar.gz: f3fe64d424b39b75266b026da1f6370c05f3aceb34f7b09b4a1c618c11f57e2e1f21e6e468122618a26624c49e6804c4bf6615ebc975608ef64cd84d50bc2279
|
data/CHANGELOG.md
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
module Amakanize
|
2
|
+
module Filters
|
3
|
+
class SpacesBetweenExclamationsDeletionFilter < BaseFilter
|
4
|
+
# @note Override
|
5
|
+
# @param string [String] e.g. `"ばくおん! !"`
|
6
|
+
# @return [String] e.g. `"ばくおん!!"`
|
7
|
+
def call(string)
|
8
|
+
string.gsub(/!\s+!/, "!!")
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -6,6 +6,7 @@ module Amakanize
|
|
6
6
|
@filters ||= [
|
7
7
|
::Amakanize::Filters::HtmlUnescapeFilter.new,
|
8
8
|
::Amakanize::Filters::NormalizationFilter.new,
|
9
|
+
::Amakanize::Filters::SpacesBetweenExclamationsDeletionFilter.new,
|
9
10
|
::Amakanize::Filters::TrailingParenthesesDeletionFilter.new,
|
10
11
|
::Amakanize::Filters::TrailingVolumeNumberDeletionFilter.new,
|
11
12
|
::Amakanize::Filters::TrailingSeriesNamePayloadDeletionFilter.new,
|
data/lib/amakanize/version.rb
CHANGED
data/lib/amakanize.rb
CHANGED
@@ -6,6 +6,7 @@ require "amakanize/filters/normalization_filter"
|
|
6
6
|
require "amakanize/filters/parentheses_deletion_filter"
|
7
7
|
require "amakanize/filters/role_name_deletion_filter"
|
8
8
|
require "amakanize/filters/space_deletion_filter"
|
9
|
+
require "amakanize/filters/spaces_between_exclamations_deletion_filter"
|
9
10
|
require "amakanize/filters/strip_filter"
|
10
11
|
require "amakanize/filters/trailing_author_name_payload_deletion_filter"
|
11
12
|
require "amakanize/filters/trailing_parentheses_deletion_filter"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amakanize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- r7kamura
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- lib/amakanize/filters/parentheses_deletion_filter.rb
|
94
94
|
- lib/amakanize/filters/role_name_deletion_filter.rb
|
95
95
|
- lib/amakanize/filters/space_deletion_filter.rb
|
96
|
+
- lib/amakanize/filters/spaces_between_exclamations_deletion_filter.rb
|
96
97
|
- lib/amakanize/filters/strip_filter.rb
|
97
98
|
- lib/amakanize/filters/trailing_author_name_payload_deletion_filter.rb
|
98
99
|
- lib/amakanize/filters/trailing_parentheses_deletion_filter.rb
|