companies_house_hub 0.1.11 → 0.1.12

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: c959d0e3a619abb34e68b365e115b24e0e8314256d6e85f43d994ca191a71403
4
- data.tar.gz: '08ac2d7e6889a285fdedead2498cbf72198f43d6c1f2be0aa90052d313ef6d8f'
3
+ metadata.gz: 4b1cb95d1615672b282b77b4ecc1cedef126294cff5d2be88633bbb1f0604ed5
4
+ data.tar.gz: fa53293f4a6eed159815d3a1be77642cc230830a5d41bb3f382e21faa8576704
5
5
  SHA512:
6
- metadata.gz: 8b9927a7a0948bc420e1e034ca997e2a2dcdcab9448ed342c06e36b8ebca363cbb03c69f60bb2f7a6c63b36b0082b6f3ca16557e4f4d86e34f3e3e6916f0e7af
7
- data.tar.gz: fe5d10e15c789a2409c440d449853ae1c6654e6e8b5202ac3b46813104502a2b5622b01b0cca0f8ea7302b8410c2823623b52bbebc8d5f1ed32f9102a4c3293d
6
+ metadata.gz: 6e1a4ea8006a864e156d6954874794e16e8581e658dab3c47af7c517a110ea2e8d8735fad57537a95461ef450ba4ba3e7a024d8492c300b1ea3882a4278f6588
7
+ data.tar.gz: 230188bf50e0eff96e6148c2ec1ed6d933e65e4d48e2652ef81c17a12d5cbf2d92979304e59b351db08e13566c30ae748527d797794a875a0278b00fd92df776
data/.rubocop.yml CHANGED
@@ -24,6 +24,3 @@ Lint/UselessAssignment:
24
24
 
25
25
  RSpec/ExampleLength:
26
26
  Max: 100
27
-
28
- RSpec/MultipleExpectations:
29
- Enabled: false
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.5
1
+ 3.1.2
data/Gemfile CHANGED
@@ -4,3 +4,14 @@ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in companies_house_client.gemspec
6
6
  gemspec
7
+
8
+ # Dev dependencies
9
+ gem 'dotenv', '~> 2.4.0'
10
+ gem 'pry-byebug'
11
+ gem 'rake', '>= 12.3.3'
12
+ gem 'rspec'
13
+ gem 'rubocop'
14
+ gem 'rubocop-rspec'
15
+ gem 'simplecov'
16
+ gem 'vcr'
17
+ gem 'webmock'
@@ -24,17 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
25
  spec.require_paths = %w[lib]
26
26
 
27
- spec.add_dependency 'faraday'
28
- spec.add_dependency 'faraday_middleware'
29
-
30
- spec.add_development_dependency 'bundler', '~> 2.0'
31
- spec.add_development_dependency 'dotenv', '~> 2.4.0'
32
- spec.add_development_dependency 'pry-byebug'
33
- spec.add_development_dependency 'rake', '>= 12.3.3'
34
- spec.add_development_dependency 'rspec'
35
- spec.add_development_dependency 'rubocop'
36
- spec.add_development_dependency 'rubocop-rspec'
37
- spec.add_development_dependency 'simplecov'
38
- spec.add_development_dependency 'vcr'
39
- spec.add_development_dependency 'webmock'
27
+ spec.add_dependency 'faraday', '~> 2.7'
40
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CompaniesHouseHub
4
- VERSION = '0.1.11'
4
+ VERSION = '0.1.12'
5
5
  end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'faraday'
4
- require 'faraday_middleware'
5
4
  require 'companies_house_hub/configuration'
6
5
  require 'companies_house_hub/base_model'
7
6
  require 'companies_house_hub/errors'
@@ -20,8 +19,7 @@ module CompaniesHouseHub
20
19
 
21
20
  def connection
22
21
  @connection ||= Faraday.new(url: API_URL) do |conn|
23
- conn.basic_auth(configuration.api_key, '')
24
- conn.use FaradayMiddleware::ParseJson
22
+ conn.request :authorization, :basic, configuration.api_key, ''
25
23
  conn.response :json, parser_options: { symbolize_names: true }
26
24
  conn.response :logger if configuration.debug?
27
25
  conn.adapter Faraday.default_adapter
metadata CHANGED
@@ -1,183 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: companies_house_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-15 00:00:00.000000000 Z
11
+ date: 2023-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: faraday_middleware
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
43
15
  requirement: !ruby/object:Gem::Requirement
44
16
  requirements:
45
17
  - - "~>"
46
18
  - !ruby/object:Gem::Version
47
- version: '2.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '2.0'
55
- - !ruby/object:Gem::Dependency
56
- name: dotenv
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 2.4.0
62
- type: :development
19
+ version: '2.7'
20
+ type: :runtime
63
21
  prerelease: false
64
22
  version_requirements: !ruby/object:Gem::Requirement
65
23
  requirements:
66
24
  - - "~>"
67
25
  - !ruby/object:Gem::Version
68
- version: 2.4.0
69
- - !ruby/object:Gem::Dependency
70
- name: pry-byebug
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rake
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: 12.3.3
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: 12.3.3
97
- - !ruby/object:Gem::Dependency
98
- name: rspec
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: rubocop
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: rubocop-rspec
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: simplecov
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: vcr
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: webmock
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ">="
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - ">="
179
- - !ruby/object:Gem::Version
180
- version: '0'
26
+ version: '2.7'
181
27
  description: A REST client for the UK Companies House API, including authentication
182
28
  email:
183
29
  - oterosantos@gmail.com
@@ -226,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
72
  - !ruby/object:Gem::Version
227
73
  version: '0'
228
74
  requirements: []
229
- rubygems_version: 3.0.3
75
+ rubygems_version: 3.3.7
230
76
  signing_key:
231
77
  specification_version: 4
232
78
  summary: A REST client for the UK Companies House API