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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed2cdb9cd2dab2713b63e71a084789159b4a1181
4
- data.tar.gz: fb2a6cdb25dceddb8dca0d946a548d268c4836e6
3
+ metadata.gz: bd93e229d75a80b46cd37f8222fb0575d7399ce6
4
+ data.tar.gz: 54ed4e5b3faa3a218ad0f58cb501fdef6ace3cee
5
5
  SHA512:
6
- metadata.gz: 6e3e7e085bdbc457cc95bdbf09e8317d5359267782ad83ecb5ca2e46f6c4491be422e951f74f859878883d0606fe4d040b8945c32cea91a851a1d92d5fbe0044
7
- data.tar.gz: 9625ff405873495fd6571864c4db138f9277fd9b61b4b0b43ac4e84944c33a6191b3b20e61910a52adc9e534047b68ade26d3326de0f63804cfd8a38254070bd
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.3
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-01-27 00:00:00.000000000 Z
11
+ date: 2016-04-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: sujoyg@gmail.com