cb_nitride 0.1.16 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cb_nitride/category_sorter.rb +14 -1
- data/lib/cb_nitride/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93f4436426d9597cff0264f811ffc7788baf4491
|
4
|
+
data.tar.gz: 843a14c73cd07f3061ce7b8ddd079c1d61bfac84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfe2451f13775b4709376feb073787a70bf44d158d76727b523d5df7c57115ad413e456bc11c5589f73d06e103f19cce5a18f3bf6e98cab5b0e2e8456026ad1c
|
7
|
+
data.tar.gz: cad7ce264a8247fe788ac9950f8204933e39c1ffeeebb0481e5ea8e9fff9389c4c21778e279bd938ca19f876d54b2ffd18aa891749e53f95198e97311907bdb4
|
@@ -32,7 +32,7 @@ module CbNitride
|
|
32
32
|
|
33
33
|
def is_issue?
|
34
34
|
return @is_issue unless @is_issue.nil?
|
35
|
-
if hash[:title]
|
35
|
+
if specific_issue_patterns(hash[:title])
|
36
36
|
@is_issue = true
|
37
37
|
elsif is_variant?
|
38
38
|
@is_issue = false
|
@@ -66,5 +66,18 @@ module CbNitride
|
|
66
66
|
end
|
67
67
|
return @is_merch
|
68
68
|
end
|
69
|
+
|
70
|
+
def strict_issue_title_matcher(title)
|
71
|
+
/^(#{title})\s[#]/
|
72
|
+
end
|
73
|
+
|
74
|
+
def specific_issue_patterns(title)
|
75
|
+
title.match(/(CVR)\s[A]/) |
|
76
|
+
title.match(strict_issue_title_matcher("RED SONJA")) ||
|
77
|
+
title.match(strict_issue_title_matcher("VAMPIRELLA")) ||
|
78
|
+
title.match(strict_issue_title_matcher("ARMY OF DARKNESS VS HACK SLASH")) ||
|
79
|
+
title.include?("DIRECT MARKET CVR") ||
|
80
|
+
title.include?("MAIN CVRS")
|
81
|
+
end
|
69
82
|
end
|
70
83
|
end
|
data/lib/cb_nitride/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cb_nitride
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Jarvis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|