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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c2dd05878b484a741af79656ca91f860f4ee6cb
4
- data.tar.gz: ae71608dbc82bb68eddfc8ecf9c1f6a96543d67b
3
+ metadata.gz: 5103b0c4f607156d2ec0be7d8a85f37b251b9549
4
+ data.tar.gz: a75d4626d2ea67fdd580e78710a0b248929baf13
5
5
  SHA512:
6
- metadata.gz: c3b8bc10ea59c099b916e8765bedcdef39119bb463dcf09eed8dfe39564ef174a15e6cb3dd98fe0fc2d83c185114c230e3d7d9086149a680a5bee9943e4d62f5
7
- data.tar.gz: 2f14b5a1ad5dda7bb1e9fc694ba9bd670cbd51a3ac134c06f999ba2ab8f9f24f1146cc68b629311341ed8d40355119e42f34cd754db9a2e4a3313e7de8a5aad5
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 > 24
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)
@@ -1,3 +1,3 @@
1
1
  module Attentive
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
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.5
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-03 00:00:00.000000000 Z
11
+ date: 2016-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thread_safe