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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/four-pillars.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a123e8b07f965a3e7a7659e3897db368a3a2ab0904845c8a21d4cd25c5cb7845
4
- data.tar.gz: 5ceb94b92ad003a66af88df64a6e153b6651c60d7c2bbf8f8ddf929e2fe5e3cf
3
+ metadata.gz: d417f4cf156efe360aec7529d85d3c2b9550ca69f8b79a6ad5dac6b44cdefa6c
4
+ data.tar.gz: 94952b904876171d85ff810b05f3a0bbf6c5d3c2107615a710d3eab566743e0f
5
5
  SHA512:
6
- metadata.gz: c3ea6db851952af8757c94f849aa6ceda15325b47a2adccf2c37d8cef6d132dc0157976356f1fe37d3157cae6f6fb5b004400c68e2a97105507fd0c9c18a0ed4
7
- data.tar.gz: 4d1ec6ed3b786bd249304108b62c7907c8053e1c32f42f28300bf426bc6cdf4df0c6eb7d9bd33159399d5dd73adfae0cfe9a89678b73797127e9ed01f4357c12
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[0][0] # 日柱の十干
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: four-pillars
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yosei Ito