mojfile-uploader-api-client 0.7 → 0.8

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: c67c88ebd975b9a6e7113764025db4801f128728
4
- data.tar.gz: a86e4d1296327d516e13470bab7f5d5bcc1e4c63
3
+ metadata.gz: 5eae5458ae6b6a1830ee6eeb2ec2bbaed3757efb
4
+ data.tar.gz: a6035423b4977ff08ac71f8dd97ccdbd2fe97642
5
5
  SHA512:
6
- metadata.gz: 61a514a26a644845d7acb9b541c49ec3a2dd63ca6e8b8093260f852b69f743e4bc401e7433db8ff5b918742a339e3ead0313c7de78ebd4161273a97ab852c591
7
- data.tar.gz: 213716e82c238c87c19cd0fd4de8eaed6f27f1f93656d0eb6d152f27f31b17b25d93ec3719f18a9b52c6e6ce0b3397fbd3e39b7dd0e17a79166a9d20cd7f59ec
6
+ metadata.gz: f59ca9334478ba5e63b42332f175ec95121ce006ee618fb992277c7a89001ec0b485ebaf4807f85ffcdbbde9aa9fe231bfae15bb6d916a4d4413419da5007cab
7
+ data.tar.gz: a8a15e220491a03faa914aad1fd411b57ed1ae2e2936adb5fd5c9f3f8ef3e54c75a1fe4cd2c6bb6f36d85c7814aa9cf3123a8a7270490b1912798175f3e944bb
data/.travis.yml ADDED
@@ -0,0 +1 @@
1
+ language: ruby
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mojfile-uploader-api-client (0.6)
4
+ mojfile-uploader-api-client (0.8)
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.20161129)
28
+ domain_name (0.5.20170404)
29
29
  unf (>= 0.0.5, < 1.0.0)
30
30
  equalizer (0.0.11)
31
31
  http-cookie (1.0.3)
@@ -82,7 +82,7 @@ GEM
82
82
  rainbow (2.2.1)
83
83
  rake (10.5.0)
84
84
  regexp_parser (0.3.6)
85
- rest-client (2.0.0)
85
+ rest-client (2.0.2)
86
86
  http-cookie (>= 1.0.2, < 2.0)
87
87
  mime-types (>= 1.16, < 4.0)
88
88
  netrc (~> 0.8)
@@ -115,7 +115,7 @@ GEM
115
115
  thread_safe (0.3.6)
116
116
  unf (0.1.4)
117
117
  unf_ext
118
- unf_ext (0.0.7.2)
118
+ unf_ext (0.0.7.4)
119
119
  unicode-display_width (1.1.3)
120
120
  unparser (0.2.5)
121
121
  abstract_type (~> 0.0.7)
data/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ [![Build
2
+ Status](https://travis-ci.org/ministryofjustice/mojfile-uploader-api-client.svg?branch=master)](https://travis-ci.org/ministryofjustice/mojfile-uploader-api-client)
3
+
1
4
  # mojfile-uploader-api-client
2
5
  An API client for [mojfile-uploader](https://github.com/ministryofjustice/mojfile-uploader)
3
6
 
@@ -41,7 +41,9 @@ module MojFileUploaderApiClient
41
41
  end
42
42
 
43
43
  def options
44
- DEFAULT_OPTIONS.merge(HttpClient.options || {})
44
+ # Using `self.class.options` allows overriding defaults in individual API
45
+ # calls and ensure that overrides do not persist across calls.
46
+ DEFAULT_OPTIONS.merge(self.class.options || {})
45
47
  end
46
48
 
47
49
  private
@@ -1,5 +1,10 @@
1
1
  module MojFileUploaderApiClient
2
2
  class Status < MojFileUploaderApiClient::HttpClient
3
+ def self.options
4
+ # Setting `timeout` will override both `read_timeout` and `open_timeout`
5
+ # in the RestClient.
6
+ { timeout: 5 }
7
+ end
3
8
 
4
9
  def verb
5
10
  :get
@@ -1,3 +1,3 @@
1
1
  module MojFileUploaderApiClient
2
- VERSION = '0.7'
2
+ VERSION = '0.8'
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.7'
4
+ version: '0.8'
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: 2017-03-24 00:00:00.000000000 Z
12
+ date: 2017-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -134,6 +134,7 @@ files:
134
134
  - ".gitignore"
135
135
  - ".rubocop.yml"
136
136
  - ".ruby-version"
137
+ - ".travis.yml"
137
138
  - Gemfile
138
139
  - Gemfile.lock
139
140
  - LICENSE