human_speakable 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/human_speakable.rb +8 -2
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a18f5335c15bdadc5b58454be78a9803f62359eefa9075816da82d6c505206a
|
|
4
|
+
data.tar.gz: 8b7ed7805929e823994900aea1938d8a221fa8fcc4eab5305ec1e8a87aa1914e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e9436c847e35161f6fa5cadd7b2629552d01a87386e3626ec3da9ebbe743a1f8a70661e23b84858e9320d5957b0f00474a6de0bd7a424b2aee7b376c87864a4
|
|
7
|
+
data.tar.gz: 7700608413b9f4d81b56033a07edbd515b00e55f333fa362e41661fc6c3ee597968c70961f0de95644f06b37880167429314cb40b75de86f90ab01eeaa4fc4ce
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/human_speakable.rb
CHANGED
|
@@ -39,8 +39,14 @@ module HumanSpeakable
|
|
|
39
39
|
year ? s + ' ' + date.year.to_s : s
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
def self.format_time(time)
|
|
43
|
-
|
|
42
|
+
def self.format_time(time)
|
|
43
|
+
|
|
44
|
+
h, m, meridiem = time.strftime("%-I %M %P").split
|
|
45
|
+
a = [h]
|
|
46
|
+
a << ':' + m unless m == '00'
|
|
47
|
+
a << ' ' + meridiem
|
|
48
|
+
a.join()
|
|
49
|
+
|
|
44
50
|
end
|
|
45
51
|
|
|
46
52
|
refine String do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: human_speakable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
BtTxfdfIW3U1ivkBem90bjsQZTI6zFj5ej5DRCqmbEgxiI1HfpqrZ89TSmazrYAD
|
|
36
36
|
GeGEsc7sGwL/bdGgEmUvqmTM
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2019-
|
|
38
|
+
date: 2019-10-25 00:00:00.000000000 Z
|
|
39
39
|
dependencies: []
|
|
40
40
|
description:
|
|
41
41
|
email: james@jamesrobertson.eu
|
|
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
63
63
|
- !ruby/object:Gem::Version
|
|
64
64
|
version: '0'
|
|
65
65
|
requirements: []
|
|
66
|
-
rubygems_version: 3.0.
|
|
66
|
+
rubygems_version: 3.0.3
|
|
67
67
|
signing_key:
|
|
68
68
|
specification_version: 4
|
|
69
69
|
summary: Makes it convenient to format a date as it would be spoken in English.
|
metadata.gz.sig
CHANGED
|
Binary file
|