attentive 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/attentive/entities/core/time.rb +3 -2
- data/lib/attentive/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5103b0c4f607156d2ec0be7d8a85f37b251b9549
|
4
|
+
data.tar.gz: a75d4626d2ea67fdd580e78710a0b248929baf13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4c1b0b0c6fe98f5e3eb90dcd5ad8ba43d5e3eece823701b81f13585eccf696304782b19938138d208fbd1c2b6b201a3e02e06f22a6406f8b4e26ae2c5237699
|
7
|
+
data.tar.gz: 98dc82d2e9411e5bce7c0e7e0d50825fc8cc1afecc95158388ad7dd70a52b7cd8b66599895e434430c69a050c379ee3fdb90b655116d7b4f21fc6ef1f551f02f
|
@@ -13,7 +13,8 @@ Attentive::Entity.define "core.time",
|
|
13
13
|
|
14
14
|
if match.matched?("hours")
|
15
15
|
hours = match["hours"].to_i
|
16
|
-
hours += 12 if match.matched?("pm")
|
16
|
+
hours += 12 if hours < 12 && match.matched?("pm")
|
17
|
+
hours = 0 if hours == 12 && !match.matched?("pm")
|
17
18
|
minutes = match["minutes"].to_i if match.matched?("minutes")
|
18
19
|
else
|
19
20
|
case match.to_s
|
@@ -23,7 +24,7 @@ Attentive::Entity.define "core.time",
|
|
23
24
|
end
|
24
25
|
end
|
25
26
|
|
26
|
-
nomatch! if hours < 0 || hours >
|
27
|
+
nomatch! if hours < 0 || hours > 23
|
27
28
|
nomatch! if minutes < 0 || minutes > 60
|
28
29
|
|
29
30
|
today = Date.today; Time.new(today.year, today.month, today.day, hours, minutes)
|
data/lib/attentive/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attentive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Lail
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thread_safe
|