sheltered-girl 4.0.4.5 → 4.0.6
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/speak +1149 -1164
- data/lib/version.rb +3 -3
- data/req/speak.rb +10 -1
- data/sheltered-girl.gemspec +2 -2
- data/wiki/README.md +25 -13
- metadata +2 -4
- data/lib/gem_version.rb +0 -9
- data/lib/timestamp.py +0 -61
data/lib/version.rb
CHANGED
data/req/speak.rb
CHANGED
|
@@ -2,10 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
# -------------------------------------
|
|
4
4
|
require 'date'
|
|
5
|
+
require 'feedjira'
|
|
6
|
+
require 'httparty'
|
|
7
|
+
require 'json'
|
|
8
|
+
require 'kconv'
|
|
5
9
|
require 'open3'
|
|
10
|
+
require 'net/http'
|
|
6
11
|
require 'readline'
|
|
7
12
|
require 'securerandom'
|
|
8
|
-
require '
|
|
13
|
+
require 'time'
|
|
14
|
+
require 'uri'
|
|
9
15
|
require 'pycall/import'
|
|
10
16
|
include PyCall::Import
|
|
17
|
+
require 'rinku'
|
|
18
|
+
require 'rss'
|
|
19
|
+
require 'sanitize'
|
|
11
20
|
# -------------------------------------
|
data/sheltered-girl.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ lib = File.expand_path('../lib', __FILE__)
|
|
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
|
6
6
|
require "#{File.dirname(__FILE__)}/req/rubygems"
|
|
7
|
-
require '
|
|
7
|
+
require 'core'
|
|
8
8
|
|
|
9
9
|
Gem::Specification.new do |s|
|
|
10
10
|
s.name = "sheltered-girl"
|
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
|
21
21
|
s.licenses = ["MIT"]
|
|
22
22
|
s.require_paths = ["lib"]
|
|
23
23
|
s.required_ruby_version = ['>= 3.0']
|
|
24
|
-
s.required_rubygems_version = '~> 3.6.9' if s.respond_to?
|
|
24
|
+
s.required_rubygems_version = '~> 3.6.9' if s.respond_to? CoreNYM.gem_version
|
|
25
25
|
s.summary = "This is a console application, a remake of zinbeiw."
|
|
26
26
|
s.description = "箱入り娘, All in One Packages."
|
|
27
27
|
s.metadata["github_repo"] = "https://github.com/takkii/sheltered-girl"
|
data/wiki/README.md
CHANGED
|
@@ -26,7 +26,7 @@ FullW(msg = false, wsl_dir = '/mnt/c/Users/username', msg_dir = '/mini_test/')
|
|
|
26
26
|
|
|
27
27
|
### 短絡の仕様
|
|
28
28
|
|
|
29
|
-
```
|
|
29
|
+
```ruby
|
|
30
30
|
# 独自例外を発生し、次の処理に転移します
|
|
31
31
|
Object.tanraku
|
|
32
32
|
|
|
@@ -38,33 +38,45 @@ Object.tanraku_execute
|
|
|
38
38
|
|
|
39
39
|
# 短絡のログを記録します
|
|
40
40
|
Object.tanraku_log
|
|
41
|
+
```
|
|
41
42
|
|
|
42
|
-
|
|
43
|
+
#### 同機能を関数として使用できます。
|
|
44
|
+
|
|
45
|
+
```markdown
|
|
43
46
|
tanraku
|
|
44
47
|
tanraku_exit
|
|
45
48
|
tanraku_execute
|
|
46
49
|
tanraku_log
|
|
47
|
-
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
#### tanraku_matchの詳細
|
|
53
|
+
|
|
54
|
+
```markdown
|
|
55
|
+
tanraku_match(比較先, 正規表現, 実行する処理)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
#### tanraku_matchの明示的な型
|
|
48
59
|
|
|
49
|
-
|
|
50
|
-
tanraku_match(str_tanraku, match_tanraku, process_tanraku)
|
|
60
|
+
```markdown
|
|
51
61
|
tanraku_match(String, String, None)
|
|
62
|
+
```
|
|
52
63
|
|
|
53
|
-
|
|
54
|
-
str_tanraku = ''
|
|
55
|
-
match_tanraku = ''
|
|
56
|
-
process_tanraku
|
|
64
|
+
#### tanraku_match 使用例 (常に発動)
|
|
57
65
|
|
|
58
|
-
|
|
66
|
+
```ruby
|
|
59
67
|
require 'tanraku'
|
|
68
|
+
|
|
60
69
|
tanraku_match('あいうえお', '/あ/o', tanraku_execute)
|
|
70
|
+
```
|
|
61
71
|
|
|
62
|
-
|
|
63
|
-
|
|
72
|
+
#### 使用例の出力結果
|
|
73
|
+
|
|
74
|
+
```markdown
|
|
75
|
+
# ... backtrace 表示
|
|
64
76
|
TypeError : exception class/object expected
|
|
65
77
|
--> Tanraku_Execute Method Exception
|
|
66
78
|
```
|
|
67
79
|
|
|
68
80
|
※ Tanraku_VERSION: 1.1.4
|
|
69
81
|
|
|
70
|
-
_更新履歴 : 2025/09/
|
|
82
|
+
_更新履歴 : 2025/09/21_
|
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.
|
|
4
|
+
version: 4.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Takayuki Kamiyama
|
|
@@ -228,7 +228,6 @@ files:
|
|
|
228
228
|
- lib/frame.rb
|
|
229
229
|
- lib/frame_version.rb
|
|
230
230
|
- lib/gc.rb
|
|
231
|
-
- lib/gem_version.rb
|
|
232
231
|
- lib/himekuri.rb
|
|
233
232
|
- lib/himekuri_version.rb
|
|
234
233
|
- lib/hyaku.rb
|
|
@@ -252,7 +251,6 @@ files:
|
|
|
252
251
|
- lib/tanraku.rb
|
|
253
252
|
- lib/tenji.rb
|
|
254
253
|
- lib/tenji_log.rb
|
|
255
|
-
- lib/timestamp.py
|
|
256
254
|
- lib/title.rb
|
|
257
255
|
- lib/tubuyaki.rb
|
|
258
256
|
- lib/tubuyaki_memo.rb
|
|
@@ -330,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
330
328
|
- !ruby/object:Gem::Version
|
|
331
329
|
version: '0'
|
|
332
330
|
requirements: []
|
|
333
|
-
rubygems_version: 3.
|
|
331
|
+
rubygems_version: 3.7.2
|
|
334
332
|
specification_version: 4
|
|
335
333
|
summary: This is a console application, a remake of zinbeiw.
|
|
336
334
|
test_files: []
|
data/lib/gem_version.rb
DELETED
data/lib/timestamp.py
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import datetime
|
|
2
|
-
import gc
|
|
3
|
-
import re
|
|
4
|
-
import threading
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
def main():
|
|
8
|
-
try:
|
|
9
|
-
year = int(datetime.datetime.now().year)
|
|
10
|
-
month = int(datetime.datetime.now().month)
|
|
11
|
-
day = int(datetime.datetime.now().day)
|
|
12
|
-
|
|
13
|
-
st_year = str(datetime.datetime.now().year)
|
|
14
|
-
st_month = str(datetime.datetime.now().month)
|
|
15
|
-
st_day = str(datetime.datetime.now().day)
|
|
16
|
-
|
|
17
|
-
two_month = bool(re.fullmatch("^[2]$", str(month)))
|
|
18
|
-
eleven_month = bool(re.fullmatch("^[11]$", str(month)))
|
|
19
|
-
|
|
20
|
-
if year % 4 == 0 and year % 100 != 0 or year % 400 == 0:
|
|
21
|
-
if two_month:
|
|
22
|
-
calc = ((365 * year + year / 4 - year / 100 + year / 400 +
|
|
23
|
-
(306 * (month + 1)) / 10 + day) - 426) % 7
|
|
24
|
-
elif eleven_month:
|
|
25
|
-
calc = ((365 * year + year / 4 - year / 100 + year / 400 +
|
|
26
|
-
(306 * (month + 1)) / 10 + day) - 427) % 7
|
|
27
|
-
else:
|
|
28
|
-
calc = ((365 * year + year / 4 - year / 100 + year / 400 +
|
|
29
|
-
(306 * (month + 1)) / 10 + day) - 428) % 7
|
|
30
|
-
else:
|
|
31
|
-
calc = (year + year / 4 - year / 100 + year / 400 +
|
|
32
|
-
(13 * month + 8) / 5 + day) % 7
|
|
33
|
-
|
|
34
|
-
wk = ["Sun", "Mon", "Tues", "Wedness", "Thurs", "Fri", "Satur", "Sun"]
|
|
35
|
-
cl_wk = wk[round(calc)]
|
|
36
|
-
|
|
37
|
-
print(st_year + "/" + st_month + "/" + st_day + " : " + cl_wk + "day")
|
|
38
|
-
|
|
39
|
-
# Custom Exception.
|
|
40
|
-
except ValueError as ext:
|
|
41
|
-
print(ext)
|
|
42
|
-
raise RuntimeError from None
|
|
43
|
-
|
|
44
|
-
# Once Exec.
|
|
45
|
-
finally:
|
|
46
|
-
# GC collection.
|
|
47
|
-
gc.collect()
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
# Thread call, list.
|
|
51
|
-
class time_stamp(threading.Thread):
|
|
52
|
-
|
|
53
|
-
def __init__(self):
|
|
54
|
-
threading.Thread.__init__(self)
|
|
55
|
-
|
|
56
|
-
def start(self):
|
|
57
|
-
main()
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
Thread = time_stamp()
|
|
61
|
-
start = Thread.start()
|