tanga_services 0.0.10 → 0.0.11

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: e473f07c6673ce61eb8dd075e0438dd99078c7b4
4
- data.tar.gz: 0a6aae31f49b38b56c3a1978137232762b564e9f
3
+ metadata.gz: 301140378352be881b13aa19deef91c7d6f80ae7
4
+ data.tar.gz: 3cd92108fcc5dcf7ad5cd4ea010172c542a3893c
5
5
  SHA512:
6
- metadata.gz: abfef6ee4062cdb80dbe989bc52a7ff4389c629d3b953120925fc4d60423474776d25d3c5f97b94e86c3054e2aa2cb0a9d06e48dfebc84ca9e06a27453c4e279
7
- data.tar.gz: d09c8d44cc8a50ca723c6515fa1ac9ac2c5794cf110ec062d75108c7143bea90ebc0a2e19037f2abb8c472ad60707b3d1fdfe5b599c5627b562b7d0b447206b6
6
+ metadata.gz: c91655dd9f6e9f5fe9270627d13ff9a8c5a3ff63ec85a2ec0a6099af7a54a1f524bf94fd01febfae22be7297cf8ba36666fea6a6df88c27c109a03a3ff551e3a
7
+ data.tar.gz: ea40994ee485b24bbfcc3cf8a9601e4b5b0365b7d8ba0e83221810092586c9e42ee4fd8425988d6c48bf82a7697fef772e0f0115da1122dfb647330072908381
@@ -5,6 +5,9 @@ require 'json'
5
5
  module TangaServices
6
6
  class HTTP
7
7
  class Exception < RuntimeError
8
+ def to_s
9
+ cause.to_s
10
+ end
8
11
  end
9
12
 
10
13
  %i( get put delete post ).each do |method|
@@ -1,3 +1,3 @@
1
1
  module TangaServices
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
data/spec/http_spec.rb CHANGED
@@ -15,7 +15,7 @@ describe TS::HTTP do
15
15
  VCR.use_cassette('invalid json') do
16
16
  expect do
17
17
  described_class.get('https://rawgit.com/joevandyk/a370a1fd94a3e6f88e08/raw/9acc356880ee36e8fd1585db1f1c1582ab3c89ad/bad.json')
18
- end.to raise_error(described_class::Exception)
18
+ end.to raise_error(described_class::Exception, /unexpected token/)
19
19
  end
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tanga_services
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Van Dyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-01 00:00:00.000000000 Z
11
+ date: 2015-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape