mooncal 0.0.1 → 0.0.2
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 +4 -4
- data/bin/moon +6 -0
- data/lib/moon.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed4a09376896af9088bb7a7d5e017ccda30c366bcc85eb40fc2b193256d2d785
|
4
|
+
data.tar.gz: 695d2bc2cd96b2c3bc474a8bf3c8b0918fe122129cd43dcd1403d93ebcda85d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d278ffacc6b3012dbb8781c9e70d75956002399f404f1d80ceaef227e7b1f8596e31c1dfbccf94a7c9c65ff4785f41d756747538d821a851052609253e7e06ab
|
7
|
+
data.tar.gz: 4d90d362827a0bfac9ae94a9e1b47a33d1a1b01d1070b63eeeb00a43257b2bef4d5a1f871548784db136f534dd905984e14183948c9e30fcfd5f677ecb17f03b
|
data/bin/moon
CHANGED
@@ -10,15 +10,21 @@ arg, *other_args = ARGV
|
|
10
10
|
case arg
|
11
11
|
when "today"
|
12
12
|
puts MoonTerm.new.moon_day
|
13
|
+
puts ""
|
13
14
|
when "week"
|
14
15
|
puts MoonTerm.new.moon_week
|
16
|
+
puts ""
|
15
17
|
when "month"
|
16
18
|
puts MoonTerm.new.moon_month
|
19
|
+
puts ""
|
17
20
|
when "-h"
|
18
21
|
puts MoonTerm.new.help_text
|
22
|
+
puts ""
|
19
23
|
when "help"
|
20
24
|
puts MoonTerm.new.help_text
|
25
|
+
puts ""
|
21
26
|
else
|
22
27
|
puts MoonTerm.new.moon_month
|
28
|
+
puts ""
|
23
29
|
end
|
24
30
|
|
data/lib/moon.rb
CHANGED
@@ -57,7 +57,7 @@ class MoonTerm
|
|
57
57
|
end
|
58
58
|
table << @date.week_days(true).map { |day| day.nil? ? day : MOONS[day.moon_phase][0] }
|
59
59
|
|
60
|
-
title + center_table(table.render(multiline: true, alignment: [:center], padding: [0, 2, 0, 2]))
|
60
|
+
title + center_table(table.render(multiline: true, alignment: [:center], padding: [0, 2, 0, 2]))
|
61
61
|
end
|
62
62
|
|
63
63
|
def moon_month
|
@@ -70,7 +70,7 @@ class MoonTerm
|
|
70
70
|
weeks.each { |week| table << week }
|
71
71
|
|
72
72
|
"\n" + center_string($pastel.bold("Moon Phases for #{@date.strftime("%B %Y")}")) + "\n\n" +
|
73
|
-
center_table(table.render(multiline: true, alignment: [:center], padding:[0, 1, 0, 1]))
|
73
|
+
center_table(table.render(multiline: true, alignment: [:center], padding:[0, 1, 0, 1]))
|
74
74
|
end
|
75
75
|
|
76
76
|
def help_text
|