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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79f96ec8ab7b58b239db2e9ee08a30118560c1b4
4
- data.tar.gz: b2d40dbe49f036a99d7cf5b4a36e6b97f77cef3e
3
+ metadata.gz: 723359bc440d2f8aceae994d3b97469518ebc8c7
4
+ data.tar.gz: b871f31d9699ce67f2e233438492795b32358b03
5
5
  SHA512:
6
- metadata.gz: 7e4b344516d9fdb1a28cf5ad44bf936cd987ba9458ea381efd149a9c6b97b9a56f52c0089249a3aa6bdbcdcf27c472b63914de12b03e41c1d02abf6c77502a7a
7
- data.tar.gz: 50d10cddee98128cd4ed411894a41a3c87373b207b31c5858c1f80ec89b2dfb14dd7be61380bdfc145c1339e64432ba853fe673ddb655e9bb3d94ea9fd7d545d
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.split("#")[1].match(/\d\D+(PTG)/) ||
82
- title.split('#')[1].match(/(REORDER ED)/) ||
83
- title.split('#')[1].match(/(SKETCH ED)/) ||
84
- title.split('#')[1].match(/(FOIL CVR)/) ||
85
- title.split("#")[1].include?("VAR INCENTIVE CVR") ||
86
- title.split("#")[1].include?("DIRECT MARKET CVR") ||
87
- title.split("#")[1].include?("MAIN CVRS")
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
@@ -1,3 +1,3 @@
1
1
  module CbNitride
2
- VERSION = "0.1.40"
2
+ VERSION = "0.1.41"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb_nitride
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.40
4
+ version: 0.1.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Jarvis