gemfather-stable 2.2.3 → 2.2.4
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 +4 -4
- data/lib/api_generator/services/gemfather.rb +1 -0
- data/lib/api_generator/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: f10709206695828231d15a4ce9f8adefe150a68e9e5df6dce7d6ec692bff0c13
|
4
|
+
data.tar.gz: 35e2c1361fa3427e7a2efc8dbcddf5564e507c10143e830a5a00c46da6b625e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b1e84772071d47b1dc63af6e08cc1238ff76809be56273c0ff3e4dba37bc731fc4f9ecb244a6d26e4707a103f3b7a061584b3f1d2a39818cd3192e6464ef2d2
|
7
|
+
data.tar.gz: 55c0a9493b52b99cbd75879c12a2ccba750026679a8edf10ce30867f9d79abe21d74b12a5045635810472f7418cb84a0cad266e42c43491c67ba3bddc0c1fac9
|
@@ -37,6 +37,7 @@ module ApiGenerator
|
|
37
37
|
def check_app_name(app_name)
|
38
38
|
raise(Thor::Error, 'APP_NAME is not provided') unless app_name
|
39
39
|
raise(Thor::Error, "Folder #{app_name} name already exists") if Dir.exist?("./#{app_name}")
|
40
|
+
raise(Thor::Error, "Api name can start only with letter or _") if app_name.chr.match(/[a-zA-Z_]/).nil?
|
40
41
|
end
|
41
42
|
|
42
43
|
def setup_template_variables(app_name)
|