cb_nitride 0.1.40 → 0.1.41
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 +4 -4
- data/lib/cb_nitride/category_sorter.rb +12 -7
- data/lib/cb_nitride/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 723359bc440d2f8aceae994d3b97469518ebc8c7
|
|
4
|
+
data.tar.gz: b871f31d9699ce67f2e233438492795b32358b03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7af938ac8431f2c102fe1d0cbca697e92a462b981415fb76de89ce1c04af52a07f83a8c5751eb6dee6d49f5346e1edf9cbcc05118ef8316677e32f3fda39b6fe
|
|
7
|
+
data.tar.gz: 5ec776da91d0cc4c9c8080a64aaa87f5116012c504cb15fa2b027bdc61ed2ff85b1a8da5f55eba8de6c6d4d7e855542e4610c88b11317d45e26567a01a2188c0
|
|
@@ -78,13 +78,18 @@ module CbNitride
|
|
|
78
78
|
title.match(strict_issue_title_matcher("RED SONJA")) ||
|
|
79
79
|
title.match(strict_issue_title_matcher("VAMPIRELLA")) ||
|
|
80
80
|
title.match(strict_issue_title_matcher("ARMY OF DARKNESS VS HACK SLASH")) ||
|
|
81
|
-
title
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
split_issue_patterns(title)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def split_issue_patterns(title)
|
|
85
|
+
return nil unless title.split("#")[1]
|
|
86
|
+
title.split("#")[1].match(/\d\D+(PTG)/) ||
|
|
87
|
+
title.split('#')[1].match(/(REORDER ED)/) ||
|
|
88
|
+
title.split('#')[1].match(/(SKETCH ED)/) ||
|
|
89
|
+
title.split('#')[1].match(/(FOIL CVR)/) ||
|
|
90
|
+
title.split("#")[1].include?("VAR INCENTIVE CVR") ||
|
|
91
|
+
title.split("#")[1].include?("DIRECT MARKET CVR") ||
|
|
92
|
+
title.split("#")[1].include?("MAIN CVRS")
|
|
88
93
|
end
|
|
89
94
|
end
|
|
90
95
|
end
|
data/lib/cb_nitride/version.rb
CHANGED