specstar-support-random 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specstar/support/random.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46491dd7050646a71c15a1986c18b4f8dba7d9f4
|
4
|
+
data.tar.gz: 522978fad1d5684af0bd231fe78565dd0318c3d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1de3a4d64aae3904e474de085f8938db84ed48610f10aaca7291ae23fa3b29aecbfd6df2435d19c5f97dab82f39f148e522cd1fc0dcc477e9891160bf71ce18e
|
7
|
+
data.tar.gz: f971707c62332f5fafc38c209708a89fc99ddbd08b9e815f86927ee95f8d75043c5e4463c68cc526d46db6aaec83c88aa78627e7abd90942650fbfe83ac3e170
|
@@ -50,9 +50,10 @@ def random_text(options={})
|
|
50
50
|
1 + rand(32)
|
51
51
|
end
|
52
52
|
|
53
|
-
|
53
|
+
alpha_chars = ("A".."Z").to_a + ("a".."z").to_a
|
54
|
+
chars = alpha_chars + ("0".."9").to_a
|
54
55
|
|
55
|
-
(
|
56
|
+
([alpha_chars.sample] + (2..length).map { chars.sample }).shuffle.join("")
|
56
57
|
end
|
57
58
|
|
58
59
|
def random_time
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specstar-support-random
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sujoy Gupta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: sujoyg@gmail.com
|