apple-news 0.2.3 → 0.2.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a2368f1c3e4a9504b17a7b65f8a8c47b6ee1390
4
- data.tar.gz: bafb7a266fcbf601c2fe7e876899c58f9c94e702
3
+ metadata.gz: 5df2854904609e0219adf8bb17ea1e4defeae194
4
+ data.tar.gz: cece0b841ed8e67f36cc3dfdb1b95cff68c2d9bb
5
5
  SHA512:
6
- metadata.gz: 8732e4c0cf51edbd981629db77684e61a64bb1b6ce876d56f703bb638c1ef483f36e8c5efb8aa97c71ce1ca8c94ecfcbf363cff79c8b6fb2d285cec2b79322ea
7
- data.tar.gz: 6f588ee5a9e05fef75508fdda97af14075ff5957c030861d113361f2b87d8a394b91b5bcf9a10f456259a0de2514cdb508b439b0f56ef4ea6a892ffd49d3ee93
6
+ metadata.gz: 24089be2fecd8a73f0eab621a0f1a28c7e1aa3c26cb61d01e9df45b6ad5bb19bd70a7c1c2b43fa940e83ed873905a116e13952d4f54f23ccf7ca64946357f2fb
7
+ data.tar.gz: 5555940f147f836aa6608813b51f35aedbd2c38352573b0baee48a4e934797bbf7ff09771cd3f49486f3c2128e229ace94025720b05e174e5d1133be79a49e99
@@ -2,6 +2,7 @@ module AppleNews
2
2
  module Property
3
3
  class GalleryItem < Base
4
4
  optional_properties :url, :caption, :accessibility_caption, :explicit_content
5
+ property_inflection :url, 'URL'
5
6
  end
6
7
  end
7
8
  end
@@ -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
- # http.set_debug_output $stderr
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
 
@@ -1,3 +1,3 @@
1
1
  module AppleNews
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple-news
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan LeFevre