sheltered-girl 4.0.2 → 4.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64652272a9cb474ed14d553ce11ab3881f64e79a26f6bfaac3c026f5a7b19102
4
- data.tar.gz: 3c3ac61a9361316f8324c7b02f643fbdb4a1a8c5c5e0ed233158757b647a6d44
3
+ metadata.gz: 7240a310d7dde0c77f1e293bbd3913b12fce1e3a9d98dd4aac0f64b95d871651
4
+ data.tar.gz: 3857b7212b087a734aa8093f0fde33f2ef169ef370d4b67687ebbea45ae4ac09
5
5
  SHA512:
6
- metadata.gz: 6f5b014d16cf57fbbf0ae4eff6acebba28538fb9fb269221aab28b878a1a869760674b34a1dc1b989e900983fa22862bd7b8a308c8a1a590ebf92c69747bc7dd
7
- data.tar.gz: 24e2c1d07613a10507f88d0f51cd1d189fee8f66c2e673d8007c41ce87021d64656ae352bac9fd6a7c5bbb47c3db223179b70993b005ba5c1efb30b64466cb30
6
+ metadata.gz: a4531157eb30fdcf89f98cec9072cf083cd97af7d31c9b36bef8d396d6236001db67d13d81891e6597a83f201ec8e5a55f8a3e30774d09a8c6c8ab3a0b4564b9
7
+ data.tar.gz: ba17a4d963e72956bdc314a31158dd5fbf93b419f5b197153d2dbe44a17e71474c0db81cc928f19fcbce6d683b3a54361d49d59e82e15a4a4a061bbf85f0336f
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![GitHub release](https://img.shields.io/github/release/takkii/sheltered-girl.svg?style=flat)](GitHub) [![GitHub Status](https://img.shields.io/github/last-commit/takkii/sheltered-girl.svg?style=flat)](GitHub) [![Gem Version](https://badge.fury.io/rb/sheltered-girl.svg)](https://badge.fury.io/rb/sheltered-girl)
2
+
1
3
  <br /><br />
2
4
 
3
5
  <div align="center">
data/bin/heat ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ # vim: filetype=ruby
5
+
6
+ lib = File.expand_path('lib', __dir__)
7
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
8
+
9
+ # method call
10
+ begin
11
+ require 'frame'
12
+ rescue StandardError => e
13
+ puts e.backtrace
14
+ ensure
15
+ GC.compact
16
+ end
17
+
18
+ __END__
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'date'
4
+
5
+ begin
6
+ # nyasocom_frame version = x.x.x-xxxx.xx.xx
7
+ module Frame
8
+ frame_version = '1.2.3'
9
+ t = Date.today
10
+ build_day = t.strftime('%Y.%m.%d')
11
+ VERSION = "#{frame_version}-#{build_day}".freeze
12
+ #VERSION = "#{frame_version}"
13
+ end
14
+ rescue StandardError => e
15
+ puts e.backtrace
16
+ ensure
17
+ GC.compact
18
+ end
19
+
20
+ __END__
data/lib/frame.rb ADDED
@@ -0,0 +1,213 @@
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 'fileutils'
7
+
8
+ # Heat module
9
+ module Heart
10
+ module_function
11
+
12
+ def version
13
+ require 'frame/version'
14
+ print Frame::VERSION
15
+ puts ' : [nyasocom_framework_version] '
16
+ end
17
+
18
+ def installer
19
+ require 'install'
20
+ begin
21
+ InstallerRunner.install
22
+ rescue LoadError => e
23
+ puts e.backtrace
24
+ ensure
25
+ GC.compact
26
+ end
27
+ end
28
+
29
+ def creater
30
+ require 'install'
31
+ begin
32
+ InstallerRunner.create
33
+ rescue LoadError => e
34
+ puts e.backtrace
35
+ ensure
36
+ GC.compact
37
+ end
38
+ end
39
+
40
+ def cooker
41
+ require 'install'
42
+ begin
43
+ InstallerRunner.cook
44
+ rescue LoadError => e
45
+ puts e.backtrace
46
+ ensure
47
+ GC.compact
48
+ end
49
+ end
50
+
51
+ def downloader
52
+ require 'install'
53
+ begin
54
+ InstallerRunner.download
55
+ rescue LoadError => e
56
+ puts e.backtrace
57
+ ensure
58
+ GC.compact
59
+ end
60
+ end
61
+
62
+ def nyasocom2_downloader
63
+ require 'install'
64
+ begin
65
+ InstallerRunner.nyasocom2_download
66
+ rescue LoadError => e
67
+ puts e.backtrace
68
+ ensure
69
+ GC.compact
70
+ end
71
+ end
72
+
73
+ def nyasocom3_downloader
74
+ require 'install'
75
+ begin
76
+ InstallerRunner.nyasocom3_download
77
+ rescue LoadError => e
78
+ puts e.backtrace
79
+ ensure
80
+ GC.compact
81
+ end
82
+ end
83
+
84
+ def nyasocom_app_downloader
85
+ require 'install'
86
+ begin
87
+ InstallerRunner.nyasocom_app_download
88
+ rescue LoadError => e
89
+ puts e.backtrace
90
+ ensure
91
+ GC.compact
92
+ end
93
+ end
94
+
95
+ def databases
96
+ require 'install'
97
+ begin
98
+ InstallerRunner.database
99
+ rescue LoadError => e
100
+ puts e.backtrace
101
+ ensure
102
+ GC.compact
103
+ end
104
+ end
105
+
106
+ def appmaker
107
+ require 'install'
108
+ begin
109
+ InstallerRunner.appmakers
110
+ rescue LoadError => e
111
+ puts e.backtrace
112
+ ensure
113
+ GC.compact
114
+ end
115
+ end
116
+
117
+ def default
118
+ str = 'nyasocom_frame is a framework for generating web applications. '
119
+ puts str
120
+ end
121
+
122
+ def documents
123
+ puts text = <<-EOS
124
+ # nyasocom framework information
125
+ heat
126
+
127
+ # version notation
128
+ heat -v
129
+
130
+ # nyasocom_oss project template generated
131
+ heat ichi
132
+
133
+ # nyasocom2 project template generated
134
+ heat ni
135
+
136
+ # nyasocom_sun_pg_win project template generated
137
+ heat sun
138
+
139
+ # nyasocom_sun_app project template generated
140
+ heat app
141
+
142
+ # template generation for nyasocom_oss
143
+ heat new [Folder_Name]
144
+ heat new example
145
+
146
+ # template generation for nyasocom2
147
+ heat cook [Folder_Name]
148
+ heat cook example
149
+
150
+ # template generation for nyasocom_sun_pg_win
151
+ heat create [Folder_Name]
152
+ heat create example
153
+
154
+ # nyasocom_pg project template generated
155
+ heat db postgresql
156
+ heat db --pg
157
+
158
+ # github project templete generated
159
+ heat make nyasocom takkii/nyasocom_oss
160
+
161
+ # HELP
162
+ heat -h
163
+ EOS
164
+ end
165
+ end
166
+
167
+ a = /\Aapp\z/
168
+ c = /\Acreate\z/
169
+ d = /\Adb\z/
170
+ h = /\A[-][h]\z/
171
+ i = /\Aichi\z/
172
+ k = /\Acook\z/
173
+ m = /\Amake\z/
174
+ n = /\Anew\z/
175
+ s = /\Asun\z/
176
+ t = /\Ani\z/
177
+ v = /\A[-][v]\z/
178
+
179
+ one = ARGV[0]
180
+
181
+ include Heart
182
+
183
+ if one.nil?
184
+ default
185
+ elsif one.match?(a)
186
+ nyasocom_app_downloader
187
+ elsif one.match?(c)
188
+ creater
189
+ elsif one.match?(h)
190
+ documents
191
+ elsif one.match?(i)
192
+ downloader
193
+ elsif one.match?(k)
194
+ cooker
195
+ elsif one.match?(m)
196
+ appmaker
197
+ elsif one.match?(n)
198
+ installer
199
+ elsif one.match?(s)
200
+ nyasocom3_downloader
201
+ elsif one.match?(t)
202
+ nyasocom2_downloader
203
+ elsif one.match?(v)
204
+ version
205
+ elsif one.match?(d)
206
+ databases
207
+ else
208
+ puts 'No such option is found, please refer to the documentation.'
209
+ end
210
+
211
+ GC.compact
212
+
213
+ __END__
data/lib/install.rb ADDED
@@ -0,0 +1,228 @@
1
+ # frozen_string_literal: true
2
+ #!/usr/bin/ruby
3
+
4
+ require 'fileutils'
5
+
6
+ # Installer runner.
7
+ class InstallerRunner
8
+
9
+ def self.install
10
+ encoding_style
11
+ nyasocom_custom_name
12
+ end
13
+
14
+ def self.create
15
+ encoding_style
16
+ nyasocom_sun_custom_name
17
+ end
18
+
19
+ def self.cook
20
+ encoding_style
21
+ nyasocom2_custom_name
22
+ end
23
+
24
+ def self.download
25
+ encoding_style
26
+ nyasocom_command
27
+ end
28
+
29
+ def self.nyasocom2_download
30
+ encoding_style
31
+ nyasocom2_command
32
+ end
33
+
34
+ def self.nyasocom3_download
35
+ encoding_style
36
+ nyasocom3_command
37
+ end
38
+
39
+ def self.nyasocom_app_download
40
+ encoding_style
41
+ nyasocom_app_command
42
+ end
43
+
44
+ def self.appmakers
45
+ encoding_style
46
+ app_maker
47
+ end
48
+
49
+ def self.database
50
+ encoding_style
51
+ two = ARGV[1]
52
+
53
+ pt = /\Apostgresql\z/
54
+ pg = /\A--pg\z/
55
+
56
+ if two.nil?
57
+ puts <<-EOF
58
+
59
+ nyasocom_pg project, clone command.
60
+
61
+ heat db postgresql
62
+
63
+ heat db --pg
64
+
65
+ EOF
66
+ elsif two.match?(pt)
67
+ postgresql
68
+ elsif two.match?(pg)
69
+ postgresql
70
+ else
71
+ puts 'No such option is found, please refer to the documentation.'
72
+ end
73
+ end
74
+
75
+ private
76
+
77
+ def self.encoding_style
78
+ Encoding.default_internal = 'UTF-8'
79
+ Encoding.default_external = 'UTF-8'
80
+ end
81
+
82
+ def self.nyasocom_custom_name
83
+ one = ARGV[1]
84
+ FileUtils.mkdir_p("./#{one}")
85
+ FileUtils.cd("./#{one}")
86
+ if system('git clone git@github.com:takkii/nyasocom_oss.git .', exception: true)
87
+ else
88
+ system('git clone https://github.com:takkii/nyasocom_oss.git .')
89
+ end
90
+ FileUtils.rm_rf("./.git")
91
+ FileUtils.rm_rf("./.github")
92
+ puts <<-EOF
93
+
94
+ Used nyasocom_frame to clone nyasocom_oss with any project name.
95
+
96
+ EOF
97
+ end
98
+
99
+ def self.nyasocom2_custom_name
100
+ two = ARGV[1]
101
+ FileUtils.mkdir_p("./#{two}")
102
+ FileUtils.cd("./#{two}")
103
+ if system('git clone git@github.com:takkii/nyasocom2.git .', exception: true)
104
+ else
105
+ system('git clone https://github.com:takkii/nyasocom2.git .')
106
+ end
107
+ FileUtils.rm_rf("./.git")
108
+ FileUtils.rm_rf("./.github")
109
+ puts <<-EOF
110
+
111
+ Used nyasocom_frame to clone nyasocom2 with any project name.
112
+
113
+ EOF
114
+ end
115
+
116
+ def self.nyasocom_sun_custom_name
117
+ sun = ARGV[1]
118
+ FileUtils.mkdir_p("./#{sun}")
119
+ FileUtils.cd("./#{sun}")
120
+ if system('git clone git@github.com:takkii/nyasocom_sun_pg_win.git .', exception: true)
121
+ else
122
+ system('git clone https://github.com:takkii/nyasocom_sun_pg_win.git .')
123
+ end
124
+ FileUtils.rm_rf("./.git")
125
+ FileUtils.rm_rf("./.github")
126
+ puts <<-EOF
127
+
128
+ Used nyasocom_frame to clone nyasocom_sun_pg_win with any project name.
129
+
130
+ EOF
131
+ end
132
+
133
+ def self.nyasocom_command
134
+ if system('git clone git@github.com:takkii/nyasocom_oss.git', exception: true)
135
+ else
136
+ system('git clone https://github.com:takkii/nyasocom_oss.git')
137
+ end
138
+ FileUtils.cd("./nyasocom_oss")
139
+ FileUtils.rm_rf("./.git")
140
+ FileUtils.rm_rf("./.github")
141
+ puts <<-EOF
142
+
143
+ Cloned nyasocom_oss with nyasocom_frame.
144
+
145
+ EOF
146
+ end
147
+
148
+ def self.postgresql
149
+ if system('git clone git@github.com:takkii/nyasocom_pg.git', exception: true)
150
+ else
151
+ system('git clone https://github.com:takkii/nyasocom_pg.git')
152
+ end
153
+ FileUtils.cd("./nyasocom_pg")
154
+ FileUtils.rm_rf("./.git")
155
+ FileUtils.rm_rf("./.github")
156
+ puts <<-EOF
157
+
158
+ Cloned nyasocom_pg with nyasocom_frame.
159
+
160
+ EOF
161
+ end
162
+
163
+ def self.nyasocom2_command
164
+ if system('git clone git@github.com:takkii/nyasocom2.git', exception: true)
165
+ else
166
+ system('git clone https://github.com:takkii/nyasocom2.git')
167
+ end
168
+ FileUtils.cd("./nyasocom2")
169
+ FileUtils.rm_rf("./.git")
170
+ FileUtils.rm_rf("./.github")
171
+ puts <<-EOF
172
+
173
+ Cloned nyasocom2 with nyasocom_frame.
174
+
175
+ EOF
176
+ end
177
+
178
+ def self.nyasocom3_command
179
+ if system('git clone git@github.com:takkii/nyasocom_sun_pg_win.git', exception: true)
180
+ else
181
+ system('git clone https://github.com:takkii/nyasocom_sun_pg_win.git')
182
+ end
183
+ FileUtils.cd("./nyasocom_sun_pg_win")
184
+ FileUtils.rm_rf("./.git")
185
+ FileUtils.rm_rf("./.github")
186
+ puts <<-EOF
187
+
188
+ Cloned nyasocom_sun_pg_win with nyasocom_frame.
189
+
190
+ EOF
191
+ end
192
+
193
+ def self.nyasocom_app_command
194
+ if system('git clone git@github.com:takkii/nyasocom_sun_app.git', exception: true)
195
+ else
196
+ system('git clone https://github.com:takkii/nyasocom_sun_app.git')
197
+ end
198
+ FileUtils.cd("./nyasocom_sun_app")
199
+ FileUtils.rm_rf("./.git")
200
+ FileUtils.rm_rf("./.github")
201
+ puts <<-EOF
202
+
203
+ Cloned nyasocom_sun_app with nyasocom_frame.
204
+
205
+ EOF
206
+ end
207
+
208
+ def self.app_maker
209
+ encoding_style
210
+ flh = ARGV[1]
211
+ gph = ARGV[2]
212
+ FileUtils.mkdir_p("./#{flh}")
213
+ FileUtils.cd("./#{flh}")
214
+ if system("git clone git@github.com:#{gph}.git .", exception: true)
215
+ else
216
+ system("git clone https://github.com:#{gph}.git .")
217
+ end
218
+ FileUtils.rm_rf("./.git")
219
+ FileUtils.rm_rf("./.github")
220
+ puts <<-EOF
221
+
222
+ Cloned GitHub project with app-maker.
223
+
224
+ EOF
225
+ end
226
+ end
227
+
228
+ __END__
data/lib/version.rb CHANGED
@@ -5,7 +5,7 @@ require 'date'
5
5
  begin
6
6
  module EngineLeft
7
7
  # zinbeijett_version = x.x.x
8
- zinbeijett_version = '4.0.2'
8
+ zinbeijett_version = '4.0.3'
9
9
  VERSION = "#{zinbeijett_version}"
10
10
  end
11
11
 
data/runner/full.rb CHANGED
@@ -13,8 +13,8 @@ class MiniTestFile
13
13
  when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
14
14
  begin
15
15
  # Full, Switch ON / (true, string, string).
16
- @mini_test = Full(true, "#{Dir.home}".to_s, '/GitLab/zinbeijett/mini_test')
17
- @mini_unit = Full(true, "#{Dir.home}".to_s, '/GitLab/zinbeijett/mini_unit')
16
+ @mini_test = Full(true, "#{Dir.home}".to_s, '/GitHub/sheltered-girl/mini_test')
17
+ @mini_unit = Full(true, "#{Dir.home}".to_s, '/GitHub/sheltered-girl/mini_unit')
18
18
  rescue
19
19
  tanraku_execute
20
20
  end
@@ -23,8 +23,8 @@ class MiniTestFile
23
23
  when /linux/
24
24
  begin
25
25
  # FullW, Switch ON / (true, string, string).
26
- @mini_test = FullW(true, '/mnt/c/Users/sudok', '/GitLab/zinbeijett/mini_test')
27
- @mini_unit = FullW(true, '/mnt/c/Users/sudok', '/GitLab/zinbeijett/mini_unit')
26
+ @mini_test = FullW(true, '/mnt/c/Users/sudok', '/GitHub/sheltered-girl/mini_test')
27
+ @mini_unit = FullW(true, '/mnt/c/Users/sudok', '/GitHub/sheltered-girl/mini_unit')
28
28
  rescue
29
29
  tanraku_execute
30
30
  end
data/runner/mini.rb CHANGED
@@ -13,8 +13,8 @@ class MiniTestFile
13
13
  when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
14
14
  begin
15
15
  # Mini, Switch ON / (true, string).
16
- @mini_test = Mini(true, '/GitLab/zinbeijett/mini_test')
17
- @mini_unit = Mini(true, '/GitLab/zinbeijett/mini_unit')
16
+ @mini_test = Mini(true, '/GitHub/sheltered-girl/mini_test')
17
+ @mini_unit = Mini(true, '/GitHub/sheltered-girl/mini_unit')
18
18
  rescue
19
19
  tanraku_execute
20
20
  end
@@ -23,8 +23,8 @@ class MiniTestFile
23
23
  when /linux/
24
24
  begin
25
25
  # MiniW, Switch ON / (true, string, string).
26
- @mini_test = MiniW(true, '/mnt/c/Users/sudok', '/GitLab/zinbeijett/mini_test')
27
- @mini_unit = MiniW(true, '/mnt/c/Users/sudok', '/GitLab/zinbeijett/mini_unit')
26
+ @mini_test = MiniW(true, '/mnt/c/Users/sudok', '/GitHub/sheltered-girl/mini_test')
27
+ @mini_unit = MiniW(true, '/mnt/c/Users/sudok', '/GitHub/sheltered-girl/mini_unit')
28
28
  rescue
29
29
  tanraku_execute
30
30
  end
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.2
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takayuki Kamiyama
@@ -183,6 +183,7 @@ executables:
183
183
  - aqua
184
184
  - bmi
185
185
  - bmi-license
186
+ - heat
186
187
  - katakana
187
188
  - koyomi
188
189
  - romaji
@@ -204,6 +205,7 @@ files:
204
205
  - bin/aqua
205
206
  - bin/bmi
206
207
  - bin/bmi-license
208
+ - bin/heat
207
209
  - bin/katakana
208
210
  - bin/koyomi
209
211
  - bin/romaji
@@ -224,10 +226,13 @@ files:
224
226
  - lib/druby_erb.rb
225
227
  - lib/druby_reci.rb
226
228
  - lib/feed.rb
229
+ - lib/frame.rb
230
+ - lib/frame/version.rb
227
231
  - lib/gc.rb
228
232
  - lib/gem_version.rb
229
233
  - lib/himekuri.rb
230
234
  - lib/hyaku.rb
235
+ - lib/install.rb
231
236
  - lib/katakana.rb
232
237
  - lib/kome.rb
233
238
  - lib/mail.rb