govuk-registers-api-client 1.1.1 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -1
- data/.version +1 -1
- data/govuk-registers-api-client.gemspec +2 -2
- data/lib/register_client.rb +4 -1
- data/lib/register_client_manager.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4feb9d437fcffd71e7508d09fea49b1196ecae5d10f3a270be9573a32ef5c7e
|
4
|
+
data.tar.gz: d95d3693aa4c85b5e4567389fa382d1f87e278e5a339c5cf4b529dab00589318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10422900d95a4267920a90a9d43f59f65361c99beeecf12d220f21c99a044ba5b9259c2f148325e9623c66353783d0443776ec1dfd4843b73d2b124901151e82
|
7
|
+
data.tar.gz: 6fdf51f7e6aa81ef0f6050c68bb0aec0dc503caa885b31c942e9aaab9e601533c0d65f1105a645afbc3f85a99f353c988f2190d36aa858707fd4d12bda2ffe64
|
data/.travis.yml
CHANGED
@@ -1,3 +1,11 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
|
3
|
+
- 2.5.0
|
4
|
+
deploy:
|
5
|
+
provider: rubygems
|
6
|
+
api_key:
|
7
|
+
secure: LxPGrDMaGkCSEETi4ztRueJ9fdnICDDfCK2CnqOcmu0zDJaf/GJ8Uu5qFnzneDr7N0Aq10iQzB4kjYo2LnKmJVo59jFqWVRg/Usd0p/aW3mfhQsyzU3YG9zesXAfapevRp7Y01s52UGy7GaKbmcoN5LUscMY5d9x28VeG+Vq8ksswkX6vkULGHWizcb9f5IC9nQM1A0dE+Scg6TEMJSBtSM3ypSTSCQX45I2lmoWjt/tWW+9fRdsFb9cnd+3DbGlt+zlU7uWyt6qm3MCnP9N66LoMkrUN9lh1c41Cr/ToVTsIUTiFYq8H/AJ40rz/EelgGPtpZ6FllQ7aVxXmA6ShcziLZRJNeWXCB9r8UwjDBe39nR5gUeYA8nHvoHFHVGksAPertVf9nZu1kFwsdK7NKvVyUtJcyPCvT5jcjx+LO30g+2yAUyRDPReZi70jWL/5M7Frm9FUq3OjRMFzeRgPeN0ECiSTIi5mkGGhWVlEl+ZQ6uw4ob3EewZZ5v1UD2QMAZqtCDQ7bYDshc5AwRDOsEwSOZGbXCMjzFER2vpzD3iud6Syr+63jNDA4TYoseAqx06IPy0CGq8WPcs7seJHgK1EVTwAdIQTY/vat8VH3Sze7kou1gmz020hM/tkkAwSTa/Em8CglRoMgGoV+jAZIxuuGzwBBsCMfONdpnbZgo=
|
8
|
+
gem: govuk-registers-api-client
|
9
|
+
on:
|
10
|
+
tags: true
|
11
|
+
repo: openregister/govuk-registers-api-client
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.1
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: govuk-registers-api-client 1.
|
2
|
+
# stub: govuk-registers-api-client 1.2.1 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "govuk-registers-api-client".freeze
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
if s.respond_to? :specification_version then
|
24
24
|
s.specification_version = 4
|
25
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.
|
25
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.1') then
|
26
26
|
s.add_runtime_dependency(%q<rest-client>.freeze, ["~> 2"])
|
27
27
|
else
|
28
28
|
s.add_dependency(%q<rest-client>.freeze, ["~> 2"])
|
data/lib/register_client.rb
CHANGED
@@ -168,7 +168,10 @@ module RegistersClient
|
|
168
168
|
end
|
169
169
|
|
170
170
|
def register_http_request(path)
|
171
|
-
headers = {
|
171
|
+
headers = {
|
172
|
+
Authorization: @options[:api_key],
|
173
|
+
user_agent: 'CL'
|
174
|
+
}.compact
|
172
175
|
|
173
176
|
unless @options[:api_key] == nil
|
174
177
|
headers[:Authorization] = @options[:api_key]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk-registers-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Registers Team (Government Digital Service)
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
version: '0'
|
79
79
|
requirements: []
|
80
80
|
rubyforge_project:
|
81
|
-
rubygems_version: 2.7.
|
81
|
+
rubygems_version: 2.7.6
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: Client library for GOV.UK Registers
|