gemfather-stable 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '01438d4f551cc6b405fb44147a58b6278312f28ef36f21aad4aa02c1c2b13035'
4
- data.tar.gz: b23ef3fcbe2717ff2c2ca1afb4653d85e390dd05e25e73ca836bd26e86eaa984
3
+ metadata.gz: f10709206695828231d15a4ce9f8adefe150a68e9e5df6dce7d6ec692bff0c13
4
+ data.tar.gz: 35e2c1361fa3427e7a2efc8dbcddf5564e507c10143e830a5a00c46da6b625e4
5
5
  SHA512:
6
- metadata.gz: b62fd270422ba323a98250bd5debca397a2e579b22c9c71e4e6eba389c61a741f896df6b91bdb82e4c22d94d8b3e45049076ce95a8e4f15fcdac0c6be3244b4c
7
- data.tar.gz: 732091ecb03f4152077327022c2a82cfd8c75c987f6b284c02d87c0141f591dc1fc4ed803a408f19bef717704596c18bd4e7b346de469e1be5eded9f56ec229a
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)
@@ -1,3 +1,3 @@
1
1
  module ApiGenerator
2
- VERSION = '2.2.3'.freeze
2
+ VERSION = '2.2.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemfather-stable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Domclick Ruby Team and Daniil Kachur