Kokokusinsiyamahe 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/Kokokusinsiyamahe.rb +40 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '078b3333fadf6376fada0865c9e1f2638dbd80ab821ab6487326bab43c95a8af'
|
4
|
+
data.tar.gz: 6f031bfaede90b2fafc4d956d5f2c6946d151b574cac8cc8bfc1da23ea18b089
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 96b372e6e3d391fb0c3b1f13f684876627a367c68262907830ab5f0e25cb57921d2def2cc90466c174ec7ccfce1b4371cd5a6985b319184bdab62fa663adeaef
|
7
|
+
data.tar.gz: 3580c0409c74221c99e844a10bce8f97128770992b4244c7e89662dcc151b5741634ec01cc678d55340670dec5264b2b3746de630f9c4d95d1b0b7fd95e57201
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'bundler/setup'
|
2
|
+
Bundler.require(:default)
|
3
|
+
|
4
|
+
require 'date'
|
5
|
+
|
6
|
+
class Kokokusinsiyamahe
|
7
|
+
|
8
|
+
ARRAY_NON_LEAP = [
|
9
|
+
31, 28, 31,
|
10
|
+
30, 31, 30,
|
11
|
+
31, 31, 30,
|
12
|
+
31, 30, 31
|
13
|
+
]
|
14
|
+
|
15
|
+
ARRAY_LEAP = ARRAY_NON_LEAP.map.with_index do |v, k|
|
16
|
+
if k == 1 then
|
17
|
+
29
|
18
|
+
else
|
19
|
+
v
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.date(yday, leap)
|
24
|
+
if leap then
|
25
|
+
array = ARRAY_LEAP
|
26
|
+
else
|
27
|
+
array = ARRAY_NON_LEAP
|
28
|
+
end
|
29
|
+
untoutiyaumahe = Untoutiyaumahe.untoutiyaumahe(yday, array)
|
30
|
+
month = untoutiyaumahe[0]
|
31
|
+
mday = untoutiyaumahe[1]
|
32
|
+
[month, mday]
|
33
|
+
|
34
|
+
untoutiyaumahe
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.yday(date, leap)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: Kokokusinsiyamahe
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ieremius Inoue Daisuke
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-10-01 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Kokokusinsiyamahe calc
|
14
|
+
email: hibariyashiki@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/Kokokusinsiyamahe.rb
|
20
|
+
homepage: https://tanukinonegura.com
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.7.3
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: Kokokusinsiyamahe calc
|
44
|
+
test_files: []
|