sheltered-girl 4.0.6 → 4.0.7.1
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/.gitignore +1 -0
- data/lib/frame.rb +20 -1
- data/lib/install.rb +48 -26
- data/lib/version.rb +5 -2
- data/sheltered-girl.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 567a470b3c43871851e8745f4afad989917525545be13cf1e41110f7207a77b5
|
|
4
|
+
data.tar.gz: 3eef763ebc1105bd672b1fcda2d3b62de4e4473e51e1166591fdb4234339fb28
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f1a6ef19a7524ff91dd339da630def974dd204122c2657bfd661074ff4b6610bf99849df9870f1cd006298bf590e74ff2555857897c3769f27bed3349cd06c6
|
|
7
|
+
data.tar.gz: 4f0b28533959b930e0c47070bef7d1af59bcc4bab2daa2e78b94372141f02406e988ef76fbb9d96e0fd8768a0380e544b3aa03b1dca29b3dd436f69cc16a3d60
|
data/.gitignore
CHANGED
data/lib/frame.rb
CHANGED
|
@@ -113,6 +113,19 @@ module Heart
|
|
|
113
113
|
end
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
+
def appmakerbr
|
|
117
|
+
require 'install'
|
|
118
|
+
begin
|
|
119
|
+
InstallerRunner.app_maker_branches
|
|
120
|
+
rescue LoadError => e
|
|
121
|
+
puts e.backtrace
|
|
122
|
+
ensure
|
|
123
|
+
GC.compact
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
116
129
|
def default
|
|
117
130
|
str = 'nyasocom_frame is a framework for generating web applications. '
|
|
118
131
|
puts str
|
|
@@ -155,7 +168,10 @@ heat db postgresql
|
|
|
155
168
|
heat db --pg
|
|
156
169
|
|
|
157
170
|
# github project templete generated
|
|
158
|
-
heat make nyasocom takkii
|
|
171
|
+
heat make nyasocom takkii nyasocom_oss
|
|
172
|
+
|
|
173
|
+
# github project templete generated + branch_name
|
|
174
|
+
heat branch nyasocom takkii nyasocom_oss main
|
|
159
175
|
|
|
160
176
|
# HELP
|
|
161
177
|
heat -h
|
|
@@ -164,6 +180,7 @@ EOS
|
|
|
164
180
|
end
|
|
165
181
|
|
|
166
182
|
a = /\Aapp\z/
|
|
183
|
+
b = /\Abranch\z/
|
|
167
184
|
c = /\Acreate\z/
|
|
168
185
|
d = /\Adb\z/
|
|
169
186
|
h = /\A[-][h]\z/
|
|
@@ -183,6 +200,8 @@ if one.nil?
|
|
|
183
200
|
default
|
|
184
201
|
elsif one.match?(a)
|
|
185
202
|
nyasocom_app_downloader
|
|
203
|
+
elsif one.match?(b)
|
|
204
|
+
appmakerbr
|
|
186
205
|
elsif one.match?(c)
|
|
187
206
|
creater
|
|
188
207
|
elsif one.match?(h)
|
data/lib/install.rb
CHANGED
|
@@ -12,7 +12,7 @@ class InstallerRunner
|
|
|
12
12
|
encoding_style
|
|
13
13
|
nyasocom_custom_name
|
|
14
14
|
end
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
def self.create
|
|
17
17
|
encoding_style
|
|
18
18
|
nyasocom_sun_custom_name
|
|
@@ -48,6 +48,11 @@ class InstallerRunner
|
|
|
48
48
|
app_maker
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
+
def self.app_maker_branches
|
|
52
|
+
encoding_style
|
|
53
|
+
app_maker_branch
|
|
54
|
+
end
|
|
55
|
+
|
|
51
56
|
def self.database
|
|
52
57
|
encoding_style
|
|
53
58
|
two = ARGV[1]
|
|
@@ -64,7 +69,7 @@ heat db postgresql
|
|
|
64
69
|
|
|
65
70
|
heat db --pg
|
|
66
71
|
|
|
67
|
-
EOF
|
|
72
|
+
EOF
|
|
68
73
|
elsif two.match?(pt)
|
|
69
74
|
postgresql
|
|
70
75
|
elsif two.match?(pg)
|
|
@@ -76,11 +81,6 @@ EOF
|
|
|
76
81
|
|
|
77
82
|
private
|
|
78
83
|
|
|
79
|
-
def self.encoding_style
|
|
80
|
-
Encoding.default_internal = 'UTF-8'
|
|
81
|
-
Encoding.default_external = 'UTF-8'
|
|
82
|
-
end
|
|
83
|
-
|
|
84
84
|
def self.nyasocom_custom_name
|
|
85
85
|
one = ARGV[1]
|
|
86
86
|
FileUtils.mkdir_p("./#{one}")
|
|
@@ -91,13 +91,13 @@ EOF
|
|
|
91
91
|
end
|
|
92
92
|
FileUtils.rm_rf("./.git")
|
|
93
93
|
FileUtils.rm_rf("./.github")
|
|
94
|
-
|
|
94
|
+
puts <<-EOF
|
|
95
95
|
|
|
96
96
|
Used nyasocom_frame to clone nyasocom_oss with any project name.
|
|
97
97
|
|
|
98
|
-
EOF
|
|
98
|
+
EOF
|
|
99
99
|
end
|
|
100
|
-
|
|
100
|
+
|
|
101
101
|
def self.nyasocom2_custom_name
|
|
102
102
|
two = ARGV[1]
|
|
103
103
|
FileUtils.mkdir_p("./#{two}")
|
|
@@ -108,11 +108,11 @@ EOF
|
|
|
108
108
|
end
|
|
109
109
|
FileUtils.rm_rf("./.git")
|
|
110
110
|
FileUtils.rm_rf("./.github")
|
|
111
|
-
|
|
111
|
+
puts <<-EOF
|
|
112
112
|
|
|
113
113
|
Used nyasocom_frame to clone nyasocom2 with any project name.
|
|
114
114
|
|
|
115
|
-
EOF
|
|
115
|
+
EOF
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
def self.nyasocom_sun_custom_name
|
|
@@ -125,11 +125,11 @@ EOF
|
|
|
125
125
|
end
|
|
126
126
|
FileUtils.rm_rf("./.git")
|
|
127
127
|
FileUtils.rm_rf("./.github")
|
|
128
|
-
|
|
128
|
+
puts <<-EOF
|
|
129
129
|
|
|
130
130
|
Used nyasocom_frame to clone nyasocom_sun_pg_win with any project name.
|
|
131
131
|
|
|
132
|
-
EOF
|
|
132
|
+
EOF
|
|
133
133
|
end
|
|
134
134
|
|
|
135
135
|
def self.nyasocom_command
|
|
@@ -144,7 +144,7 @@ EOF
|
|
|
144
144
|
|
|
145
145
|
Cloned nyasocom_oss with nyasocom_frame.
|
|
146
146
|
|
|
147
|
-
EOF
|
|
147
|
+
EOF
|
|
148
148
|
end
|
|
149
149
|
|
|
150
150
|
def self.postgresql
|
|
@@ -159,8 +159,8 @@ EOF
|
|
|
159
159
|
|
|
160
160
|
Cloned nyasocom_pg with nyasocom_frame.
|
|
161
161
|
|
|
162
|
-
EOF
|
|
163
|
-
end
|
|
162
|
+
EOF
|
|
163
|
+
end
|
|
164
164
|
|
|
165
165
|
def self.nyasocom2_command
|
|
166
166
|
if system('git clone git@github.com:takkii/nyasocom2.git', exception: true)
|
|
@@ -174,7 +174,7 @@ end
|
|
|
174
174
|
|
|
175
175
|
Cloned nyasocom2 with nyasocom_frame.
|
|
176
176
|
|
|
177
|
-
EOF
|
|
177
|
+
EOF
|
|
178
178
|
end
|
|
179
179
|
|
|
180
180
|
def self.nyasocom3_command
|
|
@@ -189,8 +189,8 @@ EOF
|
|
|
189
189
|
|
|
190
190
|
Cloned nyasocom_sun_pg_win with nyasocom_frame.
|
|
191
191
|
|
|
192
|
-
EOF
|
|
193
|
-
end
|
|
192
|
+
EOF
|
|
193
|
+
end
|
|
194
194
|
|
|
195
195
|
def self.nyasocom_app_command
|
|
196
196
|
if system('git clone git@github.com:takkii/nyasocom_sun_app.git', exception: true)
|
|
@@ -204,26 +204,48 @@ end
|
|
|
204
204
|
|
|
205
205
|
Cloned nyasocom_sun_app with nyasocom_frame.
|
|
206
206
|
|
|
207
|
-
EOF
|
|
207
|
+
EOF
|
|
208
208
|
end
|
|
209
209
|
|
|
210
210
|
def self.app_maker
|
|
211
211
|
encoding_style
|
|
212
212
|
flh = ARGV[1]
|
|
213
|
-
|
|
213
|
+
ghn = ARGV[2]
|
|
214
|
+
gpp = ARGV[3]
|
|
215
|
+
FileUtils.mkdir_p("./#{flh}")
|
|
216
|
+
FileUtils.cd("./#{flh}")
|
|
217
|
+
if system("git clone git@github.com:#{ghn}/#{gpp}.git .", exception: true)
|
|
218
|
+
else
|
|
219
|
+
system("git clone https://github.com:#{ghn}/#{gpp}.git .")
|
|
220
|
+
end
|
|
221
|
+
FileUtils.rm_rf("./.git")
|
|
222
|
+
FileUtils.rm_rf("./.github")
|
|
223
|
+
puts <<-EOF
|
|
224
|
+
|
|
225
|
+
Cloned GitHub with user/#{ghn} project/#{gpp}.
|
|
226
|
+
|
|
227
|
+
EOF
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
def self.app_maker_branch
|
|
231
|
+
encoding_style
|
|
232
|
+
flh = ARGV[1]
|
|
233
|
+
ghn = ARGV[2]
|
|
234
|
+
gpp = ARGV[3]
|
|
235
|
+
branch = ARGV[4]
|
|
214
236
|
FileUtils.mkdir_p("./#{flh}")
|
|
215
237
|
FileUtils.cd("./#{flh}")
|
|
216
|
-
if system("git clone git@github.com:#{
|
|
238
|
+
if system("git clone -b #{branch} git@github.com:#{ghn}/#{gpp}.git .", exception: true)
|
|
217
239
|
else
|
|
218
|
-
system("git clone https://github.com:#{
|
|
240
|
+
system("git clone -b #{branch} https://github.com:#{ghn}/#{gpp}.git .")
|
|
219
241
|
end
|
|
220
242
|
FileUtils.rm_rf("./.git")
|
|
221
243
|
FileUtils.rm_rf("./.github")
|
|
222
244
|
puts <<-EOF
|
|
223
245
|
|
|
224
|
-
Cloned GitHub project
|
|
246
|
+
Cloned GitHub with user/#{ghn} project/#{gpp} branch/#{branch}.
|
|
225
247
|
|
|
226
|
-
EOF
|
|
248
|
+
EOF
|
|
227
249
|
end
|
|
228
250
|
end
|
|
229
251
|
|
data/lib/version.rb
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'tanraku'
|
|
4
|
+
|
|
3
5
|
# minitest, version 4 < 5 no match.
|
|
4
6
|
class EngineLeft
|
|
5
7
|
def self.version
|
|
6
8
|
# 'x.x.x.x'.to_s < '5.x.x.x'.to_s
|
|
7
|
-
'4.0.
|
|
9
|
+
'4.0.7.1'.to_s
|
|
8
10
|
end
|
|
9
11
|
end
|
|
10
12
|
|
|
@@ -12,8 +14,9 @@ begin
|
|
|
12
14
|
EngineLeft.version
|
|
13
15
|
rescue StandardError => e
|
|
14
16
|
puts e.backtrace
|
|
17
|
+
tanraku_execute
|
|
15
18
|
ensure
|
|
16
|
-
GC.
|
|
19
|
+
GC.auto_compact
|
|
17
20
|
end
|
|
18
21
|
|
|
19
22
|
__END__
|
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 'grouse'
|
|
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? 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"
|