simple_http_service 0.1.3.2 → 0.1.5

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: 5c214f1f938b020e80596d7c6e2eba2828a18f42d5b5b5ad77ffa740aaf52551
4
- data.tar.gz: ca43b01ce18f3d49ca3f56611c055c301f34d15cd4daa54f74933961a7ffcc0b
3
+ metadata.gz: fe5f7fd7f797bc6908353350c9a422d183597c3c76f8dc41191b5262461f6f25
4
+ data.tar.gz: 29d85277000b1114f53f55c0ebb67b605a9e800d428dc801f317e67fa6e752eb
5
5
  SHA512:
6
- metadata.gz: 4feb2bceb9c102b867aa43056848944b3aed74cf106e31477a1c79de1d7af57789e690509846cfcd877407a2bbac91613c4c3255d16aea76a695b04bc2183c20
7
- data.tar.gz: 1686c396f063a1acb598ac08326394a1a6e74bebb970f396386786de043b8e9a7bc4668fadd22f3979f637778e3c618b33be0a904fb7419f464a54badfa60255
6
+ metadata.gz: fc83c98ca612a060e8529aece79dace4485578148e010b2fece73f01ada81a64ca88361a3f8b4768be4ba4a89977e46cd2d3f6ab8152d7995d5e92452f54e443
7
+ data.tar.gz: cf624a45b825afa91df28823161f5d570ef27c05408572e1eb881639037bf1e154df17d419980726cfbff4e435f7e60497cfbad69701db0a10b90affcfd6fe21
data/.gitignore CHANGED
@@ -2,7 +2,6 @@
2
2
  /.yardoc
3
3
  /_yardoc/
4
4
  /coverage/
5
- /doc/
6
5
  /pkg/
7
6
  /spec/reports/
8
7
  /tmp/
data/Gemfile CHANGED
@@ -4,3 +4,10 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
5
  # Specify your gem's dependencies in simple_http_service.gemspec
6
6
  gemspec
7
+
8
+
9
+ group :development, :test do
10
+ gem 'rspec', '~> 3.13.0'
11
+ gem 'rspec-core', '~> 3.13.1'
12
+ gem 'yard'
13
+ end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_http_service (0.1.2)
4
+ simple_http_service (0.1.4)
5
5
  net-http (~> 0.4.1)
6
6
 
7
7
  GEM
@@ -15,7 +15,7 @@ GEM
15
15
  rspec-core (~> 3.13.0)
16
16
  rspec-expectations (~> 3.13.0)
17
17
  rspec-mocks (~> 3.13.0)
18
- rspec-core (3.13.0)
18
+ rspec-core (3.13.2)
19
19
  rspec-support (~> 3.13.0)
20
20
  rspec-expectations (3.13.0)
21
21
  diff-lcs (>= 1.2.0, < 2.0)
@@ -24,7 +24,8 @@ GEM
24
24
  diff-lcs (>= 1.2.0, < 2.0)
25
25
  rspec-support (~> 3.13.0)
26
26
  rspec-support (3.13.1)
27
- uri (0.12.0)
27
+ uri (0.12.1)
28
+ yard (0.9.37)
28
29
 
29
30
  PLATFORMS
30
31
  ruby
@@ -32,8 +33,10 @@ PLATFORMS
32
33
  DEPENDENCIES
33
34
  bundler (~> 2.5.10)
34
35
  rake (~> 10.0)
35
- rspec (~> 3.0)
36
+ rspec (~> 3.13.0)
37
+ rspec-core (~> 3.13.1)
36
38
  simple_http_service!
39
+ yard
37
40
 
38
41
  BUNDLED WITH
39
42
  2.5.11
data/README.md CHANGED
@@ -36,7 +36,10 @@ client = SimpleHttpService.new(
36
36
  open_timeout: 5,
37
37
  read_timeout: 10,
38
38
  write_timeout: 5,
39
- max_retries: 3
39
+ max_retries: 3,
40
+ additional_headers: {
41
+ 'X-Request-Id': '12345'
42
+ }
40
43
  )
41
44
  ```
42
45
  ### Making a Request
@@ -55,6 +58,7 @@ puts response.body
55
58
  - `write_timeout`: Timeout for writing the request (default is false).
56
59
  - `max_retries`: The number of times to retry the request in case of failure.
57
60
  - `request_body`: The body of the request (used for POST and PUT requests).
61
+ - `additional_headers`: Additional headers to include in the request.
58
62
 
59
63
  ### Example
60
64
  Here's a complete example of using `SimpleHttpService` to make a `GET` request: