hephaestus 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/hephaestus/app_builder.rb +3 -3
- data/lib/hephaestus/generators/app_generator.rb +1 -1
- data/lib/hephaestus/generators/base.rb +1 -1
- data/lib/hephaestus/generators/core_generator.rb +1 -1
- data/lib/hephaestus/generators/lib_generator.rb +1 -1
- data/lib/hephaestus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec50cd2cc85932b748a97df9741291de3651b88ab8d06584f96d2a03ad474a73
|
4
|
+
data.tar.gz: ade4d54823ec4a179234a259dd4ac1ae05f6e9228aa52955529043a473d35821
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c4c51dd65cb697d9eee304fd7a6915af8301cbf4fbab804fe17c06f0b50142f72d61914d2d10403f04de6f67b916f7f9b4b93b99d83833769fdf63860fa2fef
|
7
|
+
data.tar.gz: 4190712ab8505f2e450911a32bd860a0e811129934f817d1f3a6bb80297e0b9bc3b3fd2555a10df39a72c95548bfe044b974a75bf321b8ee51920b2f77401786
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v0.1.3](https://github.com/yettoapp/hephaestus/tree/v0.1.3) (2023-03-15)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/yettoapp/hephaestus/compare/v0.1.2...v0.1.3)
|
6
|
+
|
7
|
+
## [v0.1.2](https://github.com/yettoapp/hephaestus/tree/v0.1.2) (2023-03-15)
|
8
|
+
|
9
|
+
[Full Changelog](https://github.com/yettoapp/hephaestus/compare/v0.1.1...v0.1.2)
|
10
|
+
|
3
11
|
## [v0.1.1](https://github.com/yettoapp/hephaestus/tree/v0.1.1) (2023-03-15)
|
4
12
|
|
5
13
|
[Full Changelog](https://github.com/yettoapp/hephaestus/compare/v0.1.0...v0.1.1)
|
@@ -139,8 +139,8 @@ module Hephaestus
|
|
139
139
|
end
|
140
140
|
|
141
141
|
def replace_generic_variables
|
142
|
-
replace_in_files(destination_root, "${APP}",
|
143
|
-
replace_in_files(destination_root, "${app}",
|
142
|
+
replace_in_files(destination_root, "${APP}", short_app_name.capitalize)
|
143
|
+
replace_in_files(destination_root, "${app}", short_app_name.downcase)
|
144
144
|
replace_in_files(destination_root, "PlugApp", app_name.underscore.camelcase)
|
145
145
|
replace_in_files(destination_root, "plug-app", app_name.dasherize)
|
146
146
|
replace_in_files(destination_root, "PLUG_APP", app_name.underscore.upcase)
|
@@ -149,7 +149,7 @@ module Hephaestus
|
|
149
149
|
|
150
150
|
private
|
151
151
|
|
152
|
-
def
|
152
|
+
def short_app_name
|
153
153
|
app_name.split("_").last
|
154
154
|
end
|
155
155
|
|
@@ -24,7 +24,7 @@ module Hephaestus
|
|
24
24
|
|
25
25
|
def libs
|
26
26
|
copy_file("app/lib/body_parameter/yetto_parameters.rb", "app/lib/body_parameter/yetto_parameters.rb")
|
27
|
-
copy_file("app/lib/constants/app.rb", "app/lib/constants
|
27
|
+
copy_file("app/lib/constants/app.rb", "app/lib/constants/plug_#{short_app_name}.rb")
|
28
28
|
copy_file("app/lib/headers/yetto.rb", "app/lib/headers/yetto.rb")
|
29
29
|
copy_file("app/lib/path_parameter/yetto_parameters.rb", "app/lib/path_parameter/yetto_parameters.rb")
|
30
30
|
directory("app/lib/plug_app", "app/lib/#{app_name.underscore}")
|
@@ -14,7 +14,7 @@ module Hephaestus
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def plug_schema
|
17
|
-
copy_file("lib/plug_app/schemas/api/2023-03-06/paths/plug.json", "lib/#{app_name.underscore}/schemas/api/2023-03-06/paths/#{
|
17
|
+
copy_file("lib/plug_app/schemas/api/2023-03-06/paths/plug.json", "lib/#{app_name.underscore}/schemas/api/2023-03-06/paths/#{short_app_name.underscore}.json")
|
18
18
|
remove_file("lib/#{app_name.underscore}/schemas/api/2023-03-06/paths/plug.json") # cleanup
|
19
19
|
end
|
20
20
|
end
|
data/lib/hephaestus/version.rb
CHANGED