cache_rules 0.1.5 → 0.1.6

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.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.6 (2014-02-02)
4
+
5
+ * Don't rescue ArgumentError on httpdate parse errors
6
+
3
7
  ## 0.1.5 (2014-02-02)
4
8
 
5
9
  * Closes #3. Returns all cached headers according to RFC 7234 sec4.3.4
data/cache_rules.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'date'
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = 'cache_rules'
9
- s.version = '0.1.5'
9
+ s.version = '0.1.6'
10
10
 
11
11
  s.date = Date.today.to_s
12
12
 
data/lib/formatting.rb CHANGED
@@ -104,7 +104,7 @@ module CacheRules
104
104
  def httpdate_helper(header)
105
105
  # source: https://tools.ietf.org/html/rfc7231#section-7.1.1.1
106
106
  DateTime.parse(header).to_time.to_i
107
- rescue ArgumentError => e
107
+ rescue => e
108
108
  # If the supplied date is invalid, use a time in the past (5 minutes ago)
109
109
  # source: https://tools.ietf.org/html/rfc7234#section-5.3
110
110
  Time.now.gmtime.to_i - 300
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cache_rules
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: