Skip to content

Commit 10e9942

Browse files
committed
clear pocs
1 parent 1a5fe68 commit 10e9942

File tree

336 files changed

+4919
-40
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+4919
-40
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Ruby 3.1 is supported for compatibility with JRuby and TruffleRuby.
2-
ruby 3.1.6
2+
ruby 3.3.5

app/desk/selenes/app_selene.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class AppSelene < DeskSystem::SimpleSelene
2+
3+
end

app/desk/selenes/app_selene_test.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class AppSeleneTest < DeskSystem::SimpleSeleneTest
2+
3+
section :subject
4+
5+
test :subject_class, :subject do
6+
assert_equality subject_class, AppSelene
7+
assert_equality subject.class, AppSelene
8+
end
9+
10+
end

app/desk/windows/app_window.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class AppWindow < DeskSystem::SimpleWindow
2+
3+
end

app/desk/windows/app_window_test.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class AppWindowTest < DeskSystem::SimpleWindowTest
2+
3+
section :subject
4+
5+
test :subject_class, :subject do
6+
assert_equality subject_class, AppWindow
7+
assert_equality subject.class, AppWindow
8+
end
9+
10+
end

app/dev/generators/pocs_generator.rb

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
class PocsGenerator < DevSystem::SimpleGenerator
2+
3+
def systems_and_subsystems
4+
@systems_and_subsystems ||=
5+
{
6+
"happy" => %w[linter pattern paradigm principle],
7+
"net" => %w[],
8+
"web" => %w[asset channel rack site],
9+
"work" => %w[line],
10+
"micro" => %w[board cluster],
11+
"desk" => %w[selene window],
12+
"crypto" => %w[],
13+
"media" => %w[audio image stream tri video],
14+
"art" => %w[],
15+
"deep" => %w[],
16+
"prime" => %w[epic],
17+
}
18+
end
19+
20+
21+
section :actions
22+
23+
# liza g pocs name
24+
def call_default
25+
# fname = arg_name
26+
27+
call_happy
28+
call_net
29+
call_web
30+
call_work
31+
call_micro
32+
call_desk
33+
call_crypto
34+
call_media
35+
call_art
36+
call_deep
37+
call_prime
38+
end
39+
40+
# liza g pocs:base
41+
def call_base
42+
systems_and_subsystems.each do |sys, names|
43+
names.each do |name|
44+
generate name, %w[base], "place=#{sys}/#{name}", "-prefix"
45+
end
46+
end
47+
end
48+
49+
# liza g pocs:simple
50+
def call_simple
51+
systems_and_subsystems.each do |sys, names|
52+
names.each do |name|
53+
generate name, %w[simple super=base], "place=#{sys}/#{name}"
54+
end
55+
end
56+
end
57+
58+
# liza g pocs:app
59+
def call_app
60+
systems_and_subsystems.each do |sys, names|
61+
names.each do |name|
62+
generate name, %w[app super=simple], "place=app"
63+
end
64+
end
65+
end
66+
67+
# liza g pocs:happy name
68+
def call_happy
69+
# fname = arg_name
70+
71+
# generate %w[subsystem aaaa place=happy -prefix]
72+
generate %w[subsystem linter place=happy -prefix]
73+
generate %w[subsystem paradigm place=happy -prefix]
74+
generate %w[subsystem pattern place=happy -prefix]
75+
generate %w[subsystem principle place=happy -prefix]
76+
end
77+
78+
79+
# liza g pocs:net name
80+
def call_net
81+
# fname = arg_name
82+
83+
# generate %w[subsystem aaaa place=net -prefix]
84+
# generate %w[subsystem aaaa place=net -prefix]
85+
# generate %w[subsystem aaaa place=net -prefix]
86+
# generate %w[subsystem aaaa place=net -prefix]
87+
# generate %w[subsystem aaaa place=net -prefix]
88+
end
89+
90+
91+
# liza g pocs:web name
92+
def call_web
93+
# fname = arg_name
94+
95+
generate %w[subsystem asset place=web -prefix]
96+
generate %w[subsystem channel place=web -prefix]
97+
generate %w[generator rack place=web/rack server middle]
98+
# generate %w[subsystem aaaa place=web -prefix]
99+
generate %w[subsystem site place=web -prefix]
100+
end
101+
102+
103+
# liza g pocs:work name
104+
def call_work
105+
# fname = arg_name
106+
107+
generate %w[subsystem line place=work -prefix]
108+
# generate %w[subsystem aaaa place=work -prefix]
109+
# generate %w[subsystem aaaa place=work -prefix]
110+
# generate %w[subsystem aaaa place=work -prefix]
111+
# generate %w[subsystem aaaa place=work -prefix]
112+
end
113+
114+
115+
# liza g pocs:micro name
116+
def call_micro
117+
# fname = arg_name
118+
119+
generate %w[subsystem board place=micro -prefix]
120+
generate %w[subsystem cluster place=micro -prefix]
121+
# generate %w[subsystem aaaa place=micro -prefix]
122+
# generate %w[subsystem aaaa place=micro -prefix]
123+
# generate %w[subsystem aaaa place=micro -prefix]
124+
end
125+
126+
127+
# liza g pocs:desk name
128+
def call_desk
129+
# fname = arg_name
130+
131+
generate %w[subsystem selene place=desk -prefix]
132+
generate %w[subsystem window place=desk -prefix]
133+
# generate %w[subsystem aaaa place=desk -prefix]
134+
# generate %w[subsystem aaaa place=desk -prefix]
135+
# generate %w[subsystem aaaa place=desk -prefix]
136+
end
137+
138+
139+
# liza g pocs:crypto name
140+
def call_crypto
141+
# fname = arg_name
142+
143+
# generate %w[subsystem aaaa place=crypto -prefix]
144+
# generate %w[subsystem aaaa place=crypto -prefix]
145+
# generate %w[subsystem aaaa place=crypto -prefix]
146+
# generate %w[subsystem aaaa place=crypto -prefix]
147+
# generate %w[subsystem aaaa place=crypto -prefix]
148+
end
149+
150+
151+
# liza g pocs:media name
152+
def call_media
153+
# fname = arg_name
154+
155+
generate %w[subsystem audio place=media -prefix]
156+
generate %w[subsystem image place=media -prefix]
157+
generate %w[subsystem stream place=media -prefix]
158+
generate %w[subsystem tri place=media -prefix]
159+
generate %w[subsystem video place=media -prefix]
160+
end
161+
162+
163+
# liza g pocs:art name
164+
def call_art
165+
# fname = arg_name
166+
167+
# generate %w[subsystem aaaa place=art -prefix]
168+
# generate %w[subsystem aaaa place=art -prefix]
169+
# generate %w[subsystem aaaa place=art -prefix]
170+
# generate %w[subsystem aaaa place=art -prefix]
171+
# generate %w[subsystem aaaa place=art -prefix]
172+
end
173+
174+
175+
# liza g pocs:deep name
176+
def call_deep
177+
# fname = arg_name
178+
179+
# generate %w[subsystem aaaa place=deep -prefix]
180+
# generate %w[subsystem aaaa place=deep -prefix]
181+
# generate %w[subsystem aaaa place=deep -prefix]
182+
# generate %w[subsystem aaaa place=deep -prefix]
183+
# generate %w[subsystem aaaa place=deep -prefix]
184+
end
185+
186+
187+
# liza g pocs:prime name
188+
def call_prime
189+
# fname = arg_name
190+
191+
# generate %w[subsystem aaaa place=prime -prefix]
192+
# generate %w[subsystem epic place=prime -prefix]
193+
generate %w[generator:controller epic place=prime/epic]
194+
# generate %w[subsystem insight place=prime -prefix]
195+
# generate %w[subsystem intention place=prime -prefix]
196+
# generate %w[subsystem aaaa place=prime -prefix]
197+
# generate %w[subsystem aaaa place=prime -prefix]
198+
end
199+
200+
201+
# def arg_name
202+
# # @arg_name ||= (name = command.simple_arg(1) until name.to_s.strip.length.positive?; name)
203+
# @arg_name ||= begin
204+
# name = command.simple_arg(1) until name.to_s.strip.length.positive?
205+
# name
206+
# end
207+
# end
208+
209+
end
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class PocsGeneratorTest < DevSystem::SimpleGeneratorTest
2+
3+
section :subject
4+
5+
test :subject_class, :subject do
6+
assert_equality subject_class, PocsGenerator
7+
assert_equality subject.class, PocsGenerator
8+
end
9+
10+
end

app/happy/linters/app_linter.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class AppLinter < HappySystem::SimpleLinter
2+
3+
4+
end

app/happy/linters/app_linter_test.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class AppLinterTest < HappySystem::SimpleLinterTest
2+
3+
section :subject
4+
5+
test :subject_class, :subject do
6+
assert_equality subject_class, AppLinter
7+
assert_equality subject.class, AppLinter
8+
end
9+
10+
end

app/happy/paradigms/app_paradigm.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class AppParadigm < HappySystem::SimpleParadigm
2+
3+
end

0 commit comments

Comments
 (0)