-
Notifications
You must be signed in to change notification settings - Fork 0
/
i_was_the_one.rb
49 lines (43 loc) · 2.92 KB
/
i_was_the_one.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# `.........-` `:/:::://.`
# `+/``+ssss:``-/:` `:o+y. `::::-----``
# -+- :hmNNmdhs- `o++` `-:--/ -/... ./shhyoy. +mmmmds+:--...`
# .//``odmNmmd+++` :+/h:-------------:+. ./...-..........---/--:.------// -.--------//o//o+/+- :hhdmmmmmh/`-/-`
# `:+- :ymNmmyy:...-:` /: ./////////////- ::/:/- `++++++++` -y /:.`.////+- /////- `/+++++++. :- .::+sydmNm+ `/+.
# -+:` /syyyo:--:+oso` /: ---:::::::syys. -yoy+s` :mmmmmmmd- .h` ``:osshhyyy` /oshhs` -:::::::. :: `-..-/dmo` `/yo:
# `/o:--------:+syyy++``+s+++++++++/``:h+os``oshdos``odhhhddyy-`.h.`.ssyhmmdmoh/``o+mmho``:++++++++++y+``----::``-oyss.
# +sssssssyyyyyhdmmsyo-+/----------.`.yooy-`-hodss/``---------.`.h-`.sohdhsymhsy.`:+yNmy/`.-----------:++ooooooo+sss+`
# `+dmmmdddddmmNNddhsyosooooooooooooooysoysssyymssssssssssssssssshyssyoh:` .mhsyssssodddyooooooooooooooysoyyyyyyyyy/
# /mNmdddhmdmmdy+-+mdhhhhhhhhhhhhhhhmhhyhhhmdmmdhhhhhhhhhhhhhhhdhhhsm+ ydddhhhhd-hdmdddddddddddddddyhdhdmmNms.
# .---.......` -yhNmmhddhhhdhmhmhddmNNmyyy+dmNdydhyyyhddhmmmmNmhh. -hyhNNNh: .mNmdmdddhhhdddmmyssssssso:
# `/oooooooooooooo:`-+o+/. `+oo+o++++ooo+oooooo- `-+oo/` :oooooooooooooo/
#
require('date')
require_relative('XROSS THE XOUL/lib/xross-the-xoul/version')
module COOLTRAINER
module DistorteD
# DD's epoch is the `btime` of the original `cooltrainer-image.rb` ♎
BEGINNING_OF_LIFE = ::Time.new(2018, 9, 26, 9, 4, 11, in: ?R)
# DD's version number is automatic.
# - major version: years since epoch.
# - minor version: days-of-year since epoch.
VERSION = ::Time::now.yield_self {
::XROSS::THE::Version::TripleCounter.new(
_1.year - BEGINNING_OF_LIFE.year,
(_1.yday - BEGINNING_OF_LIFE.yday) % (::Date::gregorian_leap?(_1.year) ? 366 : 365),
# Add a third level of differentiation here if I ever need to do two releases on the same day.
)
}
I_WAS_THE_ONE = ::Hash[
:required_ruby_version= => '>= 3.2.0',
:version= => ::COOLTRAINER::DistorteD::VERSION,
:authors= => ['okeeblow'],
:email= => ['[email protected]'],
:homepage= => 'https://cooltrainer.org',
:license= => 'AGPL-3.0',
]
end # DistorteD
end # COOLTRAINER
# Required reading:
# https://yehudakatz.com/2010/04/02/using-gemspecs-as-intended/
# https://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/