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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86321d9df996ab8dcbe77db40e3e85505cbeff1a
4
- data.tar.gz: 88b16b627432b45759279918eee1f43af76f2534
3
+ metadata.gz: cba70830484b6ca1a333960396c8a1aedb62a80f
4
+ data.tar.gz: eec92707c91acd40998a7cec3c4457dc19d7695b
5
5
  SHA512:
6
- metadata.gz: 8d8a596169481f8cc4bf0a143ce378d82977bda4a4085613710b75ac7a699dafab7b9abca6f6fdcb90dcfe3cf2c54755fe216221257bb8143618a3da7034e23c
7
- data.tar.gz: 275f8726a5a168846e1c0deb4c1661876b13c5e93f62b7fc55b35c51af0919e5fd4a628821cb6bd039b142635f445d36d09d71e2359251cc9fb210c5e9f115ea
6
+ metadata.gz: 270a782b88c787f507f026fd46afa3948382dcc53fa8317cfa2d8aafce956d796732c5f85e32273bbd6c02bb79b4ba3caa76d6f02a18cdf0bf29d1f2cd2a0077
7
+ data.tar.gz: 7dd9be1af27f58078c8bb3710de370438c6c11003b2340845d597fcf7c7f04e5ae7e761ef07281b0ad230401469c4bbff9ba4e22cdc5d41389ce021d147a8448
@@ -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
 
@@ -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.json') name of te cache file.
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 neccessary to do an API call.
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
@@ -1,5 +1,5 @@
1
1
  module ApipieBindings
2
2
  def self.version
3
- @version ||= Gem::Version.new '0.2.2'
3
+ @version ||= Gem::Version.new '0.2.3'
4
4
  end
5
5
  end
@@ -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', :apidoc_cache_base_dir => dir, :api_version => 2,
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)
@@ -32,7 +32,7 @@ describe ApipieBindings::Param do
32
32
  param.expected_type.must_equal :hash
33
33
  end
34
34
 
35
- it "should have description taht strip html tags" do
35
+ it "should have description that strip html tags" do
36
36
  param.description.must_equal "Architecture"
37
37
  end
38
38
 
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.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: 2018-01-09 00:00:00.000000000 Z
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