amakanize 0.1.11 → 0.1.12

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 887fc56cde24ae116d73ae198ba4246a90937cba
4
- data.tar.gz: ec9bf6ab0dfa007bbc24f46b8a16583d59df6c38
3
+ metadata.gz: 41c07827e3721af889fafd8087bdd99a1099290f
4
+ data.tar.gz: 8d92106c7d8d3fe978814b76dc8eda32f6324c3a
5
5
  SHA512:
6
- metadata.gz: 958909d0a39723c394c5944e9a5b3202895af943ee0d8f213f3c4c5ee2e930748be19cc500c48138df8f8390f6e026f04b87fddf8e153198a4d798b067858392
7
- data.tar.gz: b461db6c5c76a59c580f55aedaa0bb7a8398bf1eea854e50984d71481107c90c379e6a2687843d54d6e63b14aa5a17d5a255687beecbc632cb816bcab05f0d1e
6
+ metadata.gz: 134d9d21b1643be503b823495a746a3bf9d3785cce30dc6bdb1335c356ffb93851fb5e1638873baa87a0bd098e8307780c2e5cd819088a3a17194ccff32a124a
7
+ data.tar.gz: 94b6f42c5360225dabcd7ebdc238a3e4e61663d4c49ddb10cbe64b0c08b41caf7758004faee3cb606b7b3aff7747a4c8ce45bf767471b232057610456cb0bd6b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.1.12
2
+ - Support 第N版
3
+
1
4
  ## 0.1.11
2
5
  - Improve volume detection for アニウッド大通り
3
6
 
@@ -5,8 +5,8 @@ module Amakanize
5
5
  # @param string [String] e.g. `"刀語 第十一話 毒刀・鍍"`, `"アニウッド大通り 1: アニメ監督一家物語"`
6
6
  # @return [String] e.g. `"刀語"`, `"アニウッド大通り"`
7
7
  def call(string)
8
- string.gsub(/\s*第?#{Amakanize::PATTERN_OF_NUMERIC_CHARACTER}+(?:話|巻).*/, "")
9
- .gsub(/\s+第?#{Amakanize::PATTERN_OF_NUMERIC_CHARACTER}+(?:話|巻)?:\s+.*/, "")
8
+ string.gsub(/\s*第?#{Amakanize::PATTERN_OF_NUMERIC_CHARACTER}+(?:話|巻|版).*/, "")
9
+ .gsub(/\s+第?#{Amakanize::PATTERN_OF_NUMERIC_CHARACTER}+(?:話|巻|版)?:\s+.*/, "")
10
10
  end
11
11
  end
12
12
  end
@@ -5,7 +5,7 @@ module Amakanize
5
5
  # @param string [String] e.g. `"やはり俺の青春ラブコメはまちがっている。4"`
6
6
  # @return [String] e.g. `"やはり俺の青春ラブコメはまちがっている。"`
7
7
  def call(string)
8
- string.gsub(/\s*第?#{Amakanize::PATTERN_OF_NUMERIC_CHARACTER}+(?:話|巻)?\z/, "")
8
+ string.gsub(/\s*第?#{Amakanize::PATTERN_OF_NUMERIC_CHARACTER}+(?:話|巻|版)?\z/, "")
9
9
  end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Amakanize
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amakanize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - r7kamura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-18 00:00:00.000000000 Z
11
+ date: 2016-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport