Minatohasi 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/Minatohasi.rb +9 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 971c45ddba2faa4a1d8278b3b74acc8318c6f8ab1f426fe4cdbfe63abff934fc
4
- data.tar.gz: d6855166b7fc7a93f96ae61c5f74738aee9de7fa776121d5e40836ba3d0c5f9a
3
+ metadata.gz: 9012ee0241ae8ec6dd8a8d5e5ee60dbfc5ed7286390b33c54b3f4b745d1c5636
4
+ data.tar.gz: 02e889dd7a4825c572895eb978111a1deca1c5ee686d216ceb33393981736b59
5
5
  SHA512:
6
- metadata.gz: c5b941e559ce37431346eb164858d0c83a44334891ffc40a87d2b0fede4988f85d05b7886a0149719abc5666c2d519bc3394ca1d67995dc250fadf29e5542632
7
- data.tar.gz: ae0f2ded6288af6522cee0bf6dc7a3a35f6b3c4b9a8785b42ec2ae0a4a723a68b1411c2a910163eb7d2213e06b9e797e1fd5556f120b7dabe79bf63b9eb59144
6
+ metadata.gz: b437ca8d12fe9443580193bf741e586c431fb0d9ac681a955b23f0db98830dbfd25237a4b087f536472209507d6ec0372cd38bc01ad4a15eb90163e2c1c49b48
7
+ data.tar.gz: a482f2df4110999e9e31d11722a4a4c626331b75c5c797a78967142394633934a574e8af5d0cdbb5264499afb78361c43a2d1fe986e6a8e172f6697267efa314
data/lib/Minatohasi.rb CHANGED
@@ -2,7 +2,6 @@ require 'rubygems'
2
2
  require 'bundler/setup'
3
3
  Bundler.require(:default)
4
4
 
5
-
6
5
  require 'date'
7
6
  class Minatohasi
8
7
  START = 0
@@ -28,11 +27,11 @@ class Minatohasi
28
27
  end
29
28
 
30
29
  def self::tomowekaha(year, sirotiyau)
31
- otohatiyau = Otohatiyau::otohatiyau(year, [400, 100, 4])
32
- c = otohatiyau[0][0]
33
- b = otohatiyau[0][1]
34
- a = otohatiyau[0][2]
35
- y = otohatiyau[1][2]
30
+ essence_otohatiyau = Otohatiyau::essence_otohatiyau(year, [400, 100, 4])
31
+ c = essence_otohatiyau[0][0]
32
+ b = essence_otohatiyau[0][1]
33
+ a = essence_otohatiyau[0][2]
34
+ y = essence_otohatiyau[1]
36
35
  days = Y400D * c + Y100D * b + Y4D * a + Y1D * y
37
36
  tomowekaha = days + sirotiyau
38
37
  end
@@ -48,4 +47,8 @@ class Minatohasi
48
47
  tomowekaha = self::tomowekaha(year - 1, sirotiyau)
49
48
  rd = tomowekaha - epoch_tomowekaha
50
49
  end
50
+
51
+ def self::gc(rd)
52
+
53
+ end
51
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Minatohasi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ieremius Inoue Daisuke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-29 00:00:00.000000000 Z
11
+ date: 2018-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: Otohatiyau