sheltered-girl 4.0.8.2 → 4.0.8.3
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/bmi-license +14 -9
- data/bin/{heat → heats} +1 -1
- data/lib/frame.rb +29 -29
- data/lib/frame_version.rb +2 -4
- data/lib/install.rb +12 -12
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7ac0b70bbb925b46bc7b7157363630e503d7f663cc11b4f9f979b51dc705c22
|
|
4
|
+
data.tar.gz: d71bc5efee953fdcb8093ac20c56f120f12e30eeb671ccdb6fbb0a5f23298db7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc065bca0224354cd513a08c8b320c1c4caedcfc17c97be27270dff205ea85cdd98c74a16bf17452290802c43c41a2db6b8aedc39bbe40691cf41e12d1382e1d
|
|
7
|
+
data.tar.gz: 9f0af6b47a2573448b83d3698f0764e9dfdf68a762b97cb8df8ce90f30f58fdb3c10ea4f5d55f7964693620f83531d8293412e8345ccf1f4875937c5ca4aef21
|
data/bin/bmi-license
CHANGED
|
@@ -9,16 +9,17 @@ class MIT
|
|
|
9
9
|
|
|
10
10
|
def self.license
|
|
11
11
|
encoding_style
|
|
12
|
+
one = ARGV[1]
|
|
12
13
|
puts ''
|
|
13
|
-
puts '
|
|
14
|
+
puts ' READING LIST '.center(60, '-')
|
|
14
15
|
puts ''
|
|
15
|
-
File.open(
|
|
16
|
+
File.open(one, 'r') do |f|
|
|
16
17
|
f.each_line do |line|
|
|
17
18
|
puts line
|
|
18
19
|
end
|
|
19
20
|
end
|
|
20
21
|
puts ''
|
|
21
|
-
puts '
|
|
22
|
+
puts ' READING LIST '.center(60, '-')
|
|
22
23
|
puts ''
|
|
23
24
|
end
|
|
24
25
|
|
|
@@ -97,11 +98,15 @@ begin
|
|
|
97
98
|
r = /\Aread|\A-r\z/
|
|
98
99
|
|
|
99
100
|
if one.nil?
|
|
100
|
-
puts
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
puts <<-EOF
|
|
102
|
+
bmi-license -l LICENSE.txt
|
|
103
|
+
|
|
104
|
+
bmi-license license LICENSE.txt
|
|
105
|
+
|
|
106
|
+
bmi-license -r
|
|
107
|
+
|
|
108
|
+
bmi-license read
|
|
109
|
+
EOF
|
|
105
110
|
elsif one.match?(l)
|
|
106
111
|
MIT.license
|
|
107
112
|
elsif one.match?(r)
|
|
@@ -112,7 +117,7 @@ begin
|
|
|
112
117
|
rescue StandardError => e
|
|
113
118
|
puts e.backtrace
|
|
114
119
|
ensure
|
|
115
|
-
GC.
|
|
120
|
+
GC.auto_compact
|
|
116
121
|
end
|
|
117
122
|
|
|
118
123
|
__END__
|
data/bin/{heat → heats}
RENAMED
data/lib/frame.rb
CHANGED
|
@@ -5,8 +5,8 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
5
5
|
|
|
6
6
|
require "#{File.dirname(__FILE__)}/../req/frame"
|
|
7
7
|
|
|
8
|
-
#
|
|
9
|
-
module
|
|
8
|
+
# heats module
|
|
9
|
+
module Hearts
|
|
10
10
|
module_function
|
|
11
11
|
|
|
12
12
|
def version
|
|
@@ -58,10 +58,10 @@ module Heart
|
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
def
|
|
61
|
+
def nyasocom_two_downloader
|
|
62
62
|
require 'install'
|
|
63
63
|
begin
|
|
64
|
-
InstallerRunner.
|
|
64
|
+
InstallerRunner.nyasocom_two_download
|
|
65
65
|
rescue LoadError => e
|
|
66
66
|
puts e.backtrace
|
|
67
67
|
ensure
|
|
@@ -138,57 +138,57 @@ module Heart
|
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
def default
|
|
141
|
-
str = 'nyasocom_frame is a framework for
|
|
141
|
+
str = 'nyasocom_frame is a framework, generating templete for existing github project.'
|
|
142
142
|
puts str
|
|
143
143
|
end
|
|
144
144
|
|
|
145
145
|
def documents
|
|
146
146
|
puts text = <<-EOS
|
|
147
147
|
# nyasocom framework information
|
|
148
|
-
|
|
148
|
+
heats
|
|
149
149
|
|
|
150
150
|
# version notation
|
|
151
|
-
|
|
151
|
+
heats -v
|
|
152
152
|
|
|
153
153
|
# nyasocom_oss project template generated
|
|
154
|
-
|
|
154
|
+
heats oss
|
|
155
155
|
|
|
156
|
-
#
|
|
157
|
-
|
|
156
|
+
# nyasocom_two project template generated
|
|
157
|
+
heats two
|
|
158
158
|
|
|
159
159
|
# purplehaze project template generated
|
|
160
|
-
|
|
160
|
+
heats purple
|
|
161
161
|
|
|
162
162
|
# hyokaproject templete generated
|
|
163
|
-
|
|
163
|
+
heats hyoka
|
|
164
164
|
|
|
165
165
|
# nyasocom_sun_app project template generated
|
|
166
|
-
|
|
166
|
+
heats app
|
|
167
167
|
|
|
168
168
|
# template generation for nyasocom_oss
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
heats new [Folder_Name]
|
|
170
|
+
heats new example
|
|
171
171
|
|
|
172
|
-
# template generation for
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
# template generation for nyasocom_two
|
|
173
|
+
heats cook [Folder_Name]
|
|
174
|
+
heats cook example
|
|
175
175
|
|
|
176
176
|
# template generation for purplehaze
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
heats create [Folder_Name]
|
|
178
|
+
heats create example
|
|
179
179
|
|
|
180
180
|
# nyasocom_pg project template generated
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
heats db postgresql
|
|
182
|
+
heats db --pg
|
|
183
183
|
|
|
184
184
|
# github project templete generated
|
|
185
|
-
|
|
185
|
+
heats make nyasocom takkii nyasocom_oss
|
|
186
186
|
|
|
187
187
|
# github project templete generated + branch_name
|
|
188
|
-
|
|
188
|
+
heats branch nyasocom takkii nyasocom_oss main
|
|
189
189
|
|
|
190
190
|
# HELP
|
|
191
|
-
|
|
191
|
+
heats -h
|
|
192
192
|
EOS
|
|
193
193
|
end
|
|
194
194
|
end
|
|
@@ -198,18 +198,18 @@ b = /\Abranch\z/
|
|
|
198
198
|
c = /\Acreate\z/
|
|
199
199
|
d = /\Adb\z/
|
|
200
200
|
h = /\A[-][h]\z/
|
|
201
|
-
i = /\
|
|
201
|
+
i = /\Aoss\z/
|
|
202
202
|
k = /\Acook\z/
|
|
203
203
|
m = /\Amake\z/
|
|
204
204
|
n = /\Anew\z/
|
|
205
205
|
s = /\Apurple\z/
|
|
206
|
-
t = /\
|
|
206
|
+
t = /\Atwo\z/
|
|
207
207
|
o = /\Ahyoka\z/
|
|
208
208
|
v = /\A[-][v]\z/
|
|
209
209
|
|
|
210
210
|
one = ARGV[0]
|
|
211
211
|
|
|
212
|
-
include
|
|
212
|
+
include Hearts
|
|
213
213
|
|
|
214
214
|
if one.nil?
|
|
215
215
|
default
|
|
@@ -232,7 +232,7 @@ elsif one.match?(n)
|
|
|
232
232
|
elsif one.match?(s)
|
|
233
233
|
purplehaze_downloader
|
|
234
234
|
elsif one.match?(t)
|
|
235
|
-
|
|
235
|
+
nyasocom_two_downloader
|
|
236
236
|
elsif one.match?(v)
|
|
237
237
|
version
|
|
238
238
|
elsif one.match?(d)
|
data/lib/frame_version.rb
CHANGED
|
@@ -3,19 +3,17 @@
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
5
5
|
begin
|
|
6
|
-
|
|
7
6
|
# nyasocom_frame version = x.x.x-xxxx.xx.xx
|
|
8
7
|
module Frame
|
|
9
|
-
frame_version = '1.
|
|
8
|
+
frame_version = '1.3.0'
|
|
10
9
|
t = Date.today
|
|
11
10
|
build_day = t.strftime('%Y.%m.%d')
|
|
12
11
|
FRAME_VERSION = "#{frame_version}-#{build_day}".freeze
|
|
13
12
|
end
|
|
14
|
-
|
|
15
13
|
rescue StandardError => e
|
|
16
14
|
puts e.backtrace
|
|
17
15
|
ensure
|
|
18
|
-
GC.
|
|
16
|
+
GC.auto_compact
|
|
19
17
|
end
|
|
20
18
|
|
|
21
19
|
__END__
|
data/lib/install.rb
CHANGED
|
@@ -20,7 +20,7 @@ class InstallerRunner
|
|
|
20
20
|
|
|
21
21
|
def self.cook
|
|
22
22
|
encoding_style
|
|
23
|
-
|
|
23
|
+
nyasocom_two_custom_name
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def self.download
|
|
@@ -28,9 +28,9 @@ class InstallerRunner
|
|
|
28
28
|
nyasocom_command
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
def self.
|
|
31
|
+
def self.nyasocom_two_download
|
|
32
32
|
encoding_style
|
|
33
|
-
|
|
33
|
+
nyasocom_two_command
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
def self.purplehaze_download
|
|
@@ -103,19 +103,19 @@ Used nyasocom_frame to clone nyasocom_oss with any project name.
|
|
|
103
103
|
EOF
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
-
def self.
|
|
106
|
+
def self.nyasocom_two_custom_name
|
|
107
107
|
two = ARGV[1]
|
|
108
108
|
FileUtils.mkdir_p("./#{two}")
|
|
109
109
|
FileUtils.cd("./#{two}")
|
|
110
|
-
if system('git clone git@github.com:takkii/
|
|
110
|
+
if system('git clone git@github.com:takkii/nyasocom_two.git .', exception: true)
|
|
111
111
|
else
|
|
112
|
-
system('git clone https://github.com:takkii/
|
|
112
|
+
system('git clone https://github.com:takkii/nyasocom_two.git .')
|
|
113
113
|
end
|
|
114
114
|
FileUtils.rm_rf("./.git")
|
|
115
115
|
FileUtils.rm_rf("./.github")
|
|
116
116
|
puts <<-EOF
|
|
117
117
|
|
|
118
|
-
Used nyasocom_frame to clone
|
|
118
|
+
Used nyasocom_frame to clone nyasocom_two with any project name.
|
|
119
119
|
|
|
120
120
|
EOF
|
|
121
121
|
end
|
|
@@ -167,17 +167,17 @@ Cloned nyasocom_pg with nyasocom_frame.
|
|
|
167
167
|
EOF
|
|
168
168
|
end
|
|
169
169
|
|
|
170
|
-
def self.
|
|
171
|
-
if system('git clone git@github.com:takkii/
|
|
170
|
+
def self.nyasocom_two_command
|
|
171
|
+
if system('git clone git@github.com:takkii/nyasocom_two.git', exception: true)
|
|
172
172
|
else
|
|
173
|
-
system('git clone https://github.com:takkii/
|
|
173
|
+
system('git clone https://github.com:takkii/nyasocom_two.git')
|
|
174
174
|
end
|
|
175
|
-
FileUtils.cd("./
|
|
175
|
+
FileUtils.cd("./nyasocom_two")
|
|
176
176
|
FileUtils.rm_rf("./.git")
|
|
177
177
|
FileUtils.rm_rf("./.github")
|
|
178
178
|
puts <<-EOF
|
|
179
179
|
|
|
180
|
-
Cloned
|
|
180
|
+
Cloned nyasocom_two with nyasocom_frame.
|
|
181
181
|
|
|
182
182
|
EOF
|
|
183
183
|
end
|
data/lib/version.rb
CHANGED
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.8.
|
|
4
|
+
version: 4.0.8.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Takayuki Kamiyama
|
|
@@ -183,7 +183,7 @@ executables:
|
|
|
183
183
|
- aqua
|
|
184
184
|
- bmi
|
|
185
185
|
- bmi-license
|
|
186
|
-
-
|
|
186
|
+
- heats
|
|
187
187
|
- katakana
|
|
188
188
|
- koyomi
|
|
189
189
|
- romaji
|
|
@@ -204,7 +204,7 @@ files:
|
|
|
204
204
|
- bin/aqua
|
|
205
205
|
- bin/bmi
|
|
206
206
|
- bin/bmi-license
|
|
207
|
-
- bin/
|
|
207
|
+
- bin/heats
|
|
208
208
|
- bin/katakana
|
|
209
209
|
- bin/koyomi
|
|
210
210
|
- bin/romaji
|