laa-fee-calculator-client 1.2.0 → 1.4.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 +23 -1
- data/Gemfile +1 -1
- data/README.md +18 -8
- data/Rakefile +2 -2
- data/bin/console +3 -4
- data/bin/ruby_version_test +55 -8
- data/laa-fee-calculator-client.gemspec +8 -8
- data/lib/laa/fee_calculator/calculator.rb +3 -10
- data/lib/laa/fee_calculator/client.rb +13 -7
- data/lib/laa/fee_calculator/configuration.rb +1 -1
- data/lib/laa/fee_calculator/connection.rb +10 -0
- data/lib/laa/fee_calculator/has_manyable.rb +15 -10
- data/lib/laa/fee_calculator/version.rb +1 -2
- data/lib/laa/fee_calculator.rb +1 -1
- metadata +46 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ef6d4916284e517e033ca34430e3159698a99d5839cd8d5da11ad5e6dc78250
|
4
|
+
data.tar.gz: ff85257fcd205872dd8ac5c98791a5705818247b5871051319d10116a68af7aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 531ea668cdb58324b8a77c69a4865442473d32bcbb11f88964e5130135eb60a38bc36fed6b339935f7f8f8baad3baa6cc8dfabeb016329e7b9e097a7071621e5
|
7
|
+
data.tar.gz: 602b711f8be0b58ec29b0bd695ad93278f1cf0bce962e04c2b35c653b8e5de6b8fd309f283ba0c65584127a20cb31beabe193a258076b10b2ceb1d873f9bd507
|
data/CHANGELOG.md
CHANGED
@@ -12,8 +12,30 @@ Add latest change log entries at top using template:
|
|
12
12
|
-
|
13
13
|
### Removed
|
14
14
|
-
|
15
|
-
|
16
15
|
```
|
16
|
+
|
17
|
+
|
18
|
+
## Version 1.4.0
|
19
|
+
|
20
|
+
### Added
|
21
|
+
- New configuration options for caching and logging
|
22
|
+
|
23
|
+
## Version 1.3.1
|
24
|
+
|
25
|
+
### Removed
|
26
|
+
- `addressable` gem dependency
|
27
|
+
|
28
|
+
## Version 1.3.0
|
29
|
+
|
30
|
+
### Modified
|
31
|
+
- update Faraday dependency
|
32
|
+
|
33
|
+
### Added
|
34
|
+
- support for Ruby 3.0 and 3.1
|
35
|
+
|
36
|
+
### Removed
|
37
|
+
- removed support for Ruby 2.6
|
38
|
+
|
17
39
|
## Version 1.2.0
|
18
40
|
|
19
41
|
### Modified
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
![RSpec](https://github.com/ministryofjustice/laa-fee-calculator-client/actions/workflows/rspec.yml/badge.svg)
|
2
|
+
![Rubocop](https://github.com/ministryofjustice/laa-fee-calculator-client/actions/workflows/rubocop.yml/badge.svg)
|
2
3
|
[![Gem Version](https://badge.fury.io/rb/laa-fee-calculator-client.svg)](https://badge.fury.io/rb/laa-fee-calculator-client)
|
3
4
|
![](https://ruby-gem-downloads-badge.herokuapp.com/laa-fee-calculator-client?type=total)
|
4
5
|
|
@@ -162,6 +163,17 @@ end
|
|
162
163
|
|
163
164
|
```
|
164
165
|
|
166
|
+
## Caching
|
167
|
+
|
168
|
+
Caching can be configured, with optional logging, by providing a cache store:
|
169
|
+
|
170
|
+
```ruby
|
171
|
+
LAA::FeeCalculator.configure do |config|
|
172
|
+
config.cache = Rails.cache
|
173
|
+
config.logger = Rails.logger
|
174
|
+
end
|
175
|
+
```
|
176
|
+
|
165
177
|
Note:
|
166
178
|
|
167
179
|
## Contributing
|
@@ -172,17 +184,15 @@ Bug reports and pull requests are welcome on GitHub at [ministryofjustice/laa-fe
|
|
172
184
|
|
173
185
|
1. Make required changes, run specs (rerecord vcr cassettes if necessary)
|
174
186
|
|
175
|
-
2. Run `bin/ruby_version_test` to test against ruby versions (2.
|
187
|
+
2. Run `bin/ruby_version_test` to test against ruby versions (2.7+ supported at present)
|
176
188
|
|
177
189
|
3. Update the VERSION in `lib/laa/fee_calculator/version` using [semantic versioning](https://guides.rubygems.org/patterns/#semantic-versioning).
|
178
190
|
|
179
|
-
4. Update the
|
180
|
-
|
181
|
-
5. Update the `CHANGELOG.md` - format/documentation standards specified at top of file.
|
191
|
+
4. Update the `CHANGELOG.md` - format/documentation standards specified at top of file.
|
182
192
|
|
183
|
-
|
193
|
+
5. PR the change, code-review, merge.
|
184
194
|
|
185
|
-
|
195
|
+
6. Pull master and run rake task below to publish. Note, you will need a [rubygems](https://rubygems.org/) account with gem owner privileges and have configured your `~/.gem/credentials` in order for this task to complete successfully.
|
186
196
|
|
187
197
|
```bash
|
188
198
|
$ rake release
|
@@ -195,7 +205,7 @@ $ git push -u origin <branch>
|
|
195
205
|
$ git tag -a v<VERSION> -m "Version <VERSION>"
|
196
206
|
$ git push origin v<VERSION>
|
197
207
|
$ gem build laa-fee-calculator-client.gemspec
|
198
|
-
$ gem push laa-fee-calculator-client-<VERSION>.
|
208
|
+
$ gem push laa-fee-calculator-client-<VERSION>.gem
|
199
209
|
```
|
200
210
|
*`<VERSION>` is the value of `LAA::FeeCalculator::VERSION`
|
201
211
|
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
require
|
5
|
-
require
|
6
|
-
require "laa/fee_calculator"
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'laa/fee_calculator'
|
7
6
|
|
8
7
|
# You can add fixtures and/or initialization code here to make experimenting
|
9
8
|
# with your gem easier. You can also use a different console, if you like.
|
@@ -17,5 +16,5 @@ LAA::FeeCalculator.configure do |config|
|
|
17
16
|
config.host = 'http://localhost:8000/api/v1'
|
18
17
|
end
|
19
18
|
|
20
|
-
require
|
19
|
+
require 'irb'
|
21
20
|
IRB.start(__FILE__)
|
data/bin/ruby_version_test
CHANGED
@@ -2,17 +2,64 @@
|
|
2
2
|
|
3
3
|
set -e
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
RUBIES="2.7 3.0 3.1"
|
6
|
+
|
7
|
+
if [ -e Gemfile.lock ]
|
8
|
+
then
|
9
|
+
echo Moving Gemfile.lock to Gemfile.lock.tmp
|
10
|
+
mv Gemfile.lock Gemfile.lock.tmp
|
11
|
+
fi
|
12
|
+
|
13
|
+
if (which rbenv)
|
14
|
+
then
|
15
|
+
echo "Using rbenv"
|
16
|
+
eval "$(rbenv init - bash)"
|
17
|
+
get_version() {
|
18
|
+
rbenv install --list 2> /dev/null | grep -E "^$1"
|
19
|
+
}
|
20
|
+
install_ruby() {
|
21
|
+
rbenv install --skip-existing $1
|
22
|
+
}
|
23
|
+
run_tests_with() {
|
24
|
+
rbenv shell $1
|
25
|
+
bundle install
|
26
|
+
bundle exec rspec spec
|
27
|
+
rbenv shell --unset
|
28
|
+
}
|
29
|
+
elif (which rvm)
|
30
|
+
then
|
31
|
+
echo "Using rvm"
|
32
|
+
get_version() {
|
33
|
+
echo $1
|
34
|
+
}
|
35
|
+
install_ruby() {
|
36
|
+
rvm install $1
|
37
|
+
}
|
38
|
+
run_tests_with() {
|
39
|
+
rvm $1 exec bundle install
|
40
|
+
rvm $1 exec bundle exec rspec spec
|
41
|
+
}
|
42
|
+
else
|
43
|
+
echo "No Ruby version manager found"
|
44
|
+
exit 1
|
45
|
+
fi
|
46
|
+
|
47
|
+
for r in $RUBIES
|
7
48
|
do
|
8
49
|
echo "====================================================="
|
9
|
-
echo "$
|
50
|
+
echo "$r: Start Test"
|
10
51
|
echo "====================================================="
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
52
|
+
VERSION=`get_version $r`
|
53
|
+
install_ruby $VERSION
|
54
|
+
run_tests_with $VERSION
|
55
|
+
rm Gemfile.lock
|
15
56
|
echo "====================================================="
|
16
|
-
echo "$
|
57
|
+
echo "$r: End Test"
|
17
58
|
echo "====================================================="
|
18
59
|
done
|
60
|
+
|
61
|
+
if [ -e Gemfile.lock.tmp ]
|
62
|
+
then
|
63
|
+
echo Moving Gemfile.lock.tmp to Gemfile.lock
|
64
|
+
mv Gemfile.lock.tmp Gemfile.lock
|
65
|
+
fi
|
@@ -9,12 +9,11 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.version = LAA::FeeCalculator::VERSION
|
10
10
|
spec.authors = ['Katharine Ahern', 'Ministry of Justice']
|
11
11
|
spec.email = ['katharine.ahern@digital.justice.gov.uk', 'joel.sugarman@digital.justice.gov.uk', 'tools@digital.justice.gov.uk']
|
12
|
-
spec.date = LAA::FeeCalculator::VERSION_RELEASED
|
13
12
|
spec.summary = 'Ruby client for the Legal Aid Agency fee calculator API'
|
14
|
-
spec.description =
|
13
|
+
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.'
|
15
14
|
spec.homepage = 'https://github.com/ministryofjustice/laa-fee-calculator-client'
|
16
15
|
spec.license = 'MIT'
|
17
|
-
spec.extra_rdoc_files = [
|
16
|
+
spec.extra_rdoc_files = ['LICENSE', 'README.md']
|
18
17
|
|
19
18
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
20
19
|
f.match(%r{^(test/|spec/|features/|\..*)})
|
@@ -26,16 +25,17 @@ Gem::Specification.new do |spec|
|
|
26
25
|
# see bin/ruby_version_test
|
27
26
|
spec.required_ruby_version = '>= 2.6.0'
|
28
27
|
|
29
|
-
spec.add_runtime_dependency '
|
30
|
-
spec.add_runtime_dependency 'faraday', '
|
28
|
+
spec.add_runtime_dependency 'faraday', '~> 1.0'
|
29
|
+
spec.add_runtime_dependency 'faraday-http-cache', '~> 2.2'
|
31
30
|
|
32
31
|
spec.add_development_dependency 'awesome_print'
|
33
|
-
spec.add_development_dependency 'bundler', '~> 2.2.8'
|
34
|
-
spec.add_development_dependency 'pry-byebug'
|
35
32
|
spec.add_development_dependency 'rake', '~> 13.0'
|
36
33
|
spec.add_development_dependency 'rb-readline'
|
37
34
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
38
|
-
spec.add_development_dependency 'rubocop', '~>
|
35
|
+
spec.add_development_dependency 'rubocop', '~> 1.28'
|
36
|
+
spec.add_development_dependency 'rubocop-performance', '~> 1.13'
|
37
|
+
spec.add_development_dependency 'rubocop-rake', '~> 0.6'
|
38
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 2.10'
|
39
39
|
spec.add_development_dependency 'vcr'
|
40
40
|
spec.add_development_dependency 'webmock'
|
41
41
|
end
|
@@ -6,25 +6,18 @@ module LAA
|
|
6
6
|
extend Forwardable
|
7
7
|
def_delegators :connection, :get
|
8
8
|
|
9
|
-
attr_reader :scheme_pk, :options
|
10
|
-
|
11
9
|
def initialize(scheme_pk, options)
|
12
|
-
@
|
13
|
-
@
|
10
|
+
@uri = "fee-schemes/#{scheme_pk}/calculate/"
|
11
|
+
@filtered_params = options.reject { |k, _v| k.eql?(:id) }
|
14
12
|
end
|
15
13
|
|
16
14
|
def call
|
17
|
-
|
18
|
-
json = get(uri).body
|
15
|
+
json = get(@uri, @filtered_params).body
|
19
16
|
JSON.parse(json)['amount']
|
20
17
|
end
|
21
18
|
|
22
19
|
private
|
23
20
|
|
24
|
-
def uri
|
25
|
-
@uri ||= Addressable::URI.parse("fee-schemes/#{scheme_pk}/calculate/")
|
26
|
-
end
|
27
|
-
|
28
21
|
def connection
|
29
22
|
@connection ||= Connection.instance
|
30
23
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module LAA
|
4
4
|
module FeeCalculator
|
@@ -17,13 +17,11 @@ module LAA
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def fee_schemes(id = nil, **options)
|
20
|
-
uri =
|
21
|
-
|
22
|
-
|
23
|
-
uri = Addressable::URI.parse(uri)
|
24
|
-
uri.query_values = options.reject { |k, _v| k.eql?(:id) }
|
20
|
+
uri = fee_schemes_uri(id || options[:id])
|
21
|
+
filtered_params = options.reject { |k, _| k.eql?(:id) }
|
22
|
+
# Ruby 3.0+; filtered_params = options.except(:id)
|
25
23
|
|
26
|
-
json = get(uri).body
|
24
|
+
json = get(uri, filtered_params).body
|
27
25
|
|
28
26
|
fstruct = JSON.parse(json, object_class: FeeScheme)
|
29
27
|
return fstruct unless fstruct.respond_to?(:results)
|
@@ -31,6 +29,14 @@ module LAA
|
|
31
29
|
|
32
30
|
fstruct.results
|
33
31
|
end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
def fee_schemes_uri(id)
|
36
|
+
return "fee-schemes/#{id}/" if id
|
37
|
+
|
38
|
+
'fee-schemes/'
|
39
|
+
end
|
34
40
|
end
|
35
41
|
end
|
36
42
|
end
|
@@ -6,7 +6,7 @@ module LAA
|
|
6
6
|
LAA_FEE_CALCULATOR_API_V1 = 'https://laa-fee-calculator.service.justice.gov.uk/api/v1'
|
7
7
|
HEADERS = { 'Accept' => 'application/json', 'User-Agent' => USER_AGENT }.freeze
|
8
8
|
|
9
|
-
attr_accessor :host, :headers
|
9
|
+
attr_accessor :host, :headers, :cache, :logger
|
10
10
|
|
11
11
|
def initialize
|
12
12
|
@host = host || LAA_FEE_CALCULATOR_API_V1
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'singleton'
|
4
4
|
require 'faraday'
|
5
|
+
require 'faraday/http_cache'
|
5
6
|
|
6
7
|
module LAA
|
7
8
|
module FeeCalculator
|
@@ -16,6 +17,7 @@ module LAA
|
|
16
17
|
def initialize
|
17
18
|
@conn = Faraday.new(url: LAA::FeeCalculator.configuration.host, headers: default_headers) do |conn|
|
18
19
|
conn.use LAA::FeeCalculator::RaiseError
|
20
|
+
conn.use(:http_cache, store: cache, logger: logger) if cache
|
19
21
|
conn.adapter :net_http
|
20
22
|
end
|
21
23
|
end
|
@@ -39,6 +41,14 @@ module LAA
|
|
39
41
|
def default_headers
|
40
42
|
LAA::FeeCalculator.configuration.headers
|
41
43
|
end
|
44
|
+
|
45
|
+
def cache
|
46
|
+
LAA::FeeCalculator.configuration.cache
|
47
|
+
end
|
48
|
+
|
49
|
+
def logger
|
50
|
+
LAA::FeeCalculator.configuration.logger
|
51
|
+
end
|
42
52
|
end
|
43
53
|
end
|
44
54
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'json'
|
2
4
|
|
3
5
|
module LAA
|
@@ -17,18 +19,11 @@ module LAA
|
|
17
19
|
end
|
18
20
|
|
19
21
|
def has_many(association)
|
20
|
-
define_method("#{association}_uri".to_sym) do |scheme_pk = nil, id = nil|
|
21
|
-
uri = scheme_pk.nil? ? "#{association.to_s.tr('_', '-')}/" : "fee-schemes/#{scheme_pk}/#{association.to_s.tr('_', '-')}/"
|
22
|
-
uri = uri.concat(id.to_s, '/') unless id.nil?
|
23
|
-
Addressable::URI.parse(uri)
|
24
|
-
end
|
25
|
-
|
26
22
|
define_method(association) do |id = nil, **options|
|
27
|
-
id
|
28
|
-
|
29
|
-
uri.query_values = options.reject { |k, _v| k.eql?(:id) }
|
23
|
+
uri = uri_for(association, id: id || options[:id])
|
24
|
+
filtered_params = options.reject { |k, _v| k.eql?(:id) }
|
30
25
|
|
31
|
-
json = get(uri).body
|
26
|
+
json = get(uri, filtered_params).body
|
32
27
|
|
33
28
|
ostruct = JSON.parse(json, object_class: OpenStruct)
|
34
29
|
return ostruct unless ostruct.respond_to?(:results)
|
@@ -37,6 +32,16 @@ module LAA
|
|
37
32
|
end
|
38
33
|
end
|
39
34
|
end
|
35
|
+
|
36
|
+
def uri_for(association, id: nil)
|
37
|
+
return "#{base_fee_scheme_uri}#{association.to_s.tr('_', '-')}/" if id.nil?
|
38
|
+
|
39
|
+
"#{base_fee_scheme_uri}#{association.to_s.tr('_', '-')}/#{id}/"
|
40
|
+
end
|
41
|
+
|
42
|
+
def base_fee_scheme_uri
|
43
|
+
id ? "fee-schemes/#{id}/" : ''
|
44
|
+
end
|
40
45
|
end
|
41
46
|
end
|
42
47
|
end
|
data/lib/laa/fee_calculator.rb
CHANGED
metadata
CHANGED
@@ -1,56 +1,44 @@
|
|
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.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katharine Ahern
|
8
8
|
- Ministry of Justice
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-05-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: faraday
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 2.3.7
|
20
|
+
version: '1.0'
|
24
21
|
type: :runtime
|
25
22
|
prerelease: false
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
27
24
|
requirements:
|
28
25
|
- - "~>"
|
29
26
|
- !ruby/object:Gem::Version
|
30
|
-
version: '
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 2.3.7
|
27
|
+
version: '1.0'
|
34
28
|
- !ruby/object:Gem::Dependency
|
35
|
-
name: faraday
|
29
|
+
name: faraday-http-cache
|
36
30
|
requirement: !ruby/object:Gem::Requirement
|
37
31
|
requirements:
|
38
|
-
- - "
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.9.2
|
41
|
-
- - "<"
|
32
|
+
- - "~>"
|
42
33
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
34
|
+
version: '2.2'
|
44
35
|
type: :runtime
|
45
36
|
prerelease: false
|
46
37
|
version_requirements: !ruby/object:Gem::Requirement
|
47
38
|
requirements:
|
48
|
-
- - "
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: 0.9.2
|
51
|
-
- - "<"
|
39
|
+
- - "~>"
|
52
40
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
41
|
+
version: '2.2'
|
54
42
|
- !ruby/object:Gem::Dependency
|
55
43
|
name: awesome_print
|
56
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,21 +54,21 @@ dependencies:
|
|
66
54
|
- !ruby/object:Gem::Version
|
67
55
|
version: '0'
|
68
56
|
- !ruby/object:Gem::Dependency
|
69
|
-
name:
|
57
|
+
name: rake
|
70
58
|
requirement: !ruby/object:Gem::Requirement
|
71
59
|
requirements:
|
72
60
|
- - "~>"
|
73
61
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
62
|
+
version: '13.0'
|
75
63
|
type: :development
|
76
64
|
prerelease: false
|
77
65
|
version_requirements: !ruby/object:Gem::Requirement
|
78
66
|
requirements:
|
79
67
|
- - "~>"
|
80
68
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
69
|
+
version: '13.0'
|
82
70
|
- !ruby/object:Gem::Dependency
|
83
|
-
name:
|
71
|
+
name: rb-readline
|
84
72
|
requirement: !ruby/object:Gem::Requirement
|
85
73
|
requirements:
|
86
74
|
- - ">="
|
@@ -94,61 +82,75 @@ dependencies:
|
|
94
82
|
- !ruby/object:Gem::Version
|
95
83
|
version: '0'
|
96
84
|
- !ruby/object:Gem::Dependency
|
97
|
-
name:
|
85
|
+
name: rspec
|
98
86
|
requirement: !ruby/object:Gem::Requirement
|
99
87
|
requirements:
|
100
88
|
- - "~>"
|
101
89
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
90
|
+
version: '3.0'
|
103
91
|
type: :development
|
104
92
|
prerelease: false
|
105
93
|
version_requirements: !ruby/object:Gem::Requirement
|
106
94
|
requirements:
|
107
95
|
- - "~>"
|
108
96
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
97
|
+
version: '3.0'
|
110
98
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
99
|
+
name: rubocop
|
112
100
|
requirement: !ruby/object:Gem::Requirement
|
113
101
|
requirements:
|
114
|
-
- - "
|
102
|
+
- - "~>"
|
115
103
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
104
|
+
version: '1.28'
|
117
105
|
type: :development
|
118
106
|
prerelease: false
|
119
107
|
version_requirements: !ruby/object:Gem::Requirement
|
120
108
|
requirements:
|
121
|
-
- - "
|
109
|
+
- - "~>"
|
122
110
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
111
|
+
version: '1.28'
|
124
112
|
- !ruby/object:Gem::Dependency
|
125
|
-
name:
|
113
|
+
name: rubocop-performance
|
126
114
|
requirement: !ruby/object:Gem::Requirement
|
127
115
|
requirements:
|
128
116
|
- - "~>"
|
129
117
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
118
|
+
version: '1.13'
|
131
119
|
type: :development
|
132
120
|
prerelease: false
|
133
121
|
version_requirements: !ruby/object:Gem::Requirement
|
134
122
|
requirements:
|
135
123
|
- - "~>"
|
136
124
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
125
|
+
version: '1.13'
|
138
126
|
- !ruby/object:Gem::Dependency
|
139
|
-
name: rubocop
|
127
|
+
name: rubocop-rake
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - "~>"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0.6'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0.6'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: rubocop-rspec
|
140
142
|
requirement: !ruby/object:Gem::Requirement
|
141
143
|
requirements:
|
142
144
|
- - "~>"
|
143
145
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
146
|
+
version: '2.10'
|
145
147
|
type: :development
|
146
148
|
prerelease: false
|
147
149
|
version_requirements: !ruby/object:Gem::Requirement
|
148
150
|
requirements:
|
149
151
|
- - "~>"
|
150
152
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
153
|
+
version: '2.10'
|
152
154
|
- !ruby/object:Gem::Dependency
|
153
155
|
name: vcr
|
154
156
|
requirement: !ruby/object:Gem::Requirement
|
@@ -214,7 +216,7 @@ homepage: https://github.com/ministryofjustice/laa-fee-calculator-client
|
|
214
216
|
licenses:
|
215
217
|
- MIT
|
216
218
|
metadata: {}
|
217
|
-
post_install_message:
|
219
|
+
post_install_message:
|
218
220
|
rdoc_options: []
|
219
221
|
require_paths:
|
220
222
|
- lib
|
@@ -229,8 +231,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
231
|
- !ruby/object:Gem::Version
|
230
232
|
version: '0'
|
231
233
|
requirements: []
|
232
|
-
rubygems_version: 3.
|
233
|
-
signing_key:
|
234
|
+
rubygems_version: 3.3.7
|
235
|
+
signing_key:
|
234
236
|
specification_version: 4
|
235
237
|
summary: Ruby client for the Legal Aid Agency fee calculator API
|
236
238
|
test_files: []
|