sheltered-girl 4.0.5 → 4.0.7

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.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/.env +3 -3
  3. data/.gitignore +1 -0
  4. data/Gemfile +2 -2
  5. data/README.md +11 -11
  6. data/bin/aqua +247 -247
  7. data/bin/bmi +56 -56
  8. data/bin/bmi-license +118 -118
  9. data/bin/heat +14 -14
  10. data/bin/katakana +35 -35
  11. data/bin/koyomi +55 -55
  12. data/bin/romaji +34 -34
  13. data/bin/sheltered-girl +317 -317
  14. data/bin/speak +1149 -1149
  15. data/bin/tenji +42 -42
  16. data/bin/tenji_log +42 -42
  17. data/bin/tweet +79 -79
  18. data/lib/all.rb +45 -45
  19. data/lib/all_log.rb +50 -50
  20. data/lib/and.rb +48 -48
  21. data/lib/autocal.rb +21 -21
  22. data/lib/bmi.rb +28 -28
  23. data/lib/bmi_version.rb +21 -21
  24. data/lib/calendar.rb +17 -17
  25. data/lib/count.rb +43 -43
  26. data/lib/decript.rb +20 -20
  27. data/lib/druby_erb.rb +45 -45
  28. data/lib/druby_reci.rb +23 -23
  29. data/lib/feed.rb +13 -13
  30. data/lib/frame.rb +231 -212
  31. data/lib/frame_version.rb +21 -21
  32. data/lib/gc.rb +17 -17
  33. data/lib/himekuri.rb +175 -175
  34. data/lib/himekuri_version.rb +21 -21
  35. data/lib/hyaku.rb +55 -55
  36. data/lib/install.rb +257 -230
  37. data/lib/katakana.rb +666 -666
  38. data/lib/kome.rb +41 -41
  39. data/lib/mail.rb +47 -47
  40. data/lib/match.rb +50 -50
  41. data/lib/mini.rb +47 -47
  42. data/lib/minitest/full_runner.rb +105 -105
  43. data/lib/minitest/runner.rb +74 -74
  44. data/lib/not.rb +48 -48
  45. data/lib/or.rb +49 -49
  46. data/lib/require_sec_seiki.rb +2 -2
  47. data/lib/rice.rb +37 -37
  48. data/lib/romaji.rb +666 -666
  49. data/lib/saikoro.rb +17 -17
  50. data/lib/seiki.rb +12 -12
  51. data/lib/suihan.rb +40 -40
  52. data/lib/summa.rb +14 -14
  53. data/lib/tanraku.rb +156 -156
  54. data/lib/tenji.rb +4715 -4715
  55. data/lib/tenji_log.rb +4715 -4715
  56. data/lib/title.rb +16 -16
  57. data/lib/tubuyaki.rb +71 -71
  58. data/lib/tubuyaki_memo.rb +87 -87
  59. data/lib/tweet_cmd.rb +27 -27
  60. data/lib/version.rb +19 -21
  61. data/lib/zella.rb +46 -46
  62. data/req/aqua.rb +8 -8
  63. data/req/bmi.rb +6 -6
  64. data/req/frame.rb +7 -7
  65. data/req/full_run.rb +20 -20
  66. data/req/full_runner.rb +8 -8
  67. data/req/himekuri.rb +7 -7
  68. data/req/katakana.rb +7 -7
  69. data/req/koyomi.rb +6 -6
  70. data/req/mini_run.rb +20 -20
  71. data/req/romaji.rb +7 -7
  72. data/req/rubygems.rb +12 -12
  73. data/req/runner.rb +8 -8
  74. data/req/sheltered-girl.rb +7 -7
  75. data/req/speak.rb +19 -19
  76. data/req/zella.rb +4 -4
  77. data/runner/full.rb +57 -57
  78. data/runner/katakana.rb +110 -110
  79. data/runner/mini.rb +57 -57
  80. data/runner/romaji.rb +110 -110
  81. data/shell/romaji_runner_1.rb +669 -669
  82. data/shell/romaji_runner_10.rb +669 -669
  83. data/shell/romaji_runner_2.rb +669 -669
  84. data/shell/romaji_runner_3.rb +669 -669
  85. data/shell/romaji_runner_4.rb +669 -669
  86. data/shell/romaji_runner_5.rb +669 -669
  87. data/shell/romaji_runner_6.rb +669 -669
  88. data/shell/romaji_runner_7.rb +669 -669
  89. data/shell/romaji_runner_8.rb +669 -669
  90. data/shell/romaji_runner_9.rb +669 -669
  91. data/shell_ka/katakana_runner_1.rb +669 -669
  92. data/shell_ka/katakana_runner_10.rb +669 -669
  93. data/shell_ka/katakana_runner_2.rb +669 -669
  94. data/shell_ka/katakana_runner_3.rb +669 -669
  95. data/shell_ka/katakana_runner_4.rb +669 -669
  96. data/shell_ka/katakana_runner_5.rb +669 -669
  97. data/shell_ka/katakana_runner_6.rb +669 -669
  98. data/shell_ka/katakana_runner_7.rb +669 -669
  99. data/shell_ka/katakana_runner_8.rb +669 -669
  100. data/shell_ka/katakana_runner_9.rb +669 -669
  101. data/sheltered-girl.gemspec +46 -46
  102. data/wiki/README.md +82 -70
  103. metadata +2 -4
  104. data/lib/gem_version.rb +0 -9
  105. data/lib/timestamp.py +0 -61
data/lib/install.rb CHANGED
@@ -1,230 +1,257 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
-
6
- require "#{File.dirname(__FILE__)}/../req/frame"
7
-
8
- # Installer runner.
9
- class InstallerRunner
10
-
11
- def self.install
12
- encoding_style
13
- nyasocom_custom_name
14
- end
15
-
16
- def self.create
17
- encoding_style
18
- nyasocom_sun_custom_name
19
- end
20
-
21
- def self.cook
22
- encoding_style
23
- nyasocom2_custom_name
24
- end
25
-
26
- def self.download
27
- encoding_style
28
- nyasocom_command
29
- end
30
-
31
- def self.nyasocom2_download
32
- encoding_style
33
- nyasocom2_command
34
- end
35
-
36
- def self.nyasocom3_download
37
- encoding_style
38
- nyasocom3_command
39
- end
40
-
41
- def self.nyasocom_app_download
42
- encoding_style
43
- nyasocom_app_command
44
- end
45
-
46
- def self.appmakers
47
- encoding_style
48
- app_maker
49
- end
50
-
51
- def self.database
52
- encoding_style
53
- two = ARGV[1]
54
-
55
- pt = /\Apostgresql\z/
56
- pg = /\A--pg\z/
57
-
58
- if two.nil?
59
- puts <<-EOF
60
-
61
- nyasocom_pg project, clone command.
62
-
63
- heat db postgresql
64
-
65
- heat db --pg
66
-
67
- EOF
68
- elsif two.match?(pt)
69
- postgresql
70
- elsif two.match?(pg)
71
- postgresql
72
- else
73
- puts 'No such option is found, please refer to the documentation.'
74
- end
75
- end
76
-
77
- private
78
-
79
- def self.encoding_style
80
- Encoding.default_internal = 'UTF-8'
81
- Encoding.default_external = 'UTF-8'
82
- end
83
-
84
- def self.nyasocom_custom_name
85
- one = ARGV[1]
86
- FileUtils.mkdir_p("./#{one}")
87
- FileUtils.cd("./#{one}")
88
- if system('git clone git@github.com:takkii/nyasocom_oss.git .', exception: true)
89
- else
90
- system('git clone https://github.com:takkii/nyasocom_oss.git .')
91
- end
92
- FileUtils.rm_rf("./.git")
93
- FileUtils.rm_rf("./.github")
94
- puts <<-EOF
95
-
96
- Used nyasocom_frame to clone nyasocom_oss with any project name.
97
-
98
- EOF
99
- end
100
-
101
- def self.nyasocom2_custom_name
102
- two = ARGV[1]
103
- FileUtils.mkdir_p("./#{two}")
104
- FileUtils.cd("./#{two}")
105
- if system('git clone git@github.com:takkii/nyasocom2.git .', exception: true)
106
- else
107
- system('git clone https://github.com:takkii/nyasocom2.git .')
108
- end
109
- FileUtils.rm_rf("./.git")
110
- FileUtils.rm_rf("./.github")
111
- puts <<-EOF
112
-
113
- Used nyasocom_frame to clone nyasocom2 with any project name.
114
-
115
- EOF
116
- end
117
-
118
- def self.nyasocom_sun_custom_name
119
- sun = ARGV[1]
120
- FileUtils.mkdir_p("./#{sun}")
121
- FileUtils.cd("./#{sun}")
122
- if system('git clone git@github.com:takkii/nyasocom_sun_pg_win.git .', exception: true)
123
- else
124
- system('git clone https://github.com:takkii/nyasocom_sun_pg_win.git .')
125
- end
126
- FileUtils.rm_rf("./.git")
127
- FileUtils.rm_rf("./.github")
128
- puts <<-EOF
129
-
130
- Used nyasocom_frame to clone nyasocom_sun_pg_win with any project name.
131
-
132
- EOF
133
- end
134
-
135
- def self.nyasocom_command
136
- if system('git clone git@github.com:takkii/nyasocom_oss.git', exception: true)
137
- else
138
- system('git clone https://github.com:takkii/nyasocom_oss.git')
139
- end
140
- FileUtils.cd("./nyasocom_oss")
141
- FileUtils.rm_rf("./.git")
142
- FileUtils.rm_rf("./.github")
143
- puts <<-EOF
144
-
145
- Cloned nyasocom_oss with nyasocom_frame.
146
-
147
- EOF
148
- end
149
-
150
- def self.postgresql
151
- if system('git clone git@github.com:takkii/nyasocom_pg.git', exception: true)
152
- else
153
- system('git clone https://github.com:takkii/nyasocom_pg.git')
154
- end
155
- FileUtils.cd("./nyasocom_pg")
156
- FileUtils.rm_rf("./.git")
157
- FileUtils.rm_rf("./.github")
158
- puts <<-EOF
159
-
160
- Cloned nyasocom_pg with nyasocom_frame.
161
-
162
- EOF
163
- end
164
-
165
- def self.nyasocom2_command
166
- if system('git clone git@github.com:takkii/nyasocom2.git', exception: true)
167
- else
168
- system('git clone https://github.com:takkii/nyasocom2.git')
169
- end
170
- FileUtils.cd("./nyasocom2")
171
- FileUtils.rm_rf("./.git")
172
- FileUtils.rm_rf("./.github")
173
- puts <<-EOF
174
-
175
- Cloned nyasocom2 with nyasocom_frame.
176
-
177
- EOF
178
- end
179
-
180
- def self.nyasocom3_command
181
- if system('git clone git@github.com:takkii/nyasocom_sun_pg_win.git', exception: true)
182
- else
183
- system('git clone https://github.com:takkii/nyasocom_sun_pg_win.git')
184
- end
185
- FileUtils.cd("./nyasocom_sun_pg_win")
186
- FileUtils.rm_rf("./.git")
187
- FileUtils.rm_rf("./.github")
188
- puts <<-EOF
189
-
190
- Cloned nyasocom_sun_pg_win with nyasocom_frame.
191
-
192
- EOF
193
- end
194
-
195
- def self.nyasocom_app_command
196
- if system('git clone git@github.com:takkii/nyasocom_sun_app.git', exception: true)
197
- else
198
- system('git clone https://github.com:takkii/nyasocom_sun_app.git')
199
- end
200
- FileUtils.cd("./nyasocom_sun_app")
201
- FileUtils.rm_rf("./.git")
202
- FileUtils.rm_rf("./.github")
203
- puts <<-EOF
204
-
205
- Cloned nyasocom_sun_app with nyasocom_frame.
206
-
207
- EOF
208
- end
209
-
210
- def self.app_maker
211
- encoding_style
212
- flh = ARGV[1]
213
- gph = ARGV[2]
214
- FileUtils.mkdir_p("./#{flh}")
215
- FileUtils.cd("./#{flh}")
216
- if system("git clone git@github.com:#{gph}.git .", exception: true)
217
- else
218
- system("git clone https://github.com:#{gph}.git .")
219
- end
220
- FileUtils.rm_rf("./.git")
221
- FileUtils.rm_rf("./.github")
222
- puts <<-EOF
223
-
224
- Cloned GitHub project with app-maker.
225
-
226
- EOF
227
- end
228
- end
229
-
230
- __END__
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+
6
+ require "#{File.dirname(__FILE__)}/../req/frame"
7
+
8
+ # Installer runner.
9
+ class InstallerRunner
10
+
11
+ def self.install
12
+ encoding_style
13
+ nyasocom_custom_name
14
+ end
15
+
16
+ def self.create
17
+ encoding_style
18
+ nyasocom_sun_custom_name
19
+ end
20
+
21
+ def self.cook
22
+ encoding_style
23
+ nyasocom2_custom_name
24
+ end
25
+
26
+ def self.download
27
+ encoding_style
28
+ nyasocom_command
29
+ end
30
+
31
+ def self.nyasocom2_download
32
+ encoding_style
33
+ nyasocom2_command
34
+ end
35
+
36
+ def self.nyasocom3_download
37
+ encoding_style
38
+ nyasocom3_command
39
+ end
40
+
41
+ def self.nyasocom_app_download
42
+ encoding_style
43
+ nyasocom_app_command
44
+ end
45
+
46
+ def self.appmakers
47
+ encoding_style
48
+ app_maker
49
+ end
50
+
51
+ def self.app_maker_branches
52
+ encoding_style
53
+ app_maker_branch
54
+ end
55
+
56
+ def self.database
57
+ encoding_style
58
+ two = ARGV[1]
59
+
60
+ pt = /\Apostgresql\z/
61
+ pg = /\A--pg\z/
62
+
63
+ if two.nil?
64
+ puts <<-EOF
65
+
66
+ nyasocom_pg project, clone command.
67
+
68
+ heat db postgresql
69
+
70
+ heat db --pg
71
+
72
+ EOF
73
+ elsif two.match?(pt)
74
+ postgresql
75
+ elsif two.match?(pg)
76
+ postgresql
77
+ else
78
+ puts 'No such option is found, please refer to the documentation.'
79
+ end
80
+ end
81
+
82
+ private
83
+
84
+ def self.encoding_style
85
+ Encoding.default_internal = 'UTF-8'
86
+ Encoding.default_external = 'UTF-8'
87
+ end
88
+
89
+ def self.nyasocom_custom_name
90
+ one = ARGV[1]
91
+ FileUtils.mkdir_p("./#{one}")
92
+ FileUtils.cd("./#{one}")
93
+ if system('git clone git@github.com:takkii/nyasocom_oss.git .', exception: true)
94
+ else
95
+ system('git clone https://github.com:takkii/nyasocom_oss.git .')
96
+ end
97
+ FileUtils.rm_rf("./.git")
98
+ FileUtils.rm_rf("./.github")
99
+ puts <<-EOF
100
+
101
+ Used nyasocom_frame to clone nyasocom_oss with any project name.
102
+
103
+ EOF
104
+ end
105
+
106
+ def self.nyasocom2_custom_name
107
+ two = ARGV[1]
108
+ FileUtils.mkdir_p("./#{two}")
109
+ FileUtils.cd("./#{two}")
110
+ if system('git clone git@github.com:takkii/nyasocom2.git .', exception: true)
111
+ else
112
+ system('git clone https://github.com:takkii/nyasocom2.git .')
113
+ end
114
+ FileUtils.rm_rf("./.git")
115
+ FileUtils.rm_rf("./.github")
116
+ puts <<-EOF
117
+
118
+ Used nyasocom_frame to clone nyasocom2 with any project name.
119
+
120
+ EOF
121
+ end
122
+
123
+ def self.nyasocom_sun_custom_name
124
+ sun = ARGV[1]
125
+ FileUtils.mkdir_p("./#{sun}")
126
+ FileUtils.cd("./#{sun}")
127
+ if system('git clone git@github.com:takkii/nyasocom_sun_pg_win.git .', exception: true)
128
+ else
129
+ system('git clone https://github.com:takkii/nyasocom_sun_pg_win.git .')
130
+ end
131
+ FileUtils.rm_rf("./.git")
132
+ FileUtils.rm_rf("./.github")
133
+ puts <<-EOF
134
+
135
+ Used nyasocom_frame to clone nyasocom_sun_pg_win with any project name.
136
+
137
+ EOF
138
+ end
139
+
140
+ def self.nyasocom_command
141
+ if system('git clone git@github.com:takkii/nyasocom_oss.git', exception: true)
142
+ else
143
+ system('git clone https://github.com:takkii/nyasocom_oss.git')
144
+ end
145
+ FileUtils.cd("./nyasocom_oss")
146
+ FileUtils.rm_rf("./.git")
147
+ FileUtils.rm_rf("./.github")
148
+ puts <<-EOF
149
+
150
+ Cloned nyasocom_oss with nyasocom_frame.
151
+
152
+ EOF
153
+ end
154
+
155
+ def self.postgresql
156
+ if system('git clone git@github.com:takkii/nyasocom_pg.git', exception: true)
157
+ else
158
+ system('git clone https://github.com:takkii/nyasocom_pg.git')
159
+ end
160
+ FileUtils.cd("./nyasocom_pg")
161
+ FileUtils.rm_rf("./.git")
162
+ FileUtils.rm_rf("./.github")
163
+ puts <<-EOF
164
+
165
+ Cloned nyasocom_pg with nyasocom_frame.
166
+
167
+ EOF
168
+ end
169
+
170
+ def self.nyasocom2_command
171
+ if system('git clone git@github.com:takkii/nyasocom2.git', exception: true)
172
+ else
173
+ system('git clone https://github.com:takkii/nyasocom2.git')
174
+ end
175
+ FileUtils.cd("./nyasocom2")
176
+ FileUtils.rm_rf("./.git")
177
+ FileUtils.rm_rf("./.github")
178
+ puts <<-EOF
179
+
180
+ Cloned nyasocom2 with nyasocom_frame.
181
+
182
+ EOF
183
+ end
184
+
185
+ def self.nyasocom3_command
186
+ if system('git clone git@github.com:takkii/nyasocom_sun_pg_win.git', exception: true)
187
+ else
188
+ system('git clone https://github.com:takkii/nyasocom_sun_pg_win.git')
189
+ end
190
+ FileUtils.cd("./nyasocom_sun_pg_win")
191
+ FileUtils.rm_rf("./.git")
192
+ FileUtils.rm_rf("./.github")
193
+ puts <<-EOF
194
+
195
+ Cloned nyasocom_sun_pg_win with nyasocom_frame.
196
+
197
+ EOF
198
+ end
199
+
200
+ def self.nyasocom_app_command
201
+ if system('git clone git@github.com:takkii/nyasocom_sun_app.git', exception: true)
202
+ else
203
+ system('git clone https://github.com:takkii/nyasocom_sun_app.git')
204
+ end
205
+ FileUtils.cd("./nyasocom_sun_app")
206
+ FileUtils.rm_rf("./.git")
207
+ FileUtils.rm_rf("./.github")
208
+ puts <<-EOF
209
+
210
+ Cloned nyasocom_sun_app with nyasocom_frame.
211
+
212
+ EOF
213
+ end
214
+
215
+ def self.app_maker
216
+ encoding_style
217
+ flh = ARGV[1]
218
+ ghn = ARGV[2]
219
+ gpp = ARGV[3]
220
+ FileUtils.mkdir_p("./#{flh}")
221
+ FileUtils.cd("./#{flh}")
222
+ if system("git clone git@github.com:#{ghn}/#{gpp}.git .", exception: true)
223
+ else
224
+ system("git clone https://github.com:#{ghn}/#{gpp}.git .")
225
+ end
226
+ FileUtils.rm_rf("./.git")
227
+ FileUtils.rm_rf("./.github")
228
+ puts <<-EOF
229
+
230
+ Cloned GitHub with user/#{ghn} project/#{gpp}.
231
+
232
+ EOF
233
+ end
234
+
235
+ def self.app_maker_branch
236
+ encoding_style
237
+ flh = ARGV[1]
238
+ ghn = ARGV[2]
239
+ gpp = ARGV[3]
240
+ branch = ARGV[4]
241
+ FileUtils.mkdir_p("./#{flh}")
242
+ FileUtils.cd("./#{flh}")
243
+ if system("git clone -b #{branch} git@github.com:#{ghn}/#{gpp}.git .", exception: true)
244
+ else
245
+ system("git clone -b #{branch} https://github.com:#{ghn}/#{gpp}.git .")
246
+ end
247
+ FileUtils.rm_rf("./.git")
248
+ FileUtils.rm_rf("./.github")
249
+ puts <<-EOF
250
+
251
+ Cloned GitHub with user/#{ghn} project/#{gpp} branch/#{branch}.
252
+
253
+ EOF
254
+ end
255
+ end
256
+
257
+ __END__