userbin 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/userbin/request.rb +1 -1
- data/lib/userbin/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/session_create.yml +1 -1
- data/spec/fixtures/vcr_cassettes/session_refresh.yml +1 -1
- data/spec/fixtures/vcr_cassettes/session_verify.yml +1 -1
- data/spec/fixtures/vcr_cassettes/user_find.yml +1 -1
- data/spec/fixtures/vcr_cassettes/user_find_non_existing.yml +1 -1
- data/spec/fixtures/vcr_cassettes/user_import.yml +1 -1
- data/spec/fixtures/vcr_cassettes/user_update.yml +1 -1
- 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: d9b8ce69ab60a585a76e9a70407998c381af3ff5
|
4
|
+
data.tar.gz: f28be477edf5edd04eb8a0d115b2f30e7925fa54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dff1ce4527789fd98d09dad1ca96c735839ef1c40af6bd6d2cb0f551d7e326ac9ebd36dee7cef2de96f5a3291acfe2776ed583a57bed251b8e2bda419e659e2
|
7
|
+
data.tar.gz: 812f6a193e50662368adc8d193301005455034ae3e65b2ffc2f36b152893ff81da19d12d9890331fb538b09545eab3923af75288b75787a7ac50670bb64eea0a
|
data/lib/userbin/request.rb
CHANGED
@@ -34,7 +34,7 @@ module Userbin
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def call(env)
|
37
|
-
value = Base64.encode64("
|
37
|
+
value = Base64.encode64(":#{@api_secret || Userbin.config.api_secret}")
|
38
38
|
value.gsub!("\n", '')
|
39
39
|
env[:request_headers]["Authorization"] = "Basic #{value}"
|
40
40
|
@app.call(env)
|
data/lib/userbin/version.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://:secretkey@secure.userbin.com/v1/users/user-2412/sessions
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"user":{"email":"valid@example.com"}}'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://:secretkey@secure.userbin.com/v1/sessions/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzcyI6InVzZXItMjQxMiIsInN1YiI6IlMyb2R4UmVabkdxaHF4UGFRN1Y3a05rTG9Ya0daUEZ6IiwiYXVkIjoiODAwMDAwMDAwMDAwMDAwIiwiZXhwIjoxMzk5NDc5Njc1LCJpYXQiOjEzOTk0Nzk2NjUsImp0aSI6MH0.eyJjaGFsbGVuZ2UiOnsiaWQiOiJUVENqd3VyM3lwbTRUR1ZwWU43cENzTXFxOW9mWEVBSCIsInR5cGUiOiJvdHBfYXV0aGVudGljYXRvciJ9fQ.LT9mUzJEbsizbFxcpMo3zbms0aCDBzfgMbveMGSi1-s/refresh
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"user":{"name":"New Name"}}'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://:secretkey@secure.userbin.com/v1/sessions/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImlzcyI6InVzZXItMjQxMiIsInN1YiI6IlMyb2R4UmVabkdxaHF4UGFRN1Y3a05rTG9Ya0daUEZ6IiwiYXVkIjoiODAwMDAwMDAwMDAwMDAwIiwiZXhwIjoxMzk5NDc5Njc1LCJpYXQiOjEzOTk0Nzk2NjUsImp0aSI6MH0.eyJjaGFsbGVuZ2UiOnsiaWQiOiJUVENqd3VyM3lwbTRUR1ZwWU43cENzTXFxOW9mWEVBSCIsInR5cGUiOiJvdHBfYXV0aGVudGljYXRvciJ9fQ.LT9mUzJEbsizbFxcpMo3zbms0aCDBzfgMbveMGSi1-s/verify
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"response":"017010"}'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https
|
5
|
+
uri: https://:secretkey@secure.userbin.com/v1/users/import
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"users":[{"email":"10@example.com","username":"10"},{"email":"20@example.com","username":"20"}]}'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https
|
5
|
+
uri: https://:secretkey@secure.userbin.com/v1/users/AKfwtfrAzdDKp55aty8o14MoudkaS9BL
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"id":"AKfwtfrAzdDKp55aty8o14MoudkaS9BL","email":"updated@example.com","created_at":"2014-04-27
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: userbin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: her
|