apple-news 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apple-news/properties/gallery_item.rb +1 -0
- data/lib/apple-news/requests/post.rb +4 -2
- data/lib/apple-news/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: 5df2854904609e0219adf8bb17ea1e4defeae194
|
4
|
+
data.tar.gz: cece0b841ed8e67f36cc3dfdb1b95cff68c2d9bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24089be2fecd8a73f0eab621a0f1a28c7e1aa3c26cb61d01e9df45b6ad5bb19bd70a7c1c2b43fa940e83ed873905a116e13952d4f54f23ccf7ca64946357f2fb
|
7
|
+
data.tar.gz: 5555940f147f836aa6608813b51f35aedbd2c38352573b0baee48a4e934797bbf7ff09771cd3f49486f3c2128e229ace94025720b05e174e5d1133be79a49e99
|
@@ -14,10 +14,12 @@ module AppleNews
|
|
14
14
|
http = Net::HTTP.new(@url.hostname, @url.port)
|
15
15
|
http.use_ssl = true
|
16
16
|
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
17
|
-
|
17
|
+
|
18
|
+
# The API can be really slow, sometimes.
|
19
|
+
http.read_timeout = 120
|
20
|
+
|
18
21
|
|
19
22
|
res = http.post(@url, content_body, headers)
|
20
|
-
# puts JSON.parse(res.body)
|
21
23
|
JSON.parse(res.body)
|
22
24
|
end
|
23
25
|
|
data/lib/apple-news/version.rb
CHANGED