active_record_api-request 0.1.12 → 0.1.13
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51d70b1b7fc34e132e39bef69abea674c8aef16c9a6af44788d2999769e7b355
|
4
|
+
data.tar.gz: b987f88ee222c67f7672e93903c88392fc8e435d35b52d9cfadeedcec46cbc23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 745eb02d5c1c62ffde1ccc14d16c199ca86984ad2bd408350518172c1ba1a2ce4d7bc6f10ec659deb40ab1b8d01277ea1195bc552d9b1cd2aab680e2481081ed
|
7
|
+
data.tar.gz: 035d3c057badcacbe0513f36459f9aaf43da5d43f77c3f271e1f107bc310e5712b4daf2dfaeb72db82b118f7d2f179d6ffc694cbc6e847803f30886047c3c07c
|
@@ -4,7 +4,7 @@ module ActiveRecordApi
|
|
4
4
|
module Request
|
5
5
|
class Credentials
|
6
6
|
include ActiveAttr::Model
|
7
|
-
attr_writer :host, :token, :email, :password
|
7
|
+
attr_writer :host, :token, :email, :password, :headers
|
8
8
|
|
9
9
|
def token
|
10
10
|
@token ||= config(:token) || connection.post("#{host}/#{token_path}", credentials).body['access_token']
|
@@ -27,7 +27,7 @@ module ActiveRecordApi
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def headers
|
30
|
-
{
|
30
|
+
@headers ||= {
|
31
31
|
'Authorization' => "Bearer #{token}"
|
32
32
|
}
|
33
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_api-request
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Full Measure Education
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_attr
|