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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/scraped_page_archive.rb +1 -1
- data/lib/scraped_page_archive/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 619f8211f74d6b0ae46ac97bc8eb54eae3f0ce40
|
4
|
+
data.tar.gz: cb1b6aac4fbaa149322276d4217c5e54dc8ab1f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb0d5ffa75160dfec99247518a870d65e78c431232ee5ef086b2bb06cf304de51f38199abbc3e78c21b8859e020c86f2899876da0b75a7cc239a46762e6c0642
|
7
|
+
data.tar.gz: fec75270ba3b8f0dc23035a114a970106a3f5b4d278f3f31dc24b92e74bb4e602cc5ecf5929d94292d90667e83ea0b88e89cab210d848ddbd230a3f2540d7641
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/scraped_page_archive.rb
CHANGED
@@ -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
|