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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3fcc025422fae7b15a05786dc1c61a6501b6ced
4
- data.tar.gz: 80ebee9fb762875b6d398a2b2b3058cf07164616
3
+ metadata.gz: 93f4436426d9597cff0264f811ffc7788baf4491
4
+ data.tar.gz: 843a14c73cd07f3061ce7b8ddd079c1d61bfac84
5
5
  SHA512:
6
- metadata.gz: 52f5812abf8639bc5cb8b5df02a341a8d6175e1c7040f7fd5063b897b9a9bcf54ebe0c1e4d8b12814dcbd9eb9afa184d224e6fe6a255fd49b4a0b9301e1ea7a6
7
- data.tar.gz: 9d6c77a0d13280296ad6d4e9631398a1fb741f1557e5fdaaf44f7ff4ea1e21c11e2593bfdd33f0a95270a9f5890a9db17dc5fd6919e88a7bd6b70bb5a9d7c48b
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].match(/(CVR)\s[A]/)
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
@@ -1,3 +1,3 @@
1
1
  module CbNitride
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.19"
3
3
  end
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.16
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-14 00:00:00.000000000 Z
11
+ date: 2013-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler