growviral-keystore 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/growviral/account_creator.rb +5 -5
- data/lib/growviral/keystore/version.rb +1 -1
- data/test/account_creator_test.rb +5 -5
- 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: 7b99c09aab3e417bc28613e87b23538dc866bbef
|
4
|
+
data.tar.gz: 16518df608440e3984ac945297977dcb9a70c96c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c511ad0f47ef8f563f12f805f99941e3f42e19d439d5a633a8e87a7cbcec67da998b620fdceb43588aaa1eb2660508ccdb12e8fec6dbff1ade82841b531ec237
|
7
|
+
data.tar.gz: c7c8b68dd7c66a2f5eb536949f85d48fd971aa93512e0be895eec12bf5e85ac1d83c4d711c0d0b07b7b9fae351e9b76791ffdf2f73d80210077cef9a1dbc1875
|
@@ -21,15 +21,15 @@ module GrowViral
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def uri
|
24
|
-
@uri ||= URI.parse("#{config.host}/applications/#{application_id}/accounts
|
24
|
+
@uri ||= URI.parse("#{config.host}/applications/#{application_id}/accounts")
|
25
25
|
end
|
26
26
|
|
27
27
|
def form_data
|
28
28
|
{
|
29
|
-
handle
|
30
|
-
uid
|
31
|
-
token
|
32
|
-
secret
|
29
|
+
"account[handle]" => handle,
|
30
|
+
"account[uid]" => uid,
|
31
|
+
"account[token]" => token,
|
32
|
+
"account[secret]" => secret
|
33
33
|
}
|
34
34
|
end
|
35
35
|
end
|
@@ -9,10 +9,10 @@ class AccountCreatorTest < Minitest::Test
|
|
9
9
|
secret = "2349966adasds"
|
10
10
|
|
11
11
|
input = {
|
12
|
-
handle
|
13
|
-
uid
|
14
|
-
token
|
15
|
-
secret
|
12
|
+
"account[handle]" => handle,
|
13
|
+
"account[uid]" => uid,
|
14
|
+
"account[token]" => token,
|
15
|
+
"account[secret]" => secret
|
16
16
|
}
|
17
17
|
|
18
18
|
output = {
|
@@ -23,7 +23,7 @@ class AccountCreatorTest < Minitest::Test
|
|
23
23
|
"secret" => secret
|
24
24
|
}
|
25
25
|
|
26
|
-
uri = URI.parse("http://localhost:3000/applications/#{application_id}/accounts
|
26
|
+
uri = URI.parse("http://localhost:3000/applications/#{application_id}/accounts")
|
27
27
|
Net::HTTP.expects(:post_form).with(uri, input).returns(mock(body: output.to_json))
|
28
28
|
|
29
29
|
client = GrowViral::Keystore::Client.new(:development)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: growviral-keystore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Walker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|