chimera_http_client 1.1.1 → 1.1.2

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: 245adb27237d0970454580b14f6973ed7bf732a8ce3f4426b35978ff27eed9d8
4
- data.tar.gz: 02e8646e5757b60b7d4617d58f3413bdd4b5675d8d307342fabc7ce03c90471b
3
+ metadata.gz: c0909ba0cb053a18ffbbe0c81e866f61692b7eadb86cf790e97e5ab8178dbb69
4
+ data.tar.gz: 2583f9ea44ef1d2868cb8b421e680795cb474bccc4ef3e0a006c3c02135d3f17
5
5
  SHA512:
6
- metadata.gz: 0caca4f777876526ab8fb4f1652b0643e545bd768e7722424e2007e3e1e79f397cc043dd5ad81d4319ec0703242c72a9481bcac589a48d82374a7e646cef2974
7
- data.tar.gz: caf3dc496a546c75a07475148a063caf8b312f9fb63f9a65de02577c3f7b4398e8c05660660d003c6dc7a14bf50b33e5e46cba6d7c2599901b265d3df3f5155c
6
+ metadata.gz: b193b7ed042727cc5a9c8b937cd7542b743a0f6530f47be8e842484be19cfc2edd9c9756564d3eb683d3875a65c84aefb482abb9df6d54a8c4d634c106337227
7
+ data.tar.gz: ad18499c13ad4bc2ca9a02a1ae52f99ca559c2dff880e19553968d06e2bd7da5ab65b258f07d58767759e08974438c050fd7f4c17b17bdc1e89a71f47208b484
data/README.markdown CHANGED
@@ -7,6 +7,7 @@ And what works for the internal communication between your own apps, will also w
7
7
  It offers an **easy to learn interface** and **nice error handling**. And it enables you to **queue HTTP requests to run them in parallel** for better performance and simple aggregating of distributed data.
8
8
 
9
9
  [![Build Status](https://travis-ci.com/mediafinger/chimera_http_client.svg?branch=master)](https://travis-ci.com/mediafinger/chimera_http_client)
10
+ [![Gem Version](https://badge.fury.io/rb/chimera_http_client.svg)](https://badge.fury.io/rb/chimera_http_client)
10
11
 
11
12
  ## Dependencies
12
13
 
@@ -387,7 +388,10 @@ When updating the version, do not forget to run
387
388
 
388
389
  After checking out the repo, run `bundle install` and then `bundle execute rake` to run the **tests and rubocop**.
389
390
 
390
- > The test suite uses a Sinatra server to make real HTTP requests. It is mounted via Capybara_discoball and running in the same process.
391
+ > The test suite uses a Sinatra server to make real HTTP requests. It is mounted via Capybara_discoball and running in the same process. It is still running reasonably fast (on my MacBook Air):
392
+
393
+ Finished in 2.01 seconds (files took 1.09 seconds to load)
394
+ 824 examples, 0 failures, 7 pending
391
395
 
392
396
  You can also run `rake console` to open an irb session with the `ChimeraHttpClient` pre-loaded that will allow you to experiment.
393
397
 
data/TODO.markdown CHANGED
@@ -39,7 +39,16 @@ _none known_
39
39
  ### Miscellaneous
40
40
 
41
41
  - [ ] Determine by parameter if 3xx Redirects should be handled as an Error or not
42
- - [ ] Add a longer description to the gemspec file
42
+ - [x] ~~Add a longer description to the gemspec file~~
43
+
44
+ ### Instrumentation
45
+
46
+ - [ ] allow to pass object to collect metrics for monitoring
47
+ - [ ] request URL
48
+ - [ ] request resonse code
49
+ - [ ] request datetime
50
+ - [ ] request runtime
51
+ - [ ] add example to README
43
52
 
44
53
  ### Enable more Typhoeus functionality
45
54
 
@@ -3,13 +3,22 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require "chimera_http_client/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
+ spec.required_ruby_version = ">= 2.5.0" # without Deserializer's `rescue` in block it would be 2.4.4 (because of zeitwerk)
7
+
6
8
  spec.name = "chimera_http_client"
7
9
  spec.version = ChimeraHttpClient::VERSION
8
10
  spec.authors = ["Andreas Finger"]
9
11
  spec.email = ["webmaster@mediafinger.com"]
10
12
 
11
- spec.summary = "Http Client to connect to REST APIs"
12
- spec.description = "General http client functionality to easily connect to JSON endpoints" # TODO: extend and polish
13
+ spec.summary = "General http client functionality to quickly connect to JSON REST API endpoints and any others"
14
+ spec.description = <<~DESCRIPTION
15
+ The Chimera http client offers an easy to learn interface and consistent error handling.
16
+ It is lightweight, fast and enables you to queue HTTP requests to run them in parallel
17
+ for better performance and simple aggregating of distributed data. Despite it's simple
18
+ interface it allows for advanced features like using custom deserializers, loggers,
19
+ caching requests individiually, and instrumentation support (soon to be implemented).
20
+ DESCRIPTION
21
+
13
22
  spec.homepage = "https://github.com/mediafinger/chimera_http_client"
14
23
  spec.license = "MIT"
15
24
 
@@ -1,3 +1,3 @@
1
1
  module ChimeraHttpClient
2
- VERSION = "1.1.1".freeze
2
+ VERSION = "1.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chimera_http_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Finger
@@ -220,7 +220,12 @@ dependencies:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
222
  version: '3.0'
223
- description: General http client functionality to easily connect to JSON endpoints
223
+ description: |
224
+ The Chimera http client offers an easy to learn interface and consistent error handling.
225
+ It is lightweight, fast and enables you to queue HTTP requests to run them in parallel
226
+ for better performance and simple aggregating of distributed data. Despite it's simple
227
+ interface it allows for advanced features like using custom deserializers, loggers,
228
+ caching requests individiually, and instrumentation support (soon to be implemented).
224
229
  email:
225
230
  - webmaster@mediafinger.com
226
231
  executables: []
@@ -259,7 +264,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
259
264
  requirements:
260
265
  - - ">="
261
266
  - !ruby/object:Gem::Version
262
- version: '0'
267
+ version: 2.5.0
263
268
  required_rubygems_version: !ruby/object:Gem::Requirement
264
269
  requirements:
265
270
  - - ">="
@@ -269,5 +274,6 @@ requirements: []
269
274
  rubygems_version: 3.0.3
270
275
  signing_key:
271
276
  specification_version: 4
272
- summary: Http Client to connect to REST APIs
277
+ summary: General http client functionality to quickly connect to JSON REST API endpoints
278
+ and any others
273
279
  test_files: []