laa-fee-calculator-client 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +2 -2
- data/bin/ruby_version_test +1 -1
- data/laa-fee-calculator-client.gemspec +5 -5
- data/lib/laa/fee_calculator.rb +1 -0
- data/lib/laa/fee_calculator/connection.rb +2 -1
- data/lib/laa/fee_calculator/version.rb +2 -2
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28b49b8d4fa382b63ac223bc73b4fa26df867a8bdde1ccdc8a66095d496c64c1
|
4
|
+
data.tar.gz: 879657507b8a62e44507fe92b718134b839001507effcad82256844ffb108bd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f11e00097f4679e9c843109c3f5a3170bc875f3e3d08248443db4645d139997523530415857e64552290eef575885d7925fa3a5c46d24d727a7139cc953a03b0
|
7
|
+
data.tar.gz: 6a4ddefcf31efee1a15fbd2855a87f0e4a810d4169025a84905199dbddc913545a3997e053b6bba5f24e6bb92e0718293ac7b1f968cb987c289a352688579382
|
data/CHANGELOG.md
CHANGED
@@ -14,6 +14,16 @@ Add latest change log entries at top using template:
|
|
14
14
|
-
|
15
15
|
|
16
16
|
```
|
17
|
+
## Version 1.2.0
|
18
|
+
|
19
|
+
### Modified
|
20
|
+
- updated Faraday dependency
|
21
|
+
- updated development dependencies - rubocop, bundler
|
22
|
+
### Added
|
23
|
+
- support/testing for ruby 2.7.0
|
24
|
+
### Removed
|
25
|
+
- removed support for ruby 2.5
|
26
|
+
- removed testing against ruby versions less than 2.6
|
17
27
|
|
18
28
|
## Version 1.1.0
|
19
29
|
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ endpoints, providing a simple interface for querying data, in particular, the pr
|
|
12
12
|
Add this line to your application's Gemfile:
|
13
13
|
|
14
14
|
```ruby
|
15
|
-
gem 'laa-fee-calculator-client', '~> 1.
|
15
|
+
gem 'laa-fee-calculator-client', '~> 1.2.0'
|
16
16
|
```
|
17
17
|
|
18
18
|
And then execute:
|
@@ -172,7 +172,7 @@ Bug reports and pull requests are welcome on GitHub at [ministryofjustice/laa-fe
|
|
172
172
|
|
173
173
|
1. Make required changes, run specs (rerecord vcr cassettes if necessary)
|
174
174
|
|
175
|
-
2. Run `bin/ruby_version_test` to test against ruby versions (2.
|
175
|
+
2. Run `bin/ruby_version_test` to test against ruby versions (2.6+ supported at present)
|
176
176
|
|
177
177
|
3. Update the VERSION in `lib/laa/fee_calculator/version` using [semantic versioning](https://guides.rubygems.org/patterns/#semantic-versioning).
|
178
178
|
|
data/bin/ruby_version_test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
set -e
|
4
4
|
|
5
|
-
rubies=("ruby-2.
|
5
|
+
rubies=("ruby-2.6.0" "ruby-2.6.1" "ruby-2.6.2" "ruby-2.6.3" "ruby-2.6.4" "ruby-2.6.5" "ruby-2.6.6" "ruby-2.7.0" "ruby-2.7.1" "ruby-2.7.2")
|
6
6
|
for i in "${rubies[@]}"
|
7
7
|
do
|
8
8
|
echo "====================================================="
|
@@ -7,8 +7,8 @@ require 'laa/fee_calculator/version'
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = 'laa-fee-calculator-client'
|
9
9
|
spec.version = LAA::FeeCalculator::VERSION
|
10
|
-
spec.authors = ['
|
11
|
-
spec.email = ['joel.sugarman@digital.justice.gov.uk', 'tools@digital.justice.gov.uk']
|
10
|
+
spec.authors = ['Katharine Ahern', 'Ministry of Justice']
|
11
|
+
spec.email = ['katharine.ahern@digital.justice.gov.uk', 'joel.sugarman@digital.justice.gov.uk', 'tools@digital.justice.gov.uk']
|
12
12
|
spec.date = LAA::FeeCalculator::VERSION_RELEASED
|
13
13
|
spec.summary = 'Ruby client for the Legal Aid Agency fee calculator API'
|
14
14
|
spec.description = "Ruby client for the Ministry of Justices LAA fee calculator API. A simple interface for transparent calling of the API endpoints to query data and return calculated fee amounts."
|
@@ -24,13 +24,13 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
26
|
# see bin/ruby_version_test
|
27
|
-
spec.required_ruby_version = '>= 2.
|
27
|
+
spec.required_ruby_version = '>= 2.6.0'
|
28
28
|
|
29
29
|
spec.add_runtime_dependency 'addressable', '~> 2.3', '>= 2.3.7'
|
30
|
-
spec.add_runtime_dependency 'faraday', '>= 0.9.2', '<
|
30
|
+
spec.add_runtime_dependency 'faraday', '>= 0.9.2', '< 1.4.0'
|
31
31
|
|
32
32
|
spec.add_development_dependency 'awesome_print'
|
33
|
-
spec.add_development_dependency 'bundler', '~> 2.
|
33
|
+
spec.add_development_dependency 'bundler', '~> 2.2.8'
|
34
34
|
spec.add_development_dependency 'pry-byebug'
|
35
35
|
spec.add_development_dependency 'rake', '~> 13.0'
|
36
36
|
spec.add_development_dependency 'rb-readline'
|
data/lib/laa/fee_calculator.rb
CHANGED
@@ -10,12 +10,13 @@ module LAA
|
|
10
10
|
extend Forwardable
|
11
11
|
|
12
12
|
attr_reader :conn
|
13
|
+
|
13
14
|
def_delegators :conn, :port, :headers, :url_prefix, :options, :ssl, :get
|
14
15
|
|
15
16
|
def initialize
|
16
17
|
@conn = Faraday.new(url: LAA::FeeCalculator.configuration.host, headers: default_headers) do |conn|
|
17
18
|
conn.use LAA::FeeCalculator::RaiseError
|
18
|
-
conn.
|
19
|
+
conn.adapter :net_http
|
19
20
|
end
|
20
21
|
end
|
21
22
|
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: laa-fee-calculator-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Katharine Ahern
|
8
8
|
- Ministry of Justice
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
version: 0.9.2
|
41
41
|
- - "<"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: 1.4.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
46
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
version: 0.9.2
|
51
51
|
- - "<"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: 1.4.0
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: awesome_print
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,14 +71,14 @@ dependencies:
|
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 2.
|
74
|
+
version: 2.2.8
|
75
75
|
type: :development
|
76
76
|
prerelease: false
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: 2.
|
81
|
+
version: 2.2.8
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
name: pry-byebug
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,6 +181,7 @@ description: Ruby client for the Ministry of Justices LAA fee calculator API. A
|
|
181
181
|
interface for transparent calling of the API endpoints to query data and return
|
182
182
|
calculated fee amounts.
|
183
183
|
email:
|
184
|
+
- katharine.ahern@digital.justice.gov.uk
|
184
185
|
- joel.sugarman@digital.justice.gov.uk
|
185
186
|
- tools@digital.justice.gov.uk
|
186
187
|
executables: []
|
@@ -221,14 +222,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
221
222
|
requirements:
|
222
223
|
- - ">="
|
223
224
|
- !ruby/object:Gem::Version
|
224
|
-
version: 2.
|
225
|
+
version: 2.6.0
|
225
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
226
227
|
requirements:
|
227
228
|
- - ">="
|
228
229
|
- !ruby/object:Gem::Version
|
229
230
|
version: '0'
|
230
231
|
requirements: []
|
231
|
-
rubygems_version: 3.
|
232
|
+
rubygems_version: 3.1.4
|
232
233
|
signing_key:
|
233
234
|
specification_version: 4
|
234
235
|
summary: Ruby client for the Legal Aid Agency fee calculator API
|