jsl-feedtosis 0.0.2.3 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/feedtosis.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{feedtosis}
3
- s.version = "0.0.2.3"
3
+ s.version = "0.0.3"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Justin Leitgeb"]
@@ -90,12 +90,8 @@ module Feedtosis
90
90
  summary = summary_for_feed
91
91
 
92
92
  unless summary.nil?
93
- # We should only try to populate the headers for a conditional GET if
94
- # we know both of these values.
95
- if summary[:etag] && summary[:last_modified]
96
- curl.headers['If-None-Match'] = summary[:etag]
97
- curl.headers['If-Modified-Since'] = summary[:last_modified]
98
- end
93
+ curl.headers['If-None-Match'] = summary[:etag] unless summary[:etag].nil?
94
+ curl.headers['If-Modified-Since'] = summary[:last_modified] unless summary[:last_modified].nil?
99
95
  end
100
96
 
101
97
  curl
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsl-feedtosis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.3
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Leitgeb