fora 0.1.0 → 0.1.1

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: 493f33fe43f47d57b0e24a88737a9aa61ff9da23
4
- data.tar.gz: c5e5018a46e934e3839bc97f03e39aae21cba3f7
3
+ metadata.gz: 18faa9dc1838942421aa0b064272338d29a72de1
4
+ data.tar.gz: abeb39a324fd46fe93d3fcc759132a13923aeba0
5
5
  SHA512:
6
- metadata.gz: 4fbf568bff5831cbd3ae501bff4fa232032c5f7d7fe7dc34d0255213eecf082c144d9a190b0a5cc326975066ff8e99b479a6d90e9925e1e4d2d2de278d147140
7
- data.tar.gz: e3b24369400e9bf92d2d06e85adfee6311bda0438e1d933df17d032e3341421634d1ccc8408e3355a51fa7db5a43afbaf7f37701f12379068836cc80a3cd23d9
6
+ metadata.gz: 6dd3268bc13db5cda250b0bc951a15f2fc4d7be63dc4c1935f10ac49f3fa79a42398a88b707f604f38b400e50db360c0851b2446428531a37b8f3967409222a0
7
+ data.tar.gz: a24b2a81344d4b2f1bb59786a3a24620b1af8379f5bd04d9f1599b4e2a8d4e6e6b6f2955659c6065864fd2e5c5f44f016d25f8715893078bed5b4226f2c3178b
data/CHANGELOG.md ADDED
@@ -0,0 +1 @@
1
+ 0.1.1 - Updates to regex in Contract for leading zeros on date
data/fora.gemspec CHANGED
@@ -31,5 +31,5 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency "rake", "~> 10.0", ">= 10.0"
32
32
  spec.add_development_dependency "rspec", "~> 3.1.0", ">= 3.1.0"
33
33
 
34
- spec.add_dependency "contracts", "~> 0.12.0", ">= 0.12.0"
34
+ spec.add_dependency "contracts", "~> 0.13.0", ">= 0.12.0"
35
35
  end
data/lib/fora/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fora
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/fora.rb CHANGED
@@ -19,7 +19,7 @@ module Fora
19
19
  end
20
20
 
21
21
  # Not the most robust regex, just a quick check
22
- Contract C::And[String, /\A[0-1][0-9]\/[0-3][0-9]\/[1-2][0-9]{3}/] \
22
+ Contract C::And[String, /\A[0-1]?[0-9]{1}\/+[0-3]?[0-9]{1}\/[1-2][0-9]{3}/] \
23
23
  => Date
24
24
  def parse_us_date(date)
25
25
  Date.strptime(date, "%m/%d/%Y")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fora
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Southard
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-24 00:00:00.000000000 Z
11
+ date: 2016-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -76,7 +76,7 @@ dependencies:
76
76
  requirements:
77
77
  - - "~>"
78
78
  - !ruby/object:Gem::Version
79
- version: 0.12.0
79
+ version: 0.13.0
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.12.0
@@ -86,7 +86,7 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.12.0
89
+ version: 0.13.0
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
92
  version: 0.12.0
@@ -99,6 +99,7 @@ extra_rdoc_files: []
99
99
  files:
100
100
  - ".gitignore"
101
101
  - ".travis.yml"
102
+ - CHANGELOG.md
102
103
  - CODE_OF_CONDUCT.md
103
104
  - Gemfile
104
105
  - LICENSE.txt
@@ -128,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
129
  version: '0'
129
130
  requirements: []
130
131
  rubyforge_project:
131
- rubygems_version: 2.4.3
132
+ rubygems_version: 2.5.1
132
133
  signing_key:
133
134
  specification_version: 4
134
135
  summary: Add some time manipulation to your ruby