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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12e55c352bf45e5d9e84a57067c3a7ae30b44a21
4
- data.tar.gz: 51c092ba60feb68464566c67293ac59591737c89
3
+ metadata.gz: 46491dd7050646a71c15a1986c18b4f8dba7d9f4
4
+ data.tar.gz: 522978fad1d5684af0bd231fe78565dd0318c3d7
5
5
  SHA512:
6
- metadata.gz: f2238cf3e80ca3a1f63141eddf333c8ce7c13d05ed8d372986bf8b8f3d0637e2d7ddcf4168ea7426aa139177c8f3540e41f4f835e58a519d1502cee6ef765136
7
- data.tar.gz: 9b99172bfa76f7b2a6b59de940ed96338f6b086c09a1120764d0a7eaafad1d370a5b0d4151e6540b88f60548e7da311d2f3ec304ad597e8b7e7d39e77d01743d
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
- chars = ("A".."Z").to_a + ("a".."z").to_a + ("0".."9").to_a
53
+ alpha_chars = ("A".."Z").to_a + ("a".."z").to_a
54
+ chars = alpha_chars + ("0".."9").to_a
54
55
 
55
- (1..length).map { chars.sample }.join("")
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.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-06-11 00:00:00.000000000 Z
11
+ date: 2015-10-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: sujoyg@gmail.com