specstar-support-random 0.1.3 → 0.1.4
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 +4 -0
- 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: bd93e229d75a80b46cd37f8222fb0575d7399ce6
|
4
|
+
data.tar.gz: 54ed4e5b3faa3a218ad0f58cb501fdef6ace3cee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38e854574a3f3f1a6bf5ce0f633081882085bf9390615a63d339baa47033b828f5b2a2240e69e2c45032e4bcd565a3a00614da003c76d9304568e8354a117963
|
7
|
+
data.tar.gz: 2a595a10b87c6a5b331fa5c5ccf842daabc3b895c37e2eacd08c935eba26f5c63a29c501ad73696800b5be9748b7a692935f78250774e3e3b03c65d80414ee8c
|
@@ -76,6 +76,10 @@ def random_time
|
|
76
76
|
Time.at rand Time.now.to_i
|
77
77
|
end
|
78
78
|
|
79
|
+
def random_date
|
80
|
+
random_time.to_date
|
81
|
+
end
|
82
|
+
|
79
83
|
def random_url(options={})
|
80
84
|
domain = options.include?(:domain) ? options[:domain] : random_domain
|
81
85
|
scheme = options.include?(:scheme) ? options[:scheme] : ['http', 'https'].sample
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sujoy Gupta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: sujoyg@gmail.com
|