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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad44826f15da4eff3286aac98593630b0b34972a28701b6e72c6dffc8a79e1d3
4
- data.tar.gz: a035133485d3f7f842dd44a542eb1c7253bb26579576fc0848ce20e61e5ef2bd
3
+ metadata.gz: a4feb9d437fcffd71e7508d09fea49b1196ecae5d10f3a270be9573a32ef5c7e
4
+ data.tar.gz: d95d3693aa4c85b5e4567389fa382d1f87e278e5a339c5cf4b529dab00589318
5
5
  SHA512:
6
- metadata.gz: fe46727474d9b7c8342b3cb909b2abb3423fb2b2d760cb8e957a75662fb1011492356a2e1a42d272141e4549114bcb061f79fa4fcd1351cc5b7ed53a5dc15d9e
7
- data.tar.gz: bbbea01d73e999aebe657a75ccb8f1304e0913cc8fc7b12b923255f64e3b1ee798d85883843a54d1caff6b5ed49e8a36a494a9cf3e1fa56c49509bc7b5d37713
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
- - 2.5.0
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
1
+ 1.2.1
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: govuk-registers-api-client 1.1.1 ruby lib
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.0') then
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"])
@@ -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]
@@ -2,7 +2,7 @@ require 'register_client'
2
2
  require 'in_memory_data_store'
3
3
 
4
4
  module RegistersClient
5
- VERSION = '1.1.1'
5
+ VERSION = '1.2.1'
6
6
  class RegisterClientManager
7
7
  def initialize(config_options = {})
8
8
  @config_options = defaults.merge(config_options)
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.1.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.4
81
+ rubygems_version: 2.7.6
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: Client library for GOV.UK Registers