lizarb 0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/CHANGELOG.md +13 -2
  4. data/Gemfile +21 -2
  5. data/Gemfile.lock +44 -0
  6. data/README.md +88 -12
  7. data/app/dev/commands/app_command.rb +5 -0
  8. data/app/dev/commands/app_command_test.rb +7 -0
  9. data/app/dev/commands/example_command.rb +57 -0
  10. data/app/dev/commands/example_command_test.rb +43 -0
  11. data/app/dev/commands/macro_child_command.rb +32 -0
  12. data/app/dev/commands/macro_child_command_test.rb +7 -0
  13. data/app/dev/commands/macro_parent_command.rb +70 -0
  14. data/app/dev/commands/macro_parent_command_test.rb +7 -0
  15. data/app/dev/commands/my_command.rb +7 -0
  16. data/app/dev/commands/my_command_test.rb +7 -0
  17. data/app/dev/commands/new_command.rb +69 -0
  18. data/app/dev/commands/new_command_test.rb +7 -0
  19. data/app/dev_box.rb +13 -0
  20. data/app/happy/axos/axo.rb +50 -0
  21. data/app/happy_box.rb +8 -0
  22. data/app/net/databases/redis_db.rb +5 -0
  23. data/app/net/databases/redis_db_test.rb +12 -0
  24. data/app/net/databases/sqlite_db.rb +11 -0
  25. data/app/net/databases/sqlite_db_test.rb +12 -0
  26. data/app/net/models/app_model.rb +20 -0
  27. data/app/net/models/app_model_test.rb +8 -0
  28. data/app/net/models/post_model.rb +4 -0
  29. data/app/net/models/post_model_test.rb +8 -0
  30. data/app/net/models/user_model.rb +4 -0
  31. data/app/net/models/user_model_test.rb +8 -0
  32. data/app/net_box.rb +21 -0
  33. data/app/web/requests/api_request.rb +61 -0
  34. data/app/web/requests/api_request_test.rb +31 -0
  35. data/app/web/requests/app_request.rb +5 -0
  36. data/app/web/requests/app_request_test.rb +7 -0
  37. data/app/web/requests/assets_request.rb +71 -0
  38. data/app/web/requests/assets_request_test.rb +33 -0
  39. data/app/web/requests/root_request.rb +55 -0
  40. data/app/web/requests/root_request_test.rb +31 -0
  41. data/app/web_box.rb +8 -0
  42. data/app.code.env +11 -0
  43. data/app.env +11 -0
  44. data/app.rb +17 -0
  45. data/app_new/.gitignore +4 -0
  46. data/app_new/Gemfile +31 -0
  47. data/app_new/Procfile +3 -0
  48. data/exe/Gemfile +3 -0
  49. data/exe/Gemfile.lock +13 -0
  50. data/exe/liza +3 -0
  51. data/exe/lizarb +11 -0
  52. data/lib/app.rb +200 -0
  53. data/lib/dev_system/dev/controllers/command/dev_command.rb +19 -0
  54. data/lib/dev_system/dev/controllers/command/dev_command_test.rb +14 -0
  55. data/lib/dev_system/dev/controllers/command/echo_command.rb +11 -0
  56. data/lib/dev_system/dev/controllers/command/echo_command_test.rb +14 -0
  57. data/lib/dev_system/dev/controllers/command/test_command.rb +70 -0
  58. data/lib/dev_system/dev/controllers/command/test_command_test.rb +14 -0
  59. data/lib/dev_system/dev/controllers/command/version_command.rb +9 -0
  60. data/lib/dev_system/dev/controllers/command/version_command_test.rb +14 -0
  61. data/lib/dev_system/dev/controllers/command.rb +19 -0
  62. data/lib/dev_system/dev/controllers/command_test.rb +14 -0
  63. data/lib/dev_system/dev/dev_box.rb +19 -0
  64. data/lib/dev_system/dev/dev_box_test.rb +19 -0
  65. data/lib/dev_system/dev/panels/command_panel.rb +10 -0
  66. data/lib/dev_system/dev/panels/command_panel_test.rb +23 -0
  67. data/lib/dev_system/dev/panels/log_panel.rb +10 -0
  68. data/lib/dev_system/dev/panels/log_panel_test.rb +18 -0
  69. data/lib/dev_system.rb +8 -0
  70. data/lib/happy_system/dev/happy_command.rb +11 -0
  71. data/lib/happy_system/happy/controllers/axo.rb +8 -0
  72. data/lib/happy_system/happy/happy_box.rb +12 -0
  73. data/lib/happy_system/happy/happy_box_test.rb +18 -0
  74. data/lib/happy_system/happy/panels/axo_panel.rb +5 -0
  75. data/lib/{viral.rb → happy_system.rb} +7 -3
  76. data/lib/liza/base/box.rb +40 -0
  77. data/lib/liza/base/box_test.rb +12 -0
  78. data/lib/liza/base/controller.rb +27 -0
  79. data/lib/liza/base/controller_test.rb +12 -0
  80. data/lib/liza/base/panel.rb +38 -0
  81. data/lib/liza/base/panel_test.rb +16 -0
  82. data/lib/liza/meta/part.rb +19 -0
  83. data/lib/liza/meta/part_extension.rb +13 -0
  84. data/lib/liza/meta/part_test.rb +8 -0
  85. data/lib/liza/meta/system.rb +20 -0
  86. data/lib/liza/meta/system_test.rb +13 -0
  87. data/lib/liza/test/test.rb +11 -0
  88. data/lib/liza/test/test_test.rb +108 -0
  89. data/lib/liza/test_parts/test_assertions_part.rb +110 -0
  90. data/lib/liza/test_parts/test_context_part.rb +81 -0
  91. data/lib/liza/test_parts/test_dsl_part.rb +122 -0
  92. data/lib/liza/test_parts/test_subject_part.rb +19 -0
  93. data/lib/liza/unit.rb +149 -0
  94. data/lib/liza/unit_test.rb +79 -0
  95. data/lib/liza.rb +34 -0
  96. data/lib/lizarb/ruby/class.rb +15 -0
  97. data/lib/lizarb/ruby/string.rb +9 -0
  98. data/lib/lizarb/ruby/time.rb +9 -0
  99. data/lib/{viral → lizarb}/version.rb +2 -2
  100. data/lib/lizarb.rb +68 -0
  101. data/lib/net_system/dev/net_command.rb +24 -0
  102. data/lib/net_system/net/controllers/adapter/redis_adapter.rb +28 -0
  103. data/lib/net_system/net/controllers/adapter/redis_adapter_test.rb +29 -0
  104. data/lib/net_system/net/controllers/adapter/sqlite_adapter.rb +28 -0
  105. data/lib/net_system/net/controllers/adapter/sqlite_adapter_test.rb +29 -0
  106. data/lib/net_system/net/controllers/adapter.rb +5 -0
  107. data/lib/net_system/net/controllers/adapter_test.rb +14 -0
  108. data/lib/net_system/net/controllers/database/redis_db.rb +11 -0
  109. data/lib/net_system/net/controllers/database/redis_db_test.rb +23 -0
  110. data/lib/net_system/net/controllers/database/sqlite_db.rb +11 -0
  111. data/lib/net_system/net/controllers/database/sqlite_db_test.rb +23 -0
  112. data/lib/net_system/net/controllers/database.rb +33 -0
  113. data/lib/net_system/net/controllers/database_test.rb +14 -0
  114. data/lib/net_system/net/controllers/model.rb +31 -0
  115. data/lib/net_system/net/controllers/model_test.rb +14 -0
  116. data/lib/net_system/net/net_box.rb +20 -0
  117. data/lib/net_system/net/net_box_test.rb +19 -0
  118. data/lib/net_system/net/panels/adapter_panel.rb +5 -0
  119. data/lib/net_system/net/panels/adapter_panel_test.rb +18 -0
  120. data/lib/net_system/net/panels/database_panel.rb +12 -0
  121. data/lib/net_system/net/panels/database_panel_test.rb +18 -0
  122. data/lib/net_system.rb +3 -0
  123. data/lib/web_system/dev/web_command.rb +42 -0
  124. data/lib/web_system/web/controllers/request/client_error_request.rb +18 -0
  125. data/lib/web_system/web/controllers/request/not_found_request.rb +18 -0
  126. data/lib/web_system/web/controllers/request/server_error_request.rb +20 -0
  127. data/lib/web_system/web/controllers/request.rb +5 -0
  128. data/lib/web_system/web/controllers/request_test.rb +18 -0
  129. data/lib/web_system/web/panels/request_panel.rb +55 -0
  130. data/lib/web_system/web/panels/request_panel_test.rb +14 -0
  131. data/lib/web_system/web/web_box.rb +12 -0
  132. data/lib/web_system/web/web_box_test.rb +18 -0
  133. data/lib/web_system.rb +5 -0
  134. data/lizarb.gemspec +44 -0
  135. data/sig/{viral.rbs → lizarb.rbs} +1 -1
  136. data/web_files/favicon.ico +0 -0
  137. data/web_files/favicon.svg +948 -0
  138. metadata +190 -13
  139. data/viral.gemspec +0 -45
metadata CHANGED
@@ -1,15 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lizarb
3
3
  version: !ruby/object:Gem::Version
4
- version: '0'
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thiago Pinto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2022-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: colorize
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.8'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: dotenv
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.8'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.8'
41
+ - !ruby/object:Gem::Dependency
42
+ name: zeitwerk
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.6'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.6'
13
55
  - !ruby/object:Gem::Dependency
14
56
  name: rake
15
57
  requirement: !ruby/object:Gem::Requirement
@@ -24,27 +66,162 @@ dependencies:
24
66
  - - "~>"
25
67
  - !ruby/object:Gem::Version
26
68
  version: '13.0'
27
- description: "-"
28
- email:
29
- - thiagopintodev@gmail.com
30
- executables: []
69
+ description: Liza is a light, experimental framework primarily developed to help study
70
+ the Ruby language and the Ruby ecosystem.
71
+ email: thiagopintodev@gmail.com
72
+ executables:
73
+ - liza
74
+ - lizarb
31
75
  extensions: []
32
76
  extra_rdoc_files: []
33
77
  files:
78
+ - ".ruby-version"
34
79
  - CHANGELOG.md
35
80
  - CODE_OF_CONDUCT.md
36
81
  - Gemfile
82
+ - Gemfile.lock
37
83
  - LICENSE.txt
38
84
  - README.md
39
85
  - Rakefile
40
- - lib/viral.rb
41
- - lib/viral/version.rb
42
- - sig/viral.rbs
43
- - viral.gemspec
44
- homepage: https://github.com/thiagopintodev
86
+ - app.code.env
87
+ - app.env
88
+ - app.rb
89
+ - app/dev/commands/app_command.rb
90
+ - app/dev/commands/app_command_test.rb
91
+ - app/dev/commands/example_command.rb
92
+ - app/dev/commands/example_command_test.rb
93
+ - app/dev/commands/macro_child_command.rb
94
+ - app/dev/commands/macro_child_command_test.rb
95
+ - app/dev/commands/macro_parent_command.rb
96
+ - app/dev/commands/macro_parent_command_test.rb
97
+ - app/dev/commands/my_command.rb
98
+ - app/dev/commands/my_command_test.rb
99
+ - app/dev/commands/new_command.rb
100
+ - app/dev/commands/new_command_test.rb
101
+ - app/dev_box.rb
102
+ - app/happy/axos/axo.rb
103
+ - app/happy_box.rb
104
+ - app/net/databases/redis_db.rb
105
+ - app/net/databases/redis_db_test.rb
106
+ - app/net/databases/sqlite_db.rb
107
+ - app/net/databases/sqlite_db_test.rb
108
+ - app/net/models/app_model.rb
109
+ - app/net/models/app_model_test.rb
110
+ - app/net/models/post_model.rb
111
+ - app/net/models/post_model_test.rb
112
+ - app/net/models/user_model.rb
113
+ - app/net/models/user_model_test.rb
114
+ - app/net_box.rb
115
+ - app/web/requests/api_request.rb
116
+ - app/web/requests/api_request_test.rb
117
+ - app/web/requests/app_request.rb
118
+ - app/web/requests/app_request_test.rb
119
+ - app/web/requests/assets_request.rb
120
+ - app/web/requests/assets_request_test.rb
121
+ - app/web/requests/root_request.rb
122
+ - app/web/requests/root_request_test.rb
123
+ - app/web_box.rb
124
+ - app_new/.gitignore
125
+ - app_new/Gemfile
126
+ - app_new/Procfile
127
+ - exe/Gemfile
128
+ - exe/Gemfile.lock
129
+ - exe/liza
130
+ - exe/lizarb
131
+ - lib/app.rb
132
+ - lib/dev_system.rb
133
+ - lib/dev_system/dev/controllers/command.rb
134
+ - lib/dev_system/dev/controllers/command/dev_command.rb
135
+ - lib/dev_system/dev/controllers/command/dev_command_test.rb
136
+ - lib/dev_system/dev/controllers/command/echo_command.rb
137
+ - lib/dev_system/dev/controllers/command/echo_command_test.rb
138
+ - lib/dev_system/dev/controllers/command/test_command.rb
139
+ - lib/dev_system/dev/controllers/command/test_command_test.rb
140
+ - lib/dev_system/dev/controllers/command/version_command.rb
141
+ - lib/dev_system/dev/controllers/command/version_command_test.rb
142
+ - lib/dev_system/dev/controllers/command_test.rb
143
+ - lib/dev_system/dev/dev_box.rb
144
+ - lib/dev_system/dev/dev_box_test.rb
145
+ - lib/dev_system/dev/panels/command_panel.rb
146
+ - lib/dev_system/dev/panels/command_panel_test.rb
147
+ - lib/dev_system/dev/panels/log_panel.rb
148
+ - lib/dev_system/dev/panels/log_panel_test.rb
149
+ - lib/happy_system.rb
150
+ - lib/happy_system/dev/happy_command.rb
151
+ - lib/happy_system/happy/controllers/axo.rb
152
+ - lib/happy_system/happy/happy_box.rb
153
+ - lib/happy_system/happy/happy_box_test.rb
154
+ - lib/happy_system/happy/panels/axo_panel.rb
155
+ - lib/liza.rb
156
+ - lib/liza/base/box.rb
157
+ - lib/liza/base/box_test.rb
158
+ - lib/liza/base/controller.rb
159
+ - lib/liza/base/controller_test.rb
160
+ - lib/liza/base/panel.rb
161
+ - lib/liza/base/panel_test.rb
162
+ - lib/liza/meta/part.rb
163
+ - lib/liza/meta/part_extension.rb
164
+ - lib/liza/meta/part_test.rb
165
+ - lib/liza/meta/system.rb
166
+ - lib/liza/meta/system_test.rb
167
+ - lib/liza/test/test.rb
168
+ - lib/liza/test/test_test.rb
169
+ - lib/liza/test_parts/test_assertions_part.rb
170
+ - lib/liza/test_parts/test_context_part.rb
171
+ - lib/liza/test_parts/test_dsl_part.rb
172
+ - lib/liza/test_parts/test_subject_part.rb
173
+ - lib/liza/unit.rb
174
+ - lib/liza/unit_test.rb
175
+ - lib/lizarb.rb
176
+ - lib/lizarb/ruby/class.rb
177
+ - lib/lizarb/ruby/string.rb
178
+ - lib/lizarb/ruby/time.rb
179
+ - lib/lizarb/version.rb
180
+ - lib/net_system.rb
181
+ - lib/net_system/dev/net_command.rb
182
+ - lib/net_system/net/controllers/adapter.rb
183
+ - lib/net_system/net/controllers/adapter/redis_adapter.rb
184
+ - lib/net_system/net/controllers/adapter/redis_adapter_test.rb
185
+ - lib/net_system/net/controllers/adapter/sqlite_adapter.rb
186
+ - lib/net_system/net/controllers/adapter/sqlite_adapter_test.rb
187
+ - lib/net_system/net/controllers/adapter_test.rb
188
+ - lib/net_system/net/controllers/database.rb
189
+ - lib/net_system/net/controllers/database/redis_db.rb
190
+ - lib/net_system/net/controllers/database/redis_db_test.rb
191
+ - lib/net_system/net/controllers/database/sqlite_db.rb
192
+ - lib/net_system/net/controllers/database/sqlite_db_test.rb
193
+ - lib/net_system/net/controllers/database_test.rb
194
+ - lib/net_system/net/controllers/model.rb
195
+ - lib/net_system/net/controllers/model_test.rb
196
+ - lib/net_system/net/net_box.rb
197
+ - lib/net_system/net/net_box_test.rb
198
+ - lib/net_system/net/panels/adapter_panel.rb
199
+ - lib/net_system/net/panels/adapter_panel_test.rb
200
+ - lib/net_system/net/panels/database_panel.rb
201
+ - lib/net_system/net/panels/database_panel_test.rb
202
+ - lib/web_system.rb
203
+ - lib/web_system/dev/web_command.rb
204
+ - lib/web_system/web/controllers/request.rb
205
+ - lib/web_system/web/controllers/request/client_error_request.rb
206
+ - lib/web_system/web/controllers/request/not_found_request.rb
207
+ - lib/web_system/web/controllers/request/server_error_request.rb
208
+ - lib/web_system/web/controllers/request_test.rb
209
+ - lib/web_system/web/panels/request_panel.rb
210
+ - lib/web_system/web/panels/request_panel_test.rb
211
+ - lib/web_system/web/web_box.rb
212
+ - lib/web_system/web/web_box_test.rb
213
+ - lizarb.gemspec
214
+ - sig/lizarb.rbs
215
+ - web_files/favicon.ico
216
+ - web_files/favicon.svg
217
+ homepage: http://lizarb.org
45
218
  licenses:
46
219
  - MIT
47
- metadata: {}
220
+ metadata:
221
+ homepage_uri: https://github.com/rubyonrails-brasil/lizarb
222
+ changelog_uri: https://github.com/rubyonrails-brasil/lizarb/blob/main/CHANGELOG.md
223
+ source_code_uri: https://github.com/rubyonrails-brasil/lizarb
224
+ bug_tracker_uri: https://github.com/rubyonrails-brasil/lizarb/issues
48
225
  post_install_message:
49
226
  rdoc_options: []
50
227
  require_paths:
@@ -63,5 +240,5 @@ requirements: []
63
240
  rubygems_version: 3.3.7
64
241
  signing_key:
65
242
  specification_version: 4
66
- summary: "-"
243
+ summary: Application Framework
67
244
  test_files: []
data/viral.gemspec DELETED
@@ -1,45 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/viral/version"
4
-
5
- # WARNING: description and summary are identical
6
- # WARNING: See https://guides.rubygems.org/specification-reference/ for help
7
-
8
- Gem::Specification.new do |spec|
9
- spec.name = "viralrb"
10
- spec.version = Viral::VERSION
11
- spec.authors = ["Thiago Pinto"]
12
- spec.email = ["thiagopintodev@gmail.com"]
13
-
14
- spec.summary = "-"
15
- spec.description = "-"
16
- spec.homepage = "https://github.com/thiagopintodev"
17
- spec.license = "MIT"
18
- spec.required_ruby_version = ">= 3.1.0"
19
-
20
- # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
21
-
22
- # spec.metadata["homepage_uri"] = spec.homepage
23
- # spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
24
- # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
25
-
26
- # Specify which files should be added to the gem when it is released.
27
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
28
- spec.files = Dir.chdir(__dir__) do
29
- `git ls-files -z`.split("\x0").reject do |f|
30
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
31
- end
32
- end
33
- spec.bindir = "exe"
34
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
35
- spec.require_paths = ["lib"]
36
-
37
- # Uncomment to register a new dependency of your gem
38
- # spec.add_dependency "example-gem", "~> 1.0"
39
-
40
-
41
- spec.add_development_dependency "rake", "~> 13.0"
42
-
43
- # For more information and examples about making a new gem, check out our
44
- # guide at: https://bundler.io/guides/creating_gem.html
45
- end