zakuro 0.0.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +4 -0
- data/.gitignore +7 -1
- data/.rubocop.yml +3 -0
- data/Gemfile +2 -0
- data/Makefile +2 -0
- data/README.md +126 -33
- data/Rakefile +1 -1
- data/doc/gengou.md +315 -0
- data/doc/operation.md +25 -0
- data/doc/operation/csv/month.csv +202 -0
- data/doc/operation/operation.xlsx +0 -0
- data/doc/operation/transfer.rb +77 -0
- data/lib/zakuro/condition.rb +19 -15
- data/lib/zakuro/cycle/abstract_remainder.rb +3 -4
- data/lib/zakuro/era/japan/gengou.rb +106 -0
- data/lib/zakuro/era/japan/gengou/parser.rb +167 -0
- data/lib/zakuro/era/japan/gengou/type.rb +178 -0
- data/lib/zakuro/era/japan/gengou/validator.rb +236 -0
- data/lib/zakuro/era/japan/reki.rb +91 -0
- data/lib/zakuro/era/japan/yaml/set-001-until-south.yaml +1121 -0
- data/lib/zakuro/era/japan/yaml/set-002-from-north.yaml +485 -0
- data/lib/zakuro/era/japan/yaml/set-003-modern.yaml +28 -0
- data/lib/zakuro/era/western.rb +11 -1
- data/lib/zakuro/operation/month/parser.rb +373 -0
- data/lib/zakuro/operation/month/type.rb +453 -0
- data/lib/zakuro/operation/month/validator.rb +802 -0
- data/lib/zakuro/operation/operation.rb +66 -0
- data/lib/zakuro/operation/yaml/month.yaml +6452 -0
- data/lib/zakuro/output/error.rb +2 -0
- data/lib/zakuro/output/logger.rb +2 -0
- data/lib/zakuro/output/response.rb +21 -19
- data/lib/zakuro/result/core.rb +52 -0
- data/lib/zakuro/result/data.rb +187 -0
- data/lib/zakuro/result/operation.rb +114 -0
- data/lib/zakuro/result/result.rb +37 -0
- data/lib/zakuro/{output → tools}/stringifier.rb +16 -9
- data/lib/zakuro/tools/typeof.rb +33 -0
- data/lib/zakuro/version.rb +1 -1
- data/lib/zakuro/version/senmyou/README.md +3 -1
- data/lib/zakuro/version/senmyou/base/era.rb +3 -1
- data/lib/zakuro/version/senmyou/base/multi_gengou.rb +98 -0
- data/lib/zakuro/version/senmyou/base/multi_gengou_roller.rb +217 -0
- data/lib/zakuro/version/senmyou/base/remainder.rb +4 -4
- data/lib/zakuro/version/senmyou/base/solar_term.rb +82 -0
- data/lib/zakuro/version/senmyou/base/year.rb +52 -6
- data/lib/zakuro/version/senmyou/monthly/first_day.rb +44 -0
- data/lib/zakuro/version/senmyou/monthly/initialized_month.rb +119 -0
- data/lib/zakuro/version/senmyou/monthly/lunar_phase.rb +3 -3
- data/lib/zakuro/version/senmyou/monthly/month.rb +136 -67
- data/lib/zakuro/version/senmyou/monthly/month_label.rb +87 -0
- data/lib/zakuro/version/senmyou/monthly/operated_month.rb +196 -0
- data/lib/zakuro/version/senmyou/{summary/annual_data.rb → range/annual_range.rb} +34 -61
- data/lib/zakuro/version/senmyou/range/full_range.rb +194 -0
- data/lib/zakuro/version/senmyou/range/operated_range.rb +126 -0
- data/lib/zakuro/version/senmyou/range/operated_solar_terms.rb +181 -0
- data/lib/zakuro/version/senmyou/range/western_date_allocation.rb +68 -0
- data/lib/zakuro/version/senmyou/range/year_boundary.rb +138 -0
- data/lib/zakuro/version/senmyou/senmyou.rb +2 -2
- data/lib/zakuro/version/senmyou/specifier/single_day_specifier.rb +102 -0
- data/lib/zakuro/version/senmyou/stella/lunar_orbit.rb +2 -2
- data/lib/zakuro/version/senmyou/stella/solar_average.rb +105 -128
- data/lib/zakuro/version/senmyou/stella/solar_location.rb +213 -0
- data/lib/zakuro/version/senmyou/stella/solar_orbit.rb +4 -189
- data/lib/zakuro/version/senmyou/summary/single.rb +125 -0
- data/lib/zakuro/version_factory.rb +1 -1
- metadata +46 -15
- data/lib/zakuro/era/gengou/set-001-until-south.yaml +0 -375
- data/lib/zakuro/era/gengou/set-002-from-north.yaml +0 -166
- data/lib/zakuro/era/gengou/set-003-modern.yaml +0 -12
- data/lib/zakuro/era/japan.rb +0 -630
- data/lib/zakuro/output/result.rb +0 -219
- data/lib/zakuro/version/senmyou/base/gengou.rb +0 -210
- data/lib/zakuro/version/senmyou/summary/gengou_data.rb +0 -294
@@ -13,79 +13,6 @@ module Zakuro
|
|
13
13
|
# @return [Integer] 統法(1日=8400分)
|
14
14
|
DAY = 8400
|
15
15
|
|
16
|
-
#
|
17
|
-
# Interval 入気定日加減数(二十四節気の間隔)
|
18
|
-
#
|
19
|
-
module Interval
|
20
|
-
# @return [Hash<Symbol, Remainder>] 一覧
|
21
|
-
LIST = {
|
22
|
-
# 冬至(とうじ)・大雪(たいせつ)
|
23
|
-
touji: Remainder.new(day: 14, minute: 4235, second: 5),
|
24
|
-
taisetsu: Remainder.new(day: 14, minute: 4235, second: 5),
|
25
|
-
# 小寒(しょうかん)・小雪(しょうせつ)
|
26
|
-
shoukan: Remainder.new(day: 14, minute: 5235, second: 5),
|
27
|
-
shousetsu: Remainder.new(day: 14, minute: 5235, second: 5),
|
28
|
-
# 大寒(だいかん)・立冬(りっとう)
|
29
|
-
daikan: Remainder.new(day: 14, minute: 6235, second: 5),
|
30
|
-
rittou: Remainder.new(day: 14, minute: 6235, second: 5),
|
31
|
-
# 立春(りっしゅん)・霜降(そうこう)
|
32
|
-
risshun: Remainder.new(day: 14, minute: 7235, second: 5),
|
33
|
-
soukou: Remainder.new(day: 14, minute: 7235, second: 5),
|
34
|
-
# 雨水(うすい)・寒露(かんろ)
|
35
|
-
usui: Remainder.new(day: 15, minute: 35, second: 5),
|
36
|
-
kanro: Remainder.new(day: 15, minute: 35, second: 5),
|
37
|
-
# 啓蟄(けいちつ)・秋分(しゅうぶん)
|
38
|
-
keichitsu: Remainder.new(day: 15, minute: 1235, second: 5),
|
39
|
-
shuubun: Remainder.new(day: 15, minute: 1235, second: 5),
|
40
|
-
# 春分(しゅんぶん)・白露(はくろ)
|
41
|
-
shunbun: Remainder.new(day: 15, minute: 2435, second: 5),
|
42
|
-
hakuro: Remainder.new(day: 15, minute: 2435, second: 5),
|
43
|
-
# 清明(せいめい)・処暑(しょしょ)
|
44
|
-
seimei: Remainder.new(day: 15, minute: 3635, second: 5),
|
45
|
-
shosho: Remainder.new(day: 15, minute: 3635, second: 5),
|
46
|
-
# 穀雨(こくう)・立秋(りっしゅう)
|
47
|
-
kokuu: Remainder.new(day: 15, minute: 4835, second: 5),
|
48
|
-
risshuu: Remainder.new(day: 15, minute: 4835, second: 5),
|
49
|
-
# 立夏(りっか)・大暑(たいしょ)
|
50
|
-
rikka: Remainder.new(day: 15, minute: 5835, second: 5),
|
51
|
-
taisho: Remainder.new(day: 15, minute: 5835, second: 5),
|
52
|
-
# 小満(しょうまん)・小暑(しょうしょ)
|
53
|
-
shouman: Remainder.new(day: 15, minute: 6835, second: 5),
|
54
|
-
shousho: Remainder.new(day: 15, minute: 6835, second: 5),
|
55
|
-
# 芒種(ぼうしゅ)・夏至(げし)
|
56
|
-
boushu: Remainder.new(day: 15, minute: 7835, second: 5),
|
57
|
-
geshi: Remainder.new(day: 15, minute: 7835, second: 5)
|
58
|
-
}.freeze
|
59
|
-
|
60
|
-
# @return [Array<Remainder>] 索引
|
61
|
-
INDEXES = [
|
62
|
-
LIST[:touji], # 0
|
63
|
-
LIST[:shoukan], # 1
|
64
|
-
LIST[:daikan], # 2
|
65
|
-
LIST[:risshun], # 3
|
66
|
-
LIST[:usui], # 4
|
67
|
-
LIST[:keichitsu], # 5
|
68
|
-
LIST[:shunbun], # 6
|
69
|
-
LIST[:seimei], # 7
|
70
|
-
LIST[:kokuu], # 8
|
71
|
-
LIST[:rikka], # 9
|
72
|
-
LIST[:shouman], # 10
|
73
|
-
LIST[:boushu], # 11
|
74
|
-
LIST[:geshi], # 12
|
75
|
-
LIST[:shousho], # 13
|
76
|
-
LIST[:taisho], # 14
|
77
|
-
LIST[:risshuu], # 15
|
78
|
-
LIST[:shosho], # 16
|
79
|
-
LIST[:hakuro], # 17
|
80
|
-
LIST[:shuubun], # 18
|
81
|
-
LIST[:kanro], # 19
|
82
|
-
LIST[:soukou], # 20
|
83
|
-
LIST[:rittou], # 21
|
84
|
-
LIST[:shousetsu], # 22
|
85
|
-
LIST[:taisetsu] # 23
|
86
|
-
].freeze
|
87
|
-
end
|
88
|
-
|
89
16
|
#
|
90
17
|
# 24気損益眺朒(ちょうじく)数
|
91
18
|
#
|
@@ -153,118 +80,10 @@ module Zakuro
|
|
153
80
|
}.freeze
|
154
81
|
end
|
155
82
|
|
156
|
-
#
|
157
|
-
# 二十四節気 と 補正値 を計算する
|
158
|
-
#
|
159
|
-
# @param [SolarTerm] solar_term 二十四節気
|
160
|
-
#
|
161
|
-
# @return [SolarTerm] 二十四節気
|
162
|
-
# @return [Integer] 補正値
|
163
|
-
#
|
164
|
-
def self.calc_term_and_orbit_value(solar_term:)
|
165
|
-
remainder = calc_solar_term_by_remainder(
|
166
|
-
solar_term: solar_term
|
167
|
-
)
|
168
|
-
value = calc_sun_orbit_value(
|
169
|
-
solar_term: remainder
|
170
|
-
)
|
171
|
-
[remainder, value]
|
172
|
-
end
|
173
|
-
|
174
|
-
# :reek:ControlParameter and :reek:BooleanParameter
|
175
|
-
|
176
|
-
#
|
177
|
-
# 二十四節気を計算する
|
178
|
-
#
|
179
|
-
# @param [SolarTerm] solar_term 二十四節気
|
180
|
-
#
|
181
|
-
# @return [SolarTerm] 二十四節気
|
182
|
-
#
|
183
|
-
def self.calc_solar_term_by_remainder(solar_term:)
|
184
|
-
if solar_term.index.negative?
|
185
|
-
return calc_first_solar_term(
|
186
|
-
winter_solstice_age: solar_term.remainder
|
187
|
-
)
|
188
|
-
end
|
189
|
-
|
190
|
-
calc_next_solar_term_recursively(
|
191
|
-
solar_term: solar_term
|
192
|
-
)
|
193
|
-
end
|
194
|
-
|
195
|
-
# :reek:TooManyStatements { max_statements: 8 }
|
196
|
-
|
197
|
-
#
|
198
|
-
# 入定気(定気の開始点からの日時)と属する定気を計算する
|
199
|
-
#
|
200
|
-
# @param [Remainder] winter_solstice_age 天正冬至
|
201
|
-
#
|
202
|
-
# @return [SolarTerm] 二十四節気
|
203
|
-
# SolarTerm.remainder : 入定気(定気の開始点からの日時)
|
204
|
-
# SolarTerm.index : 定気
|
205
|
-
#
|
206
|
-
def self.calc_first_solar_term(winter_solstice_age:)
|
207
|
-
# 入定気の起算方法
|
208
|
-
# 概要:
|
209
|
-
# * 太陽の運行による補正値は、二十四節気の気ごとに定められる
|
210
|
-
# * 11月経朔の前にある気を求め、それから11月経朔との間隔を求める
|
211
|
-
# * 気ごとの補正値と、気から11月経朔までにかかる補正値を求める
|
212
|
-
# 前提:
|
213
|
-
# * 11月経朔に関わる二十四節気は、時系列から順に、小雪・大雪・冬至である
|
214
|
-
# * 小雪〜大雪の間隔は小雪定数で、大雪〜冬至の間隔は大雪定数で決められている(24気損益眺朒(ちょうじく)数のこと)
|
215
|
-
# * 11月経朔は、この小雪〜冬至の間のいずれかにある
|
216
|
-
# 計算:
|
217
|
-
# 2パターンある
|
218
|
-
# (a) 大雪〜冬至にある場合
|
219
|
-
# *「大雪定数 >= 天正閏余」の場合を指す
|
220
|
-
# * * NOTE 資料では「より大きい(>)」とされるが、大雪そのものの場合は大雪から起算すべき
|
221
|
-
# * この場合は、大雪〜経朔の間隔を求める
|
222
|
-
# (b) 小雪〜大雪にある場合
|
223
|
-
# *「大雪定数 < 天正閏余」の場合を指す
|
224
|
-
# * この場合は、小雪〜経朔の間隔を求める
|
225
|
-
taisetsu = 23
|
226
|
-
taisetsu_interval = Interval::INDEXES[taisetsu]
|
227
|
-
|
228
|
-
if winter_solstice_age > taisetsu_interval
|
229
|
-
# (b)
|
230
|
-
shousetsu = 22
|
231
|
-
diff = winter_solstice_age.sub(taisetsu_interval)
|
232
|
-
|
233
|
-
return SolarTerm.new(remainder: Interval::INDEXES[shousetsu].sub(diff),
|
234
|
-
index: shousetsu)
|
235
|
-
end
|
236
|
-
# (a)
|
237
|
-
SolarTerm.new(remainder: taisetsu_interval.sub(winter_solstice_age),
|
238
|
-
index: taisetsu)
|
239
|
-
end
|
240
|
-
|
241
|
-
# :reek:TooManyStatements { max_statements: 8 }
|
242
|
-
|
243
|
-
#
|
244
|
-
# 次の二十四節気を計算する
|
245
|
-
#
|
246
|
-
# @param [SolarTerm] solar_term 今回の二十四節気
|
247
|
-
#
|
248
|
-
# @return [SolarTerm] 次回の二十四節気
|
249
|
-
#
|
250
|
-
def self.calc_next_solar_term_recursively(solar_term:)
|
251
|
-
remainder = solar_term.remainder
|
252
|
-
index = solar_term.index
|
253
|
-
interval = Interval::INDEXES[index]
|
254
|
-
return solar_term if remainder < interval
|
255
|
-
|
256
|
-
remainder.sub!(interval)
|
257
|
-
index += 1
|
258
|
-
index = 0 if index >= Interval::INDEXES.size
|
259
|
-
calc_next_solar_term_recursively(
|
260
|
-
solar_term: SolarTerm.new(remainder: remainder, index: index)
|
261
|
-
)
|
262
|
-
end
|
263
|
-
|
264
83
|
#
|
265
84
|
# 太陽の運行による補正値を算出する
|
266
85
|
#
|
267
|
-
# @param [SolarTerm] solar_term
|
86
|
+
# @param [SolarTerm] solar_term 入定気
|
268
87
|
#
|
269
88
|
# @return [Integer] 補正値
|
270
89
|
#
|
@@ -302,10 +121,8 @@ module Zakuro
|
|
302
121
|
per_day = adjustment.per_day
|
303
122
|
sign, ratio = calc_ratio(day: remainder.day, per_term: per_term, per_day: per_day)
|
304
123
|
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
day_stack
|
124
|
+
calc_day_stack_from_ratio(sign: sign, ratio: ratio,
|
125
|
+
minute: remainder.minute)
|
309
126
|
end
|
310
127
|
private_class_method :calc_day_stack
|
311
128
|
|
@@ -388,9 +205,7 @@ module Zakuro
|
|
388
205
|
month_stack = stack + day * per_term + \
|
389
206
|
(1 / 2.0) * (day * (day - 1) * per_day)
|
390
207
|
# 切り捨て(プラスマイナスに関わらず小数点以下切り捨て)
|
391
|
-
month_stack
|
392
|
-
|
393
|
-
month_stack
|
208
|
+
month_stack.negative? ? month_stack.ceil : month_stack.floor
|
394
209
|
end
|
395
210
|
private_class_method :calc_month_stack
|
396
211
|
end
|
@@ -0,0 +1,125 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require File.expand_path('../../../../../' \
|
4
|
+
'lib/zakuro/version/senmyou/specifier/single_day_specifier',
|
5
|
+
__dir__)
|
6
|
+
|
7
|
+
require File.expand_path('../../../../../' \
|
8
|
+
'lib/zakuro/version/senmyou/range/full_range',
|
9
|
+
__dir__)
|
10
|
+
|
11
|
+
require File.expand_path('../../../../../' \
|
12
|
+
'lib/zakuro/version/senmyou/range/operated_range',
|
13
|
+
__dir__)
|
14
|
+
|
15
|
+
# :nodoc:
|
16
|
+
module Zakuro
|
17
|
+
# :nodoc:
|
18
|
+
module Senmyou
|
19
|
+
#
|
20
|
+
# Single 一日
|
21
|
+
#
|
22
|
+
module Single
|
23
|
+
#
|
24
|
+
# 生成する
|
25
|
+
#
|
26
|
+
# @param [Western::Calendar] date 西暦日
|
27
|
+
#
|
28
|
+
# @return [Result::Single] 一日検索結果(和暦日)
|
29
|
+
#
|
30
|
+
def self.get(date: Western::Calendar.new)
|
31
|
+
full_range = FullRange.new(start_date: date)
|
32
|
+
years = full_range.get
|
33
|
+
|
34
|
+
calc_date = SingleDaySpecifier.get(years: years, date: date)
|
35
|
+
|
36
|
+
operated_range = OperatedRange.new(years: years)
|
37
|
+
|
38
|
+
Result::Single.new(
|
39
|
+
data: SingleDaySpecifier.get(years: operated_range.get, date: date),
|
40
|
+
operation: create_operation(calc_date: calc_date)
|
41
|
+
)
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
# 運用情報を生成する
|
46
|
+
#
|
47
|
+
# @param [Result::Data::SingleDay] calc_date 和暦日(計算値)
|
48
|
+
#
|
49
|
+
# @return [Result::Operation::Bundle] 運用情報
|
50
|
+
#
|
51
|
+
def self.create_operation(calc_date: Result::Data::SingleDay.new)
|
52
|
+
first_day = calc_date.month.first_day.western_date
|
53
|
+
operation_history = Operation.specify_history(western_date: first_day)
|
54
|
+
|
55
|
+
operation_month = create_operation_month(operation_history: operation_history)
|
56
|
+
|
57
|
+
Result::Operation::Bundle.new(
|
58
|
+
operated: !operation_history.invalid?, month: operation_month, original: calc_date
|
59
|
+
)
|
60
|
+
end
|
61
|
+
private_class_method :create_operation
|
62
|
+
|
63
|
+
#
|
64
|
+
# 月履歴集約情報を生成する
|
65
|
+
#
|
66
|
+
# @param [Operation::MonthHistory] operation_history 変更履歴(月)
|
67
|
+
#
|
68
|
+
# @return [Result::Operation::Month::Bundle] 月履歴集約情報
|
69
|
+
#
|
70
|
+
def self.create_operation_month(operation_history: Operation::MonthHistory.new)
|
71
|
+
return Result::Operation::Month::Bundle.new if operation_history.invalid?
|
72
|
+
|
73
|
+
parent_operation_history = Operation.specify_history_by_id(id: operation_history.parent_id)
|
74
|
+
|
75
|
+
Result::Operation::Month::Bundle.new(
|
76
|
+
current: create_operation_month_history(operation_history: operation_history),
|
77
|
+
parent: create_operation_month_history(operation_history: parent_operation_history)
|
78
|
+
)
|
79
|
+
end
|
80
|
+
private_class_method :create_operation_month
|
81
|
+
|
82
|
+
#
|
83
|
+
# 月別履歴情報を生成する
|
84
|
+
#
|
85
|
+
# @param [Operation::MonthHistory] operation_history 変更履歴(月)
|
86
|
+
#
|
87
|
+
# @return [Result::Operation::Month::History] 月別履歴情報
|
88
|
+
#
|
89
|
+
def self.create_operation_month_history(operation_history: Operation::MonthHistory.new)
|
90
|
+
return Result::Operation::Month::History.new if operation_history.invalid?
|
91
|
+
|
92
|
+
annotations = create_annnotations(operation_history: operation_history)
|
93
|
+
|
94
|
+
reference = operation_history.reference
|
95
|
+
Result::Operation::Month::History.new(
|
96
|
+
id: operation_history.id, western_date: operation_history.western_date.format,
|
97
|
+
page: reference.page, number: reference.number, annotations: annotations
|
98
|
+
)
|
99
|
+
end
|
100
|
+
private_class_method :create_operation_month_history
|
101
|
+
|
102
|
+
#
|
103
|
+
# 注釈情報を生成する
|
104
|
+
#
|
105
|
+
# @param [Operation::MonthHistory] operation_history 変更履歴(月)
|
106
|
+
#
|
107
|
+
# @return [Array<Result::Operation::Month::Annotation>] 注釈
|
108
|
+
#
|
109
|
+
def self.create_annnotations(operation_history: Operation::MonthHistory.new)
|
110
|
+
annotations = []
|
111
|
+
operation_history.annotations.each do |annotation|
|
112
|
+
annotations.push(
|
113
|
+
Result::Operation::Month::Annotation.new(
|
114
|
+
description: annotation.description,
|
115
|
+
note: annotation.note
|
116
|
+
)
|
117
|
+
)
|
118
|
+
end
|
119
|
+
|
120
|
+
annotations
|
121
|
+
end
|
122
|
+
private_class_method :create_annnotations
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zakuro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pldb
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: mainly lunar solar calendar
|
14
14
|
email:
|
@@ -23,10 +23,16 @@ files:
|
|
23
23
|
- ".rubocop.yml"
|
24
24
|
- Gemfile
|
25
25
|
- LICENSE.txt
|
26
|
+
- Makefile
|
26
27
|
- README.md
|
27
28
|
- Rakefile
|
28
29
|
- bin/console
|
29
30
|
- bin/setup
|
31
|
+
- doc/gengou.md
|
32
|
+
- doc/operation.md
|
33
|
+
- doc/operation/csv/month.csv
|
34
|
+
- doc/operation/operation.xlsx
|
35
|
+
- doc/operation/transfer.rb
|
30
36
|
- images/12月以降の入定気.png
|
31
37
|
- images/12月以降の月の進退.png
|
32
38
|
- images/source/description.numbers
|
@@ -37,17 +43,30 @@ files:
|
|
37
43
|
- lib/zakuro/condition.rb
|
38
44
|
- lib/zakuro/cycle/abstract_remainder.rb
|
39
45
|
- lib/zakuro/cycle/zodiac.rb
|
40
|
-
- lib/zakuro/era/gengou
|
41
|
-
- lib/zakuro/era/gengou/
|
42
|
-
- lib/zakuro/era/gengou/
|
43
|
-
- lib/zakuro/era/japan.rb
|
46
|
+
- lib/zakuro/era/japan/gengou.rb
|
47
|
+
- lib/zakuro/era/japan/gengou/parser.rb
|
48
|
+
- lib/zakuro/era/japan/gengou/type.rb
|
49
|
+
- lib/zakuro/era/japan/gengou/validator.rb
|
50
|
+
- lib/zakuro/era/japan/reki.rb
|
51
|
+
- lib/zakuro/era/japan/yaml/set-001-until-south.yaml
|
52
|
+
- lib/zakuro/era/japan/yaml/set-002-from-north.yaml
|
53
|
+
- lib/zakuro/era/japan/yaml/set-003-modern.yaml
|
44
54
|
- lib/zakuro/era/western.rb
|
45
55
|
- lib/zakuro/merchant.rb
|
56
|
+
- lib/zakuro/operation/month/parser.rb
|
57
|
+
- lib/zakuro/operation/month/type.rb
|
58
|
+
- lib/zakuro/operation/month/validator.rb
|
59
|
+
- lib/zakuro/operation/operation.rb
|
60
|
+
- lib/zakuro/operation/yaml/month.yaml
|
46
61
|
- lib/zakuro/output/error.rb
|
47
62
|
- lib/zakuro/output/logger.rb
|
48
63
|
- lib/zakuro/output/response.rb
|
49
|
-
- lib/zakuro/
|
50
|
-
- lib/zakuro/
|
64
|
+
- lib/zakuro/result/core.rb
|
65
|
+
- lib/zakuro/result/data.rb
|
66
|
+
- lib/zakuro/result/operation.rb
|
67
|
+
- lib/zakuro/result/result.rb
|
68
|
+
- lib/zakuro/tools/stringifier.rb
|
69
|
+
- lib/zakuro/tools/typeof.rb
|
51
70
|
- lib/zakuro/version.rb
|
52
71
|
- lib/zakuro/version/abstract_version.rb
|
53
72
|
- lib/zakuro/version/genka/genka.rb
|
@@ -58,19 +77,31 @@ files:
|
|
58
77
|
- lib/zakuro/version/kansei/kansei.rb
|
59
78
|
- lib/zakuro/version/senmyou/README.md
|
60
79
|
- lib/zakuro/version/senmyou/base/era.rb
|
61
|
-
- lib/zakuro/version/senmyou/base/
|
80
|
+
- lib/zakuro/version/senmyou/base/multi_gengou.rb
|
81
|
+
- lib/zakuro/version/senmyou/base/multi_gengou_roller.rb
|
62
82
|
- lib/zakuro/version/senmyou/base/remainder.rb
|
63
83
|
- lib/zakuro/version/senmyou/base/solar_term.rb
|
64
84
|
- lib/zakuro/version/senmyou/base/year.rb
|
85
|
+
- lib/zakuro/version/senmyou/monthly/first_day.rb
|
86
|
+
- lib/zakuro/version/senmyou/monthly/initialized_month.rb
|
65
87
|
- lib/zakuro/version/senmyou/monthly/lunar_phase.rb
|
66
88
|
- lib/zakuro/version/senmyou/monthly/month.rb
|
89
|
+
- lib/zakuro/version/senmyou/monthly/month_label.rb
|
90
|
+
- lib/zakuro/version/senmyou/monthly/operated_month.rb
|
91
|
+
- lib/zakuro/version/senmyou/range/annual_range.rb
|
92
|
+
- lib/zakuro/version/senmyou/range/full_range.rb
|
93
|
+
- lib/zakuro/version/senmyou/range/operated_range.rb
|
94
|
+
- lib/zakuro/version/senmyou/range/operated_solar_terms.rb
|
95
|
+
- lib/zakuro/version/senmyou/range/western_date_allocation.rb
|
96
|
+
- lib/zakuro/version/senmyou/range/year_boundary.rb
|
67
97
|
- lib/zakuro/version/senmyou/senmyou.rb
|
98
|
+
- lib/zakuro/version/senmyou/specifier/single_day_specifier.rb
|
68
99
|
- lib/zakuro/version/senmyou/stella/lunar_orbit.rb
|
69
100
|
- lib/zakuro/version/senmyou/stella/solar_average.rb
|
101
|
+
- lib/zakuro/version/senmyou/stella/solar_location.rb
|
70
102
|
- lib/zakuro/version/senmyou/stella/solar_orbit.rb
|
71
103
|
- lib/zakuro/version/senmyou/stella/winter_solstice.rb
|
72
|
-
- lib/zakuro/version/senmyou/summary/
|
73
|
-
- lib/zakuro/version/senmyou/summary/gengou_data.rb
|
104
|
+
- lib/zakuro/version/senmyou/summary/single.rb
|
74
105
|
- lib/zakuro/version/taien/taien.rb
|
75
106
|
- lib/zakuro/version/tenpou/tenpou.rb
|
76
107
|
- lib/zakuro/version_factory.rb
|
@@ -83,7 +114,7 @@ metadata:
|
|
83
114
|
homepage_uri: https://github.com/pldb/zakuro
|
84
115
|
source_code_uri: https://github.com/pldb/zakuro
|
85
116
|
changelog_uri: https://github.com/pldb/zakuro
|
86
|
-
post_install_message:
|
117
|
+
post_install_message:
|
87
118
|
rdoc_options: []
|
88
119
|
require_paths:
|
89
120
|
- lib
|
@@ -98,8 +129,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
129
|
- !ruby/object:Gem::Version
|
99
130
|
version: '0'
|
100
131
|
requirements: []
|
101
|
-
rubygems_version: 3.
|
102
|
-
signing_key:
|
132
|
+
rubygems_version: 3.1.2
|
133
|
+
signing_key:
|
103
134
|
specification_version: 4
|
104
135
|
summary: japanese calendar library.
|
105
136
|
test_files: []
|