laa-fee-calculator-client 1.2.0 → 1.3.0

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: 28b49b8d4fa382b63ac223bc73b4fa26df867a8bdde1ccdc8a66095d496c64c1
4
- data.tar.gz: 879657507b8a62e44507fe92b718134b839001507effcad82256844ffb108bd9
3
+ metadata.gz: a6720e8d64a0423da427ccaec75a0bbd5bacca65634fca113ff4863a277b0065
4
+ data.tar.gz: 8a1e9ad3aca5a391316c5825e8c47296b98fc1d15a96a75cd3ec93087e40c870
5
5
  SHA512:
6
- metadata.gz: f11e00097f4679e9c843109c3f5a3170bc875f3e3d08248443db4645d139997523530415857e64552290eef575885d7925fa3a5c46d24d727a7139cc953a03b0
7
- data.tar.gz: 6a4ddefcf31efee1a15fbd2855a87f0e4a810d4169025a84905199dbddc913545a3997e053b6bba5f24e6bb92e0718293ac7b1f968cb987c289a352688579382
6
+ metadata.gz: a10006fdb40c4c1749031e500848c349fdc4e24cdc66c71384c1729a2d8ae63a7eaad15ac5ec32888df7ee17c0dc7bd9390a914f14b959f272adc106656cc7e5
7
+ data.tar.gz: 85b5c5aeb923f0014fee35043938fea0e239db55334f65bbfda20910202407a4a97ffd4a0cfda8f709e7c21cd28b0e6af6377846d82e6d07684da69309adaf25
data/CHANGELOG.md CHANGED
@@ -14,6 +14,17 @@ Add latest change log entries at top using template:
14
14
  -
15
15
 
16
16
  ```
17
+ ## Version 1.3.0
18
+
19
+ ### Modified
20
+ - update Faraday dependency
21
+
22
+ ### Added
23
+ - support for Ruby 3.0 and 3.1
24
+
25
+ ### Removed
26
+ - removed support for Ruby 2.6
27
+
17
28
  ## Version 1.2.0
18
29
 
19
30
  ### Modified
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- [![Build Status](https://travis-ci.org/ministryofjustice/laa-fee-calculator-client.svg?branch=master)](https://travis-ci.org/ministryofjustice/laa-fee-calculator-client)
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
 
@@ -172,7 +173,7 @@ Bug reports and pull requests are welcome on GitHub at [ministryofjustice/laa-fe
172
173
 
173
174
  1. Make required changes, run specs (rerecord vcr cassettes if necessary)
174
175
 
175
- 2. Run `bin/ruby_version_test` to test against ruby versions (2.6+ supported at present)
176
+ 2. Run `bin/ruby_version_test` to test against ruby versions (2.7+ supported at present)
176
177
 
177
178
  3. Update the VERSION in `lib/laa/fee_calculator/version` using [semantic versioning](https://guides.rubygems.org/patterns/#semantic-versioning).
178
179
 
@@ -182,7 +183,7 @@ Bug reports and pull requests are welcome on GitHub at [ministryofjustice/laa-fe
182
183
 
183
184
  6. PR the change, code-review, merge.
184
185
 
185
- 7. Pull master and run rake task below to publish
186
+ 7. 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
187
 
187
188
  ```bash
188
189
  $ rake release
@@ -195,7 +196,7 @@ $ git push -u origin <branch>
195
196
  $ git tag -a v<VERSION> -m "Version <VERSION>"
196
197
  $ git push origin v<VERSION>
197
198
  $ gem build laa-fee-calculator-client.gemspec
198
- $ gem push laa-fee-calculator-client-<VERSION>.gemspec
199
+ $ gem push laa-fee-calculator-client-<VERSION>.gem
199
200
  ```
200
201
  *`<VERSION>` is the value of `LAA::FeeCalculator::VERSION`
201
202
 
data/bin/console CHANGED
@@ -2,7 +2,6 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "bundler/setup"
5
- require "pry-byebug"
6
5
  require "laa/fee_calculator"
7
6
 
8
7
  # You can add fixtures and/or initialization code here to make experimenting
@@ -2,17 +2,64 @@
2
2
 
3
3
  set -e
4
4
 
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
- for i in "${rubies[@]}"
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 "$i: Start Test"
50
+ echo "$r: Start Test"
10
51
  echo "====================================================="
11
- if [[ $(rvm list | grep $i) ]]; then echo "$i already installed!"; else rvm install $i; fi
12
- rvm $i exec gem install bundler
13
- rvm $i exec bundle install
14
- rvm $i exec bundle exec rspec spec
52
+ VERSION=`get_version $r`
53
+ install_ruby $VERSION
54
+ run_tests_with $VERSION
55
+ rm Gemfile.lock
15
56
  echo "====================================================="
16
- echo "$i: End Test"
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
@@ -27,11 +27,9 @@ Gem::Specification.new do |spec|
27
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', '< 1.4.0'
30
+ spec.add_runtime_dependency 'faraday', '~> 1.0'
31
31
 
32
32
  spec.add_development_dependency 'awesome_print'
33
- spec.add_development_dependency 'bundler', '~> 2.2.8'
34
- spec.add_development_dependency 'pry-byebug'
35
33
  spec.add_development_dependency 'rake', '~> 13.0'
36
34
  spec.add_development_dependency 'rb-readline'
37
35
  spec.add_development_dependency 'rspec', '~> 3.0'
@@ -2,8 +2,8 @@
2
2
 
3
3
  module LAA
4
4
  module FeeCalculator
5
- VERSION = "1.2.0"
6
- VERSION_RELEASED = "2021-02-01"
5
+ VERSION = "1.3.0"
6
+ VERSION_RELEASED = "2022-04-21"
7
7
  USER_AGENT = "laa-fee-calculator-client/#{VERSION}"
8
8
  end
9
9
  end
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: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katharine Ahern
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-02-01 00:00:00.000000000 Z
12
+ date: 2022-04-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable
@@ -33,54 +33,20 @@ dependencies:
33
33
  version: 2.3.7
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: faraday
36
- requirement: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 0.9.2
41
- - - "<"
42
- - !ruby/object:Gem::Version
43
- version: 1.4.0
44
- type: :runtime
45
- prerelease: false
46
- version_requirements: !ruby/object:Gem::Requirement
47
- requirements:
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- version: 0.9.2
51
- - - "<"
52
- - !ruby/object:Gem::Version
53
- version: 1.4.0
54
- - !ruby/object:Gem::Dependency
55
- name: awesome_print
56
- requirement: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: '0'
61
- type: :development
62
- prerelease: false
63
- version_requirements: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: '0'
68
- - !ruby/object:Gem::Dependency
69
- name: bundler
70
36
  requirement: !ruby/object:Gem::Requirement
71
37
  requirements:
72
38
  - - "~>"
73
39
  - !ruby/object:Gem::Version
74
- version: 2.2.8
75
- type: :development
40
+ version: '1.0'
41
+ type: :runtime
76
42
  prerelease: false
77
43
  version_requirements: !ruby/object:Gem::Requirement
78
44
  requirements:
79
45
  - - "~>"
80
46
  - !ruby/object:Gem::Version
81
- version: 2.2.8
47
+ version: '1.0'
82
48
  - !ruby/object:Gem::Dependency
83
- name: pry-byebug
49
+ name: awesome_print
84
50
  requirement: !ruby/object:Gem::Requirement
85
51
  requirements:
86
52
  - - ">="