laa-apply-for-legalaid-api-client 0.1.0 → 0.2.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: 6ceb54d14bf632f9cd3d51480833d44d6509159a1911c7f51dca8d8c2277ac2b
4
- data.tar.gz: 9201c22e180ab08ae0d66f5382c8482c5808ab0a075485a83d63a42427039caf
3
+ metadata.gz: 4c446225b8c49b8f46af42ad9ec333eebce1e397784657aa1dec184ae7d21b95
4
+ data.tar.gz: 07a627b7e67403e3e54c921e4ebcb7027eb73963cbc39e65a2034e52e4e8dbf0
5
5
  SHA512:
6
- metadata.gz: 5e95484d7bc46b4744d22281dfe3caa2c116029a65c4fd3398ead10ded5e798a243197655b6e2c77caca55cb9beb9a5fe804eff5dd21b77da0becdb658da871b
7
- data.tar.gz: 96f71e5148e6bf5e68ef2f57ec947cf3feebefeaa092d0b098cd4e8fda6a1af87f5b3bbb508bf6c75bb472277523891e3989e1dc6b7c025c5f64ab1f6d99d992
6
+ metadata.gz: 4e6967946c96cf52cd28bcc1e0d2b565d96c9bfa5ad380c0d1a603c09903fc923dabc20c41a62c6c72b0c6dbd444773ee91137e49b30d018d4dc7c104b717b25
7
+ data.tar.gz: c5acd551bb10e79961f71c9b191c9ebe1c8b10fd9b5039ab4801332aa5543235b8869f90df3b0d31df4e4e191696011fd4277158f983cc0a020ea5fa6596586a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- laa-apply-for-legalaid-api-client (0.1.0)
4
+ laa-apply-for-legalaid-api-client (0.2.0)
5
5
  faraday (~> 0.15.2)
6
6
  faraday_middleware (~> 0.12.2)
7
7
 
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This is an HTTP client gem to perform calls to the LAA Apply for legal aid API.
4
4
 
5
+ [![CircleCI](https://circleci.com/gh/ministryofjustice/laa-apply-for-legalaid-api-ruby-client.svg?style=svg)](https://circleci.com/gh/ministryofjustice/laa-apply-for-legalaid-api-ruby-client)
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -83,6 +85,19 @@ bundle exec rake release
83
85
 
84
86
  which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
85
87
 
88
+ **NOTE:** In case some error like the following happens:
89
+
90
+ ```
91
+ Pushed git commits and tags.
92
+ rake aborted!
93
+ Your rubygems.org credentials aren't set. Run `gem push` to set them.
94
+
95
+ Tasks: TOP => release => release:rubygem_push
96
+ (See full trace by running task with --trace)
97
+ ```
98
+
99
+ `gem push` needs to be setup using the email: `tools@digital.justice.gov.uk` (authentication details are available in the internal Rattic password manager).
100
+
86
101
  ## Contributing
87
102
 
88
103
  Bug reports and pull requests are welcome on GitHub at https://github.com/ministryofjustice/laa-apply-for-legalaid-api-ruby-client/issues.
@@ -1,4 +1,6 @@
1
1
  require 'laa/apply_for_legal_aid/api/requests/applications'
2
+ require 'laa/apply_for_legal_aid/api/requests/applicants'
3
+ require 'laa/apply_for_legal_aid/api/requests/proceeding_types'
2
4
 
3
5
  module Laa
4
6
  module ApplyForLegalAid
@@ -6,6 +8,8 @@ module Laa
6
8
  module Requests
7
9
  def self.included(base)
8
10
  base.include(Applications)
11
+ base.include(Applicants)
12
+ base.include(ProceedingTypes)
9
13
  end
10
14
  end
11
15
  end
@@ -0,0 +1,17 @@
1
+ module Laa
2
+ module ApplyForLegalAid
3
+ module Api
4
+ module Requests
5
+ module Applicants
6
+ def create_applicant(app_id, params)
7
+ post("/v1/applications/#{app_id}/applicant", data: params)
8
+ end
9
+
10
+ def update_applicant(app_id, params)
11
+ patch("/v1/applications/#{app_id}/applicant", data: params)
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -4,11 +4,7 @@ module Laa
4
4
  module Requests
5
5
  module Applications
6
6
  def create_application(params)
7
- post("/v1/applications", params)
8
- end
9
-
10
- def update_application(params)
11
- patch("/v1/applications", params)
7
+ post("/v1/applications", data: params)
12
8
  end
13
9
 
14
10
  def get_application(application_id)
@@ -0,0 +1,13 @@
1
+ module Laa
2
+ module ApplyForLegalAid
3
+ module Api
4
+ module Requests
5
+ module ProceedingTypes
6
+ def get_proceeding_types
7
+ get('/v1/proceeding_types')
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,7 +1,7 @@
1
1
  module Laa
2
2
  module ApplyForLegalAid
3
3
  module Api
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: laa-apply-for-legalaid-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Marques
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-09-12 00:00:00.000000000 Z
12
+ date: 2018-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -163,7 +163,9 @@ files:
163
163
  - lib/laa/apply_for_legal_aid/api/core_ext/array.rb
164
164
  - lib/laa/apply_for_legal_aid/api/request.rb
165
165
  - lib/laa/apply_for_legal_aid/api/requests.rb
166
+ - lib/laa/apply_for_legal_aid/api/requests/applicants.rb
166
167
  - lib/laa/apply_for_legal_aid/api/requests/applications.rb
168
+ - lib/laa/apply_for_legal_aid/api/requests/proceeding_types.rb
167
169
  - lib/laa/apply_for_legal_aid/api/version.rb
168
170
  homepage: https://github.com/ministryofjustice/laa-apply-for-legalaid-api-ruby-client
169
171
  licenses: