apipie-bindings 0.2.2 → 0.2.3
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 +4 -4
- data/doc/release_notes.md +6 -0
- data/lib/apipie_bindings/api.rb +2 -2
- data/lib/apipie_bindings/version.rb +1 -1
- data/test/unit/api_test.rb +6 -2
- data/test/unit/param_test.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cba70830484b6ca1a333960396c8a1aedb62a80f
|
|
4
|
+
data.tar.gz: eec92707c91acd40998a7cec3c4457dc19d7695b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 270a782b88c787f507f026fd46afa3948382dcc53fa8317cfa2d8aafce956d796732c5f85e32273bbd6c02bb79b4ba3caa76d6f02a18cdf0bf29d1f2cd2a0077
|
|
7
|
+
data.tar.gz: 7dd9be1af27f58078c8bb3710de370438c6c11003b2340845d597fcf7c7f04e5ae7e761ef07281b0ad230401469c4bbff9ba4e22cdc5d41389ce021d147a8448
|
data/doc/release_notes.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
Release notes
|
|
2
2
|
=============
|
|
3
|
+
### 0.2.3 (2019-01-16)
|
|
4
|
+
* Remove error log output from specs ([PR #76](https://github.com/Apipie/apipie-bindings/pull/76))
|
|
5
|
+
* Update apidoc_cache_name apidoc ([PR #74](https://github.com/Apipie/apipie-bindings/pull/74))
|
|
6
|
+
* Fix typo in api docs ([PR #75](https://github.com/Apipie/apipie-bindings/pull/75))
|
|
7
|
+
* Fix typo in param test ([PR #73](https://github.com/Apipie/apipie-bindings/pull/73))
|
|
8
|
+
|
|
3
9
|
### 0.2.2 (2018-01-09)
|
|
4
10
|
* modernize ruby versions ([PR #71](https://github.com/Apipie/apipie-bindings/pull/71))
|
|
5
11
|
|
data/lib/apipie_bindings/api.rb
CHANGED
|
@@ -29,7 +29,7 @@ module ApipieBindings
|
|
|
29
29
|
# directory for building apidoc_cache_dir
|
|
30
30
|
# @option config [String] :apidoc_cache_dir (apidoc_cache_base_dir+'/<URI>') where
|
|
31
31
|
# to cache the JSON description of the API
|
|
32
|
-
# @option config [String] :apidoc_cache_name ('default
|
|
32
|
+
# @option config [String] :apidoc_cache_name ('default') name of the cache file.
|
|
33
33
|
# If there is cache in the :apidoc_cache_dir, it is used.
|
|
34
34
|
# @option config [String] :apidoc_authenticated (true) whether or not does the call to
|
|
35
35
|
# obtain API description use authentication. It is useful to avoid unnecessary prompts
|
|
@@ -160,7 +160,7 @@ module ApipieBindings
|
|
|
160
160
|
|
|
161
161
|
# Call an action in the API.
|
|
162
162
|
# It finds most fitting route based on given parameters
|
|
163
|
-
# with other attributes
|
|
163
|
+
# with other attributes necessary to do an API call.
|
|
164
164
|
# If in dry_run mode {#initialize} it finds fake response data in examples
|
|
165
165
|
# or user provided data. At the end when the response format is JSON it
|
|
166
166
|
# is parsed and returned as ruby objects. If server supports checksum sending
|
data/test/unit/api_test.rb
CHANGED
|
@@ -229,7 +229,8 @@ describe ApipieBindings::API do
|
|
|
229
229
|
:uri => 'http://example.com',
|
|
230
230
|
:api_version => 2,
|
|
231
231
|
:apidoc_cache_base_dir => cache_dir,
|
|
232
|
-
:authenticator => authenticator
|
|
232
|
+
:authenticator => authenticator,
|
|
233
|
+
:logger => Logger.new(File::NULL)
|
|
233
234
|
}
|
|
234
235
|
base_params.merge(params)
|
|
235
236
|
end
|
|
@@ -371,7 +372,10 @@ describe ApipieBindings::API do
|
|
|
371
372
|
it "should call clear_credentials when doing authenticated call and auth error is raised" do
|
|
372
373
|
Dir.mktmpdir do |dir|
|
|
373
374
|
credentials = ApipieBindings::AbstractCredentials.new
|
|
374
|
-
api = ApipieBindings::API.new({:uri => 'http://example.com',
|
|
375
|
+
api = ApipieBindings::API.new({:uri => 'http://example.com',
|
|
376
|
+
:logger => Logger.new(File::NULL),
|
|
377
|
+
:apidoc_cache_base_dir => dir,
|
|
378
|
+
:api_version => 2,
|
|
375
379
|
:credentials => credentials})
|
|
376
380
|
credentials.expects(:clear)
|
|
377
381
|
api.stubs(:call_client).raises(RestClient::Unauthorized)
|
data/test/unit/param_test.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apipie-bindings
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Bačovský
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-01-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|
|
@@ -256,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
256
256
|
version: '0'
|
|
257
257
|
requirements: []
|
|
258
258
|
rubyforge_project:
|
|
259
|
-
rubygems_version: 2.6.14
|
|
259
|
+
rubygems_version: 2.6.14.1
|
|
260
260
|
signing_key:
|
|
261
261
|
specification_version: 4
|
|
262
262
|
summary: The Ruby bindings for Apipie documented APIs
|