scraped_page_archive 0.4.0 → 0.4.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: 85882d28526d19f24b3b6d6dc4761dfa4114ef15
4
- data.tar.gz: ceb803c8e19b29ff312d81008601b7a702f719de
3
+ metadata.gz: 619f8211f74d6b0ae46ac97bc8eb54eae3f0ce40
4
+ data.tar.gz: cb1b6aac4fbaa149322276d4217c5e54dc8ab1f1
5
5
  SHA512:
6
- metadata.gz: 95da4b3e80ee2ad5704a1c432d2d32e84806324e38150c49a4c2389d95f4215f0529e491892d943863879abf1d52710dcc01e194c32c8fbc6d16a898e56cd563
7
- data.tar.gz: 2cbe81f2f74c8245b4d5d1b1fd2900224b5d0261da02e1f8a7251f6ee74e12f749cece5d7ebce0cb3df55ac2dffee3c6fcbe0b0180aca8794c49fddc3c1cfbdf
6
+ metadata.gz: bb0d5ffa75160dfec99247518a870d65e78c431232ee5ef086b2bb06cf304de51f38199abbc3e78c21b8859e020c86f2899876da0b75a7cc239a46762e6c0642
7
+ data.tar.gz: fec75270ba3b8f0dc23035a114a970106a3f5b4d278f3f31dc24b92e74bb4e602cc5ecf5929d94292d90667e83ea0b88e89cab210d848ddbd230a3f2540d7641
@@ -5,6 +5,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.4.1] - 2016-08-15
9
+
10
+ ### Fixes
11
+
12
+ - Fix for Ruby 2.0.0 to ensure we work with the older open-uri implementation, which expects all header values to be strings. [#29](https://github.com/everypolitician/scraped_page_archive/pull/29).
13
+
8
14
  ## [0.4.0] - 2016-08-04
9
15
 
10
16
  ### Features
@@ -65,7 +65,7 @@ class ScrapedPageArchive
65
65
  def response_from(meta, response_body)
66
66
  StringIO.new(response_body).tap do |response|
67
67
  OpenURI::Meta.init(response)
68
- meta['response']['headers'].each { |k, v| response.meta_add_field(k, v) }
68
+ meta['response']['headers'].each { |k, v| response.meta_add_field(k, v.join(', ')) }
69
69
  response.status = meta['response']['status'].values.map(&:to_s)
70
70
  response.base_uri = URI.parse(meta['request']['uri'])
71
71
  end
@@ -1,3 +1,3 @@
1
1
  class ScrapedPageArchive
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scraped_page_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Mytton