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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82a383619447f542aeba40fead73a5ab58eeb4b0
4
- data.tar.gz: 00176bb00b165cff2f4802b6562e801685c5ec93
3
+ metadata.gz: 7b99c09aab3e417bc28613e87b23538dc866bbef
4
+ data.tar.gz: 16518df608440e3984ac945297977dcb9a70c96c
5
5
  SHA512:
6
- metadata.gz: b203b9238103123370d50988fc9fd6c452c0b2c701eef6ade0d96f7583390293d621f8c7bbafca16ee038925740e70cd3131c2dd9a1a661401388610fb9120b9
7
- data.tar.gz: 7abc2b7eeca73496135943367fccbf77cd2d047e86c5504aefad3a503b877e145436a4c72b42bb97c7726ed5c42438ed76fabe9d164366d74f10ca0a422888b0
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/#{handle}")
24
+ @uri ||= URI.parse("#{config.host}/applications/#{application_id}/accounts")
25
25
  end
26
26
 
27
27
  def form_data
28
28
  {
29
- handle: handle,
30
- uid: uid,
31
- token: token,
32
- secret: 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
@@ -1,5 +1,5 @@
1
1
  module GrowViral
2
2
  module Keystore
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -9,10 +9,10 @@ class AccountCreatorTest < Minitest::Test
9
9
  secret = "2349966adasds"
10
10
 
11
11
  input = {
12
- handle: handle,
13
- uid: uid,
14
- token: token,
15
- secret: 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/#{handle}")
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
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-18 00:00:00.000000000 Z
11
+ date: 2014-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler