four-pillars 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/four-pillars.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: d417f4cf156efe360aec7529d85d3c2b9550ca69f8b79a6ad5dac6b44cdefa6c
|
4
|
+
data.tar.gz: 94952b904876171d85ff810b05f3a0bbf6c5d3c2107615a710d3eab566743e0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3979c857a25124c7d1f7aae95f6f7a9b01e5ac018e7a3dfd21dfe3d4167483ce1902861a606e0d45a40c3aa6d346695a68628f03488dfd96c65885e14a9cdc6
|
7
|
+
data.tar.gz: 0a2dc64a80a4ff9584621ff45b65a9949c726adc57a07e99cf2c7c449e4f41e758a7e61b80b5ea826d10055868c4efa5f0be05f0b14a84f2ce612c77f4defe2a
|
data/lib/four-pillars.rb
CHANGED
@@ -572,8 +572,8 @@ class FourPillarsLogic
|
|
572
572
|
order,year = taiun
|
573
573
|
return [] if order.nil?
|
574
574
|
d = order == '順行' ? 1 : -1
|
575
|
-
j_day = kanshi[
|
576
|
-
k = kanshi_as_number[1] - 1 # 月柱の干支番号
|
575
|
+
j_day = kanshi[offset_for_day][0] # 日柱の十干
|
576
|
+
k = kanshi_as_number[offset_for_day + 1] - 1 # 月柱の干支番号
|
577
577
|
rows = []
|
578
578
|
# [0,1,"癸亥","偏印","死",2]
|
579
579
|
y1, y2 = 0, year
|