sheltered-girl 4.0.6 → 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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/frame.rb +20 -1
- data/lib/install.rb +48 -21
- data/lib/version.rb +1 -1
- 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: e074e02468646fa3eb5b3143d66d00b8b2662ec50e0368e0e94eb9e2fd1be19c
|
|
4
|
+
data.tar.gz: 5584318e71ca94e82a5484c688f7d1f6740c163b4a2c5fbac251d9177330c387
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 135b7bf221d4885f13a96475353bed6e5d333f6b8e8a20c8f8a39a6fdb520986b0b342ca5434543cf80d5b8b7ec3106ac105b4d5820a1f4b646d8e65254434a3
|
|
7
|
+
data.tar.gz: 02f98915b32725de59a01c6d2e591514c8686c91977bba2ddaa24981a8c1c789b39555f9cbb15ac5580ac3d5ce2d0080195992102c04a0d53a27d3eec7242fef
|
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)
|
|
@@ -91,13 +96,13 @@ EOF
|
|
|
91
96
|
end
|
|
92
97
|
FileUtils.rm_rf("./.git")
|
|
93
98
|
FileUtils.rm_rf("./.github")
|
|
94
|
-
|
|
99
|
+
puts <<-EOF
|
|
95
100
|
|
|
96
101
|
Used nyasocom_frame to clone nyasocom_oss with any project name.
|
|
97
102
|
|
|
98
|
-
EOF
|
|
103
|
+
EOF
|
|
99
104
|
end
|
|
100
|
-
|
|
105
|
+
|
|
101
106
|
def self.nyasocom2_custom_name
|
|
102
107
|
two = ARGV[1]
|
|
103
108
|
FileUtils.mkdir_p("./#{two}")
|
|
@@ -108,11 +113,11 @@ EOF
|
|
|
108
113
|
end
|
|
109
114
|
FileUtils.rm_rf("./.git")
|
|
110
115
|
FileUtils.rm_rf("./.github")
|
|
111
|
-
|
|
116
|
+
puts <<-EOF
|
|
112
117
|
|
|
113
118
|
Used nyasocom_frame to clone nyasocom2 with any project name.
|
|
114
119
|
|
|
115
|
-
EOF
|
|
120
|
+
EOF
|
|
116
121
|
end
|
|
117
122
|
|
|
118
123
|
def self.nyasocom_sun_custom_name
|
|
@@ -125,11 +130,11 @@ EOF
|
|
|
125
130
|
end
|
|
126
131
|
FileUtils.rm_rf("./.git")
|
|
127
132
|
FileUtils.rm_rf("./.github")
|
|
128
|
-
|
|
133
|
+
puts <<-EOF
|
|
129
134
|
|
|
130
135
|
Used nyasocom_frame to clone nyasocom_sun_pg_win with any project name.
|
|
131
136
|
|
|
132
|
-
EOF
|
|
137
|
+
EOF
|
|
133
138
|
end
|
|
134
139
|
|
|
135
140
|
def self.nyasocom_command
|
|
@@ -144,7 +149,7 @@ EOF
|
|
|
144
149
|
|
|
145
150
|
Cloned nyasocom_oss with nyasocom_frame.
|
|
146
151
|
|
|
147
|
-
EOF
|
|
152
|
+
EOF
|
|
148
153
|
end
|
|
149
154
|
|
|
150
155
|
def self.postgresql
|
|
@@ -159,8 +164,8 @@ EOF
|
|
|
159
164
|
|
|
160
165
|
Cloned nyasocom_pg with nyasocom_frame.
|
|
161
166
|
|
|
162
|
-
EOF
|
|
163
|
-
end
|
|
167
|
+
EOF
|
|
168
|
+
end
|
|
164
169
|
|
|
165
170
|
def self.nyasocom2_command
|
|
166
171
|
if system('git clone git@github.com:takkii/nyasocom2.git', exception: true)
|
|
@@ -174,7 +179,7 @@ end
|
|
|
174
179
|
|
|
175
180
|
Cloned nyasocom2 with nyasocom_frame.
|
|
176
181
|
|
|
177
|
-
EOF
|
|
182
|
+
EOF
|
|
178
183
|
end
|
|
179
184
|
|
|
180
185
|
def self.nyasocom3_command
|
|
@@ -189,8 +194,8 @@ EOF
|
|
|
189
194
|
|
|
190
195
|
Cloned nyasocom_sun_pg_win with nyasocom_frame.
|
|
191
196
|
|
|
192
|
-
EOF
|
|
193
|
-
end
|
|
197
|
+
EOF
|
|
198
|
+
end
|
|
194
199
|
|
|
195
200
|
def self.nyasocom_app_command
|
|
196
201
|
if system('git clone git@github.com:takkii/nyasocom_sun_app.git', exception: true)
|
|
@@ -204,26 +209,48 @@ end
|
|
|
204
209
|
|
|
205
210
|
Cloned nyasocom_sun_app with nyasocom_frame.
|
|
206
211
|
|
|
207
|
-
EOF
|
|
212
|
+
EOF
|
|
208
213
|
end
|
|
209
214
|
|
|
210
215
|
def self.app_maker
|
|
211
216
|
encoding_style
|
|
212
217
|
flh = ARGV[1]
|
|
213
|
-
|
|
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]
|
|
214
241
|
FileUtils.mkdir_p("./#{flh}")
|
|
215
242
|
FileUtils.cd("./#{flh}")
|
|
216
|
-
if system("git clone git@github.com:#{
|
|
243
|
+
if system("git clone -b #{branch} git@github.com:#{ghn}/#{gpp}.git .", exception: true)
|
|
217
244
|
else
|
|
218
|
-
system("git clone https://github.com:#{
|
|
245
|
+
system("git clone -b #{branch} https://github.com:#{ghn}/#{gpp}.git .")
|
|
219
246
|
end
|
|
220
247
|
FileUtils.rm_rf("./.git")
|
|
221
248
|
FileUtils.rm_rf("./.github")
|
|
222
249
|
puts <<-EOF
|
|
223
250
|
|
|
224
|
-
Cloned GitHub project
|
|
251
|
+
Cloned GitHub with user/#{ghn} project/#{gpp} branch/#{branch}.
|
|
225
252
|
|
|
226
|
-
EOF
|
|
253
|
+
EOF
|
|
227
254
|
end
|
|
228
255
|
end
|
|
229
256
|
|
data/lib/version.rb
CHANGED
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"
|