laa-fee-calculator-client 0.2.1 → 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +29 -0
- data/README.md +7 -3
- data/bin/ruby_version_test +1 -1
- data/laa-fee-calculator-client.gemspec +3 -3
- data/lib/laa/fee_calculator/configuration.rb +1 -1
- data/lib/laa/fee_calculator/version.rb +2 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d17d0b0fe04e8ecf51b824d5d75999be524d2c84d9a17ba220ae84a788f92ab9
|
4
|
+
data.tar.gz: cb6167ca8f8392c0b3aab70aa0a4d40b45b62f9751c1dabac97dbae8f5c1edbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89727046530b8beec49aebcfae9c50dd81e0f695cdffdcc27584c8c72dc002cd8ac9917be848db0470b96302e2e1e2b96755c5fe52c57e8d526b755bcf106dc5
|
7
|
+
data.tar.gz: 3ce75276b00aeddd66b06a7959c7926370a282711a8ea06db95e740dcf674e988b19d8bbfd3c7cb6c1a6b9ee644b078eba4fd1fddfbca9b4094c0f87d4075736
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
Add latest change log entries at top using template:
|
4
|
+
|
5
|
+
```
|
6
|
+
## Version <version>
|
7
|
+
### Added
|
8
|
+
-
|
9
|
+
### Fixed
|
10
|
+
-
|
11
|
+
### Modified
|
12
|
+
-
|
13
|
+
### Removed
|
14
|
+
-
|
15
|
+
|
16
|
+
---
|
17
|
+
```
|
18
|
+
|
19
|
+
## Version 1.0.0.rc1
|
20
|
+
### Added
|
21
|
+
- support/testing for ruby 2.6.0, 2.6.2 and 2.6.3
|
22
|
+
### Removed
|
23
|
+
- removed support for ruby 2.4
|
24
|
+
- removed support/testing against ruby versions less than 2.5.5
|
25
|
+
### Modified
|
26
|
+
- default host to [https://laa-fee-calculator.service.justice.gov.uk/api/v1](https://laa-fee-calculator.service.justice.gov.uk/api/v1)
|
27
|
+
|
28
|
+
---
|
29
|
+
|
data/README.md
CHANGED
@@ -137,6 +137,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
137
137
|
|
138
138
|
The test suite makes extensive use of the [VCR](https://github.com/vcr/vcr) gem to stub requests to the external API. Any examples within a `describe` block with a `:vcr` tag will automatically use (or generate) VCR cassettes via an `around` block - see `spec_helper.rb`. All cassettes are stored in the `spec/vcr` directory and automatically named after the spec that produced them. Only new episodes/requests are created.
|
139
139
|
|
140
|
+
Note: VCR is configured to require a re-recording of cassettes once a year by default and will cause spec failures if this is not done. This can be disabled - see `spec_helper.rb` `re_record_interval`.
|
141
|
+
|
140
142
|
To recreate all cassettes:
|
141
143
|
|
142
144
|
- run the [laa-fee-calculator](https://github.com/ministryofjustice/laa-fee-calculator) API locally
|
@@ -153,13 +155,15 @@ $ VCR_OFF=true rspec
|
|
153
155
|
You can also test against a hosted API by modifying the following in the `spec_helper.rb`
|
154
156
|
|
155
157
|
```ruby
|
156
|
-
# run tests against
|
158
|
+
# run tests against the default remote host
|
157
159
|
LAA::FeeCalculator.configure do |config|
|
158
|
-
config.host = LAA::FeeCalculator::Configuration::
|
160
|
+
config.host = LAA::FeeCalculator::Configuration::LAA_FEE_CALCULATOR_API_V1
|
159
161
|
end
|
160
162
|
|
161
163
|
```
|
162
164
|
|
165
|
+
Note:
|
166
|
+
|
163
167
|
## Contributing
|
164
168
|
|
165
169
|
Bug reports and pull requests are welcome on GitHub at [ministryofjustice/laa-fee-calculator-client](https://github.com/ministryofjustice/laa-fee-calculator-client)
|
@@ -168,7 +172,7 @@ Bug reports and pull requests are welcome on GitHub at [ministryofjustice/laa-fe
|
|
168
172
|
|
169
173
|
1. Make required changes, run specs (rerecord vcr cassettes if necessary)
|
170
174
|
|
171
|
-
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.5+ supported at present)
|
172
176
|
|
173
177
|
3. Update the VERSION in `lib/laa/fee_calculator/version` using [semantic versioning](https://guides.rubygems.org/patterns/#semantic-versioning).
|
174
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.5.5" "ruby-2.6.0" "ruby-2.6.1" "ruby-2.6.2" "ruby-2.6.3")
|
6
6
|
for i in "${rubies[@]}"
|
7
7
|
do
|
8
8
|
echo "====================================================="
|
@@ -24,18 +24,18 @@ 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.5.0'
|
28
28
|
|
29
29
|
spec.add_runtime_dependency 'addressable', '~> 2.3', '>= 2.3.7'
|
30
30
|
spec.add_runtime_dependency 'faraday', '~> 0.9.2'
|
31
31
|
|
32
32
|
spec.add_development_dependency 'awesome_print'
|
33
|
-
spec.add_development_dependency 'bundler', '~>
|
33
|
+
spec.add_development_dependency 'bundler', '~> 2.0.0'
|
34
34
|
spec.add_development_dependency 'pry-byebug'
|
35
35
|
spec.add_development_dependency 'rake', '~> 10.0'
|
36
36
|
spec.add_development_dependency 'rb-readline'
|
37
37
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
38
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
38
|
+
spec.add_development_dependency 'rubocop', '~> 0.74'
|
39
39
|
spec.add_development_dependency 'vcr'
|
40
40
|
spec.add_development_dependency 'webmock'
|
41
41
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module LAA
|
4
4
|
module FeeCalculator
|
5
5
|
class Configuration
|
6
|
-
LAA_FEE_CALCULATOR_API_V1 = 'https://laa-fee-calculator
|
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
9
|
attr_accessor :host, :headers
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: laa-fee-calculator-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Sugarman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-08-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|
@@ -65,14 +65,14 @@ dependencies:
|
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 2.0.0
|
69
69
|
type: :development
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 2.0.0
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: pry-byebug
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,14 +135,14 @@ dependencies:
|
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '0.
|
138
|
+
version: '0.74'
|
139
139
|
type: :development
|
140
140
|
prerelease: false
|
141
141
|
version_requirements: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '0.
|
145
|
+
version: '0.74'
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: vcr
|
148
148
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,6 +183,7 @@ extra_rdoc_files:
|
|
183
183
|
- LICENSE
|
184
184
|
- README.md
|
185
185
|
files:
|
186
|
+
- CHANGELOG.md
|
186
187
|
- Gemfile
|
187
188
|
- LICENSE
|
188
189
|
- README.md
|
@@ -214,15 +215,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
214
215
|
requirements:
|
215
216
|
- - ">="
|
216
217
|
- !ruby/object:Gem::Version
|
217
|
-
version: 2.
|
218
|
+
version: 2.5.0
|
218
219
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
219
220
|
requirements:
|
220
|
-
- - "
|
221
|
+
- - ">"
|
221
222
|
- !ruby/object:Gem::Version
|
222
|
-
version:
|
223
|
+
version: 1.3.1
|
223
224
|
requirements: []
|
224
|
-
|
225
|
-
rubygems_version: 2.7.7
|
225
|
+
rubygems_version: 3.0.3
|
226
226
|
signing_key:
|
227
227
|
specification_version: 4
|
228
228
|
summary: Ruby client for the Legal Aid Agency fee calculator API
|