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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b19589e08383b7629a85c1cec9d80a1052c1c52f
4
- data.tar.gz: 3598def90e8302028bfec45ab5eb7ccb2c03a38d
3
+ metadata.gz: b84449aa717e946b0f2f8dc263448d75489856eb
4
+ data.tar.gz: d8380425703718cb73b730cf2e19d516ed58388d
5
5
  SHA512:
6
- metadata.gz: 4b0b4497c0e93eeb05b75eae6b1d70ae666cb63de08fe72f36ab483f8d8b0f557b54e78e3a2c1599b30eb32e1c879c9d18a2d8d3027cbc706c2fc841bd867320
7
- data.tar.gz: 800c9bce1fd9f8c8c3d9b4b7e4eb4fa277ca57903223d9aca0c66f41d7524c0737f2f534145bc1929b08c771ecb47fe5637b1ea95097ea3383a878cf4ee23d19
6
+ metadata.gz: 6f9f2775d0c51df6c55f8464e89b74546c7e67f595370a928fe473fbc64b9cfb9af4273085311d3d6dc11522c9e6cecd194b8162f2f25df6d9b9646504c09bcf
7
+ data.tar.gz: c670d84b0708b953c0e94945985ec790cc2098dc4b5bb31e07ceffa1d78e47e08e61c8e65df55c720c5c7709856d42ffc0b8d8c2b2181e68b0403d3c3ae294ed
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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.3
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
- MIIDRDCCAiygAwIBAgIBADANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
13
+ MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
14
  YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTEzMDIwNjIxMDc0N1oXDTE0MDIwNjIxMDc0N1owSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE0MDIxNTAwNDMzOVoXDTE1MDIxNTAwNDMzOVowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAK100TOF+9RUGZmyAtTh/tS+5HV+VpOCK9LNQK3UbiS0QaUs9Z72OWgkfPX5
19
- Hcbz4986oAakHg/6hjSkFIAlrHv/t0YUNiJh+H5bJLm1D0GE9o5HQhAUuVMZ4ypN
20
- fMG7/MR3ZGEYTz8m5iqTkLTCFW83lodhZhYAcW+fQmkl3uaxYx+gtRu+Z/IcSs0v
21
- WYH6I5g7Yh2QLl+A1rc/tvRjMD034k4gH9qq/O/jCd/EZ7qIn0k4QL1KRCA8aAzf
22
- KlgNB4QekRPOi/wtxX1Mmkhua+BWv7H576FBwzbYUP30YG1ienDOTR5NQFxvVSHk
23
- RGoI8OQmuTf9XJwTvtAV7O/9wY8CAwEAAaM5MDcwCQYDVR0TBAIwAD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AmusdkQxP
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: 2013-07-27 00:00:00.000000000 Z
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.0.0.rc.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