apipie-bindings 0.2.3 → 0.3.0
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 +5 -5
- data/doc/release_notes.md +4 -0
- data/lib/apipie_bindings/action.rb +1 -1
- data/lib/apipie_bindings/authenticators.rb +1 -0
- data/lib/apipie_bindings/authenticators/token_auth.rb +15 -0
- data/lib/apipie_bindings/example.rb +1 -1
- data/lib/apipie_bindings/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 89d947a65424dc154dcc7fe08ffe8c7d18f5286643d9e1c4616070f7f814e8ef
|
4
|
+
data.tar.gz: 18d9c689d6d3f4a5a2b25020f3cc80337ebaa7b674fd6fba5e3d2df1b8dabf36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7e133869cf290c0b38fbabf434b2208734c4e539a19adaae994cd947642052be747a9123e50ba58d8dec0a93dbceed144235a0895fc72381dae1e2f1fc8a94d
|
7
|
+
data.tar.gz: 481a7f9fa959a0ca1670b76496f709c1126d7342c31acca8c764ad0f04f4b6a42b72018ff9c6bd7c4fcbc29c734a3596621c23a68b986b159410386c8ccb0d76
|
data/doc/release_notes.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
Release notes
|
2
2
|
=============
|
3
|
+
### 0.3.0 (2019-10-25)
|
4
|
+
* Add token based auth mechanism ([PR #77](https://github.com/Apipie/apipie-bindings/pull/77))
|
5
|
+
* Throw malformed examples ([PR #78](https://github.com/Apipie/apipie-bindings/pull/78))
|
6
|
+
|
3
7
|
### 0.2.3 (2019-01-16)
|
4
8
|
* Remove error log output from specs ([PR #76](https://github.com/Apipie/apipie-bindings/pull/76))
|
5
9
|
* Update apidoc_cache_name apidoc ([PR #74](https://github.com/Apipie/apipie-bindings/pull/74))
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'apipie_bindings/authenticators/base'
|
2
|
+
|
3
|
+
module ApipieBindings
|
4
|
+
module Authenticators
|
5
|
+
class TokenAuth < Base
|
6
|
+
def initialize(token)
|
7
|
+
@token = token
|
8
|
+
end
|
9
|
+
|
10
|
+
def authenticate(req, token)
|
11
|
+
req['Authorization'] = "Bearer #{@token}"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
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.
|
4
|
+
version: 0.3.0
|
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: 2019-
|
11
|
+
date: 2019-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -185,6 +185,7 @@ files:
|
|
185
185
|
- lib/apipie_bindings/authenticators/basic_auth.rb
|
186
186
|
- lib/apipie_bindings/authenticators/credentials_legacy.rb
|
187
187
|
- lib/apipie_bindings/authenticators/oauth.rb
|
188
|
+
- lib/apipie_bindings/authenticators/token_auth.rb
|
188
189
|
- lib/apipie_bindings/credentials.rb
|
189
190
|
- lib/apipie_bindings/example.rb
|
190
191
|
- lib/apipie_bindings/exceptions.rb
|
@@ -256,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
256
257
|
version: '0'
|
257
258
|
requirements: []
|
258
259
|
rubyforge_project:
|
259
|
-
rubygems_version: 2.
|
260
|
+
rubygems_version: 2.7.10
|
260
261
|
signing_key:
|
261
262
|
specification_version: 4
|
262
263
|
summary: The Ruby bindings for Apipie documented APIs
|