incognia_api 0.5.1 → 0.5.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: c47d92b4d714fd3187bffb8af8b22ad6d77deb26ee45586c868f4de0c9c2ae26
4
- data.tar.gz: 6c97b0b516d7b47fe4483436cf6c846f81619534a0148efa8088f147fa4a8924
3
+ metadata.gz: 6475d6c1fa5bf56e643e001516911dad924d51c48022f2f2ff3888a756443581
4
+ data.tar.gz: 7af66755bea5f89918309815d9a10fbfeda56917db601ef5bb9a73f7c92788c1
5
5
  SHA512:
6
- metadata.gz: e62f1b30c8a2c255d0e8e744e58303d7d1dc93f47e1a04f6828073c4cd8b901e531e2d86b02ae4fa9c9a4cf4a751f4df6dcd1e9aea1fcfc9987041edf93964f6
7
- data.tar.gz: 3d4e6c2f6b6fff1c7972818a355bb5c14b6f72491b211c8ce186a83ab58631756b979f4b53699f1fd0e145e61716808a142834144fdc7ef8b8120cf2ed6182b5
6
+ metadata.gz: ec274dd33ff8ad18bbed3fc9ed6062457affa9b8640234c9b7bac5581867801a01a98b56c8ad8a606185e4e211ce0ce590f664e11bfe70c76d883d3e896c4461
7
+ data.tar.gz: 861d1ac7d0cbd767f799bee589a9a947c2d4922b31abf3fcc9152ac606560e300a412a558795ae4f120a168e4506007cefa977cd8bab51830c652ddd910f11ee
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- incognia_api (0.5.1)
4
+ incognia_api (0.5.2)
5
5
  faraday (~> 1.10)
6
6
  faraday_middleware (~> 1.2)
7
7
 
@@ -14,7 +14,12 @@ module Incognia
14
14
  @client_secret = client_secret
15
15
  @host = host
16
16
 
17
- @connection = Faraday.new(host) do |faraday|
17
+ headers = { 'User-Agent' => "incognia-ruby/#{Incognia::VERSION} " \
18
+ "({#{RbConfig::CONFIG['host']}}) " \
19
+ "{#{RbConfig::CONFIG['arch']}} " \
20
+ "Ruby/#{RbConfig::CONFIG['ruby_version']}" }
21
+
22
+ @connection = Faraday.new(host, headers: headers) do |faraday|
18
23
  faraday.request :json
19
24
  faraday.response :json, content_type: /\bjson$/
20
25
  faraday.response :raise_error
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Incognia
4
- VERSION = "0.5.1"
4
+ VERSION = "0.5.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incognia_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Cavalcanti
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-14 00:00:00.000000000 Z
11
+ date: 2023-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
- rubygems_version: 3.1.6
95
+ rubygems_version: 3.3.7
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Official Ruby lib for communicating with Incognia API