mojfile-uploader-api-client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +3 -1
- data/lib/mojfile_uploader_api_client/status.rb +3 -3
- data/lib/mojfile_uploader_api_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aae9dbfec4bdac54e4ba2f30d9b1b1976c479d75
|
4
|
+
data.tar.gz: 2a1bdac42dfaa9c62ffb7ffc1f088ffe73211f5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8885d3f80dbcc410c732745f4020a9f4ad770f86d6a5b31fe22775301456571615d1bb57ba8f82a03411987ecd49db8d64f986d79f3bfd53b4f008c690e4db01
|
7
|
+
data.tar.gz: e93853d922b4f659f6a6f206569bce11470fbcc76b4cfd5ca5281627fb4ef9a7ac87ab9fea2fada8bd97dc1c1a5763d2d5fb1a94d8635a41ddf6c2c099dfcef0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mojfile-uploader-api-client (0.1.
|
4
|
+
mojfile-uploader-api-client (0.1.1)
|
5
5
|
rest-client (~> 2.0.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
equalizer (~> 0.0.9)
|
26
26
|
diff-lcs (1.2.5)
|
27
27
|
docile (1.1.5)
|
28
|
-
domain_name (0.5.
|
28
|
+
domain_name (0.5.20161129)
|
29
29
|
unf (>= 0.0.5, < 1.0.0)
|
30
30
|
equalizer (0.0.11)
|
31
31
|
http-cookie (1.0.3)
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# mojfile-uploader-api-client
|
2
|
-
An API client for mojfile-uploader
|
2
|
+
An API client for [mojfile-uploader](https://github.com/ministryofjustice/mojfile-uploader)
|
3
|
+
|
4
|
+
Please refer to the above project if you want to build your own client around the API.
|
3
5
|
|
4
6
|
## Configuration
|
5
7
|
|
@@ -6,17 +6,17 @@ module MojFileUploaderApiClient
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def endpoint
|
9
|
-
'
|
9
|
+
'healthcheck'
|
10
10
|
end
|
11
11
|
|
12
12
|
def available?
|
13
|
-
response.success? && status.eql?('
|
13
|
+
response.success? && status.eql?('ok')
|
14
14
|
end
|
15
15
|
|
16
16
|
private
|
17
17
|
|
18
18
|
def status
|
19
|
-
response.body&.fetch(:
|
19
|
+
response.body&.fetch(:service_status)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mojfile-uploader-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesus Laiz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|