laa-fee-calculator-client 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8449f4bcfb343e3c9afab992dbfd671dfe11f955d94dd7e773d09130d3778d2
4
- data.tar.gz: 1c09eb9194ad77223bf7ca4ec9ceab46cad12a65feb56b670ac9cb7d6bfc3c2a
3
+ metadata.gz: dec4050260a085f016d8901191c1b1732cdd9de33181105d5178e57215d7ed4e
4
+ data.tar.gz: 19cd50c3a2fb3ffbcdeffacc225287866c4093145b9ed0ee9b5c509e052202e8
5
5
  SHA512:
6
- metadata.gz: 4485644c9c9e46548968488f787a04cb4339d31d1819ef749a6bbe9dc8a499913f6a8fcda3edbfa15b599bc4ca9bf8d54e88f897b34caf98abbc428a47e277ab
7
- data.tar.gz: 7eba04cf618951f3812953fe3f5fb4f06e19d8620a91fdbf35777c44bbec8f44f41037db33baea9fde216cd4b9b6ed6c5093f7bc24999b0fcdfbb3526883b917
6
+ metadata.gz: e06348e90e19c81035787c3e303031a75a7c1dba8e8100ca655cf5246995817f98c9b5a9b74247779e86feb53d129b69f3971cf80b92e09401edba89e0abd1b4
7
+ data.tar.gz: 2c2c4350a354c7adc1a74f9217d479eb0ca5de360af83bddb7ffd05f6bbaa360aa7feb95e0f2b36817dd51d4795be9c2ea8bc116a26976f654eb72dbff9c70e8
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  [![Build Status](https://travis-ci.org/ministryofjustice/laa-fee-calculator-client.svg?branch=master)](https://travis-ci.org/ministryofjustice/laa-fee-calculator-client)
2
+ [![Gem Version](https://badge.fury.io/rb/laa-fee-calculator-client.svg)](https://badge.fury.io/rb/laa-fee-calculator-client)
3
+ ![](https://ruby-gem-downloads-badge.herokuapp.com/laa-fee-calculator-client?type=total)
2
4
 
3
5
  # Legal Aid Agency Fee Calculator Client
4
6
 
@@ -10,14 +12,14 @@ endpoints, providing a simple interface for querying data, in particular, the pr
10
12
  Add this line to your application's Gemfile:
11
13
 
12
14
  ```ruby
13
- gem 'laa-fee-calculator-client'
15
+ gem 'laa-fee-calculator-client', '~> 0.1.1'
14
16
  ```
15
17
 
16
18
  And then execute:
17
19
 
18
20
  $ bundle
19
21
 
20
- Or install it yourself as:
22
+ Or install it yourself:
21
23
 
22
24
  $ gem install laa-fee-calculator-client
23
25
 
@@ -82,9 +84,7 @@ fee_scheme = client.fee_schemes(type: 'AGFS', case_date: '2018-01-01')
82
84
 
83
85
  fee_scheme = client.fee_schemes(type: 'AGFS', case_date: '2018-04-01')
84
86
  # => AGFS scheme 10 object
85
-
86
87
  ```
87
- note: supplier type and its args are to be changed (20/06/2018) in API
88
88
 
89
89
  ###### Lookup data
90
90
 
@@ -166,29 +166,24 @@ Bug reports and pull requests are welcome on GitHub at [ministryofjustice/laa-fe
166
166
 
167
167
  3. Update the version in `lib/laa/fee_calculator/version` using [semantic versioning](https://guides.rubygems.org/patterns/#semantic-versioning).
168
168
 
169
- 4. PR the change, code-review, merge etc.
170
-
171
- 5. Pull master and tag it with the new version number:
172
-
173
- ```
174
- $ git tag -a v0.1.1 -m "version 0.1.1 - description"
175
- ```
176
-
177
- ```
178
- $ git push origin v0.1.1
179
- ```
169
+ 4. PR the change, code-review, merge.
180
170
 
181
- 6. Build the gem
171
+ 5. Pull master and run rake task below to publish
182
172
 
183
- ```
184
- $ gem build laa-fee-calculator-client.gemspec
185
- ```
173
+ ```bash
174
+ $ rake release
175
+ ```
186
176
 
187
- 7. Publish to [Rubygems](https://rubygems.org)
177
+ This rake task automates the following:
188
178
 
189
- ```
190
- $ gem push laa-fee-calculator-client-[VERSION].gem
191
- ```
179
+ ```bash
180
+ $ git push -u origin <branch>
181
+ $ git tag -a v<VERSION> -m "Version <VERSION>"
182
+ $ git push origin v<VERSION>
183
+ $ gem build laa-fee-calculator-client.gemspec
184
+ $ gem push laa-fee-calculator-client-<VERSION>.gemspec
185
+ ```
186
+ *`<VERSION>` is the value of `LAA::FeeCalculator::VERSION`
192
187
 
193
188
  ## License
194
189
 
@@ -15,6 +15,7 @@ module LAA
15
15
  has_many :fee_types
16
16
  has_many :units
17
17
  has_many :modifier_types
18
+ has_many :prices
18
19
 
19
20
  def calculate(**options)
20
21
  yield options if block_given?
@@ -2,7 +2,7 @@
2
2
 
3
3
  module LAA
4
4
  module FeeCalculator
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  USER_AGENT = "laa-fee-calculator-client/#{VERSION}"
7
7
  end
8
8
  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: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Sugarman