lenddo 1.1.1 → 1.1.2
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/README.md +1 -1
- data/lib/lenddo/authentication.rb +1 -1
- data/lib/lenddo/version.rb +1 -1
- data/lib/lenddo/white_label_client/network_service.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81a9c2cee46c5b54ad78c07e3f0fb7eba3df068c
|
4
|
+
data.tar.gz: e12c8fa0a5fa5a4fb1a0ab2cc1a3a5949f90114a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccf47e700973f34d08a2d7518d1862cc78cdfbeda23ae44dc23ead24f29f675b8b7cdec09a4452183120cd977eeecef126b6120253c5e3c22cc2f97952134130
|
7
|
+
data.tar.gz: b746cbdef9e3af738d112f96c9793a94c4688dd5560ae0d06ed555fc551e2877a08277c48d597504b33a4ea9d43b1f1559ee6c7797566188fcab1843a4853495
|
data/README.md
CHANGED
@@ -104,7 +104,7 @@ PartnerToken has the following arguments:
|
|
104
104
|
note: The key and secret are not your application key and secret. They're the values which are returned after a user successfully authenticates with the social network's OAuth.
|
105
105
|
OAuth secret - optional, leave null if not applicable. Some OAuth providers may return a secret when this is returned Lenddo will require the secret to using the token.
|
106
106
|
|
107
|
-
4. **token data** - This is the raw token as it was received from the provider in an
|
107
|
+
4. **token data** - This is the raw token as it was received from the provider in an Hash format. This may include a **extra_data** key.
|
108
108
|
|
109
109
|
`Lenddo::WhiteLabelClient.partner_token(application_id, provider, oauth_key, oauth_secret, token_data)`
|
110
110
|
|
@@ -33,7 +33,7 @@ module Lenddo
|
|
33
33
|
private
|
34
34
|
def sign(verb, path, body, ts = nil)
|
35
35
|
date_format = "%a %b %d %H:%M:%S %Z %Y"
|
36
|
-
digest = body.empty? ? "" : Digest::MD5.hexdigest(
|
36
|
+
digest = body.empty? ? "" : Digest::MD5.hexdigest(body)
|
37
37
|
timestamp = ts.nil? ? Time.now : Time.parse(ts, date_format)
|
38
38
|
date = timestamp.strftime(date_format)
|
39
39
|
text = [verb, digest, date, path].join("\n")
|
data/lib/lenddo/version.rb
CHANGED
@@ -10,7 +10,7 @@ module Lenddo
|
|
10
10
|
application_id: application_id,
|
11
11
|
partner_script_id: partnerscript_id,
|
12
12
|
extra_data: extra_data
|
13
|
-
}
|
13
|
+
}.to_json
|
14
14
|
)
|
15
15
|
JSON.parse(response.body)
|
16
16
|
end
|
@@ -27,7 +27,7 @@ module Lenddo
|
|
27
27
|
}.merge!(token_data),
|
28
28
|
provider: provider,
|
29
29
|
client_id: application_id
|
30
|
-
}
|
30
|
+
}.to_json
|
31
31
|
)
|
32
32
|
JSON.parse(response.body)
|
33
33
|
end
|
@@ -42,7 +42,7 @@ module Lenddo
|
|
42
42
|
profile_ids: profile_ids,
|
43
43
|
partner_script_id: partnerscript_id,
|
44
44
|
verification_data: verification
|
45
|
-
}
|
45
|
+
}.to_json
|
46
46
|
)
|
47
47
|
JSON.parse(response.body)
|
48
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lenddo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- arjay salvadora
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|