toxic 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/toxic/source/project.rb +1 -1
- data/lib/toxic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fb24b55e33d1153fd1474e70dc5fceea69f35db7a362101d983975830265ced
|
4
|
+
data.tar.gz: '0943006a9b938f19828858b14de7888792a58d5ce83599d78a4c5b050b527f2b'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a556392db54e441b5be51d30bf67928ab0303622e5fc8170613766009405ceb5e5c6ec430fdce4533fe8d5750e9fe0169390cc18925ffc2c5717420cbabc61ff
|
7
|
+
data.tar.gz: 5f5c0e0e17cc7965889dd95d1b291bd1a3d6cfc105c768c0873c181ad37a5a5c9186fc64be56cbf56fcd7225d0a1b2a55c401ab5107ee6996aab4947c6bf4c33
|
data/lib/toxic/source/project.rb
CHANGED
@@ -33,7 +33,7 @@ module Toxic
|
|
33
33
|
raise "A name for the project is required." unless name
|
34
34
|
raise "The project name cannot contain spaces." if name =~ /\s/
|
35
35
|
raise "The project name cannot begin with a '.'" if name[0, 1] == '.'
|
36
|
-
raise "" if name =~ /[^a-zA-Z0-9]/
|
36
|
+
raise "The project name should only contain number and character" if name =~ /[^a-zA-Z0-9]/
|
37
37
|
end
|
38
38
|
|
39
39
|
def clone_template
|
data/lib/toxic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toxic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- liubo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|