time_range_extractor 0.1.2 → 0.1.3

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: bf2c1d9136b7a6848c9d825270247db561b0ba192053d073e54082be4c9de551
4
- data.tar.gz: 2e0e4ceea8c4d6c859f8250e531180b6d673751c711b4aca6cda97e0b6be4096
3
+ metadata.gz: 5fa0a534c7c9a6102514520292a6ce86a0d6896961d4886315231683407d4bf9
4
+ data.tar.gz: ebe57a9034aa3c80886b918605aa95b79c56ce633fd57957d716b21e759e3b8d
5
5
  SHA512:
6
- metadata.gz: b31febd8ac057bf97106c33ab121ec42fa82ff5e67717130927ffd18437f5b45f9f0a6a87b0a8fcee94f6065a766962af647978cdadfe1921b24f2dec3999cce
7
- data.tar.gz: d3dab6a41d87700bd62353c52af31e439fd4d4e63bf0fbb4bc21e9b9d65a49b06f3e96359e1bb4ecd0adba551cbf18f9714c3a638860f92e352d458a766835c5
6
+ metadata.gz: '08ecbd4a6fc791d9720486efa66fa4f0e82aa7c9c9c0e6f24fc98a50e4814a8a4be4b5e7620d23e2e27fd5495b4eb47395ce706397679326f3fa8f3c34172a6b'
7
+ data.tar.gz: 9a14db87419b1f7a1cd40f8aae5f7eaa97332c4f14f27fe29a28333b6a4e2cc768d1d3073bb79785a7a7bea1ca6d54bbe1b41ae987e04c93a9d1c14e077ce16f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- time_range_extractor (0.1.2)
4
+ time_range_extractor (0.1.3)
5
5
  activesupport (> 2.0)
6
6
 
7
7
  GEM
@@ -6,11 +6,11 @@ class Parser
6
6
  PATTERN = /
7
7
  (\A|\s|\() # space or round bracket, to support: "Call Jim (8-9pm)"
8
8
  (
9
- (?<start_time>[1-2]?[0-9]:?[0-9]{2}?)\s?
9
+ (?<start_time>(2[0-4]|1[0-9]|[1-9]):?([0-5][0-9])?)\s?
10
10
  (?<start_period>am|pm)?\s?
11
11
  (to|-|until)\s?
12
12
  )?
13
- (?<end_time>[1-2]?[0-9]:?[0-9]{2}?)?\s?
13
+ (?<end_time>(2[0-4]|1[0-9]|[1-9]):?([0-5][0-9])?)?\s?
14
14
  (?<end_period>am|pm)\s?
15
15
  (?<time_zone>(
16
16
  [ABCDEFGHIJKLMNOPRSTUVWY]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TimeRangeExtractor
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: time_range_extractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Baker