timetoday 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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/timetoday.rb +7 -1
- metadata +22 -20
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b84449aa717e946b0f2f8dc263448d75489856eb
|
4
|
+
data.tar.gz: d8380425703718cb73b730cf2e19d516ed58388d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f9f2775d0c51df6c55f8464e89b74546c7e67f595370a928fe473fbc64b9cfb9af4273085311d3d6dc11522c9e6cecd194b8162f2f25df6d9b9646504c09bcf
|
7
|
+
data.tar.gz: c670d84b0708b953c0e94945985ec790cc2098dc4b5bb31e07ceffa1d78e47e08e61c8e65df55c720c5c7709856d42ffc0b8d8c2b2181e68b0403d3c3ae294ed
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/timetoday.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
|
2
3
|
# file: timetoday.rb
|
3
4
|
|
4
5
|
require 'date'
|
6
|
+
require 'time'
|
5
7
|
|
6
8
|
class TimeToday
|
7
9
|
|
@@ -15,9 +17,13 @@ class TimeToday
|
|
15
17
|
Time.new(year, mon, day, hr, min, s)
|
16
18
|
end
|
17
19
|
|
20
|
+
def self.between(s1,s2)
|
21
|
+
rand Time.parse(s1)..Time.parse(s2)
|
22
|
+
end
|
23
|
+
|
18
24
|
def self.future()
|
19
25
|
t = Time.now
|
20
26
|
time_remaining = ((Time.now.to_date + 1).to_time - 1) - t
|
21
27
|
t + rand(time_remaining)
|
22
28
|
end
|
23
|
-
end
|
29
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timetoday
|
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
|
- James Robertson
|
@@ -10,26 +10,28 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE0MDIxNTAwNDMzOVoXDTE1MDIxNTAwNDMzOVowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
18
|
+
ggEBALb/IcOGgkOkNbmPUoRpw6sb2Vcr9446xPFR8lvzxASOdXGHrhTsXQM9DHiC
|
19
|
+
T1ZHPes3sa+aTnXVL4WdpaMPRiFFu7qugCbcaAB4wpiPvPTKXAAyRcy4vacZpx7r
|
20
|
+
opHmGx5cQwJZZGRmIn0plJPlqxq9XZqSLYGhL78QmMqa7ciDoS7k/Pk+75w6vG0x
|
21
|
+
m5ULIm8nIHh7cLxOsNuVXS2gOgc5QzJP3jjXuSC1EDq1Wk0chD+woQdelFmre7Jc
|
22
|
+
btIhIE5pBrdlb5/3fxxRhxImZr378GVjc0fdbtC7tIFIYaxnkeA6nbj5exJxgsnV
|
23
|
+
wRdEPwSAlfUWwWk2QBaJXJ6c8f8CAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQU4nMU2X//RsjFtVNmiKEEerGl6TMwJgYDVR0RBB8w
|
25
|
+
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAmusdkQxP
|
27
|
+
TJxmBStkFbNFoZvRgHcsNs3J9eeUHsbwHVxcE9dyTiOcvfrkplWfxSxmnl5q+nKO
|
28
|
+
otwZl1Qro68qla1UxIbGyIOQykHgA1XNDJomnS0oc5fstyGRunV+X0InCfg/ckgo
|
29
|
+
ePLVnqoLKT1V+idsL4/tpYEl1GssHSh+cEAd9X8xbHpDnNt01TNSbh4pipB8Ea8S
|
30
|
+
MZ4qsZhMdgi/Iq2f84oKlVtjiRxxmmb48MlHZByELP4g5ZKQFrZplmQyuzWVcjqU
|
31
|
+
rGghecp8JqIaUMAdC4BGAk9sovzQGa3E4XUZ30J5rO7ViOudmTUOQ3NZ90Usvoyw
|
32
|
+
HgARigdEjMspZA==
|
31
33
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
34
|
+
date: 2014-02-15 00:00:00.000000000 Z
|
33
35
|
dependencies: []
|
34
36
|
description:
|
35
37
|
email: james@r0bertson.co.uk
|
@@ -48,17 +50,17 @@ require_paths:
|
|
48
50
|
- lib
|
49
51
|
required_ruby_version: !ruby/object:Gem::Requirement
|
50
52
|
requirements:
|
51
|
-
- -
|
53
|
+
- - ">="
|
52
54
|
- !ruby/object:Gem::Version
|
53
55
|
version: '0'
|
54
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
57
|
requirements:
|
56
|
-
- -
|
58
|
+
- - ">="
|
57
59
|
- !ruby/object:Gem::Version
|
58
60
|
version: '0'
|
59
61
|
requirements: []
|
60
62
|
rubyforge_project:
|
61
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.1.11
|
62
64
|
signing_key:
|
63
65
|
specification_version: 4
|
64
66
|
summary: timetoday
|
metadata.gz.sig
CHANGED
Binary file
|