hotchoc 0.4.0 → 0.4.1
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/hotchoc/client/fetcher.rb +1 -1
- data/lib/hotchoc/client/version.rb +1 -1
- data/lib/hotchoc/client.rb +7 -0
- data/lib/hotchoc.rb +0 -1
- data/spec/hotchoc/client_spec.rb +6 -0
- data/spec/support/stubs.rb +3 -0
- metadata +2 -3
- data/lib/hotchoc/client/errors.rb +0 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 040dce9b238761f601ce6b7ca32ae944449e087a
|
|
4
|
+
data.tar.gz: 1a30003ad4f7ac88bd1f83d9c6103cf4ee1a18e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34806d08d50908475a0a08b4b9fce0ed6b71c98c42ab08ed59f3955bf3acfe393041882452b8340e36bcdfac8cb0cd7742dded84d2b25298949362085949101f
|
|
7
|
+
data.tar.gz: c6d3cd0d31aa44b57659d04eab59436cd713a3dd79d0d2fba188c944771b73907440eeb188818bd42e8e4e7a44cb02545a1dda574a79dbb36f2078194b169df9
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Master
|
|
4
4
|
|
|
5
|
+
## 0.4.1
|
|
6
|
+
|
|
7
|
+
[Full changelog](https://github.com/choc/hotchoc-ruby/compare/v0.4.0...v0.4.1)
|
|
8
|
+
|
|
9
|
+
Changes:
|
|
10
|
+
|
|
11
|
+
* Remove `Hotchoc::Client::Errors` namespace
|
|
12
|
+
|
|
5
13
|
## 0.4.0
|
|
6
14
|
|
|
7
15
|
[Full changelog](https://github.com/choc/hotchoc-ruby/compare/v0.3.1...v0.4.0)
|
data/lib/hotchoc/client.rb
CHANGED
data/lib/hotchoc.rb
CHANGED
data/spec/hotchoc/client_spec.rb
CHANGED
|
@@ -33,5 +33,11 @@ describe Hotchoc::Client do
|
|
|
33
33
|
expect(client.send("#{key}")).to eq config[key]
|
|
34
34
|
end
|
|
35
35
|
end
|
|
36
|
+
|
|
37
|
+
it 'raises RequestError if request fails' do
|
|
38
|
+
client = described_class.new(config)
|
|
39
|
+
|
|
40
|
+
expect { client.get_posts }.to raise_error Hotchoc::Client::RequestError
|
|
41
|
+
end
|
|
36
42
|
end
|
|
37
43
|
end
|
data/spec/support/stubs.rb
CHANGED
|
@@ -11,5 +11,8 @@ RSpec.configure do |config|
|
|
|
11
11
|
|
|
12
12
|
stub_request(:get, /.*\.hotchoc\.(io|dev|test)\/api\/topics\/?(\?.*)?\z/)
|
|
13
13
|
.to_return(status: 200, body: File.read(response_stub('topics')))
|
|
14
|
+
|
|
15
|
+
stub_request(:get, "https://def.ghi/api/posts?api_key=abc")
|
|
16
|
+
.to_return(status: 504)
|
|
14
17
|
end
|
|
15
18
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hotchoc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthias Siegel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-12-
|
|
11
|
+
date: 2015-12-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -148,7 +148,6 @@ files:
|
|
|
148
148
|
- lib/hotchoc/client.rb
|
|
149
149
|
- lib/hotchoc/client/api.rb
|
|
150
150
|
- lib/hotchoc/client/configuration.rb
|
|
151
|
-
- lib/hotchoc/client/errors.rb
|
|
152
151
|
- lib/hotchoc/client/fetcher.rb
|
|
153
152
|
- lib/hotchoc/client/version.rb
|
|
154
153
|
- lib/hotchoc/file.rb
|