unichron 0.3.7 → 0.4.0

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
  SHA256:
3
- metadata.gz: 18dff906e476c832a0272131a633b5a029aa26507750b0936d0f183d8b150019
4
- data.tar.gz: cc77fdbfc484f6dcff6415c6bf3c82ab680e67ed7cb6ac6ac39923d3c6d48c59
3
+ metadata.gz: 14cf431be524e94cbee2e7c22ac02a5cf3e4e342e7ad4a697d27f5c0d1dc0a9c
4
+ data.tar.gz: 9eabbe15f5790b9e20506dda62f05791d5074e135a3203a49ef78e66e11b136e
5
5
  SHA512:
6
- metadata.gz: 77effe7c012cd16ff9ef473c4086140b0d8a12535c27a975af32bce2a8e1b72266f75b0f7c808b5db5c1a708fa1321911d0cb0fc1790ea628857a7247de8e5f6
7
- data.tar.gz: 22e32cccfce09bb1519b63571aef206e3a6a198b32af635a727db690aaf3d17defc9a15c7cd7a387cc78445bb0b82f35c003aafc660cadd3f1830767e72ff660
6
+ metadata.gz: 7e2a7c859bd570a082d6fc0d6214ec02c3ade19ff8a2f0f0d66da5327acdfdd7f05bc71a62e4f5e4cf979da052e1e8d83d0b913fd093ef9a1b92c5e91e0f2211
7
+ data.tar.gz: 5a201a79de06d56e554e443ba167d36dcd7577c56d69b35b3df1d367e4ac8ff2691e068cca8ef8dc462e5cb08e8b3c192c18ef04ba2fc4abd31586eeb328b7d6
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/unichron.rb CHANGED
@@ -42,6 +42,10 @@ class Unichron
42
42
  @r.to_date if valid?
43
43
  end
44
44
 
45
+ def to_datetime
46
+ @r.to_datetime if valid?
47
+ end
48
+
45
49
  def to_i()
46
50
  @r.to_time.to_i if valid?
47
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unichron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  vPngqdMCuVEkZm+YuLTXph0I590TF5EmMRQMILYYtjV6ClWHIEa5WlToyO2Fk1OL
36
36
  aagRjWlkRSoGiE7602v0Wo/u
37
37
  -----END CERTIFICATE-----
38
- date: 2021-05-04 00:00:00.000000000 Z
38
+ date: 2021-06-22 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: subunit
@@ -46,7 +46,7 @@ dependencies:
46
46
  version: '0.8'
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 0.8.3
49
+ version: 0.8.5
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
@@ -56,7 +56,7 @@ dependencies:
56
56
  version: '0.8'
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: 0.8.3
59
+ version: 0.8.5
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: chronic_cron
62
62
  requirement: !ruby/object:Gem::Requirement
@@ -123,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  requirements: []
126
- rubyforge_project:
127
- rubygems_version: 2.7.10
126
+ rubygems_version: 3.1.2
128
127
  signing_key:
129
128
  specification_version: 4
130
129
  summary: A universal chron tool.
metadata.gz.sig CHANGED
Binary file