sheltered-girl 4.0.3.8 → 4.0.3.10
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.
- checksums.yaml +4 -4
- data/bin/bmi +1 -1
- data/bin/zinbeiw +9 -3
- data/lib/frame.rb +2 -2
- data/lib/himekuri.rb +1 -21
- data/lib/install.rb +1 -1
- data/lib/version.rb +4 -7
- data/req/himekuri.rb +0 -1
- metadata +2 -4
- data/lib/zella.js +0 -34
- data/lib/zella.ts +0 -46
- /data/req/{nyasocom_frame.rb → frame.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c63be15b01876946d0703b93f23ee42bdaf57ac3ab23a5173302964e4937b47
|
4
|
+
data.tar.gz: 31bdbf77c8bf62a465d0215548eda20001f45287e7f65bf1f9475cfd17824059
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfcf907e9527b3bc52a58ec9959ecd82d77c1c1de729e761ce0384b8a357997a69080be82e6e0e0ba9f51aff882c508d0dcefbfaeec335ba47038b9fa91b8dad
|
7
|
+
data.tar.gz: df6492db844f200f0e196873363319febf571924b4c622011f1a25cf400e9611c02e024eb6706adf6988e06693b9a2325d0f83ed0aad0c001e4627cfffa2a2b4
|
data/bin/bmi
CHANGED
data/bin/zinbeiw
CHANGED
@@ -572,15 +572,21 @@ rss RSS投稿時間帯を判別します
|
|
572
572
|
num = (gets.chomp.to_i).freeze
|
573
573
|
puts "#{num}回、繰り返すまでに当ててください:"
|
574
574
|
puts ''
|
575
|
-
puts '1~100までの数字をいれてください、NumberGameスタート!'
|
575
|
+
puts '1 ~ 100までの数字をいれてください、NumberGameスタート!'
|
576
576
|
print '> '
|
577
577
|
|
578
578
|
if num < 21
|
579
579
|
num.times do |z|
|
580
580
|
input_n = (gets.chomp.to_i).freeze
|
581
|
+
input_m = input_n.to_s
|
581
582
|
|
582
583
|
if input_n < 101
|
583
|
-
if
|
584
|
+
if input_m.match(/^0/o)
|
585
|
+
puts ''
|
586
|
+
puts '0と00または空白を入力したため、終了します...'
|
587
|
+
puts ''
|
588
|
+
break
|
589
|
+
elsif input_n < x
|
584
590
|
puts 'コンピュータの選んだ数字の方が大きいため大きい数字を入力してください'
|
585
591
|
print '> '
|
586
592
|
elsif input_n > x
|
@@ -603,7 +609,7 @@ rss RSS投稿時間帯を判別します
|
|
603
609
|
end
|
604
610
|
else
|
605
611
|
puts ''
|
606
|
-
puts '
|
612
|
+
puts '100を超えた数字を入力したため、終了します...'
|
607
613
|
puts ''
|
608
614
|
break
|
609
615
|
end
|
data/lib/frame.rb
CHANGED
@@ -3,14 +3,14 @@
|
|
3
3
|
lib = File.expand_path('lib', __dir__)
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
5
|
|
6
|
-
require "#{File.dirname(__FILE__)}/../req/
|
6
|
+
require "#{File.dirname(__FILE__)}/../req/frame"
|
7
7
|
|
8
8
|
# Heat module
|
9
9
|
module Heart
|
10
10
|
module_function
|
11
11
|
|
12
12
|
def version
|
13
|
-
print Frame::
|
13
|
+
print Frame::FRAME_VERSION
|
14
14
|
puts ' : [nyasocom_framework_version] '
|
15
15
|
end
|
16
16
|
|
data/lib/himekuri.rb
CHANGED
@@ -126,19 +126,7 @@ class HimekuriClass
|
|
126
126
|
|
127
127
|
def version
|
128
128
|
print '日めくり数え番号 : '
|
129
|
-
puts Himekuri::
|
130
|
-
end
|
131
|
-
|
132
|
-
def self.zella_ts
|
133
|
-
nodejs_path = "node" + " " + "#{File.dirname(__FILE__) + '/zella.js'}".to_s
|
134
|
-
stdout_js, stderr_js, status_js = Open3.capture3(nodejs_path)
|
135
|
-
stdout_js
|
136
|
-
end
|
137
|
-
|
138
|
-
def self.zella_py
|
139
|
-
nodejs_path = "python" + " " + "#{File.dirname(__FILE__) + '/timestamp.py'}".to_s
|
140
|
-
stdout_py, stderr_py, status_py = Open3.capture3(nodejs_path)
|
141
|
-
stdout_py
|
129
|
+
puts Himekuri::HIMEKURI_VERSION
|
142
130
|
end
|
143
131
|
|
144
132
|
def help
|
@@ -180,14 +168,6 @@ class HimekuriClass
|
|
180
168
|
puts ''
|
181
169
|
puts '2024年4月11日 : 木曜日'
|
182
170
|
puts ''
|
183
|
-
puts 'koyomi -t'
|
184
|
-
puts ''
|
185
|
-
puts HimekuriClass.zella_ts
|
186
|
-
puts ''
|
187
|
-
puts 'koyomi -p'
|
188
|
-
puts ''
|
189
|
-
puts HimekuriClass.zella_py
|
190
|
-
puts ''
|
191
171
|
puts 'HELP'.center(60, '-')
|
192
172
|
end
|
193
173
|
end
|
data/lib/install.rb
CHANGED
data/lib/version.rb
CHANGED
@@ -5,7 +5,7 @@ require 'date'
|
|
5
5
|
begin
|
6
6
|
module EngineLeft
|
7
7
|
# zinbeijett_version = x.x.x
|
8
|
-
zinbeijett_version = '4.0.3.
|
8
|
+
zinbeijett_version = '4.0.3.10'
|
9
9
|
VERSION = "#{zinbeijett_version}"
|
10
10
|
end
|
11
11
|
|
@@ -14,8 +14,7 @@ module BMI_CLI
|
|
14
14
|
bmi_version = '1.0.3.2'
|
15
15
|
t = Date.today
|
16
16
|
build_day = t.strftime('%Y.%m.%d')
|
17
|
-
|
18
|
-
#VERSION = "#{bmi_version}"
|
17
|
+
BMI_VERSION = "#{bmi_version}-#{build_day}".freeze
|
19
18
|
end
|
20
19
|
|
21
20
|
# himekuri_version = x.x.x-xxxx.xx.xx
|
@@ -23,8 +22,7 @@ module Himekuri
|
|
23
22
|
himekuri_version = '0.2.5'
|
24
23
|
t = Date.today
|
25
24
|
build_day = t.strftime('%Y.%m.%d')
|
26
|
-
|
27
|
-
#VERSION = "#{himekuri_version}"
|
25
|
+
HIMEKURI_VERSION = "#{himekuri_version}-#{build_day}".freeze
|
28
26
|
end
|
29
27
|
|
30
28
|
# nyasocom_frame version = x.x.x-xxxx.xx.xx
|
@@ -32,8 +30,7 @@ module Frame
|
|
32
30
|
frame_version = '1.2.3'
|
33
31
|
t = Date.today
|
34
32
|
build_day = t.strftime('%Y.%m.%d')
|
35
|
-
|
36
|
-
#VERSION = "#{frame_version}"
|
33
|
+
FRAME_VERSION = "#{frame_version}-#{build_day}".freeze
|
37
34
|
end
|
38
35
|
rescue StandardError => e
|
39
36
|
puts e.backtrace
|
data/req/himekuri.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sheltered-girl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.3.
|
4
|
+
version: 4.0.3.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takayuki Kamiyama
|
@@ -258,9 +258,7 @@ files:
|
|
258
258
|
- lib/tweet_cmd.rb
|
259
259
|
- lib/txt/hyakunin.txt
|
260
260
|
- lib/version.rb
|
261
|
-
- lib/zella.js
|
262
261
|
- lib/zella.rb
|
263
|
-
- lib/zella.ts
|
264
262
|
- log/tenji_a.txt
|
265
263
|
- log/tenji_b.txt
|
266
264
|
- log/tenji_c.txt
|
@@ -272,13 +270,13 @@ files:
|
|
272
270
|
- log/tenji_t.txt
|
273
271
|
- log/tenji_z.txt
|
274
272
|
- req/bmi.rb
|
273
|
+
- req/frame.rb
|
275
274
|
- req/full_run.rb
|
276
275
|
- req/full_runner.rb
|
277
276
|
- req/himekuri.rb
|
278
277
|
- req/katakana.rb
|
279
278
|
- req/koyomi.rb
|
280
279
|
- req/mini_run.rb
|
281
|
-
- req/nyasocom_frame.rb
|
282
280
|
- req/romaji.rb
|
283
281
|
- req/rubygems.rb
|
284
282
|
- req/runner.rb
|
data/lib/zella.js
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
var Himekuri = /** @class */ (function () {
|
2
|
-
function Himekuri() {
|
3
|
-
this.OneDay = new Date();
|
4
|
-
this.OneYear = this.OneDay.getFullYear();
|
5
|
-
this.anything_month = this.OneDay.getMonth();
|
6
|
-
this.OneMonth = this.anything_month + 1;
|
7
|
-
this.anyDays = this.OneDay.getDate();
|
8
|
-
if (this.OneYear % 4 == 0 && this.OneYear % 100 != 0 || this.OneYear % 400 == 0) {
|
9
|
-
if (this.OneMonth == 2 && this.anyDays == 29) {
|
10
|
-
this.calc = ((365 * this.OneYear + this.OneYear / 4 - this.OneYear / 100 + this.OneYear / 400 +
|
11
|
-
(306 * (this.OneMonth + 1)) / 10 + this.anyDays) - 426) % 7;
|
12
|
-
}
|
13
|
-
else if (this.OneMonth == 11 || this.OneMonth == 12) {
|
14
|
-
this.calc = ((365 * this.OneYear + this.OneYear / 4 - this.OneYear / 100 + this.OneYear / 400 + (306 * (this.OneMonth + 1)) / 10 + this.anyDays) - 427) % 7;
|
15
|
-
}
|
16
|
-
else {
|
17
|
-
this.calc = ((365 * this.OneYear + this.OneYear / 4 - this.OneYear / 100 + this.OneYear / 400 + (306 * (this.OneMonth + 1)) / 10 + this.anyDays) - 428) % 7;
|
18
|
-
}
|
19
|
-
}
|
20
|
-
else {
|
21
|
-
this.calc = (this.OneYear + this.OneYear / 4 - this.OneYear / 100 + this.OneYear / 400 +
|
22
|
-
(13 * this.OneMonth + 8) / 5 + this.anyDays) % 7;
|
23
|
-
}
|
24
|
-
this.round_calc = Math.round(this.calc);
|
25
|
-
this.week = ["Sun", "Mon", "Tues", "Wedness", "Thurs", "Fri", "Satur", "Sun"];
|
26
|
-
this.cl_wk = (this.week[this.round_calc]);
|
27
|
-
}
|
28
|
-
Himekuri.prototype.getHimekuri = function () {
|
29
|
-
console.log("".concat(this.OneYear, "/").concat(this.OneMonth, "/").concat(this.anyDays, " : ").concat(this.cl_wk, "day"));
|
30
|
-
};
|
31
|
-
return Himekuri;
|
32
|
-
}());
|
33
|
-
var himekuri = new Himekuri();
|
34
|
-
himekuri.getHimekuri();
|
data/lib/zella.ts
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
class Himekuri{
|
2
|
-
OneDay: Date;
|
3
|
-
OneYear: number;
|
4
|
-
OneMonth: number;
|
5
|
-
anyDays: number;
|
6
|
-
anything_month: number;
|
7
|
-
calc: number;
|
8
|
-
week: string[];
|
9
|
-
cl_wk: string;
|
10
|
-
justnow: any;
|
11
|
-
round_calc: any;
|
12
|
-
|
13
|
-
constructor(){
|
14
|
-
this.OneDay = new Date()
|
15
|
-
this.OneYear= this.OneDay.getFullYear()
|
16
|
-
this.anything_month = this.OneDay.getMonth()
|
17
|
-
this.OneMonth = this.anything_month + 1
|
18
|
-
this.anyDays = this.OneDay.getDate()
|
19
|
-
|
20
|
-
if (this.OneYear % 4 == 0 && this.OneYear % 100 != 0 || this.OneYear % 400 == 0) {
|
21
|
-
if (this.OneMonth == 2 && this.anyDays == 29) {
|
22
|
-
this.calc = ((365 * this.OneYear + this.OneYear / 4 - this.OneYear / 100 + this.OneYear / 400 +
|
23
|
-
(306 * (this.OneMonth + 1)) / 10 + this.anyDays) - 426) % 7
|
24
|
-
}
|
25
|
-
else if (this.OneMonth == 11 || this.OneMonth == 12) {
|
26
|
-
this.calc = ((365 * this.OneYear + this.OneYear / 4 - this.OneYear / 100 + this.OneYear / 400 + (306 * (this.OneMonth + 1)) / 10 + this.anyDays) - 427) % 7
|
27
|
-
}
|
28
|
-
else {
|
29
|
-
this.calc = ((365 * this.OneYear + this.OneYear / 4 - this.OneYear / 100 + this.OneYear / 400 + (306 * (this.OneMonth + 1)) / 10 + this.anyDays) - 428) % 7
|
30
|
-
}
|
31
|
-
} else {
|
32
|
-
this.calc = (this.OneYear + this.OneYear / 4 - this.OneYear / 100 + this.OneYear / 400 +
|
33
|
-
(13 * this.OneMonth + 8) / 5 + this.anyDays) % 7
|
34
|
-
}
|
35
|
-
|
36
|
-
this.round_calc = Math.round(this.calc)
|
37
|
-
this.week = ["Sun", "Mon", "Tues", "Wedness", "Thurs", "Fri", "Satur", "Sun"]
|
38
|
-
this.cl_wk = (this.week[this.round_calc])
|
39
|
-
}
|
40
|
-
getHimekuri(){
|
41
|
-
console.log(`${this.OneYear}/${this.OneMonth}/${this.anyDays} : ${this.cl_wk}day`)
|
42
|
-
}
|
43
|
-
}
|
44
|
-
|
45
|
-
const himekuri = new Himekuri()
|
46
|
-
himekuri.getHimekuri()
|
File without changes
|