sheltered-girl 4.0.2 → 4.0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64652272a9cb474ed14d553ce11ab3881f64e79a26f6bfaac3c026f5a7b19102
4
- data.tar.gz: 3c3ac61a9361316f8324c7b02f643fbdb4a1a8c5c5e0ed233158757b647a6d44
3
+ metadata.gz: 457b73ec57e40679721a61f8fb1a74f634512110b9b656ab1a4f0731fe09d7bd
4
+ data.tar.gz: 11028fec8ed5762c58f0b19df31f11ca6b74f3bffd7bdbcd254eca6665eb5a63
5
5
  SHA512:
6
- metadata.gz: 6f5b014d16cf57fbbf0ae4eff6acebba28538fb9fb269221aab28b878a1a869760674b34a1dc1b989e900983fa22862bd7b8a308c8a1a590ebf92c69747bc7dd
7
- data.tar.gz: 24e2c1d07613a10507f88d0f51cd1d189fee8f66c2e673d8007c41ce87021d64656ae352bac9fd6a7c5bbb47c3db223179b70993b005ba5c1efb30b64466cb30
6
+ metadata.gz: dd2ed8ab61fb99137ebb144ba2205947b0885f4e6cd8f1b780cbcf73365be35d864591aa7eb0af3971e0f4a0e63e6829a9322a3d2c9641b00894c082ec3009dd
7
+ data.tar.gz: afe071058584606731fc66987a7cd51cfe3804ed36c79d853a22b35b617b68d07c46485210f073a56e8dd7f7d35e103aa7a9fe91986f05a9d183088b5720e9f8
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__
data/lib/frame.rb ADDED
@@ -0,0 +1,212 @@
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/nyasocom_frame"
7
+
8
+ # Heat module
9
+ module Heart
10
+ module_function
11
+
12
+ def version
13
+ print Frame::VERSION
14
+ puts ' : [nyasocom_framework_version] '
15
+ end
16
+
17
+ def installer
18
+ require 'install'
19
+ begin
20
+ InstallerRunner.install
21
+ rescue LoadError => e
22
+ puts e.backtrace
23
+ ensure
24
+ GC.compact
25
+ end
26
+ end
27
+
28
+ def creater
29
+ require 'install'
30
+ begin
31
+ InstallerRunner.create
32
+ rescue LoadError => e
33
+ puts e.backtrace
34
+ ensure
35
+ GC.compact
36
+ end
37
+ end
38
+
39
+ def cooker
40
+ require 'install'
41
+ begin
42
+ InstallerRunner.cook
43
+ rescue LoadError => e
44
+ puts e.backtrace
45
+ ensure
46
+ GC.compact
47
+ end
48
+ end
49
+
50
+ def downloader
51
+ require 'install'
52
+ begin
53
+ InstallerRunner.download
54
+ rescue LoadError => e
55
+ puts e.backtrace
56
+ ensure
57
+ GC.compact
58
+ end
59
+ end
60
+
61
+ def nyasocom2_downloader
62
+ require 'install'
63
+ begin
64
+ InstallerRunner.nyasocom2_download
65
+ rescue LoadError => e
66
+ puts e.backtrace
67
+ ensure
68
+ GC.compact
69
+ end
70
+ end
71
+
72
+ def nyasocom3_downloader
73
+ require 'install'
74
+ begin
75
+ InstallerRunner.nyasocom3_download
76
+ rescue LoadError => e
77
+ puts e.backtrace
78
+ ensure
79
+ GC.compact
80
+ end
81
+ end
82
+
83
+ def nyasocom_app_downloader
84
+ require 'install'
85
+ begin
86
+ InstallerRunner.nyasocom_app_download
87
+ rescue LoadError => e
88
+ puts e.backtrace
89
+ ensure
90
+ GC.compact
91
+ end
92
+ end
93
+
94
+ def databases
95
+ require 'install'
96
+ begin
97
+ InstallerRunner.database
98
+ rescue LoadError => e
99
+ puts e.backtrace
100
+ ensure
101
+ GC.compact
102
+ end
103
+ end
104
+
105
+ def appmaker
106
+ require 'install'
107
+ begin
108
+ InstallerRunner.appmakers
109
+ rescue LoadError => e
110
+ puts e.backtrace
111
+ ensure
112
+ GC.compact
113
+ end
114
+ end
115
+
116
+ def default
117
+ str = 'nyasocom_frame is a framework for generating web applications. '
118
+ puts str
119
+ end
120
+
121
+ def documents
122
+ puts text = <<-EOS
123
+ # nyasocom framework information
124
+ heat
125
+
126
+ # version notation
127
+ heat -v
128
+
129
+ # nyasocom_oss project template generated
130
+ heat ichi
131
+
132
+ # nyasocom2 project template generated
133
+ heat ni
134
+
135
+ # nyasocom_sun_pg_win project template generated
136
+ heat sun
137
+
138
+ # nyasocom_sun_app project template generated
139
+ heat app
140
+
141
+ # template generation for nyasocom_oss
142
+ heat new [Folder_Name]
143
+ heat new example
144
+
145
+ # template generation for nyasocom2
146
+ heat cook [Folder_Name]
147
+ heat cook example
148
+
149
+ # template generation for nyasocom_sun_pg_win
150
+ heat create [Folder_Name]
151
+ heat create example
152
+
153
+ # nyasocom_pg project template generated
154
+ heat db postgresql
155
+ heat db --pg
156
+
157
+ # github project templete generated
158
+ heat make nyasocom takkii/nyasocom_oss
159
+
160
+ # HELP
161
+ heat -h
162
+ EOS
163
+ end
164
+ end
165
+
166
+ a = /\Aapp\z/
167
+ c = /\Acreate\z/
168
+ d = /\Adb\z/
169
+ h = /\A[-][h]\z/
170
+ i = /\Aichi\z/
171
+ k = /\Acook\z/
172
+ m = /\Amake\z/
173
+ n = /\Anew\z/
174
+ s = /\Asun\z/
175
+ t = /\Ani\z/
176
+ v = /\A[-][v]\z/
177
+
178
+ one = ARGV[0]
179
+
180
+ include Heart
181
+
182
+ if one.nil?
183
+ default
184
+ elsif one.match?(a)
185
+ nyasocom_app_downloader
186
+ elsif one.match?(c)
187
+ creater
188
+ elsif one.match?(h)
189
+ documents
190
+ elsif one.match?(i)
191
+ downloader
192
+ elsif one.match?(k)
193
+ cooker
194
+ elsif one.match?(m)
195
+ appmaker
196
+ elsif one.match?(n)
197
+ installer
198
+ elsif one.match?(s)
199
+ nyasocom3_downloader
200
+ elsif one.match?(t)
201
+ nyasocom2_downloader
202
+ elsif one.match?(v)
203
+ version
204
+ elsif one.match?(d)
205
+ databases
206
+ else
207
+ puts 'No such option is found, please refer to the documentation.'
208
+ end
209
+
210
+ GC.compact
211
+
212
+ __END__
data/lib/install.rb ADDED
@@ -0,0 +1,230 @@
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/nyasocom_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__
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.1'
9
9
  VERSION = "#{zinbeijett_version}"
10
10
  end
11
11
 
@@ -26,6 +26,15 @@ module Himekuri
26
26
  VERSION = "#{himekuri_version}-#{build_day}".freeze
27
27
  #VERSION = "#{himekuri_version}"
28
28
  end
29
+
30
+ # nyasocom_frame version = x.x.x-xxxx.xx.xx
31
+ module Frame
32
+ frame_version = '1.2.3'
33
+ t = Date.today
34
+ build_day = t.strftime('%Y.%m.%d')
35
+ VERSION = "#{frame_version}-#{build_day}".freeze
36
+ #VERSION = "#{frame_version}"
37
+ end
29
38
  rescue StandardError => e
30
39
  puts e.backtrace
31
40
  ensure
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ # --------------------------------------
4
+ require 'bmi'
5
+ require 'date'
6
+ require 'fileutils'
7
+ require 'version'
8
+ # --------------------------------------
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.1
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,12 @@ files:
224
226
  - lib/druby_erb.rb
225
227
  - lib/druby_reci.rb
226
228
  - lib/feed.rb
229
+ - lib/frame.rb
227
230
  - lib/gc.rb
228
231
  - lib/gem_version.rb
229
232
  - lib/himekuri.rb
230
233
  - lib/hyaku.rb
234
+ - lib/install.rb
231
235
  - lib/katakana.rb
232
236
  - lib/kome.rb
233
237
  - lib/mail.rb
@@ -274,6 +278,7 @@ files:
274
278
  - req/katakana.rb
275
279
  - req/koyomi.rb
276
280
  - req/mini_run.rb
281
+ - req/nyasocom_frame.rb
277
282
  - req/romaji.rb
278
283
  - req/rubygems.rb
279
284
  - req/runner.rb