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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3de04810ed483b08e3f3b368d9b34421477e7356
4
- data.tar.gz: 71a8e175d683e8e309afa66cdeab0989f39d6e73
3
+ metadata.gz: aae9dbfec4bdac54e4ba2f30d9b1b1976c479d75
4
+ data.tar.gz: 2a1bdac42dfaa9c62ffb7ffc1f088ffe73211f5b
5
5
  SHA512:
6
- metadata.gz: 345d2c21738de90f178ec49f6555157b750253171628d98dc2b1bb0b2334e87939ebb2eb176e9c55451daab8be05da38cafee3ae67cbec048629cdaef3027df4
7
- data.tar.gz: a196d5de8ac3aead8d8293c9ffbcffed65ddf0512f81a639fdefeeb28a2caf2aa082d8df32cf1b2987c552537418789e42cadc51c354073d538298d3da516747
6
+ metadata.gz: 8885d3f80dbcc410c732745f4020a9f4ad770f86d6a5b31fe22775301456571615d1bb57ba8f82a03411987ecd49db8d64f986d79f3bfd53b4f008c690e4db01
7
+ data.tar.gz: e93853d922b4f659f6a6f206569bce11470fbcc76b4cfd5ca5281627fb4ef9a7ac87ab9fea2fada8bd97dc1c1a5763d2d5fb1a94d8635a41ddf6c2c099dfcef0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mojfile-uploader-api-client (0.1.0)
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.20161021)
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
- 'status'
9
+ 'healthcheck'
10
10
  end
11
11
 
12
12
  def available?
13
- response.success? && status.eql?('OK')
13
+ response.success? && status.eql?('ok')
14
14
  end
15
15
 
16
16
  private
17
17
 
18
18
  def status
19
- response.body&.fetch(:status)
19
+ response.body&.fetch(:service_status)
20
20
  end
21
21
  end
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module MojFileUploaderApiClient
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  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.0
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: 2016-12-02 00:00:00.000000000 Z
12
+ date: 2017-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler