four-pillars 0.1.14 → 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 +14 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3208005abb1c52cad09b0e9b335a22351553193308d8716b535eedde2ffd9aa
4
- data.tar.gz: 570bf5d0a00163dc68202f42f76d07a7f746f2a54d52c6309e95ca01094dfc7c
3
+ metadata.gz: d417f4cf156efe360aec7529d85d3c2b9550ca69f8b79a6ad5dac6b44cdefa6c
4
+ data.tar.gz: 94952b904876171d85ff810b05f3a0bbf6c5d3c2107615a710d3eab566743e0f
5
5
  SHA512:
6
- metadata.gz: c60b16002946f6e495eb72e2abe5230285e4b25b2ed6c5cc784cd26a28c02e70e97d4f66e6918b16b16273650add5c9047a0e2d1181e459e5b689cf142d3300f
7
- data.tar.gz: 5c9f536213509c42325111551d35f3c9aa1e0891fde699ab358c0ee5f464e9e6a215659d62c98a0a6d967ee841d8f11e2ab59b128f7dc78437e6aa561bf8efa2
6
+ metadata.gz: e3979c857a25124c7d1f7aae95f6f7a9b01e5ac018e7a3dfd21dfe3d4167483ce1902861a606e0d45a40c3aa6d346695a68628f03488dfd96c65885e14a9cdc6
7
+ data.tar.gz: 0a2dc64a80a4ff9584621ff45b65a9949c726adc57a07e99cf2c7c449e4f41e758a7e61b80b5ea826d10055868c4efa5f0be05f0b14a84f2ce612c77f4defe2a
data/lib/four-pillars.rb CHANGED
@@ -51,8 +51,20 @@ class FourPillarsLogic
51
51
  end
52
52
  return j
53
53
  end
54
+
55
+ # 隠 通変星
56
+ def self.tushensei_in
57
+ t = [nil] * 10
58
+ [0,2,4,6,8].each do |i|
59
+ t[i] = TSUHENSEI[i+1]
60
+ t[i+1] = TSUHENSEI[i]
61
+ end
62
+ return t
63
+ end
54
64
  JIKKAN_IN = jikkan_in
55
65
  JYUNISHI_IN = JYUNISHI.reverse
66
+ TSUHENSEI_IN = tushensei_in
67
+ JYUNIUNSEI_IN = JYUNIUNSEI.reverse
56
68
 
57
69
  # 十二運星エネルギー
58
70
  def self.jyuniunsei_energy
@@ -560,8 +572,8 @@ class FourPillarsLogic
560
572
  order,year = taiun
561
573
  return [] if order.nil?
562
574
  d = order == '順行' ? 1 : -1
563
- j_day = kanshi[0][0] # 日柱の十干
564
- k = kanshi_as_number[1] - 1 # 月柱の干支番号
575
+ j_day = kanshi[offset_for_day][0] # 日柱の十干
576
+ k = kanshi_as_number[offset_for_day + 1] - 1 # 月柱の干支番号
565
577
  rows = []
566
578
  # [0,1,"癸亥","偏印","死",2]
567
579
  y1, y2 = 0, year
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: four-pillars
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yosei Ito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-22 00:00:00.000000000 Z
11
+ date: 2024-09-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A class which tells fortune by Four Pillar astrology(四柱推命).
14
14
  email: y-itou@lumber-mill.co.jp
@@ -37,7 +37,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
37
37
  - !ruby/object:Gem::Version
38
38
  version: '0'
39
39
  requirements: []
40
- rubygems_version: 3.5.16
40
+ rubygems_version: 3.5.17
41
41
  signing_key:
42
42
  specification_version: 4
43
43
  summary: Four Pillar astrology