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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46810d42ae32436e6a8e9f6b9896a2c9cbac4bfbaed0217acc22ae6b859315dd
4
- data.tar.gz: 523d4ccb6ac97deb8969399f1e801f2a09ef7dc756ff7575a24af6a8e055f75f
3
+ metadata.gz: 3c63be15b01876946d0703b93f23ee42bdaf57ac3ab23a5173302964e4937b47
4
+ data.tar.gz: 31bdbf77c8bf62a465d0215548eda20001f45287e7f65bf1f9475cfd17824059
5
5
  SHA512:
6
- metadata.gz: 901b2a75ad5fb00d9483821209fd5d4c6c57a9e57d9dd7755503dcba99c3764b92d20d2954b4e2f996ecb8eeb10075dfab87c05d433df519ae100c0b233a1fd7
7
- data.tar.gz: 02ab7380db433da02351b47f7e2a8c83f1560ba458691464a0cc352a3aeb7185edd26d5c4860266165a6e91faa3e4880e2a9d3f6535363482f092407b4408515
6
+ metadata.gz: cfcf907e9527b3bc52a58ec9959ecd82d77c1c1de729e761ce0384b8a357997a69080be82e6e0e0ba9f51aff882c508d0dcefbfaeec335ba47038b9fa91b8dad
7
+ data.tar.gz: df6492db844f200f0e196873363319febf571924b4c622011f1a25cf400e9611c02e024eb6706adf6988e06693b9a2325d0f83ed0aad0c001e4627cfffa2a2b4
data/bin/bmi CHANGED
@@ -15,7 +15,7 @@ begin
15
15
  puts ''
16
16
  puts 'STATUS'.center(60, '-')
17
17
  puts ''
18
- puts "BMI_VERSION : #{BMI_CLI::VERSION}"
18
+ puts "BMI_VERSION : #{BMI_CLI::BMI_VERSION}"
19
19
  puts <<-EOF
20
20
 
21
21
  Copyright (c) 2024 - #{(DateTime.now.year).to_s} Takayuki Kamiyama
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 input_n < x
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 '入力した数字が100を超えたため、終了します...'
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/nyasocom_frame"
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::VERSION
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::VERSION
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
@@ -3,7 +3,7 @@
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/nyasocom_frame"
6
+ require "#{File.dirname(__FILE__)}/../req/frame"
7
7
 
8
8
  # Installer runner.
9
9
  class InstallerRunner
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'
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
- VERSION = "#{bmi_version}-#{build_day}".freeze
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
- VERSION = "#{himekuri_version}-#{build_day}".freeze
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
- VERSION = "#{frame_version}-#{build_day}".freeze
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
@@ -2,7 +2,6 @@
2
2
 
3
3
  # --------------------------------------
4
4
  require 'date'
5
- require 'open3'
6
5
  require 'time'
7
6
  require 'version'
8
7
  require 'zella'
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.8
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