mangdown 0.19.0 → 0.20.0

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
  SHA256:
3
- metadata.gz: 0fef9c9e66ffce9fff39cd9a8adbf59f56ac48a2cb68218ce715fdacbbc240a9
4
- data.tar.gz: 676a4ee87357a1be1032a2c9bb8b8f5c68907e3e52a8a9035647dfd559a1fcf6
3
+ metadata.gz: bc8e8626f50984f379ecf1f8f007615e1a8282c3265c55806b3e9a211dc2f577
4
+ data.tar.gz: a1c5b4e754f154fd251d7eed13238e9311a7a2a3675a962a2f46cc4b5ff8d208
5
5
  SHA512:
6
- metadata.gz: 9d8c3c9cd6733a053a637232a74be4be138d48aeb7ccb5e4dcbdf6fa9ddbcadc44e199e4b0ae4059c91c172ac0cced0c5328e7b49997c9dff83714a562628006
7
- data.tar.gz: '0996d570af49ae4669116867205ea3c6b5d9f9fe1b450bd108305c2ee4b47a672e5a05ab755026c13a728b663c10b549652e2e6ecdcc3ed44d93cf51408fcc36'
6
+ metadata.gz: 8c4c6eaf01e2819e311657866402108fffe654c86e33fec554141fe6ab4665c376a5d91b106c48d66c54b3c651145d8ada8d051d45bbb3a74520bf26222895ea
7
+ data.tar.gz: 73b0af8e6f520076949dbc89c81a7603eb1d40fe3b9cb2f96f47f037fbafb7730f92b95c26bc86173fc3ff849894831c35d091850191d85147cbfbfce96fc048
@@ -15,7 +15,11 @@ module Mangdown
15
15
  end
16
16
 
17
17
  def get(uri)
18
- Typhoeus.get(uri).body
18
+ response = Typhoeus.get(uri)
19
+
20
+ return response.body if response.success?
21
+
22
+ raise Mangdown::Error, "Failed to GET: #{uri}"
19
23
  end
20
24
 
21
25
  def get_root(uri)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mangdown
4
- VERSION = '0.19.0'
4
+ VERSION = '0.20.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mangdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jphager2
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-28 00:00:00.000000000 Z
11
+ date: 2019-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable