cb_nitride 0.1.25 → 0.1.26
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/diamond_number_set.rb +7 -3
- 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: 6a1f84c928b377639e6b716f9cddce877ef1dc54
|
4
|
+
data.tar.gz: 786bcfb1fb9ba07169af54880575364d4a1bd8b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 091a34f5fe5a4c8e71fa86a6fb50e5306a4584ef631fa8c228c559d8aef3fc404ddb05535eb63c06e67d66ddba17826502ae13c554bd00d81bcefeed0b22c2bd
|
7
|
+
data.tar.gz: 83dbb6f895f036ecf120b6fdcfeb553bd24ed599787e24349ba6f91076fde995187d0f84554dc738f34c03a230bf89bfdc4406e230873ac54c28b7e6ffe6a733
|
@@ -10,12 +10,16 @@ module CbNitride
|
|
10
10
|
new.imminent_numbers
|
11
11
|
end
|
12
12
|
|
13
|
+
def self.generate_recent_diamond_numbers
|
14
|
+
generate_for(years: ['06', '07', '08', '09', '10', '11', '12', '13', '14'])
|
15
|
+
end
|
16
|
+
|
13
17
|
def self.generate_all_diamond_numbers
|
14
18
|
new.brute_force_formatted_numbers
|
15
19
|
end
|
16
20
|
|
17
|
-
def self.generate_for(years: years
|
18
|
-
new.brute_force_formatted_numbers(year_range: years
|
21
|
+
def self.generate_for(years: years)
|
22
|
+
new.brute_force_formatted_numbers(year_range: years)
|
19
23
|
end
|
20
24
|
|
21
25
|
def imminent_numbers
|
@@ -24,7 +28,7 @@ module CbNitride
|
|
24
28
|
end.flatten
|
25
29
|
end
|
26
30
|
|
27
|
-
def brute_force_formatted_numbers(year_range:
|
31
|
+
def brute_force_formatted_numbers(year_range: YEAR_CODES, month_range: MONTH_CODES)
|
28
32
|
year_range.map do |year|
|
29
33
|
month_range.map do |month|
|
30
34
|
generate_numbers(year, month)
|
data/lib/cb_nitride/version.rb
CHANGED